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 + 95 - + - CAST ( NULL AS INTEGER )
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6166
SELECT MAX( ALL 74 ) col0
----
74

skipif mysql # not compatible
query I rowsort label-6166
SELECT MAX ( ALL 74 ) col0
----
74

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

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

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

query I rowsort
SELECT ALL - - 47 * + + 57
----
2679

query I rowsort
SELECT - - 48 * 51 col2
----
2448

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6172
SELECT - COUNT( 96 ) * - 56
----
56

skipif mysql # not compatible
query I rowsort label-6172
SELECT - COUNT ( 96 ) * - 56
----
56

query I rowsort
SELECT - + 74 * + + 24 + + 11 AS col0
----
-1765

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6177
SELECT ALL COUNT ( * ) + - MAX ( ALL + 85 ) AS col1
----
-84

query II rowsort
SELECT ALL + 88, 44 col2
----
88
44

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

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

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

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

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6185
SELECT - SUM ( DISTINCT - - 96 )
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6186
SELECT 71 + - MIN( + + 28 ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-6186
SELECT 71 + - MIN ( + + 28 ) AS col1
----
43

query I rowsort
SELECT 92 + - 44 - - - 78
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6188
SELECT + 48 * + MIN( ALL CAST( 98 AS SIGNED ) ) AS col1
----
4704

skipif mysql # not compatible
query I rowsort label-6188
SELECT + 48 * + MIN ( ALL CAST ( 98 AS INTEGER ) ) AS col1
----
4704

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

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

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

query I rowsort
SELECT 8 * - + NULLIF ( + 20, + NULLIF ( - + 96, ( - ( - 47 ) ) * + 39 ) )
----
-160

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6193
SELECT - + 56, COUNT( * ) * 59 col1
----
-56
59

skipif mysql # not compatible
query II rowsort label-6193
SELECT - + 56, COUNT ( * ) * 59 col1
----
-56
59

query I rowsort
SELECT + ( 37 ) * - 35
----
-1295

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

skipif mysql # not compatible
query I rowsort label-6195
SELECT + 76 - - COUNT ( * ) AS col1
----
77

query II rowsort
SELECT ALL - - 77 AS col1, 60 AS col0
----
77
60

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6198
SELECT ALL + ( - - SUM( DISTINCT - + 57 ) ) * - 62
----
3534

skipif mysql # not compatible
query I rowsort label-6198
SELECT ALL + ( - - SUM ( DISTINCT - + 57 ) ) * - 62
----
3534

query I rowsort
SELECT ALL - ( + 92 ) + - 62
----
-154

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

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

query I rowsort
SELECT + 81 * 67 AS col0
----
5427

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6203
SELECT + 16 + - COALESCE ( + COUNT( * ), + COUNT( * ) * - CAST( NULL AS SIGNED ) )
----
15

skipif mysql # not compatible
query I rowsort label-6203
SELECT + 16 + - COALESCE ( + COUNT ( * ), + COUNT ( * ) * - CAST ( NULL AS INTEGER ) )
----
15

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

query II rowsort
SELECT ALL + 24 AS col2, 68 * + 35 col1
----
24
2380

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6208
SELECT - + ( 42 ) DIV + + 78 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6208
SELECT - + ( 42 ) / + + 78 AS col1
----
0

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

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

query I rowsort
SELECT ALL 40 + 78 + - 30
----
88

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

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

query I rowsort
SELECT DISTINCT 78 + 22 AS col0
----
100

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

skipif mysql # not compatible
query I rowsort label-6213
SELECT ALL - MIN ( - - 7 )
----
-7

query I rowsort
SELECT 6 * - 96 AS col0
----
-576

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6217
SELECT DISTINCT - MIN( - - CAST( NULL AS SIGNED ) ) AS col0, 47 AS col1
----
NULL
47

skipif mysql # not compatible
query II rowsort label-6217
SELECT DISTINCT - MIN ( - - CAST ( NULL AS INTEGER ) ) AS col0, 47 AS col1
----
NULL
47

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6220
SELECT + 71 * + + MAX( - + 25 )
----
-1775

skipif mysql # not compatible
query I rowsort label-6220
SELECT + 71 * + + MAX ( - + 25 )
----
-1775

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

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

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

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

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

query I rowsort
SELECT 21 + - - 76
----
97

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6227
SELECT ( - + ( - CAST( + 90 AS SIGNED ) ) ) * + 83 col2
----
7470

skipif mysql # not compatible
query I rowsort label-6227
SELECT ( - + ( - CAST ( + 90 AS INTEGER ) ) ) * + 83 col2
----
7470

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

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

query I rowsort
SELECT ( 95 ) * 33
----
3135

query I rowsort
SELECT ALL 65 + - 24
----
41

query I rowsort
SELECT ALL - - 78 col0
----
78

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

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

query II rowsort
SELECT ALL - + 72 AS col0, 10
----
-72
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6234
SELECT MIN( 76 ) * - - 19 AS col1
----
1444

skipif mysql # not compatible
query I rowsort label-6234
SELECT MIN ( 76 ) * - - 19 AS col1
----
1444

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

query I rowsort
SELECT DISTINCT - 22 * - 74 AS col0
----
1628

onlyif mysql # aggregate syntax: 
query I rowsort label-6237
SELECT - COUNT( DISTINCT ( 96 ) ) - 49 AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-6237
SELECT - COUNT ( DISTINCT ( 96 ) ) - 49 AS col2
----
-50

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6239
SELECT - MAX( ALL + 26 ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-6239
SELECT - MAX ( ALL + 26 ) AS col1
----
-26

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

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

query I rowsort
SELECT + 89 + + - 12
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6242
SELECT - ( - MAX( CAST( 78 AS SIGNED ) ) )
----
78

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

query I rowsort
SELECT + 81 * - 66
----
-5346

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6247
SELECT 88 * + 73 - - COUNT( * )
----
6425

skipif mysql # not compatible
query I rowsort label-6247
SELECT 88 * + 73 - - COUNT ( * )
----
6425

onlyif mysql # DIV for integer division: 
query I rowsort label-6248
SELECT ALL 22 - - 24 DIV - + 80 * + 74
----
22

skipif mysql # not compatible
query I rowsort label-6248
SELECT ALL 22 - - 24 / - + 80 * + 74
----
22

query I rowsort
SELECT ALL - 52 - + 80
----
-132

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6251
SELECT ALL MAX( DISTINCT + 59 )
----
59

skipif mysql # not compatible
query I rowsort label-6251
SELECT ALL MAX ( DISTINCT + 59 )
----
59

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6256
SELECT ALL 22 - - 23 * - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6256
SELECT ALL 22 - - 23 * - COUNT ( * ) AS col2
----
-1

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

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

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

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

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

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

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

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

query I rowsort
SELECT 42 * - - 0 AS col1
----
0

query II rowsort
SELECT 54 AS col1, CASE WHEN NOT NULL IS NULL THEN ( + 26 ) END
----
54
NULL

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

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

query II rowsort
SELECT 52 AS col1, + 45
----
52
45

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6270
SELECT - - 89 * COUNT( * ) * - - MAX( + 65 ) + + 50 AS col0
----
5835

skipif mysql # not compatible
query I rowsort label-6270
SELECT - - 89 * COUNT ( * ) * - - MAX ( + 65 ) + + 50 AS col0
----
5835

onlyif mysql # aggregate syntax: 
query I rowsort label-6271
SELECT + COUNT( * ) - + + 72 AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-6271
SELECT + COUNT ( * ) - + + 72 AS col0
----
-71

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

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6279
SELECT 80 DIV - 30 col0
----
-2

skipif mysql # not compatible
query I rowsort label-6279
SELECT 80 / - 30 col0
----
-2

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6282
SELECT DISTINCT - MAX( 63 ) AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-6282
SELECT DISTINCT - MAX ( 63 ) AS col1
----
-63

query I rowsort
SELECT 53 * - 47 AS col1
----
-2491

onlyif mysql # DIV for integer division: 
query I rowsort label-6284
SELECT + 50 DIV - 1
----
-50

skipif mysql # not compatible
query I rowsort label-6284
SELECT + 50 / - 1
----
-50

query I rowsort
SELECT DISTINCT 54 + 96 col2
----
150

query I rowsort
SELECT ALL 35 + - 5
----
30

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6292
SELECT ALL COUNT( ALL - 51 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6292
SELECT ALL COUNT ( ALL - 51 ) AS col2
----
1

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

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

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

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

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

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6299
SELECT - ( + COUNT ( * ) ) * + MAX ( + 40 ) AS col2
----
-40

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT + 65 + - 32
----
33

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

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

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

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

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

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

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

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

query I rowsort
SELECT + 10 + - 63 AS col0
----
-53

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6318
SELECT ALL COUNT( 87 ) * + + 23 + + + 35 col0
----
58

skipif mysql # not compatible
query I rowsort label-6318
SELECT ALL COUNT ( 87 ) * + + 23 + + + 35 col0
----
58

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

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

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

skipif mysql # not compatible
query I rowsort label-6320
SELECT + - 77 * + CAST ( NULL AS REAL ) col2
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-6322
SELECT - MAX ( + - 99 )
----
99

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL - 28 + - - 26
----
-2

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

skipif mysql # not compatible
query I rowsort label-6331
SELECT MIN ( + + 14 )
----
14

query I rowsort
SELECT ALL - 88 + 95
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6333
SELECT 68 + - ( + - 17 ) + - + COUNT( * ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-6333
SELECT 68 + - ( + - 17 ) + - + COUNT ( * ) AS col2
----
84

query II rowsort
SELECT DISTINCT 12 col1, 91
----
12
91

query I rowsort
SELECT ALL - 20 * 67
----
-1340

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

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

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

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

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

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

query I rowsort
SELECT ALL 41 + + 36
----
77

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

skipif mysql # not compatible
query II rowsort label-6340
SELECT ALL - 61 + + CAST ( + - 42 AS INTEGER ) AS col1, + COUNT ( * )
----
-103
1

query II rowsort
SELECT 38 AS col0, + 2 AS col0
----
38
2

query I rowsort
SELECT 6 * + 6
----
36

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6344
SELECT + 10 DIV + - 60
----
0

skipif mysql # not compatible
query I rowsort label-6344
SELECT + 10 / + - 60
----
0

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

skipif mysql # not compatible
query I rowsort label-6345
SELECT + SUM ( + + 66 )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6346
SELECT - COUNT( * ) * 17 * + + 70 col0
----
-1190

skipif mysql # not compatible
query I rowsort label-6346
SELECT - COUNT ( * ) * 17 * + + 70 col0
----
-1190

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6349
SELECT + SUM( ALL - 51 ) col1
----
-51

skipif mysql # not compatible
query I rowsort label-6349
SELECT + SUM ( ALL - 51 ) col1
----
-51

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

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

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

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

query I rowsort
SELECT ( + NULLIF ( 23, + + 65 ) ) AS col2
----
23

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6357
SELECT - 1 DIV - 71
----
0

skipif mysql # not compatible
query I rowsort label-6357
SELECT - 1 / - 71
----
0

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6360
SELECT + COUNT( DISTINCT - 8 ) + - 11 + - NULLIF ( + + 21, 4 )
----
-31

skipif mysql # not compatible
query I rowsort label-6360
SELECT + COUNT ( DISTINCT - 8 ) + - 11 + - NULLIF ( + + 21, 4 )
----
-31

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6363
SELECT DISTINCT - COUNT( ALL - 44 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6363
SELECT DISTINCT - COUNT ( ALL - 44 ) AS col0
----
-1

query I rowsort
SELECT ALL - 73 * - - 88
----
-6424

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

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

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

query I rowsort
SELECT + 47 * - + 38 * + 38 AS col2
----
-67868

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

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

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

skipif mysql # not compatible
query I rowsort label-6369
SELECT DISTINCT COUNT ( * ) + + 43 AS col2
----
44

query I rowsort
SELECT ALL - 76 * + 88 AS col0
----
-6688

query I rowsort
SELECT - 87 * + 38 AS col2
----
-3306

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

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

query I rowsort
SELECT DISTINCT - 25 * - 0
----
0

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

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

query I rowsort
SELECT + 81 + 5
----
86

query I rowsort
SELECT ALL ( + 85 ) + 45 * + 55
----
2560

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

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

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

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

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

query I rowsort
SELECT DISTINCT - 58 col0
----
-58

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6382
SELECT ( - 61 ) + 93 + + COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-6382
SELECT ( - 61 ) + 93 + + COUNT ( * )
----
33

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6389
SELECT ALL 58 * - ( MAX( DISTINCT 45 ) ) AS col0
----
-2610

skipif mysql # not compatible
query I rowsort label-6389
SELECT ALL 58 * - ( MAX ( DISTINCT 45 ) ) AS col0
----
-2610

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

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

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

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

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

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

query I rowsort
SELECT 60 + + - 9 * 43 AS col2
----
-327

query I rowsort
SELECT 35 * + 50
----
1750

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT 60 + + - ( 4 ) col1
----
56

query I rowsort
SELECT + 60 + 73
----
133

query I rowsort
SELECT ALL + COALESCE ( - 71, 17 )
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6403
SELECT ALL + - 68 * - 40 / + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6403
SELECT ALL + - 68 * - 40 / + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6404
SELECT + 76 DIV - - 73
----
1

skipif mysql # not compatible
query I rowsort label-6404
SELECT + 76 / - - 73
----
1

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT 9 + 61 AS col0
----
70

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6413
SELECT DISTINCT COUNT( ALL - + 28 ) + + 45
----
46

skipif mysql # not compatible
query I rowsort label-6413
SELECT DISTINCT COUNT ( ALL - + 28 ) + + 45
----
46

query I rowsort
SELECT DISTINCT - COALESCE ( - + 15, 37 ) col2
----
15

query I rowsort
SELECT + - 45 col2
----
-45

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6417
SELECT DISTINCT CAST( NULL AS SIGNED ) * + + 43, 26 AS col2
----
NULL
26

skipif mysql # not compatible
query II rowsort label-6417
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + + 43, 26 AS col2
----
NULL
26

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT 94 * 85 * - 42 AS col1
----
-335580

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

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

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

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

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

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

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

query I rowsort
SELECT - 73 * 28 AS col0
----
-2044

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

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

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

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

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

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

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

query I rowsort
SELECT ALL + 99 + 10 + 13 AS col2
----
122

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6436
SELECT DISTINCT 87 - - AVG ( DISTINCT + - 78 ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6436
SELECT DISTINCT 87 - - AVG ( DISTINCT + - 78 ) * + CAST ( NULL AS INTEGER )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6437
SELECT DISTINCT SUM ( DISTINCT 37 )
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6438
SELECT - MAX( DISTINCT ( - - 81 ) ) DIV 82 + - - 74
----
74

skipif mysql # not compatible
query I rowsort label-6438
SELECT - MAX ( DISTINCT ( - - 81 ) ) / 82 + - - 74
----
74

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

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

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

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

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

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

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

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

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

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

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

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

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

query II rowsort
SELECT DISTINCT 96 AS col1, 56
----
96
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6447
SELECT ALL MIN( - + 55 ) + 45 * + COUNT( * ) AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-6447
SELECT ALL MIN ( - + 55 ) + 45 * + COUNT ( * ) AS col0
----
-10

query I rowsort
SELECT - 91 + - 33
----
-124

onlyif mysql # DIV for integer division: 
query I rowsort label-6449
SELECT - 88 DIV - + 64
----
1

skipif mysql # not compatible
query I rowsort label-6449
SELECT - 88 / - + 64
----
1

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

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

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

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

query I rowsort
SELECT ALL - 17 + + - 67
----
-84

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6456
SELECT COUNT( 69 ) - - - 71 AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-6456
SELECT COUNT ( 69 ) - - - 71 AS col0
----
-70

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

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

query I rowsort
SELECT ALL + 85 + - - ( - 61 ) col2
----
24

query I rowsort
SELECT DISTINCT + ( 22 ) + - + 26 AS col1
----
-4

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

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

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

query I rowsort
SELECT - - 45 AS col1
----
45

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT 83 + - 47
----
36

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

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

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

query I rowsort
SELECT - 62 * - 65 AS col1
----
4030

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6471
SELECT + + ( - MAX( ALL - + ( 99 ) ) ) DIV - + 28
----
-3

skipif mysql # not compatible
query I rowsort label-6471
SELECT + + ( - MAX ( ALL - + ( 99 ) ) ) / - + 28
----
-3

query I rowsort
SELECT - + 13 - 77
----
-90

query I rowsort
SELECT ALL - - 68 * - 44 col0
----
-2992

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6479
SELECT MAX( + 73 ) * - + 71 AS col1
----
-5183

skipif mysql # not compatible
query I rowsort label-6479
SELECT MAX ( + 73 ) * - + 71 AS col1
----
-5183

query I rowsort
SELECT - COALESCE ( - - 89, + - 50 )
----
-89

query I rowsort
SELECT ALL + 42 + + 58 AS col2
----
100

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6483
SELECT DISTINCT 39 DIV + 5
----
7

skipif mysql # not compatible
query I rowsort label-6483
SELECT DISTINCT 39 / + 5
----
7

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6487
SELECT 42 * + CAST ( NULL AS REAL ) AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6488
SELECT SUM ( 2 ) * + 28 * - - COUNT ( * ) AS col0
----
56

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

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

query I rowsort
SELECT + 33 * 22 AS col1
----
726

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6492
SELECT DISTINCT + COUNT( * ) + - 59
----
-58

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

query I rowsort
SELECT 32 + + - 77 AS col1
----
-45

query II rowsort
SELECT ALL 22, - 78 AS col0
----
22
-78

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

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

query II rowsort
SELECT - 30 AS col2, + 94 col2
----
-30
94

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

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

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

skipif mysql # not compatible
query II rowsort label-6498
SELECT DISTINCT + 1 - - CAST ( + CAST ( 1 AS INTEGER ) AS INTEGER ) AS col1, + COUNT ( * ) col1
----
2
1

query II rowsort
SELECT 1, 44 - + 14 AS col0
----
1
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6500
SELECT DISTINCT 20 - COUNT( * ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-6500
SELECT DISTINCT 20 - COUNT ( * ) AS col1
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-6501
SELECT - - 97 DIV - 77
----
-1

skipif mysql # not compatible
query I rowsort label-6501
SELECT - - 97 / - 77
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6504
SELECT ALL MIN( DISTINCT 77 ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-6504
SELECT ALL MIN ( DISTINCT 77 ) AS col0
----
77

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

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

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

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

query I rowsort
SELECT ALL - 54 + 64
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6508
SELECT DISTINCT - MIN( ALL ( 56 ) ) AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-6508
SELECT DISTINCT - MIN ( ALL ( 56 ) ) AS col0
----
-56

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT + 62 * - 93
----
-5766

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6519
SELECT ALL + 47 AS col2, COUNT( DISTINCT + 46 )
----
47
1

skipif mysql # not compatible
query II rowsort label-6519
SELECT ALL + 47 AS col2, COUNT ( DISTINCT + 46 )
----
47
1

query I rowsort
SELECT - 3 * - 44
----
132

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

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

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

query I rowsort
SELECT - 41 + - 6 AS col1
----
-47

query I rowsort
SELECT DISTINCT + 79 * 34 AS col1
----
2686

query I rowsort
SELECT ALL - 24 * 82 AS col2
----
-1968

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

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

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

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

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

query I rowsort
SELECT DISTINCT - - 79
----
79

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

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

query II rowsort
SELECT - ( 53 ) col2, + 53
----
-53
53

query I rowsort
SELECT DISTINCT - 41 * + 65
----
-2665

query I rowsort
SELECT ALL 33 + 22 AS col1
----
55

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6537
SELECT DISTINCT COUNT( * ) * - - MAX( - 33 ) col1
----
-33

skipif mysql # not compatible
query I rowsort label-6537
SELECT DISTINCT COUNT ( * ) * - - MAX ( - 33 ) col1
----
-33

query I rowsort
SELECT + 56 + - 86 AS col1
----
-30

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6540
SELECT + 85 * 99 * + MAX( - 99 ) AS col0
----
-833085

skipif mysql # not compatible
query I rowsort label-6540
SELECT + 85 * 99 * + MAX ( - 99 ) AS col0
----
-833085

onlyif mysql # aggregate syntax: 
query I rowsort label-6541
SELECT + 78 + - MAX( + 89 )
----
-11

skipif mysql # not compatible
query I rowsort label-6541
SELECT + 78 + - MAX ( + 89 )
----
-11

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6546
SELECT 1 + + - COUNT( * ) * MIN( ALL - 17 )
----
18

skipif mysql # not compatible
query I rowsort label-6546
SELECT 1 + + - COUNT ( * ) * MIN ( ALL - 17 )
----
18

query I rowsort
SELECT DISTINCT + 86 * + 99 + 98 AS col1
----
8612

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6550
SELECT ALL COUNT ( DISTINCT - 41 ) AS col1
----
1

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

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

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

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

query I rowsort
SELECT + 26 - 86
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6554
SELECT - MIN( - COALESCE ( - 44, - 79 ) ) DIV + + 51
----
0

skipif mysql # not compatible
query I rowsort label-6554
SELECT - MIN ( - COALESCE ( - 44, - 79 ) ) / + + 51
----
0

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

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

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

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

query I rowsort
SELECT 36 * + + 49
----
1764

onlyif mysql # DIV for integer division: 
query I rowsort label-6558
SELECT 26 DIV 54 col0
----
0

skipif mysql # not compatible
query I rowsort label-6558
SELECT 26 / 54 col0
----
0

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6560
SELECT DISTINCT 7 - + - 32 * + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6560
SELECT DISTINCT 7 - + - 32 * + - CAST ( NULL AS REAL )
----
NULL

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

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

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

query I rowsort
SELECT DISTINCT + 69 * 64 col2
----
4416

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

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

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

query I rowsort
SELECT + 86 + + 97
----
183

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6569
SELECT + COUNT( * ) + 30 * - MAX( DISTINCT - + 34 ) AS col0
----
1021

skipif mysql # not compatible
query I rowsort label-6569
SELECT + COUNT ( * ) + 30 * - MAX ( DISTINCT - + 34 ) AS col0
----
1021

onlyif mysql # aggregate syntax: 
query I rowsort label-6570
SELECT + NULLIF ( - 67, + - MAX( + 21 ) )
----
-67

skipif mysql # not compatible
query I rowsort label-6570
SELECT + NULLIF ( - 67, + - MAX ( + 21 ) )
----
-67

query I rowsort
SELECT DISTINCT - 37 * - 65 AS col2
----
2405

query II rowsort
SELECT - 3 AS col2, ( + + 22 ) AS col1
----
-3
22

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

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

skipif mysql # not compatible
query I rowsort label-6574
SELECT - MAX ( - - 11 )
----
-11

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

skipif mysql # not compatible
query I rowsort label-6575
SELECT ALL 95 / - COUNT ( * )
----
-95

query I rowsort
SELECT - 43 + + 57
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-6577
SELECT - 19 DIV - - 74
----
0

skipif mysql # not compatible
query I rowsort label-6577
SELECT - 19 / - - 74
----
0

query I rowsort
SELECT 64 + + 60
----
124

query I rowsort
SELECT 71 * + 61
----
4331

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

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6584
SELECT COUNT ( * ) + + 23 AS col2
----
24

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6587
SELECT ALL MAX( DISTINCT + 71 )
----
71

skipif mysql # not compatible
query I rowsort label-6587
SELECT ALL MAX ( DISTINCT + 71 )
----
71

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6590
SELECT ALL MAX( ALL 12 ) + + 15 AS col0
----
27

skipif mysql # not compatible
query I rowsort label-6590
SELECT ALL MAX ( ALL 12 ) + + 15 AS col0
----
27

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6592
SELECT ALL 68 DIV - - 38
----
1

skipif mysql # not compatible
query I rowsort label-6592
SELECT ALL 68 / - - 38
----
1

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

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

query I rowsort
SELECT ALL 31 * - 48 AS col2
----
-1488

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6596
SELECT 8 - - ( - CASE - 76 WHEN 63 THEN NULL ELSE - 40 + - - COUNT( * ) DIV - COUNT( * ) END )
----
49

skipif mysql # not compatible
query I rowsort label-6596
SELECT 8 - - ( - CASE - 76 WHEN 63 THEN NULL ELSE - 40 + - - COUNT ( * ) / - COUNT ( * ) END )
----
49

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

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

query I rowsort
SELECT DISTINCT - 2 * + 2 * 39 AS col0
----
-156

query I rowsort
SELECT ALL NULLIF ( - 48, 29 )
----
-48

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

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

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

query I rowsort
SELECT - 6 * + - 5 AS col0
----
30

query II rowsort
SELECT - + 63 AS col1, + 23 * - 36 AS col0
----
-63
-828

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6607
SELECT ( - NULLIF ( - COUNT( * ), ( - - 24 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-6607
SELECT ( - NULLIF ( - COUNT ( * ), ( - - 24 ) ) )
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6609
SELECT ALL COUNT( 4 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6609
SELECT ALL COUNT ( 4 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6610
SELECT ALL COALESCE ( + 5, - COUNT( * ) )
----
5

skipif mysql # not compatible
query I rowsort label-6610
SELECT ALL COALESCE ( + 5, - COUNT ( * ) )
----
5

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6612
SELECT + MAX( DISTINCT + 7 ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-6612
SELECT + MAX ( DISTINCT + 7 ) AS col0
----
7

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

query I rowsort
SELECT ALL 67 * + 15
----
1005

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6616
SELECT DISTINCT + 99 + - 5 DIV - 91
----
99

skipif mysql # not compatible
query I rowsort label-6616
SELECT DISTINCT + 99 + - 5 / - 91
----
99

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6619
SELECT DISTINCT - 12 DIV 24
----
0

skipif mysql # not compatible
query I rowsort label-6619
SELECT DISTINCT - 12 / 24
----
0

query I rowsort
SELECT - - 1 + 12 AS col2
----
13

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6623
SELECT + 30 DIV + 23 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6623
SELECT + 30 / + 23 AS col2
----
1

query I rowsort
SELECT DISTINCT 38 * 8 AS col0
----
304

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

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

query I rowsort
SELECT DISTINCT 3 * - 3 AS col2
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-6627
SELECT ALL + 98 DIV - - ( 3 ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-6627
SELECT ALL + 98 / - - ( 3 ) AS col2
----
32

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

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6631
SELECT + 84 DIV - MIN( 16 )
----
-5

skipif mysql # not compatible
query I rowsort label-6631
SELECT + 84 / - MIN ( 16 )
----
-5

query II rowsort
SELECT ALL 8 AS col0, + 53 AS col0
----
8
53

query I rowsort
SELECT 70 + 26 AS col1
----
96

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6636
SELECT ALL + SUM( - 12 ) + - 80 AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-6636
SELECT ALL + SUM ( - 12 ) + - 80 AS col2
----
-92

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6639
SELECT DISTINCT + - ( NULLIF ( + SUM( + - 37 ), + 2 ) ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-6639
SELECT DISTINCT + - ( NULLIF ( + SUM ( + - 37 ), + 2 ) ) AS col2
----
37

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

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

query I rowsort
SELECT + 77 * ( 11 )
----
847

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6643
SELECT DISTINCT 54 / + CAST( NULL AS DECIMAL ) + + - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-6643
SELECT DISTINCT 54 / + CAST ( NULL AS REAL ) + + - 30
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6646
SELECT 33 + 32 AS col2, - COUNT( * ) + 87
----
65
86

skipif mysql # not compatible
query II rowsort label-6646
SELECT 33 + 32 AS col2, - COUNT ( * ) + 87
----
65
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6647
SELECT ( - 4 ) + + COUNT( * ) * + COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-6647
SELECT ( - 4 ) + + COUNT ( * ) * + COUNT ( * )
----
-3

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

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

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

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

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

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

query I rowsort
SELECT 80 + + + 55
----
135

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6653
SELECT ALL ( COUNT( * ) ) + NULLIF ( + 98, 87 ) + + - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6653
SELECT ALL ( COUNT ( * ) ) + NULLIF ( + 98, 87 ) + + - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6654
SELECT NULLIF ( + COUNT( * ), 60 + + - 5 + 50 ) - - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-6654
SELECT NULLIF ( + COUNT ( * ), 60 + + - 5 + 50 ) - - COUNT ( * )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6655
SELECT DISTINCT CAST( + + 49 AS SIGNED ) + 48 AS col1
----
97

skipif mysql # not compatible
query I rowsort label-6655
SELECT DISTINCT CAST ( + + 49 AS INTEGER ) + 48 AS col1
----
97

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

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

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

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

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

query I rowsort
SELECT DISTINCT - 73 * + 43 AS col1
----
-3139

query I rowsort
SELECT + 83 + 53 col2
----
136

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

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

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

query I rowsort
SELECT ALL 8 * + 93 AS col1
----
744

query I rowsort
SELECT - 49 * - 26 + 80 AS col2
----
1354

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

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

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

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

query I rowsort
SELECT DISTINCT + 73 * 73
----
5329

query I rowsort
SELECT ALL 41 * + + 30
----
1230

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6669
SELECT - + ( - - MAX( DISTINCT - - 16 ) ) DIV COUNT( * ) AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-6669
SELECT - + ( - - MAX ( DISTINCT - - 16 ) ) / COUNT ( * ) AS col1
----
-16

query I rowsort
SELECT + + 44 + - + 28 col2
----
16

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

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6674
SELECT - NULLIF ( - COUNT( * ), COUNT( * ) ) DIV + 3 col2
----
0

skipif mysql # not compatible
query I rowsort label-6674
SELECT - NULLIF ( - COUNT ( * ), COUNT ( * ) ) / + 3 col2
----
0

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6677
SELECT DISTINCT + COUNT( * ) * + + 29 * - 88
----
-2552

skipif mysql # not compatible
query I rowsort label-6677
SELECT DISTINCT + COUNT ( * ) * + + 29 * - 88
----
-2552

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6678
SELECT 90 DIV + COUNT( - 50 ) col0
----
90

skipif mysql # not compatible
query I rowsort label-6678
SELECT 90 / + COUNT ( - 50 ) col0
----
90

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

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

query I rowsort
SELECT DISTINCT - 52 - - 93
----
41

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

skipif mysql # not compatible
query I rowsort label-6681
SELECT ALL 89 * - - CAST ( 46 AS INTEGER ) AS col1
----
4094

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

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

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

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

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

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

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

query I rowsort
SELECT ALL 73 - 36 AS col1
----
37

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6688
SELECT DISTINCT - CAST( - 87 AS SIGNED ) * 36
----
3132

skipif mysql # not compatible
query I rowsort label-6688
SELECT DISTINCT - CAST ( - 87 AS INTEGER ) * 36
----
3132

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

skipif mysql # not compatible
query I rowsort label-6689
SELECT - SUM ( DISTINCT 68 )
----
-68

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

skipif mysql # not compatible
query I rowsort label-6690
SELECT - - ( 37 ) / COUNT ( * )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-6691
SELECT - - COUNT( * ) + + MIN( + 31 ) * 84
----
2605

skipif mysql # not compatible
query I rowsort label-6691
SELECT - - COUNT ( * ) + + MIN ( + 31 ) * 84
----
2605

query II rowsort
SELECT DISTINCT - 19 col2, 27 AS col1
----
-19
27

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

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

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

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

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

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

query I rowsort
SELECT + 3 + - 41 AS col0
----
-38

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT - 59 * + + 26 * + 87
----
-133458

query I rowsort
SELECT + + 99 - + ( + + 11 ) col0
----
88

query II rowsort
SELECT ALL + 76 AS col1, + 51 AS col0
----
76
51

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6709
SELECT ALL ( - 46 ) DIV - COUNT( * ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-6709
SELECT ALL ( - 46 ) / - COUNT ( * ) AS col1
----
46

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

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

query II rowsort
SELECT ALL + 92 AS col2, 57
----
92
57

onlyif mysql # aggregate syntax: 
query II rowsort label-6712
SELECT DISTINCT COUNT( * ), - 90 col0
----
1
-90

skipif mysql # not compatible
query II rowsort label-6712
SELECT DISTINCT COUNT ( * ), - 90 col0
----
1
-90

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6714
SELECT 60 DIV + 28 + - 20
----
-18

skipif mysql # not compatible
query I rowsort label-6714
SELECT 60 / + 28 + - 20
----
-18

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL 47 col1
----
47

query I rowsort
SELECT DISTINCT - 60 * 27 + 5
----
-1615

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

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

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

query I rowsort
SELECT + 90 + - + 13
----
77

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

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

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6735
SELECT DISTINCT CAST( + 22 AS DECIMAL ) * - 96 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6735
SELECT DISTINCT CAST ( + 22 AS REAL ) * - 96 + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6736
SELECT ALL + COUNT( * ) + + 50 * + + SUM( ALL + - 75 ) AS col0
----
-3749

skipif mysql # not compatible
query I rowsort label-6736
SELECT ALL + COUNT ( * ) + + 50 * + + SUM ( ALL + - 75 ) AS col0
----
-3749

onlyif mysql # aggregate syntax: 
query I rowsort label-6737
SELECT - COUNT( * ) + + 61 col0
----
60

skipif mysql # not compatible
query I rowsort label-6737
SELECT - COUNT ( * ) + + 61 col0
----
60

query I rowsort
SELECT + NULLIF ( + + 80, 5 ) AS col1
----
80

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

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

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

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

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

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

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

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

query I rowsort
SELECT 59 * - 53 AS col0
----
-3127

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL + 79 * + 73
----
5767

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

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

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

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

query I rowsort
SELECT ALL ( + 67 ) * + - 14 - + 21
----
-959

query I rowsort
SELECT + 39 * - 37 AS col1
----
-1443

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6757
SELECT ALL + 74 + + - MIN( 2 ) + + ( + 58 )
----
130

skipif mysql # not compatible
query I rowsort label-6757
SELECT ALL + 74 + + - MIN ( 2 ) + + ( + 58 )
----
130

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

query II rowsort
SELECT 33, - 58 col1
----
33
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6760
SELECT + + 83 + - MAX( ALL - 61 ) * - - COUNT( + + 8 )
----
144

skipif mysql # not compatible
query I rowsort label-6760
SELECT + + 83 + - MAX ( ALL - 61 ) * - - COUNT ( + + 8 )
----
144

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

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

query I rowsort
SELECT - 92 * - - 30 AS col1
----
-2760

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6766
SELECT ALL - 83 col0, 85 + + COUNT( * )
----
-83
86

skipif mysql # not compatible
query II rowsort label-6766
SELECT ALL - 83 col0, 85 + + COUNT ( * )
----
-83
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6767
SELECT ALL - ( SUM( ALL 68 ) ) AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-6767
SELECT ALL - ( SUM ( ALL 68 ) ) AS col1
----
-68

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

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

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

skipif mysql # not compatible
query I rowsort label-6769
SELECT DISTINCT - MIN ( 92 )
----
-92

query I rowsort
SELECT + + 66 * 7 AS col0
----
462

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

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

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

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

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

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

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

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

query I rowsort
SELECT + 59 * + 17 AS col2
----
1003

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

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

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

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

query I rowsort
SELECT - ( - 0 )
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6781
SELECT ALL MIN( + + 38 ) - - ( 81 )
----
119

skipif mysql # not compatible
query I rowsort label-6781
SELECT ALL MIN ( + + 38 ) - - ( 81 )
----
119

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6783
SELECT DISTINCT - 15 * - CAST( - 46 AS SIGNED )
----
-690

skipif mysql # not compatible
query I rowsort label-6783
SELECT DISTINCT - 15 * - CAST ( - 46 AS INTEGER )
----
-690

query II rowsort
SELECT DISTINCT 13 * + ( + + 8 ) AS col2, + 32
----
104
32

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6786
SELECT ALL - COUNT( * ) * + 30 * - - 66 + 85
----
-1895

skipif mysql # not compatible
query I rowsort label-6786
SELECT ALL - COUNT ( * ) * + 30 * - - 66 + 85
----
-1895

onlyif mysql # aggregate syntax: 
query I rowsort label-6787
SELECT ALL + SUM( DISTINCT - + ( - 8 ) ) * 16 col2
----
128

skipif mysql # not compatible
query I rowsort label-6787
SELECT ALL + SUM ( DISTINCT - + ( - 8 ) ) * 16 col2
----
128

onlyif mysql # aggregate syntax: 
query II rowsort label-6788
SELECT + 5 col2, SUM( + 58 )
----
5
58

skipif mysql # not compatible
query II rowsort label-6788
SELECT + 5 col2, SUM ( + 58 )
----
5
58

query I rowsort
SELECT ALL 53 * - 36
----
-1908

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

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

query I rowsort
SELECT + 17 + 69 + + NULLIF ( + + 93, 84 ) AS col1
----
179

onlyif mysql # aggregate syntax: 
query II rowsort label-6792
SELECT + SUM( DISTINCT - + 89 ) AS col1, - 39 col2
----
-89
-39

skipif mysql # not compatible
query II rowsort label-6792
SELECT + SUM ( DISTINCT - + 89 ) AS col1, - 39 col2
----
-89
-39

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

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

query I rowsort
SELECT ALL 54 * + + 8 AS col2
----
432

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

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

query II rowsort
SELECT + 17, 49 AS col2
----
17
49

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

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

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

query I rowsort
SELECT DISTINCT - 21 + - 20 col2
----
-41

query I rowsort
SELECT 9 - - 21 AS col2
----
30

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

skipif mysql # not compatible
query II rowsort label-6801
SELECT MAX ( 32 ), COUNT ( * ) AS col2
----
32
1

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

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

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

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

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

query I rowsort
SELECT ALL 90 * 6 AS col1
----
540

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6808
SELECT ALL - 49 * - COUNT( * ) * + + 69
----
3381

skipif mysql # not compatible
query I rowsort label-6808
SELECT ALL - 49 * - COUNT ( * ) * + + 69
----
3381

query I rowsort
SELECT - + 93 * 99
----
-9207

onlyif mysql # DIV for integer division: 
query I rowsort label-6810
SELECT - 35 + - ( + 78 ) DIV - 63 AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-6810
SELECT - 35 + - ( + 78 ) / - 63 AS col2
----
-34

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

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

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

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

query I rowsort
SELECT DISTINCT + - 65 * + + 76
----
-4940

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

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

query I rowsort
SELECT 57 * 58
----
3306

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

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

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

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

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

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

query I rowsort
SELECT 82 * 81 AS col2
----
6642

query I rowsort
SELECT 72 * - 56 col0
----
-4032

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

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

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

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

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

query I rowsort
SELECT + 19 * + - 97 AS col0
----
-1843

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6827
SELECT ALL + 45 DIV - SUM( - 50 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6827
SELECT ALL + 45 / - SUM ( - 50 ) AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6828
SELECT ALL - 55 DIV + 60 col2
----
0

skipif mysql # not compatible
query I rowsort label-6828
SELECT ALL - 55 / + 60 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6829
SELECT ALL MAX( DISTINCT 38 ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-6829
SELECT ALL MAX ( DISTINCT 38 ) AS col0
----
38

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

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

query I rowsort
SELECT 56 + - - ( + 45 ) * 13 col1
----
641

onlyif mysql # aggregate syntax: 
query II rowsort label-6832
SELECT 91 + - + MIN( DISTINCT - - 35 ) + + COUNT( * ) AS col0, - ( - + 10 ) col1
----
57
10

skipif mysql # not compatible
query II rowsort label-6832
SELECT 91 + - + MIN ( DISTINCT - - 35 ) + + COUNT ( * ) AS col0, - ( - + 10 ) col1
----
57
10

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

query I rowsort
SELECT DISTINCT 51 * + 85
----
4335

query I rowsort
SELECT ALL - 59 + + ( - 27 ) AS col0
----
-86

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL - 37 * - 84 * 34 AS col2
----
105672

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

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

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6846
SELECT ALL COUNT ( * ) * - 81 + 79 AS col0
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-6847
SELECT + 5 DIV 59 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6847
SELECT + 5 / 59 AS col0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6849
SELECT COUNT( * ) + - 59 AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-6849
SELECT COUNT ( * ) + - 59 AS col2
----
-58

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT - - 93 AS col0
----
93

query I rowsort
SELECT DISTINCT ( + + 58 ) col1
----
58

query I rowsort
SELECT DISTINCT + 96 * + - 65
----
-6240

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

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

query I rowsort
SELECT 77 * 25 AS col2
----
1925

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6869
SELECT DISTINCT - MIN ( - 28 )
----
28

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

query I rowsort
SELECT - 85 * + 22 * + ( - - 15 ) - + ( - 40 ) AS col2
----
-28010

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

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

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

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

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

query I rowsort
SELECT - 89 col2
----
-89

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL - ( + 90 ) - + - 9
----
-81

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

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

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

query I rowsort
SELECT DISTINCT - - 3
----
3

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

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

query I rowsort
SELECT ( + + 60 ) - - 13
----
73

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6888
SELECT 54 - - COUNT( * ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-6888
SELECT 54 - - COUNT ( * ) AS col0
----
55

query I rowsort
SELECT DISTINCT + 71 * 97 AS col1
----
6887

query II rowsort
SELECT 28 col2, + 83 AS col0
----
28
83

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6893
SELECT + 11 DIV - + 85
----
0

skipif mysql # not compatible
query I rowsort label-6893
SELECT + 11 / - + 85
----
0

query I rowsort
SELECT + 58 + + 23
----
81

query I rowsort
SELECT DISTINCT 75 * - 26 + + 45 AS col2
----
-1905

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

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

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

query I rowsort
SELECT - - 67 AS col0
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6899
SELECT ( - CAST( NULL AS SIGNED ) ) col2, + 73 + - 92
----
NULL
-19

skipif mysql # not compatible
query II rowsort label-6899
SELECT ( - CAST ( NULL AS INTEGER ) ) col2, + 73 + - 92
----
NULL
-19

query I rowsort
SELECT 63 * + 87 AS col1
----
5481

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

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

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

skipif mysql # not compatible
query I rowsort label-6902
SELECT ALL COUNT ( DISTINCT 69 ) AS col1
----
1

query I rowsort
SELECT 69 + + - 34 AS col2
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-6904
SELECT 88 DIV - 79 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6904
SELECT 88 / - 79 AS col1
----
-1

query I rowsort
SELECT ALL - 78 - + NULLIF ( + + 81, 68 )
----
-159

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

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

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

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

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

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

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

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

query II rowsort
SELECT DISTINCT + 40 AS col2, + 20 AS col2
----
40
20

onlyif mysql # DIV for integer division: 
query I rowsort label-6911
SELECT - - 85 DIV - 90 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6911
SELECT - - 85 / - 90 AS col2
----
0

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6914
SELECT + 29 DIV - 9
----
-3

skipif mysql # not compatible
query I rowsort label-6914
SELECT + 29 / - 9
----
-3

query I rowsort
SELECT ALL 76 * + - 88
----
-6688

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6917
SELECT 57 AS col1, COUNT( * ) * 80 * 37 * + 13
----
57
38480

skipif mysql # not compatible
query II rowsort label-6917
SELECT 57 AS col1, COUNT ( * ) * 80 * 37 * + 13
----
57
38480

query I rowsort
SELECT DISTINCT - + 44 * + + 23
----
-1012

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6921
SELECT ALL + 77 / - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6921
SELECT ALL + 77 / - CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT ALL 12 * - - 44
----
528

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6924
SELECT - COUNT( * ) * + COUNT( * ) * - ( 76 ) - + MIN( + ( - 63 ) )
----
139

skipif mysql # not compatible
query I rowsort label-6924
SELECT - COUNT ( * ) * + COUNT ( * ) * - ( 76 ) - + MIN ( + ( - 63 ) )
----
139

query II rowsort
SELECT DISTINCT + + 58 * 9, + 66 AS col2
----
522
66

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

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

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

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

query I rowsort
SELECT ALL 87 + - 73 AS col0
----
14

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

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

query I rowsort
SELECT - 34 + - 26
----
-60

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6932
SELECT DISTINCT - ( + 74 ) DIV - - 72 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6932
SELECT DISTINCT - ( + 74 ) / - - 72 AS col0
----
-1

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

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

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

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

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

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

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

query I rowsort
SELECT + 62 + 99
----
161

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

query II rowsort
SELECT + 68 AS col0, - 85 AS col1
----
68
-85

query I rowsort
SELECT ALL + ( - 58 ) - 97 * + 28 + + 97
----
-2677

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

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

query I rowsort
SELECT 52 * - 84 col0
----
-4368

query II rowsort
SELECT + 91 * + 22 * + 1, - 35 AS col2
----
2002
-35

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

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

query I rowsort
SELECT + + 18 - - + 64
----
82

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6947
SELECT DISTINCT 51 AS col0, + COALESCE ( + - 31, COUNT( * ), - - 56 ) + - - 23 AS col2
----
51
-8

skipif mysql # not compatible
query II rowsort label-6947
SELECT DISTINCT 51 AS col0, + COALESCE ( + - 31, COUNT ( * ), - - 56 ) + - - 23 AS col2
----
51
-8

query I rowsort
SELECT + 29 + - NULLIF ( - ( 33 ), + + 92 ) AS col0
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-6949
SELECT ALL + 13 AS col1, SUM( ALL - - 31 )
----
13
31

skipif mysql # not compatible
query II rowsort label-6949
SELECT ALL + 13 AS col1, SUM ( ALL - - 31 )
----
13
31

query II rowsort
SELECT + 91 col2, 34 AS col2
----
91
34

query II rowsort
SELECT + - 20 AS col1, 28
----
-20
28

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6953
SELECT - - 51 - + MIN( DISTINCT 24 ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-6953
SELECT - - 51 - + MIN ( DISTINCT 24 ) AS col0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6954
SELECT SUM( ALL + 33 ) + - ( - - 80 ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-6954
SELECT SUM ( ALL + 33 ) + - ( - - 80 ) AS col1
----
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-6955
SELECT ALL 34 * - + 45, + 48 * COUNT( * ) AS col0
----
-1530
48

skipif mysql # not compatible
query II rowsort label-6955
SELECT ALL 34 * - + 45, + 48 * COUNT ( * ) AS col0
----
-1530
48

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6957
SELECT 48 DIV - 82
----
0

skipif mysql # not compatible
query I rowsort label-6957
SELECT 48 / - 82
----
0

query I rowsort
SELECT ALL - 79 + - 0 AS col0
----
-79

query I rowsort
SELECT - - 90 * 39 AS col1
----
3510

query I rowsort
SELECT + 74 - 81
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-6961
SELECT - MAX( ALL - - 75 ) AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-6961
SELECT - MAX ( ALL - - 75 ) AS col0
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6962
SELECT - COALESCE ( + ( + 40 ), + - 53 ) - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6962
SELECT - COALESCE ( + ( + 40 ), + - 53 ) - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - 11 - + - 83 AS col0
----
72

query I rowsort
SELECT ALL ( - 86 ) AS col1
----
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6965
SELECT - CAST( + 99 AS SIGNED )
----
-99

skipif mysql # not compatible
query I rowsort label-6965
SELECT - CAST ( + 99 AS INTEGER )
----
-99

query I rowsort
SELECT - ( - 76 ) AS col0
----
76

query I rowsort
SELECT 92 * - - 70 col0
----
6440

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6968
SELECT COUNT( * ) DIV 67
----
0

skipif mysql # not compatible
query I rowsort label-6968
SELECT COUNT ( * ) / 67
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6969
SELECT ALL - + COUNT( ALL + 93 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6969
SELECT ALL - + COUNT ( ALL + 93 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6970
SELECT + CAST( NULL AS SIGNED ) / + - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6970
SELECT + CAST ( NULL AS INTEGER ) / + - COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6971
SELECT DISTINCT 19 * - ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6971
SELECT DISTINCT 19 * - ( - CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT 69 AS col2, ( - 20 ) col2
----
69
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6973
SELECT ALL - + CAST( + + 34 AS SIGNED )
----
-34

skipif mysql # not compatible
query I rowsort label-6973
SELECT ALL - + CAST ( + + 34 AS INTEGER )
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-6974
SELECT 67 - + COUNT( * ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-6974
SELECT 67 - + COUNT ( * ) AS col0
----
66

query I rowsort
SELECT + 98 * + + ( + 81 )
----
7938

query I rowsort
SELECT DISTINCT + 0 + + - 25
----
-25

query II rowsort
SELECT + 89 AS col1, 79 AS col0
----
89
79

onlyif mysql # aggregate syntax: 
query I rowsort label-6978
SELECT ALL + 23 * MIN( + + 92 ) AS col1
----
2116

skipif mysql # not compatible
query I rowsort label-6978
SELECT ALL + 23 * MIN ( + + 92 ) AS col1
----
2116

onlyif mysql # aggregate syntax: 
query I rowsort label-6979
SELECT DISTINCT COUNT( * ) * + MIN( + + 43 ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-6979
SELECT DISTINCT COUNT ( * ) * + MIN ( + + 43 ) AS col1
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-6980
SELECT COUNT( DISTINCT - 78 ), - 73 AS col1
----
1
-73

skipif mysql # not compatible
query II rowsort label-6980
SELECT COUNT ( DISTINCT - 78 ), - 73 AS col1
----
1
-73

query I rowsort
SELECT DISTINCT - 57 - + + 58 col2
----
-115

query I rowsort
SELECT 51 * - 56
----
-2856

onlyif mysql # aggregate syntax: 
query I rowsort label-6983
SELECT 21 + + COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-6983
SELECT 21 + + COUNT ( * )
----
22

query I rowsort
SELECT 91 * + 76 AS col0
----
6916

query I rowsort
SELECT DISTINCT + 52 + 83 col0
----
135

query I rowsort
SELECT ALL 1 - ( + 37 )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-6987
SELECT + 20 * + - ( + COUNT( * ) )
----
-20

skipif mysql # not compatible
query I rowsort label-6987
SELECT + 20 * + - ( + COUNT ( * ) )
----
-20

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6988
SELECT 12 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6988
SELECT 12 * + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL - 9 + + ( + + 99 )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6990
SELECT MAX( + + 85 )
----
85

skipif mysql # not compatible
query I rowsort label-6990
SELECT MAX ( + + 85 )
----
85

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6991
SELECT DISTINCT - 92 * - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6991
SELECT DISTINCT - 92 * - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6992
SELECT ALL - 46, COUNT( * ) AS col2
----
-46
1

skipif mysql # not compatible
query II rowsort label-6992
SELECT ALL - 46, COUNT ( * ) AS col2
----
-46
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6993
SELECT + CAST( NULL AS SIGNED ) + - 48 + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6993
SELECT + CAST ( NULL AS INTEGER ) + - 48 + - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6994
SELECT + 93 * - + MIN( DISTINCT - 24 ) + + + ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6994
SELECT + 93 * - + MIN ( DISTINCT - 24 ) + + + ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6995
SELECT DISTINCT SUM( DISTINCT - + 33 ) col2
----
-33

skipif mysql # not compatible
query I rowsort label-6995
SELECT DISTINCT SUM ( DISTINCT - + 33 ) col2
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-6996
SELECT ALL COUNT( * ) AS col0, + 64
----
1
64

skipif mysql # not compatible
query II rowsort label-6996
SELECT ALL COUNT ( * ) AS col0, + 64
----
1
64

query II rowsort
SELECT - ( + ( 82 ) ), 70 AS col2
----
-82
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6998
SELECT - CAST( + 90 AS SIGNED )
----
-90

skipif mysql # not compatible
query I rowsort label-6998
SELECT - CAST ( + 90 AS INTEGER )
----
-90

query II rowsort
SELECT ALL + 65 col2, 49 AS col0
----
65
49

query I rowsort
SELECT + - 27 col1
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-7001
SELECT ALL - MIN( ALL + + 91 )
----
-91

skipif mysql # not compatible
query I rowsort label-7001
SELECT ALL - MIN ( ALL + + 91 )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7002
SELECT + + MAX( - 83 )
----
-83

skipif mysql # not compatible
query I rowsort label-7002
SELECT + + MAX ( - 83 )
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-7003
SELECT ALL + COUNT( * ) + 81 * 62 AS col1
----
5023

skipif mysql # not compatible
query I rowsort label-7003
SELECT ALL + COUNT ( * ) + 81 * 62 AS col1
----
5023

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7004
SELECT DISTINCT - - COUNT( * ) DIV COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-7004
SELECT DISTINCT - - COUNT ( * ) / COUNT ( * )
----
1

query II rowsort
SELECT DISTINCT 0 col1, + ( 23 )
----
0
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7006
SELECT ALL - ( + - COUNT( * ) ) * 29
----
29

skipif mysql # not compatible
query I rowsort label-7006
SELECT ALL - ( + - COUNT ( * ) ) * 29
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7007
SELECT - COUNT( * ) - - + 86
----
85

skipif mysql # not compatible
query I rowsort label-7007
SELECT - COUNT ( * ) - - + 86
----
85

query I rowsort
SELECT ALL + ( + 30 )
----
30

query I rowsort
SELECT + ( - - 84 )
----
84

query I rowsort
SELECT DISTINCT ( - 38 ) * + 67 + + + 46
----
-2500

query I rowsort
SELECT DISTINCT + + ( - 48 )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-7012
SELECT - COUNT( 52 ) * 14 AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-7012
SELECT - COUNT ( 52 ) * 14 AS col0
----
-14

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7013
SELECT - ( CAST( NULL AS DECIMAL ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7013
SELECT - ( CAST ( NULL AS REAL ) ) col1
----
NULL

query I rowsort
SELECT DISTINCT 52 * + - 15 AS col1
----
-780

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7015
SELECT DISTINCT + CAST( NULL AS SIGNED ) / + 49 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7015
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + 49 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7016
SELECT ALL COUNT( DISTINCT + + ( - + 38 ) )
----
1

skipif mysql # not compatible
query I rowsort label-7016
SELECT ALL COUNT ( DISTINCT + + ( - + 38 ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7017
SELECT - CAST( NULL AS SIGNED ) AS col2, ( CAST( NULL AS DECIMAL ) ) AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7017
SELECT - CAST ( NULL AS INTEGER ) AS col2, ( CAST ( NULL AS REAL ) ) AS col2
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7018
SELECT DISTINCT + 46, ( COUNT( * ) ) AS col1
----
46
1

skipif mysql # not compatible
query II rowsort label-7018
SELECT DISTINCT + 46, ( COUNT ( * ) ) AS col1
----
46
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7019
SELECT + 76 * - CAST( + + 56 AS SIGNED ) AS col0
----
-4256

skipif mysql # not compatible
query I rowsort label-7019
SELECT + 76 * - CAST ( + + 56 AS INTEGER ) AS col0
----
-4256

onlyif mysql # DIV for integer division: 
query I rowsort label-7020
SELECT 30 DIV + 88
----
0

skipif mysql # not compatible
query I rowsort label-7020
SELECT 30 / + 88
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7021
SELECT ALL - MIN( DISTINCT - 82 ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-7021
SELECT ALL - MIN ( DISTINCT - 82 ) AS col1
----
82

query I rowsort
SELECT 39 + - 17
----
22

query I rowsort
SELECT - + 11 AS col1
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-7024
SELECT DISTINCT + COUNT( * ), - 41 col2
----
1
-41

skipif mysql # not compatible
query II rowsort label-7024
SELECT DISTINCT + COUNT ( * ), - 41 col2
----
1
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-7025
SELECT ALL + COUNT( * ) + - 22 AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-7025
SELECT ALL + COUNT ( * ) + - 22 AS col2
----
-21

query I rowsort
SELECT ALL + 85 * + 44 col1
----
3740

query I rowsort
SELECT - + 46 col0
----
-46

query I rowsort
SELECT DISTINCT + + 47 AS col2
----
47

query I rowsort
SELECT + 9 * - 79
----
-711

onlyif mysql # aggregate syntax: 
query I rowsort label-7030
SELECT COUNT( DISTINCT - 17 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7030
SELECT COUNT ( DISTINCT - 17 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7031
SELECT - COUNT( * ) + + 7
----
6

skipif mysql # not compatible
query I rowsort label-7031
SELECT - COUNT ( * ) + + 7
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-7032
SELECT 39 DIV - 13
----
-3

skipif mysql # not compatible
query I rowsort label-7032
SELECT 39 / - 13
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-7033
SELECT DISTINCT 21 DIV ( - + ( 25 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7033
SELECT DISTINCT 21 / ( - + ( 25 ) ) AS col2
----
0

query I rowsort
SELECT ALL - ( + + 15 ) col1
----
-15

query I rowsort
SELECT 47 + - 49
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7036
SELECT DISTINCT COUNT( ALL - - CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-7036
SELECT DISTINCT COUNT ( ALL - - CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7037
SELECT ALL + 96 - COUNT( * ) - + 46 AS col2
----
49

skipif mysql # not compatible
query I rowsort label-7037
SELECT ALL + 96 - COUNT ( * ) - + 46 AS col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7038
SELECT + + 90 * COUNT( * ) - ( + SUM( ALL + 35 ) )
----
55

skipif mysql # not compatible
query I rowsort label-7038
SELECT + + 90 * COUNT ( * ) - ( + SUM ( ALL + 35 ) )
----
55

query I rowsort
SELECT - - ( - + 23 )
----
-23

query I rowsort
SELECT DISTINCT - 12 * - 41
----
492

query I rowsort
SELECT DISTINCT + 51 col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7042
SELECT - COUNT( - 40 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-7042
SELECT - COUNT ( - 40 ) col2
----
-1

query I rowsort
SELECT - + 44 + + 68
----
24

query I rowsort
SELECT DISTINCT 5 * + 78
----
390

query I rowsort
SELECT DISTINCT + 25 col2
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7046
SELECT 74 / - + 2 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7046
SELECT 74 / - + 2 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 98 * - 40 col1
----
-3920

onlyif mysql # aggregate syntax: 
query I rowsort label-7048
SELECT ALL COUNT( * ) - 26 * + 95 AS col1
----
-2469

skipif mysql # not compatible
query I rowsort label-7048
SELECT ALL COUNT ( * ) - 26 * + 95 AS col1
----
-2469

query I rowsort
SELECT 77 - 57 AS col0
----
20

query I rowsort
SELECT 92 * - 78
----
-7176

query I rowsort
SELECT DISTINCT + ( + ( + 36 ) )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7052
SELECT - 56 * COUNT( * ) AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-7052
SELECT - 56 * COUNT ( * ) AS col2
----
-56

query I rowsort
SELECT ALL + - 75 col2
----
-75

query I rowsort
SELECT DISTINCT 39 + + - 67
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-7055
SELECT ALL MIN( DISTINCT 64 ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-7055
SELECT ALL MIN ( DISTINCT 64 ) AS col1
----
64

query I rowsort
SELECT + + NULLIF ( + - 63, + 79 )
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-7057
SELECT ALL + SUM( 17 )
----
17

skipif mysql # not compatible
query I rowsort label-7057
SELECT ALL + SUM ( 17 )
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7058
SELECT + CAST( 32 AS SIGNED ) col1
----
32

skipif mysql # not compatible
query I rowsort label-7058
SELECT + CAST ( 32 AS INTEGER ) col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7059
SELECT ALL + NULLIF ( - + 17, + COUNT( * ) )
----
-17

skipif mysql # not compatible
query I rowsort label-7059
SELECT ALL + NULLIF ( - + 17, + COUNT ( * ) )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-7060
SELECT - ( - ( - + COUNT( * ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-7060
SELECT - ( - ( - + COUNT ( * ) ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7061
SELECT ALL 44 * + COUNT( * )
----
44

skipif mysql # not compatible
query I rowsort label-7061
SELECT ALL 44 * + COUNT ( * )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7062
SELECT - + COUNT( DISTINCT + + 34 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7062
SELECT - + COUNT ( DISTINCT + + 34 ) AS col2
----
-1

query I rowsort
SELECT 48 + + 22 AS col2
----
70

query I rowsort
SELECT ALL 10 + 30
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7065
SELECT ALL SUM( - 47 )
----
-47

skipif mysql # not compatible
query I rowsort label-7065
SELECT ALL SUM ( - 47 )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7066
SELECT ALL + 39 + - COUNT( * ) + + ( - 5 ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-7066
SELECT ALL + 39 + - COUNT ( * ) + + ( - 5 ) AS col0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7067
SELECT - COUNT( * ) * + + 74 AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-7067
SELECT - COUNT ( * ) * + + 74 AS col0
----
-74

query I rowsort
SELECT DISTINCT 80 * 10 col0
----
800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7069
SELECT - 79 - - MIN( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7069
SELECT - 79 - - MIN ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7070
SELECT + 73 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7070
SELECT + 73 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7071
SELECT - MIN( - + 35 ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-7071
SELECT - MIN ( - + 35 ) AS col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7072
SELECT + SUM( DISTINCT + + ( - 12 ) )
----
-12

skipif mysql # not compatible
query I rowsort label-7072
SELECT + SUM ( DISTINCT + + ( - 12 ) )
----
-12

query I rowsort
SELECT - 45 + ( + 71 )
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-7074
SELECT - 89, - COUNT( * ) col2
----
-89
-1

skipif mysql # not compatible
query II rowsort label-7074
SELECT - 89, - COUNT ( * ) col2
----
-89
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7075
SELECT - - COUNT( * ) * + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7075
SELECT - - COUNT ( * ) * + COUNT ( * ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7076
SELECT + SUM( + + 53 ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-7076
SELECT + SUM ( + + 53 ) AS col1
----
53

query I rowsort
SELECT ALL - + 0 - - 78 + + 67 AS col0
----
145

query I rowsort
SELECT ALL 79 + 83 col1
----
162

query I rowsort
SELECT 36 + - 94 AS col2
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7080
SELECT DISTINCT - CAST( + - 62 AS SIGNED )
----
62

skipif mysql # not compatible
query I rowsort label-7080
SELECT DISTINCT - CAST ( + - 62 AS INTEGER )
----
62

query I rowsort
SELECT 12 + 68
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7082
SELECT DISTINCT + COUNT( * ) + - 27 AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-7082
SELECT DISTINCT + COUNT ( * ) + - 27 AS col2
----
-26

query I rowsort
SELECT ALL - ( + + 55 ) AS col1
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7084
SELECT ALL + CAST( NULL AS SIGNED ) + + ( + - 83 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7084
SELECT ALL + CAST ( NULL AS INTEGER ) + + ( + - 83 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7085
SELECT 64 col1, COUNT( * )
----
64
1

skipif mysql # not compatible
query II rowsort label-7085
SELECT 64 col1, COUNT ( * )
----
64
1

query I rowsort
SELECT - 87 * + - 83
----
7221

query I rowsort
SELECT ( - + 58 ) AS col2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7088
SELECT NULLIF ( + COUNT( * ), - 97 )
----
1

skipif mysql # not compatible
query I rowsort label-7088
SELECT NULLIF ( + COUNT ( * ), - 97 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7089
SELECT COALESCE ( COUNT( * ), - + ( COUNT( * ) ) DIV AVG ( ALL 97 ) + CAST( NULL AS SIGNED ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7089
SELECT COALESCE ( COUNT ( * ), - + ( COUNT ( * ) ) / AVG ( ALL 97 ) + CAST ( NULL AS INTEGER ) ) AS col0
----
1

query I rowsort
SELECT ALL - + 26 * + 27 + - - 89
----
-613

onlyif mysql # aggregate syntax: 
query I rowsort label-7091
SELECT ALL MIN( ALL + 61 )
----
61

skipif mysql # not compatible
query I rowsort label-7091
SELECT ALL MIN ( ALL + 61 )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7092
SELECT ALL COUNT( * ) * + + 5 col1
----
5

skipif mysql # not compatible
query I rowsort label-7092
SELECT ALL COUNT ( * ) * + + 5 col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7093
SELECT + 2 * + COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-7093
SELECT + 2 * + COUNT ( * ) AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7094
SELECT COUNT( * ) * + 50
----
50

skipif mysql # not compatible
query I rowsort label-7094
SELECT COUNT ( * ) * + 50
----
50

query I rowsort
SELECT 46 * + 67
----
3082

query I rowsort
SELECT 52 + - 37 AS col1
----
15

query I rowsort
SELECT ALL + ( + 66 ) col1
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7098
SELECT - - COUNT( * ) - - + 22 + - ( - 2 ) * - ( - CAST( ( 54 ) AS SIGNED ) ) AS col0
----
131

skipif mysql # not compatible
query I rowsort label-7098
SELECT - - COUNT ( * ) - - + 22 + - ( - 2 ) * - ( - CAST ( ( 54 ) AS INTEGER ) ) AS col0
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-7099
SELECT - + COUNT( * ) * - - 14 + - - 60 AS col1
----
46

skipif mysql # not compatible
query I rowsort label-7099
SELECT - + COUNT ( * ) * - - 14 + - - 60 AS col1
----
46

query I rowsort
SELECT ALL 84 + + 2
----
86

query I rowsort
SELECT 71 * - 45
----
-3195

onlyif mysql # aggregate syntax: 
query I rowsort label-7102
SELECT 0 * - + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7102
SELECT 0 * - + COUNT ( * ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7103
SELECT DISTINCT - CAST( - 48 AS SIGNED ) AS col0
----
48

skipif mysql # not compatible
query I rowsort label-7103
SELECT DISTINCT - CAST ( - 48 AS INTEGER ) AS col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7104
SELECT 62 * + MAX( ALL 52 ) AS col0
----
3224

skipif mysql # not compatible
query I rowsort label-7104
SELECT 62 * + MAX ( ALL 52 ) AS col0
----
3224

query I rowsort
SELECT 52 * - 65 AS col2
----
-3380

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7106
SELECT ALL CAST( NULL AS SIGNED ) * - 47
----
NULL

skipif mysql # not compatible
query I rowsort label-7106
SELECT ALL CAST ( NULL AS INTEGER ) * - 47
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7107
SELECT ALL - COUNT( * ), 0 AS col1
----
-1
0

skipif mysql # not compatible
query II rowsort label-7107
SELECT ALL - COUNT ( * ), 0 AS col1
----
-1
0

query I rowsort
SELECT ALL + 54 * - ( 27 )
----
-1458

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7109
SELECT DISTINCT + 72 DIV + - COUNT( * ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-7109
SELECT DISTINCT + 72 / + - COUNT ( * ) AS col2
----
-72

query I rowsort
SELECT ALL + ( - 41 ) * + 79
----
-3239

query I rowsort
SELECT ALL ( + + 94 ) AS col0
----
94

query I rowsort
SELECT 13 + - 44 AS col0
----
-31

query I rowsort
SELECT ALL - 29 + - 73
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-7114
SELECT + COUNT( * ) + 98 AS col0
----
99

skipif mysql # not compatible
query I rowsort label-7114
SELECT + COUNT ( * ) + 98 AS col0
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-7115
SELECT 90 DIV 80 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7115
SELECT 90 / 80 AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7116
SELECT ALL COUNT( * ) DIV - 37 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7116
SELECT ALL COUNT ( * ) / - 37 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7117
SELECT DISTINCT + 13 DIV + + 77 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7117
SELECT DISTINCT + 13 / + + 77 AS col0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-7118
SELECT 80 DIV + + 44 col1, 52 AS col2
----
1
52

skipif mysql # not compatible
query II rowsort label-7118
SELECT 80 / + + 44 col1, 52 AS col2
----
1
52

query I rowsort
SELECT ALL - 88 + - + 63 - - + 70
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7120
SELECT - COUNT( * ) * - 77
----
77

skipif mysql # not compatible
query I rowsort label-7120
SELECT - COUNT ( * ) * - 77
----
77

query I rowsort
SELECT - COALESCE ( 8, - 82 ) + 71 col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7122
SELECT + - COUNT( 98 )
----
-1

skipif mysql # not compatible
query I rowsort label-7122
SELECT + - COUNT ( 98 )
----
-1

query II rowsort
SELECT 62, 74 * 57 AS col1
----
62
4218

onlyif mysql # DIV for integer division: 
query I rowsort label-7124
SELECT DISTINCT 50 DIV 62
----
0

skipif mysql # not compatible
query I rowsort label-7124
SELECT DISTINCT 50 / 62
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7125
SELECT ALL + MAX( - - 72 )
----
72

skipif mysql # not compatible
query I rowsort label-7125
SELECT ALL + MAX ( - - 72 )
----
72

query I rowsort
SELECT + 78 + - 83 AS col0
----
-5

query II rowsort
SELECT ALL - ( + ( - 36 ) ), + 37 AS col2
----
36
37

query I rowsort
SELECT + + 48 * + 35 col2
----
1680

onlyif mysql # aggregate syntax: 
query I rowsort label-7129
SELECT DISTINCT + + MIN( + 1 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-7129
SELECT DISTINCT + + MIN ( + 1 ) col2
----
1

query I rowsort
SELECT ALL + 9 + + 51 + 21
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7131
SELECT - 31 + + + COUNT( * ) * COUNT( * )
----
-30

skipif mysql # not compatible
query I rowsort label-7131
SELECT - 31 + + + COUNT ( * ) * COUNT ( * )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-7132
SELECT ALL + - NULLIF ( + - COUNT( * ), - 49 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7132
SELECT ALL + - NULLIF ( + - COUNT ( * ), - 49 ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7133
SELECT DISTINCT - 5 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7133
SELECT DISTINCT - 5 * - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7134
SELECT + 25 * - - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7134
SELECT + 25 * - - CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT 24 + 58
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7136
SELECT MAX( ALL + 7 )
----
7

skipif mysql # not compatible
query I rowsort label-7136
SELECT MAX ( ALL + 7 )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7137
SELECT ALL + MIN( DISTINCT - 19 ) AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-7137
SELECT ALL + MIN ( DISTINCT - 19 ) AS col2
----
-19

query I rowsort
SELECT - 2 * 68
----
-136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7139
SELECT - + COUNT( * ) + + CAST( NULL AS SIGNED ) / 84 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7139
SELECT - + COUNT ( * ) + + CAST ( NULL AS INTEGER ) / 84 AS col0
----
NULL

query I rowsort
SELECT - - 9 + 46 col0
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7141
SELECT + - 3 * COUNT( * ) DIV + - 70
----
0

skipif mysql # not compatible
query I rowsort label-7141
SELECT + - 3 * COUNT ( * ) / + - 70
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7142
SELECT + CAST( - - COUNT( * ) AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7142
SELECT + CAST ( - - COUNT ( * ) AS INTEGER ) AS col0
----
1

query I rowsort
SELECT + 97 + - 30
----
67

query I rowsort
SELECT + 26 - - + 17
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7145
SELECT - MAX( - 45 )
----
45

skipif mysql # not compatible
query I rowsort label-7145
SELECT - MAX ( - 45 )
----
45

query I rowsort
SELECT ALL ( + - 73 )
----
-73

query I rowsort
SELECT - + 85 col0
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7148
SELECT COUNT( * ) DIV 41 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7148
SELECT COUNT ( * ) / 41 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7149
SELECT + ( + CAST( + + COUNT( * ) AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-7149
SELECT + ( + CAST ( + + COUNT ( * ) AS INTEGER ) )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7150
SELECT ALL + 37 DIV + 5
----
7

skipif mysql # not compatible
query I rowsort label-7150
SELECT ALL + 37 / + 5
----
7

query I rowsort
SELECT 60 * 8 AS col2
----
480

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7152
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * - + 15 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7152
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * - + 15 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7153
SELECT DISTINCT MAX( ALL - ( 57 ) )
----
-57

skipif mysql # not compatible
query I rowsort label-7153
SELECT DISTINCT MAX ( ALL - ( 57 ) )
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-7154
SELECT ALL + 99 DIV - + 70 + + - 68 AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-7154
SELECT ALL + 99 / - + 70 + + - 68 AS col1
----
-69

query I rowsort
SELECT - - 74 + - 65
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7156
SELECT 78 * COUNT( * ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-7156
SELECT 78 * COUNT ( * ) AS col1
----
78

query I rowsort
SELECT ALL + 58 + - - 75
----
133

query I rowsort
SELECT ALL 84 * 68 AS col0
----
5712

query I rowsort
SELECT 84 + + 62 * - 94
----
-5744

onlyif mysql # aggregate syntax: 
query I rowsort label-7160
SELECT DISTINCT 2 - - COUNT( * ) col1
----
3

skipif mysql # not compatible
query I rowsort label-7160
SELECT DISTINCT 2 - - COUNT ( * ) col1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7161
SELECT COUNT( * ) * - - CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7161
SELECT COUNT ( * ) * - - CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) * + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7162
SELECT + ( - - MAX( DISTINCT + 41 ) ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-7162
SELECT + ( - - MAX ( DISTINCT + 41 ) ) AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7163
SELECT + MAX( + 2 )
----
2

skipif mysql # not compatible
query I rowsort label-7163
SELECT + MAX ( + 2 )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7164
SELECT - - CAST( NULL AS SIGNED ) col2, 98
----
NULL
98

skipif mysql # not compatible
query II rowsort label-7164
SELECT - - CAST ( NULL AS INTEGER ) col2, 98
----
NULL
98

query I rowsort
SELECT - 76 - 39
----
-115

query II rowsort
SELECT DISTINCT 25 AS col0, 78 AS col1
----
25
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7167
SELECT COUNT( * ) DIV + 39 + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-7167
SELECT COUNT ( * ) / + 39 + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7168
SELECT - 60 * + - COUNT( * ) col2
----
60

skipif mysql # not compatible
query I rowsort label-7168
SELECT - 60 * + - COUNT ( * ) col2
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7169
SELECT ALL CAST( NULL AS SIGNED ) / - 84
----
NULL

skipif mysql # not compatible
query I rowsort label-7169
SELECT ALL CAST ( NULL AS INTEGER ) / - 84
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7170
SELECT ALL + CAST( NULL AS DECIMAL ) * + 10 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7170
SELECT ALL + CAST ( NULL AS REAL ) * + 10 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7171
SELECT MIN( ALL 4 )
----
4

skipif mysql # not compatible
query I rowsort label-7171
SELECT MIN ( ALL 4 )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7172
SELECT MIN( ALL 53 )
----
53

skipif mysql # not compatible
query I rowsort label-7172
SELECT MIN ( ALL 53 )
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7173
SELECT - CAST( + 9 AS SIGNED ) AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-7173
SELECT - CAST ( + 9 AS INTEGER ) AS col2
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-7174
SELECT DISTINCT 8, - COUNT( * ) AS col2
----
8
-1

skipif mysql # not compatible
query II rowsort label-7174
SELECT DISTINCT 8, - COUNT ( * ) AS col2
----
8
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7175
SELECT + SUM( + + 7 ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-7175
SELECT + SUM ( + + 7 ) AS col1
----
7

query I rowsort
SELECT - 12 + + 46 + 24
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7177
SELECT + COUNT( * ) / MIN( DISTINCT - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7177
SELECT + COUNT ( * ) / MIN ( DISTINCT - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7178
SELECT DISTINCT - 76 * COUNT( * )
----
-76

skipif mysql # not compatible
query I rowsort label-7178
SELECT DISTINCT - 76 * COUNT ( * )
----
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-7179
SELECT 30 AS col1, COUNT( * )
----
30
1

skipif mysql # not compatible
query II rowsort label-7179
SELECT 30 AS col1, COUNT ( * )
----
30
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7180
SELECT - 72 col2, + COUNT( * ) * - ( + COUNT( * ) )
----
-72
-1

skipif mysql # not compatible
query II rowsort label-7180
SELECT - 72 col2, + COUNT ( * ) * - ( + COUNT ( * ) )
----
-72
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7181
SELECT ALL + CAST( SUM( DISTINCT + ( + CAST( NULL AS SIGNED ) ) ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7181
SELECT ALL + CAST ( SUM ( DISTINCT + ( + CAST ( NULL AS INTEGER ) ) ) AS INTEGER )
----
NULL

query I rowsort
SELECT - - 13 * + ( 58 )
----
754

onlyif mysql # aggregate syntax: 
query I rowsort label-7183
SELECT + COUNT( * ) + + 84
----
85

skipif mysql # not compatible
query I rowsort label-7183
SELECT + COUNT ( * ) + + 84
----
85

query II rowsort
SELECT ALL 15 * + 18 AS col0, 15 AS col0
----
270
15

query I rowsort
SELECT DISTINCT - 38 + + - 49
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-7186
SELECT - SUM( ALL + ( - 12 ) )
----
12

skipif mysql # not compatible
query I rowsort label-7186
SELECT - SUM ( ALL + ( - 12 ) )
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7187
SELECT - CAST( - CAST( + MIN( 44 ) AS SIGNED ) AS SIGNED ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-7187
SELECT - CAST ( - CAST ( + MIN ( 44 ) AS INTEGER ) AS INTEGER ) AS col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7188
SELECT ALL - COUNT( - - 86 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7188
SELECT ALL - COUNT ( - - 86 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7189
SELECT DISTINCT + 30 * + COUNT( * ) + - 22 AS col1
----
8

skipif mysql # not compatible
query I rowsort label-7189
SELECT DISTINCT + 30 * + COUNT ( * ) + - 22 AS col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7190
SELECT ALL MAX( - + 19 )
----
-19

skipif mysql # not compatible
query I rowsort label-7190
SELECT ALL MAX ( - + 19 )
----
-19

query I rowsort
SELECT 44 - 4
----
40

query I rowsort
SELECT ALL - 26 * 24
----
-624

onlyif mysql # aggregate syntax: 
query I rowsort label-7193
SELECT ALL - MAX( + 3 ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-7193
SELECT ALL - MAX ( + 3 ) AS col0
----
-3

query II rowsort
SELECT 27 AS col0, 65 AS col0
----
27
65

query II rowsort
SELECT 72 - - 9 AS col2, 84
----
81
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7196
SELECT - + AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) AS col0, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-7196
SELECT - + AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col0, COUNT ( * )
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7197
SELECT DISTINCT SUM( ALL 21 ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-7197
SELECT DISTINCT SUM ( ALL 21 ) AS col1
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-7198
SELECT - 30 DIV 8 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-7198
SELECT - 30 / 8 AS col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7199
SELECT - 82 * + COUNT( * ) col1
----
-82

skipif mysql # not compatible
query I rowsort label-7199
SELECT - 82 * + COUNT ( * ) col1
----
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-7200
SELECT - COUNT( * ), - COUNT( * )
----
-1
-1

skipif mysql # not compatible
query II rowsort label-7200
SELECT - COUNT ( * ), - COUNT ( * )
----
-1
-1

query I rowsort
SELECT - 93 + + 81
----
-12

query I rowsort
SELECT DISTINCT + - 81 AS col1
----
-81

query I rowsort
SELECT ALL ( 24 ) + - 74 AS col2
----
-50

query I rowsort
SELECT + - 98 col2
----
-98

query I rowsort
SELECT 32 * - 94 AS col2
----
-3008

query I rowsort
SELECT 22 * - - ( - + 23 ) AS col0
----
-506

onlyif mysql # aggregate syntax: 
query I rowsort label-7207
SELECT 10 * - + COUNT( * )
----
-10

skipif mysql # not compatible
query I rowsort label-7207
SELECT 10 * - + COUNT ( * )
----
-10

query I rowsort
SELECT + CASE WHEN NULL IS NULL THEN - ( - 35 ) END
----
35

query II rowsort
SELECT ALL - + 79 AS col2, + 74 + + 64 AS col2
----
-79
138

query I rowsort
SELECT ALL + ( + 28 ) col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-7211
SELECT DISTINCT - COALESCE ( + COUNT( * ), + NULLIF ( 40, 76 ) ) + - 69 AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-7211
SELECT DISTINCT - COALESCE ( + COUNT ( * ), + NULLIF ( 40, 76 ) ) + - 69 AS col2
----
-70

query II rowsort
SELECT 25 AS col0, 3 + + 33
----
25
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7213
SELECT ALL ( + - MIN( DISTINCT + 24 ) )
----
-24

skipif mysql # not compatible
query I rowsort label-7213
SELECT ALL ( + - MIN ( DISTINCT + 24 ) )
----
-24

query I rowsort
SELECT + 5 * - 48
----
-240

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7215
SELECT ALL 92 * + 36 + + 69 DIV ( - 71 ) DIV - 71 + + 91 + + - CAST( - + 15 AS SIGNED )
----
3418

skipif mysql # not compatible
query I rowsort label-7215
SELECT ALL 92 * + 36 + + 69 / ( - 71 ) / - 71 + + 91 + + - CAST ( - + 15 AS INTEGER )
----
3418

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7216
SELECT + COUNT( * ) + + + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7216
SELECT + COUNT ( * ) + + + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7217
SELECT NULLIF ( - COUNT( * ), - 44 * 82 )
----
-1

skipif mysql # not compatible
query I rowsort label-7217
SELECT NULLIF ( - COUNT ( * ), - 44 * 82 )
----
-1

query I rowsort
SELECT ALL + 50 + - 96 AS col0
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7219
SELECT DISTINCT + COUNT( * ) DIV + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-7219
SELECT DISTINCT + COUNT ( * ) / + - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7220
SELECT ALL - + 47 + - COUNT( * ) - 52 col1
----
-100

skipif mysql # not compatible
query I rowsort label-7220
SELECT ALL - + 47 + - COUNT ( * ) - 52 col1
----
-100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7221
SELECT ALL COUNT( * ) DIV - 40
----
0

skipif mysql # not compatible
query I rowsort label-7221
SELECT ALL COUNT ( * ) / - 40
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7222
SELECT ALL - 57 DIV - - COUNT( * )
----
-57

skipif mysql # not compatible
query I rowsort label-7222
SELECT ALL - 57 / - - COUNT ( * )
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-7223
SELECT + + MAX( - 30 ) * - 85 AS col0
----
2550

skipif mysql # not compatible
query I rowsort label-7223
SELECT + + MAX ( - 30 ) * - 85 AS col0
----
2550

onlyif mysql # aggregate syntax: 
query I rowsort label-7224
SELECT + MAX( - 8 ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-7224
SELECT + MAX ( - 8 ) AS col1
----
-8

query I rowsort
SELECT ( + 48 ) AS col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7226
SELECT ALL + NULLIF ( + - ( + COUNT( * ) ), + 17 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7226
SELECT ALL + NULLIF ( + - ( + COUNT ( * ) ), + 17 ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7227
SELECT - CAST( NULL AS SIGNED ) * - 97 * 76
----
NULL

skipif mysql # not compatible
query I rowsort label-7227
SELECT - CAST ( NULL AS INTEGER ) * - 97 * 76
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7228
SELECT MAX( 65 ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-7228
SELECT MAX ( 65 ) AS col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7229
SELECT + COUNT( - 40 ) - 26
----
-25

skipif mysql # not compatible
query I rowsort label-7229
SELECT + COUNT ( - 40 ) - 26
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7230
SELECT DISTINCT CAST( 59 AS SIGNED ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-7230
SELECT DISTINCT CAST ( 59 AS INTEGER ) AS col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7231
SELECT - MAX( ALL 45 )
----
-45

skipif mysql # not compatible
query I rowsort label-7231
SELECT - MAX ( ALL 45 )
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-7232
SELECT - MAX( ALL 47 ) AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-7232
SELECT - MAX ( ALL 47 ) AS col0
----
-47

query I rowsort
SELECT ( + 91 )
----
91

query I rowsort
SELECT - 86 - - 55
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-7235
SELECT - SUM( DISTINCT + 20 ) - COUNT( * ) AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-7235
SELECT - SUM ( DISTINCT + 20 ) - COUNT ( * ) AS col1
----
-21

query I rowsort
SELECT ALL - COALESCE ( 65, 78 + - 40 * + 85 )
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-7237
SELECT COUNT( * ) * 83 AS col1
----
83

skipif mysql # not compatible
query I rowsort label-7237
SELECT COUNT ( * ) * 83 AS col1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7238
SELECT MAX( ALL 19 ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-7238
SELECT MAX ( ALL 19 ) AS col0
----
19

query I rowsort
SELECT - 8 * - 27
----
216

onlyif mysql # aggregate syntax: 
query I rowsort label-7240
SELECT DISTINCT - SUM( ALL - 63 )
----
63

skipif mysql # not compatible
query I rowsort label-7240
SELECT DISTINCT - SUM ( ALL - 63 )
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-7241
SELECT DISTINCT COUNT( * ), SUM( DISTINCT + - 70 ) AS col1
----
1
-70

skipif mysql # not compatible
query II rowsort label-7241
SELECT DISTINCT COUNT ( * ), SUM ( DISTINCT + - 70 ) AS col1
----
1
-70

query I rowsort
SELECT ALL + 30 + - - 81 AS col0
----
111

query I rowsort
SELECT 91 * + + ( - - 73 )
----
6643

query I rowsort
SELECT - + 14 * + 12
----
-168

query I rowsort
SELECT ALL + - ( - 54 ) AS col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-7246
SELECT + COUNT( * ) - + 79
----
-78

skipif mysql # not compatible
query I rowsort label-7246
SELECT + COUNT ( * ) - + 79
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-7247
SELECT ALL COUNT( * ) * - ( - 87 ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-7247
SELECT ALL COUNT ( * ) * - ( - 87 ) AS col2
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7248
SELECT DISTINCT MIN( ALL - 88 )
----
-88

skipif mysql # not compatible
query I rowsort label-7248
SELECT DISTINCT MIN ( ALL - 88 )
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-7249
SELECT - MAX( - 65 ) + - 85 AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-7249
SELECT - MAX ( - 65 ) + - 85 AS col1
----
-20

query I rowsort
SELECT 1 + + - 93 AS col2
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-7251
SELECT COUNT( * ) + + - 99
----
-98

skipif mysql # not compatible
query I rowsort label-7251
SELECT COUNT ( * ) + + - 99
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-7252
SELECT ALL 89 - + - ( COUNT( * ) ) AS col0
----
90

skipif mysql # not compatible
query I rowsort label-7252
SELECT ALL 89 - + - ( COUNT ( * ) ) AS col0
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7253
SELECT COUNT( * ) * - CAST( - + 90 AS SIGNED ) + + 28
----
118

skipif mysql # not compatible
query I rowsort label-7253
SELECT COUNT ( * ) * - CAST ( - + 90 AS INTEGER ) + + 28
----
118

query I rowsort
SELECT ALL - + ( ( - + ( + 49 ) ) ) AS col1
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7255
SELECT ALL SUM( ALL + - 46 ) * 88 AS col1
----
-4048

skipif mysql # not compatible
query I rowsort label-7255
SELECT ALL SUM ( ALL + - 46 ) * 88 AS col1
----
-4048

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7256
SELECT 19 * CAST( - - 95 AS SIGNED ) AS col0
----
1805

skipif mysql # not compatible
query I rowsort label-7256
SELECT 19 * CAST ( - - 95 AS INTEGER ) AS col0
----
1805

query I rowsort
SELECT ALL ( + - 37 )
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7258
SELECT ALL - 90, ( - - CAST( NULL AS SIGNED ) ) AS col1
----
-90
NULL

skipif mysql # not compatible
query II rowsort label-7258
SELECT ALL - 90, ( - - CAST ( NULL AS INTEGER ) ) AS col1
----
-90
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7259
SELECT DISTINCT - - COUNT( DISTINCT 81 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7259
SELECT DISTINCT - - COUNT ( DISTINCT 81 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7260
SELECT ALL MIN( + 96 ) AS col2, + CAST( + 4 AS SIGNED )
----
96
4

skipif mysql # not compatible
query II rowsort label-7260
SELECT ALL MIN ( + 96 ) AS col2, + CAST ( + 4 AS INTEGER )
----
96
4

query I rowsort
SELECT + ( + - 12 )
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7262
SELECT - + COUNT( * ) * + 75 DIV - + 20
----
3

skipif mysql # not compatible
query I rowsort label-7262
SELECT - + COUNT ( * ) * + 75 / - + 20
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7263
SELECT DISTINCT + + SUM( + - 0 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7263
SELECT DISTINCT + + SUM ( + - 0 ) AS col0
----
0

query I rowsort
SELECT ALL 20 * 97
----
1940

query I rowsort
SELECT + ( - 53 ) AS col1
----
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7266
SELECT - 0 DIV - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-7266
SELECT - 0 / - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7267
SELECT COUNT( * ), 34 col2
----
1
34

skipif mysql # not compatible
query II rowsort label-7267
SELECT COUNT ( * ), 34 col2
----
1
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7268
SELECT DISTINCT - COUNT( 83 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7268
SELECT DISTINCT - COUNT ( 83 ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7269
SELECT - - 18 + + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7269
SELECT - - 18 + + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7270
SELECT - MIN( + 33 ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-7270
SELECT - MIN ( + 33 ) AS col1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-7271
SELECT - COUNT( * ) * - + 68 + 19
----
87

skipif mysql # not compatible
query I rowsort label-7271
SELECT - COUNT ( * ) * - + 68 + 19
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7272
SELECT DISTINCT CAST( + 97 AS SIGNED ) * 23
----
2231

skipif mysql # not compatible
query I rowsort label-7272
SELECT DISTINCT CAST ( + 97 AS INTEGER ) * 23
----
2231

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7273
SELECT DISTINCT CAST( NULL AS SIGNED ) * - CAST( CAST( - - COUNT( * ) AS SIGNED ) AS SIGNED ), + 36 AS col1
----
NULL
36

skipif mysql # not compatible
query II rowsort label-7273
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - CAST ( CAST ( - - COUNT ( * ) AS INTEGER ) AS INTEGER ), + 36 AS col1
----
NULL
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7274
SELECT ALL - + COUNT( * ) DIV - 37 + + 73
----
73

skipif mysql # not compatible
query I rowsort label-7274
SELECT ALL - + COUNT ( * ) / - 37 + + 73
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-7275
SELECT - 94 * - COUNT( * ), 94 AS col1
----
94
94

skipif mysql # not compatible
query II rowsort label-7275
SELECT - 94 * - COUNT ( * ), 94 AS col1
----
94
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7276
SELECT COUNT( * ) * - 65 * 39 AS col1
----
-2535

skipif mysql # not compatible
query I rowsort label-7276
SELECT COUNT ( * ) * - 65 * 39 AS col1
----
-2535

query I rowsort
SELECT ALL - 45 + - 42
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-7278
SELECT 45 DIV - 74 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7278
SELECT 45 / - 74 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7279
SELECT COUNT( * ) * - 53
----
-53

skipif mysql # not compatible
query I rowsort label-7279
SELECT COUNT ( * ) * - 53
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-7280
SELECT DISTINCT - + MAX( ALL + 3 ) - - 87
----
84

skipif mysql # not compatible
query I rowsort label-7280
SELECT DISTINCT - + MAX ( ALL + 3 ) - - 87
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7281
SELECT ALL - MAX( DISTINCT - + 24 ) col2
----
24

skipif mysql # not compatible
query I rowsort label-7281
SELECT ALL - MAX ( DISTINCT - + 24 ) col2
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7282
SELECT + 81 DIV + SUM( DISTINCT - 8 )
----
-10

skipif mysql # not compatible
query I rowsort label-7282
SELECT + 81 / + SUM ( DISTINCT - 8 )
----
-10

query I rowsort
SELECT - 35 + - - 71 * + 60 AS col2
----
4225

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7284
SELECT + CAST( NULL AS SIGNED ) AS col0, - 78
----
NULL
-78

skipif mysql # not compatible
query II rowsort label-7284
SELECT + CAST ( NULL AS INTEGER ) AS col0, - 78
----
NULL
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-7285
SELECT + 27 * - + SUM( DISTINCT - 82 ) + + 23 AS col1
----
2237

skipif mysql # not compatible
query I rowsort label-7285
SELECT + 27 * - + SUM ( DISTINCT - 82 ) + + 23 AS col1
----
2237

onlyif mysql # aggregate syntax: 
query I rowsort label-7286
SELECT + COUNT( * ) * - COUNT( DISTINCT 30 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7286
SELECT + COUNT ( * ) * - COUNT ( DISTINCT 30 ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7287
SELECT DISTINCT - + 80 + - 0 + COUNT( * ) + + + CAST( - COUNT( * ) AS SIGNED ) AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-7287
SELECT DISTINCT - + 80 + - 0 + COUNT ( * ) + + + CAST ( - COUNT ( * ) AS INTEGER ) AS col2
----
-80

query I rowsort
SELECT ALL 60 - + 88 * - + 69 AS col0
----
6132

onlyif mysql # aggregate syntax: 
query I rowsort label-7289
SELECT 34 + - COUNT( * ) + + 48 AS col2
----
81

skipif mysql # not compatible
query I rowsort label-7289
SELECT 34 + - COUNT ( * ) + + 48 AS col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7290
SELECT DISTINCT + COUNT( * ) * + 40 col2
----
40

skipif mysql # not compatible
query I rowsort label-7290
SELECT DISTINCT + COUNT ( * ) * + 40 col2
----
40

query I rowsort
SELECT 55 + - 43 AS col1
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7292
SELECT DISTINCT COUNT( DISTINCT + + CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-7292
SELECT DISTINCT COUNT ( DISTINCT + + CAST ( NULL AS INTEGER ) )
----
0

query I rowsort
SELECT DISTINCT + 45 - + 54
----
-9

query I rowsort
SELECT 53 * - - 1
----
53

query I rowsort
SELECT + 79 * - + 82
----
-6478

query I rowsort
SELECT ALL + 36 * - - 81 AS col1
----
2916

query I rowsort
SELECT ALL - 24 + - ( + - 93 ) AS col0
----
69

query II rowsort
SELECT DISTINCT + - 82, 97 col2
----
-82
97

query I rowsort
SELECT + 55 + + ( + - 94 )
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7300
SELECT ALL 65 + - + CASE + + NULLIF ( CAST( 25 AS SIGNED ), + 52 ) WHEN - 98 THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7300
SELECT ALL 65 + - + CASE + + NULLIF ( CAST ( 25 AS INTEGER ), + 52 ) WHEN - 98 THEN COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7301
SELECT MIN( DISTINCT 73 ) * COUNT( * ) col1
----
73

skipif mysql # not compatible
query I rowsort label-7301
SELECT MIN ( DISTINCT 73 ) * COUNT ( * ) col1
----
73

query I rowsort
SELECT ALL + 44 + 86
----
130

query II rowsort
SELECT ALL - 89 AS col0, - 87
----
-89
-87

query I rowsort
SELECT + + ( + + 60 ) AS col1
----
60

query I rowsort
SELECT DISTINCT - ( + 73 ) AS col1
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-7306
SELECT ALL + 37 + + + COUNT( * ) * + 74 col2
----
111

skipif mysql # not compatible
query I rowsort label-7306
SELECT ALL + 37 + + + COUNT ( * ) * + 74 col2
----
111

onlyif mysql # aggregate syntax: 
query II rowsort label-7307
SELECT 41 col1, - COUNT( * ) AS col1
----
41
-1

skipif mysql # not compatible
query II rowsort label-7307
SELECT 41 col1, - COUNT ( * ) AS col1
----
41
-1

query I rowsort
SELECT - 18 + - 23
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-7309
SELECT - 87 - COUNT( * ) + - MAX( - - 24 ) col1
----
-112

skipif mysql # not compatible
query I rowsort label-7309
SELECT - 87 - COUNT ( * ) + - MAX ( - - 24 ) col1
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-7310
SELECT - + 28 + - COUNT( * ) col0
----
-29

skipif mysql # not compatible
query I rowsort label-7310
SELECT - + 28 + - COUNT ( * ) col0
----
-29

query II rowsort
SELECT - 12, + 74 col1
----
-12
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7312
SELECT + 7 DIV + COUNT( * ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-7312
SELECT + 7 / + COUNT ( * ) AS col1
----
7

query I rowsort
SELECT - + ( + 56 ) + 18
----
-38

query I rowsort
SELECT ALL - + 65 * + 92 AS col0
----
-5980

query I rowsort
SELECT DISTINCT - ( 29 ) col0
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7316
SELECT ALL + - 77 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7316
SELECT ALL + - 77 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7317
SELECT DISTINCT - + ( + + 77 ) DIV - 40 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7317
SELECT DISTINCT - + ( + + 77 ) / - 40 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7318
SELECT COALESCE ( 4, + COUNT( * ) ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-7318
SELECT COALESCE ( 4, + COUNT ( * ) ) AS col1
----
4

query I rowsort
SELECT 53 + 41 AS col2
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7320
SELECT SUM( DISTINCT CAST( + 95 AS SIGNED ) ) col2
----
95

skipif mysql # not compatible
query I rowsort label-7320
SELECT SUM ( DISTINCT CAST ( + 95 AS INTEGER ) ) col2
----
95

query I rowsort
SELECT - - ( + 51 ) col0
----
51

query I rowsort
SELECT - 65 + 71 AS col0
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-7323
SELECT 51 AS col0, COUNT( * ) AS col1
----
51
1

skipif mysql # not compatible
query II rowsort label-7323
SELECT 51 AS col0, COUNT ( * ) AS col1
----
51
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7324
SELECT ALL + COUNT( * ) - + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-7324
SELECT ALL + COUNT ( * ) - + COUNT ( * )
----
0

query I rowsort
SELECT ALL + 79 * - 59
----
-4661

onlyif mysql # aggregate syntax: 
query I rowsort label-7326
SELECT SUM( DISTINCT - 29 ) * - COUNT( * ) col2
----
29

skipif mysql # not compatible
query I rowsort label-7326
SELECT SUM ( DISTINCT - 29 ) * - COUNT ( * ) col2
----
29

query I rowsort
SELECT DISTINCT - + 32 AS col2
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-7328
SELECT ALL + 5 * - + COUNT( * ) col1
----
-5

skipif mysql # not compatible
query I rowsort label-7328
SELECT ALL + 5 * - + COUNT ( * ) col1
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-7329
SELECT DISTINCT + - 72 DIV - 40
----
1

skipif mysql # not compatible
query I rowsort label-7329
SELECT DISTINCT + - 72 / - 40
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7330
SELECT + - 34 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7330
SELECT + - 34 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7331
SELECT ALL MAX( - 41 ) col1
----
-41

skipif mysql # not compatible
query I rowsort label-7331
SELECT ALL MAX ( - 41 ) col1
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7332
SELECT - + 56 / + - ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7332
SELECT - + 56 / + - ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7333
SELECT - + 13 * 95 + COUNT( * )
----
-1234

skipif mysql # not compatible
query I rowsort label-7333
SELECT - + 13 * 95 + COUNT ( * )
----
-1234

query I rowsort
SELECT DISTINCT 11 * - - 86 AS col1
----
946

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7335
SELECT + CAST( - - 13 AS SIGNED )
----
13

skipif mysql # not compatible
query I rowsort label-7335
SELECT + CAST ( - - 13 AS INTEGER )
----
13

query I rowsort
SELECT - - 33 + + 10
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7337
SELECT ALL - - 38 * + 12 * ( + COUNT( DISTINCT - 47 ) )
----
456

skipif mysql # not compatible
query I rowsort label-7337
SELECT ALL - - 38 * + 12 * ( + COUNT ( DISTINCT - 47 ) )
----
456

onlyif mysql # aggregate syntax: 
query I rowsort label-7338
SELECT COUNT( DISTINCT 71 ) + COUNT( * ) - - 86
----
88

skipif mysql # not compatible
query I rowsort label-7338
SELECT COUNT ( DISTINCT 71 ) + COUNT ( * ) - - 86
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7339
SELECT ALL - 57 DIV - COUNT( * ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-7339
SELECT ALL - 57 / - COUNT ( * ) AS col2
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7340
SELECT + ( - 91 ) + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7340
SELECT + ( - 91 ) + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7341
SELECT NULLIF ( COALESCE ( + ( + + 12 ), + COUNT( * ) ), + - 68 ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-7341
SELECT NULLIF ( COALESCE ( + ( + + 12 ), + COUNT ( * ) ), + - 68 ) AS col1
----
12

query I rowsort
SELECT 68 * - 43 col1
----
-2924

query I rowsort
SELECT - ( + 86 ) AS col0
----
-86

query I rowsort
SELECT ALL - 43 * - - 45
----
-1935

onlyif mysql # aggregate syntax: 
query I rowsort label-7345
SELECT DISTINCT MIN( ALL + + 20 ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-7345
SELECT DISTINCT MIN ( ALL + + 20 ) AS col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7346
SELECT - 47 * - COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-7346
SELECT - 47 * - COUNT ( * )
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-7347
SELECT - 65 DIV - 21
----
3

skipif mysql # not compatible
query I rowsort label-7347
SELECT - 65 / - 21
----
3

query II rowsort
SELECT ALL + + 73 AS col1, 7 + 46
----
73
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7349
SELECT MIN( + 64 ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-7349
SELECT MIN ( + 64 ) AS col1
----
64

query I rowsort
SELECT DISTINCT + 12 * + + 73 AS col2
----
876

query II rowsort
SELECT + 91 AS col2, 91 AS col0
----
91
91

query I rowsort
SELECT - 64 - - 2 + 33
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-7353
SELECT DISTINCT + + ( + + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-7353
SELECT DISTINCT + + ( + + COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7354
SELECT - 80 DIV + + COUNT( * ) + COUNT( * ) AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-7354
SELECT - 80 / + + COUNT ( * ) + COUNT ( * ) AS col2
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-7355
SELECT DISTINCT MIN( 19 ) * + 94 + - - 2
----
1788

skipif mysql # not compatible
query I rowsort label-7355
SELECT DISTINCT MIN ( 19 ) * + 94 + - - 2
----
1788

onlyif mysql # aggregate syntax: 
query I rowsort label-7356
SELECT - MAX( ALL + 27 )
----
-27

skipif mysql # not compatible
query I rowsort label-7356
SELECT - MAX ( ALL + 27 )
----
-27

query I rowsort
SELECT - - 84 + + 97
----
181

onlyif mysql # aggregate syntax: 
query I rowsort label-7358
SELECT DISTINCT 52 * - COUNT( * )
----
-52

skipif mysql # not compatible
query I rowsort label-7358
SELECT DISTINCT 52 * - COUNT ( * )
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-7359
SELECT DISTINCT - COUNT( * ) + + 20 + NULLIF ( 89, + ( 27 ) / - + COUNT( * ) ) + - 57 AS col1
----
51

skipif mysql # not compatible
query I rowsort label-7359
SELECT DISTINCT - COUNT ( * ) + + 20 + NULLIF ( 89, + ( 27 ) / - + COUNT ( * ) ) + - 57 AS col1
----
51

query I rowsort
SELECT ALL - 50 - 84
----
-134

onlyif mysql # aggregate syntax: 
query I rowsort label-7361
SELECT 17 * + COUNT( * ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-7361
SELECT 17 * + COUNT ( * ) AS col1
----
17

query I rowsort
SELECT DISTINCT + 33 + + + ( 79 ) AS col1
----
112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7363
SELECT ALL 46 + + 58 / CAST( CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7363
SELECT ALL 46 + + 58 / CAST ( CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7364
SELECT + ( + MAX( ALL + 73 ) ) AS col1
----
73

skipif mysql # not compatible
query I rowsort label-7364
SELECT + ( + MAX ( ALL + 73 ) ) AS col1
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7365
SELECT + - 22 DIV COUNT( * ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-7365
SELECT + - 22 / COUNT ( * ) AS col2
----
-22

query I rowsort
SELECT + 60 + + - 51 + ( 33 ) AS col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7367
SELECT ALL 29 * + COUNT( ALL + 99 )
----
29

skipif mysql # not compatible
query I rowsort label-7367
SELECT ALL 29 * + COUNT ( ALL + 99 )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7368
SELECT + 54 - - COUNT( * ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-7368
SELECT + 54 - - COUNT ( * ) AS col2
----
55

query I rowsort
SELECT ALL + NULLIF ( 15, + 67 + + + 17 ) col0
----
15

query I rowsort
SELECT DISTINCT - - 54 * 50
----
2700

query I rowsort
SELECT 42 + - 49
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-7372
SELECT DISTINCT + COUNT( * ) + + 14 AS col0
----
15

skipif mysql # not compatible
query I rowsort label-7372
SELECT DISTINCT + COUNT ( * ) + + 14 AS col0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7373
SELECT ALL - 34 AS col1, NULLIF ( - - CAST( NULL AS SIGNED ), - + 45 )
----
-34
NULL

skipif mysql # not compatible
query II rowsort label-7373
SELECT ALL - 34 AS col1, NULLIF ( - - CAST ( NULL AS INTEGER ), - + 45 )
----
-34
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7374
SELECT CAST( NULL AS DECIMAL ) + - 99
----
NULL

skipif mysql # not compatible
query I rowsort label-7374
SELECT CAST ( NULL AS REAL ) + - 99
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7375
SELECT + MAX( ALL + 7 )
----
7

skipif mysql # not compatible
query I rowsort label-7375
SELECT + MAX ( ALL + 7 )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7376
SELECT ALL COUNT( * ) * - 71 AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-7376
SELECT ALL COUNT ( * ) * - 71 AS col0
----
-71

query I rowsort
SELECT ALL - 39 * - 87 AS col1
----
3393

onlyif mysql # aggregate syntax: 
query I rowsort label-7378
SELECT + 77 + COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-7378
SELECT + 77 + COUNT ( * )
----
78

query I rowsort
SELECT - 10 * 59 - + 45 AS col2
----
-635

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7380
SELECT + CAST( NULL AS DECIMAL ) * - + 59 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7380
SELECT + CAST ( NULL AS REAL ) * - + 59 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7381
SELECT COALESCE ( + COUNT( * ), - COUNT( * ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-7381
SELECT COALESCE ( + COUNT ( * ), - COUNT ( * ) ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7382
SELECT ALL - MIN( + + 93 ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-7382
SELECT ALL - MIN ( + + 93 ) AS col0
----
-93

query I rowsort
SELECT 30 + 13 - - + 26 AS col0
----
69

query I rowsort
SELECT + - 76 col2
----
-76

query I rowsort
SELECT 99 - + + 8 AS col1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7386
SELECT COUNT( * ) * - + ( - 17 ) AS col2
----
17

skipif mysql # not compatible
query I rowsort label-7386
SELECT COUNT ( * ) * - + ( - 17 ) AS col2
----
17

query I rowsort
SELECT ALL + - 38 - - 61
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-7388
SELECT ALL 16, COUNT( * ) AS col0
----
16
1

skipif mysql # not compatible
query II rowsort label-7388
SELECT ALL 16, COUNT ( * ) AS col0
----
16
1

query I rowsort
SELECT - 61 * + + 47 AS col2
----
-2867

onlyif mysql # aggregate syntax: 
query I rowsort label-7390
SELECT ALL MAX( + 65 )
----
65

skipif mysql # not compatible
query I rowsort label-7390
SELECT ALL MAX ( + 65 )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7391
SELECT - COUNT( * ) * - 73 AS col2
----
73

skipif mysql # not compatible
query I rowsort label-7391
SELECT - COUNT ( * ) * - 73 AS col2
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7392
SELECT ALL - CASE + + 88 WHEN - COUNT( * ) THEN + + 10 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7392
SELECT ALL - CASE + + 88 WHEN - COUNT ( * ) THEN + + 10 END AS col0
----
NULL

query II rowsort
SELECT 61 AS col1, + 20 AS col2
----
61
20

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7394
SELECT ALL - ( - CAST( 86 AS SIGNED ) ) AS col1, - CAST( NULL AS DECIMAL ) AS col2
----
86
NULL

skipif mysql # not compatible
query II rowsort label-7394
SELECT ALL - ( - CAST ( 86 AS INTEGER ) ) AS col1, - CAST ( NULL AS REAL ) AS col2
----
86
NULL

query I rowsort
SELECT 39 * 14 AS col1
----
546

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7396
SELECT 77 AS col0, - CAST( NULL AS SIGNED )
----
77
NULL

skipif mysql # not compatible
query II rowsort label-7396
SELECT 77 AS col0, - CAST ( NULL AS INTEGER )
----
77
NULL

query II rowsort
SELECT DISTINCT - + 75 AS col0, + 48 AS col1
----
-75
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7398
SELECT + COUNT( * ) + - ( + 78 ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-7398
SELECT + COUNT ( * ) + - ( + 78 ) AS col2
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7399
SELECT DISTINCT - COUNT( * ) + - 24 * + + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7399
SELECT DISTINCT - COUNT ( * ) + - 24 * + + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7400
SELECT COALESCE ( + COUNT( * ), - 71 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7400
SELECT COALESCE ( + COUNT ( * ), - 71 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7401
SELECT + COUNT( * ) * + 97 + - COUNT( * ) col0
----
96

skipif mysql # not compatible
query I rowsort label-7401
SELECT + COUNT ( * ) * + 97 + - COUNT ( * ) col0
----
96

query I rowsort
SELECT - ( + + 82 )
----
-82

query I rowsort
SELECT + 13 + 96 - + 89 + + 80 + + 73 AS col1
----
173

onlyif mysql # aggregate syntax: 
query I rowsort label-7404
SELECT DISTINCT COUNT( * ) - - 32 AS col1
----
33

skipif mysql # not compatible
query I rowsort label-7404
SELECT DISTINCT COUNT ( * ) - - 32 AS col1
----
33

query I rowsort
SELECT + 52 * - 89 * - + 11 AS col1
----
50908

query I rowsort
SELECT - 87 + + - 26 AS col1
----
-113

query II rowsort
SELECT + 8 AS col1, - 74 + + 24
----
8
-50

query II rowsort
SELECT ALL - - 18 AS col1, - 27 AS col1
----
18
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7409
SELECT DISTINCT CAST( + 62 AS SIGNED ) * 74 AS col2
----
4588

skipif mysql # not compatible
query I rowsort label-7409
SELECT DISTINCT CAST ( + 62 AS INTEGER ) * 74 AS col2
----
4588

query I rowsort
SELECT DISTINCT - 13 * 64
----
-832

onlyif mysql # aggregate syntax: 
query I rowsort label-7411
SELECT ALL 16 + + - COUNT( * ) * - 79
----
95

skipif mysql # not compatible
query I rowsort label-7411
SELECT ALL 16 + + - COUNT ( * ) * - 79
----
95

query I rowsort
SELECT ALL + 23 + - 57 + 33 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7413
SELECT ALL - - SUM( DISTINCT 36 ), - 17 AS col2
----
36
-17

skipif mysql # not compatible
query II rowsort label-7413
SELECT ALL - - SUM ( DISTINCT 36 ), - 17 AS col2
----
36
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-7414
SELECT ALL COUNT( + + 96 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7414
SELECT ALL COUNT ( + + 96 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7415
SELECT DISTINCT COUNT( ALL - - 13 )
----
1

skipif mysql # not compatible
query I rowsort label-7415
SELECT DISTINCT COUNT ( ALL - - 13 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7416
SELECT - COUNT( * ) - - + 16
----
15

skipif mysql # not compatible
query I rowsort label-7416
SELECT - COUNT ( * ) - - + 16
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7417
SELECT ALL + + CAST( + 44 AS SIGNED ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-7417
SELECT ALL + + CAST ( + 44 AS INTEGER ) AS col1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7418
SELECT DISTINCT - 94 * + - 3 * - COUNT( * ) AS col0
----
-282

skipif mysql # not compatible
query I rowsort label-7418
SELECT DISTINCT - 94 * + - 3 * - COUNT ( * ) AS col0
----
-282

onlyif mysql # DIV for integer division: 
query I rowsort label-7419
SELECT - 81 DIV - + 53 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7419
SELECT - 81 / - + 53 AS col2
----
1

query I rowsort
SELECT ALL - - ( + + 42 ) AS col2
----
42

query I rowsort
SELECT 14 + + + 8 AS col1
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7422
SELECT DISTINCT - CAST( + - ( - + COUNT( * ) ) AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7422
SELECT DISTINCT - CAST ( + - ( - + COUNT ( * ) ) AS INTEGER ) AS col1
----
-1

query I rowsort
SELECT ALL - 0 * - 25 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7424
SELECT DISTINCT 53 col2, 84 * - MAX( 44 ) AS col1
----
53
-3696

skipif mysql # not compatible
query II rowsort label-7424
SELECT DISTINCT 53 col2, 84 * - MAX ( 44 ) AS col1
----
53
-3696

onlyif mysql # aggregate syntax: 
query I rowsort label-7425
SELECT DISTINCT 92 * - MAX( DISTINCT 19 )
----
-1748

skipif mysql # not compatible
query I rowsort label-7425
SELECT DISTINCT 92 * - MAX ( DISTINCT 19 )
----
-1748

query I rowsort
SELECT DISTINCT + 85 * 60 AS col1
----
5100

query I rowsort
SELECT ALL - COALESCE ( 41, + 69 ) AS col0
----
-41

query I rowsort
SELECT + + ( 2 ) * + 89
----
178

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7429
SELECT DISTINCT + 77 * - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-7429
SELECT DISTINCT + 77 * - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) - 58
----
NULL

query I rowsort
SELECT + ( + + ( + 80 ) )
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7431
SELECT ALL - CAST( 41 AS SIGNED ) AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-7431
SELECT ALL - CAST ( 41 AS INTEGER ) AS col1
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-7432
SELECT ALL - - 20 * + - MAX( 81 )
----
-1620

skipif mysql # not compatible
query I rowsort label-7432
SELECT ALL - - 20 * + - MAX ( 81 )
----
-1620

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7433
SELECT CAST( - ( SUM( - 49 ) ) AS SIGNED ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-7433
SELECT CAST ( - ( SUM ( - 49 ) ) AS INTEGER ) AS col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7434
SELECT ALL + COUNT( ALL - 58 )
----
1

skipif mysql # not compatible
query I rowsort label-7434
SELECT ALL + COUNT ( ALL - 58 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7435
SELECT + CASE + ( - + 46 ) WHEN COUNT( * ) THEN NULLIF ( COUNT( * ), - CAST( NULL AS SIGNED ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7435
SELECT + CASE + ( - + 46 ) WHEN COUNT ( * ) THEN NULLIF ( COUNT ( * ), - CAST ( NULL AS INTEGER ) ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7436
SELECT + 6 - + - 21 + + COUNT( * ) * COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-7436
SELECT + 6 - + - 21 + + COUNT ( * ) * COUNT ( * )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-7437
SELECT ALL COUNT( * ) * 17 AS col0
----
17

skipif mysql # not compatible
query I rowsort label-7437
SELECT ALL COUNT ( * ) * 17 AS col0
----
17

query I rowsort
SELECT + 24 * - 22
----
-528

onlyif mysql # aggregate syntax: 
query I rowsort label-7439
SELECT + MAX( ALL + - ( - + ( - 1 ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-7439
SELECT + MAX ( ALL + - ( - + ( - 1 ) ) )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7440
SELECT CAST( 27 AS SIGNED ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-7440
SELECT CAST ( 27 AS INTEGER ) AS col1
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7441
SELECT CAST( + COUNT( 98 ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7441
SELECT CAST ( + COUNT ( 98 ) AS INTEGER ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7442
SELECT - - COUNT( - 49 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7442
SELECT - - COUNT ( - 49 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7443
SELECT + 5 + + 3 - + COUNT( * ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-7443
SELECT + 5 + + 3 - + COUNT ( * ) AS col2
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7444
SELECT ALL 28 + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7444
SELECT ALL 28 + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7445
SELECT - - NULLIF ( - COUNT( * ), + CAST( NULL AS SIGNED ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7445
SELECT - - NULLIF ( - COUNT ( * ), + CAST ( NULL AS INTEGER ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7446
SELECT DISTINCT + - COUNT( * ) DIV COUNT( + 0 ) DIV - COUNT( * ) col2
----
1

skipif mysql # not compatible
query I rowsort label-7446
SELECT DISTINCT + - COUNT ( * ) / COUNT ( + 0 ) / - COUNT ( * ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7447
SELECT DISTINCT + + ( COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-7447
SELECT DISTINCT + + ( COUNT ( * ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7448
SELECT ALL + ( + + CAST( NULL AS SIGNED ) ) * 50 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7448
SELECT ALL + ( + + CAST ( NULL AS INTEGER ) ) * 50 AS col2
----
NULL

query I rowsort
SELECT - - 29 + 59
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7450
SELECT DISTINCT + - CAST( - COUNT( * ) AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7450
SELECT DISTINCT + - CAST ( - COUNT ( * ) AS INTEGER ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7451
SELECT ALL - NULLIF ( + + COUNT( * ), + + 85 ) * + + 79
----
-79

skipif mysql # not compatible
query I rowsort label-7451
SELECT ALL - NULLIF ( + + COUNT ( * ), + + 85 ) * + + 79
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-7452
SELECT ALL 76 + COUNT( * )
----
77

skipif mysql # not compatible
query I rowsort label-7452
SELECT ALL 76 + COUNT ( * )
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-7453
SELECT DISTINCT 20 DIV - 77 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7453
SELECT DISTINCT 20 / - 77 AS col1
----
0

query I rowsort
SELECT ALL - - 48 AS col0
----
48

query I rowsort
SELECT DISTINCT + 2 * ( 69 )
----
138

query I rowsort
SELECT - 94 * 16 AS col2
----
-1504

onlyif mysql # aggregate syntax: 
query I rowsort label-7457
SELECT ALL + COUNT( * ) * - 7 AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-7457
SELECT ALL + COUNT ( * ) * - 7 AS col2
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7458
SELECT ALL - CAST( NULL AS SIGNED ) + - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-7458
SELECT ALL - CAST ( NULL AS INTEGER ) + - 5
----
NULL

query I rowsort
SELECT ALL + + 21 AS col0
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7460
SELECT ALL COUNT( * ) DIV - MAX( - + 81 ) * + 51
----
0

skipif mysql # not compatible
query I rowsort label-7460
SELECT ALL COUNT ( * ) / - MAX ( - + 81 ) * + 51
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7461
SELECT ALL - CAST( NULL AS SIGNED ) * - 70
----
NULL

skipif mysql # not compatible
query I rowsort label-7461
SELECT ALL - CAST ( NULL AS INTEGER ) * - 70
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7462
SELECT CAST( - 0 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-7462
SELECT CAST ( - 0 AS INTEGER )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7463
SELECT - + CAST( NULL AS SIGNED ) * + CAST( 39 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7463
SELECT - + CAST ( NULL AS INTEGER ) * + CAST ( 39 AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - + CASE WHEN NULL IS NOT NULL THEN + 53 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7465
SELECT + MIN( - 65 )
----
-65

skipif mysql # not compatible
query I rowsort label-7465
SELECT + MIN ( - 65 )
----
-65

query I rowsort
SELECT ALL - ( 27 )
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7467
SELECT CAST( NULL AS SIGNED ) * 71 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7467
SELECT CAST ( NULL AS INTEGER ) * 71 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7468
SELECT DISTINCT 51 + - COUNT( * )
----
50

skipif mysql # not compatible
query I rowsort label-7468
SELECT DISTINCT 51 + - COUNT ( * )
----
50

query I rowsort
SELECT ALL - ( + + 71 )
----
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-7470
SELECT ALL ( COUNT( * ) ), + 66 AS col0
----
1
66

skipif mysql # not compatible
query II rowsort label-7470
SELECT ALL ( COUNT ( * ) ), + 66 AS col0
----
1
66

query I rowsort
SELECT ALL + 63 * 44
----
2772

query I rowsort
SELECT - 80 * 90
----
-7200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7473
SELECT ALL 88 AS col1, - CAST( - COUNT( * ) AS SIGNED ) DIV COUNT( * )
----
88
1

skipif mysql # not compatible
query II rowsort label-7473
SELECT ALL 88 AS col1, - CAST ( - COUNT ( * ) AS INTEGER ) / COUNT ( * )
----
88
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7474
SELECT CAST( - - 18 AS SIGNED ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-7474
SELECT CAST ( - - 18 AS INTEGER ) AS col0
----
18

query I rowsort
SELECT + 39 * - 99 AS col1
----
-3861

query I rowsort
SELECT ( + 16 ) col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-7477
SELECT DISTINCT + - 29 + COUNT( * )
----
-28

skipif mysql # not compatible
query I rowsort label-7477
SELECT DISTINCT + - 29 + COUNT ( * )
----
-28

query I rowsort
SELECT 47 + + + 4 AS col1
----
51

query I rowsort
SELECT COALESCE ( + - 49, - 9 ) * 10 col1
----
-490

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7480
SELECT ALL + CAST( NULL AS SIGNED ) - + 34 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7480
SELECT ALL + CAST ( NULL AS INTEGER ) - + 34 AS col0
----
NULL

query I rowsort
SELECT + ( - 62 )
----
-62

query I rowsort
SELECT ALL - ( + 61 )
----
-61

query I rowsort
SELECT NULLIF ( 3, 59 )
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7484
SELECT 77 DIV + + 24 + - COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-7484
SELECT 77 / + + 24 + - COUNT ( * ) AS col1
----
2

query II rowsort
SELECT + - 0 AS col2, + 61 + - 5 + + 20
----
0
76

onlyif mysql # aggregate syntax: 
query II rowsort label-7486
SELECT 72 AS col0, COUNT( * ) + - COUNT( * ) AS col2
----
72
0

skipif mysql # not compatible
query II rowsort label-7486
SELECT 72 AS col0, COUNT ( * ) + - COUNT ( * ) AS col2
----
72
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7487
SELECT ALL + COUNT( * ) AS col0, - CAST( + COUNT( * ) AS SIGNED ) AS col2
----
1
-1

skipif mysql # not compatible
query II rowsort label-7487
SELECT ALL + COUNT ( * ) AS col0, - CAST ( + COUNT ( * ) AS INTEGER ) AS col2
----
1
-1

query I rowsort
SELECT ALL 88 - - - 4 * + 7
----
60

query I rowsort
SELECT DISTINCT 78 col2
----
78

query I rowsort
SELECT + 34 * - 40
----
-1360

query I rowsort
SELECT DISTINCT + 94 col2
----
94

query I rowsort
SELECT + - 94 AS col2
----
-94

query II rowsort
SELECT ALL 34 AS col1, 13 - - 63
----
34
76

query I rowsort
SELECT + 46 * + + 78 AS col2
----
3588

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7495
SELECT DISTINCT - NULLIF ( - 26, MAX( DISTINCT 60 ) * CAST( NULL AS SIGNED ) )
----
26

skipif mysql # not compatible
query I rowsort label-7495
SELECT DISTINCT - NULLIF ( - 26, MAX ( DISTINCT 60 ) * CAST ( NULL AS INTEGER ) )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7496
SELECT COUNT( * ) * - - 51 AS col1
----
51

skipif mysql # not compatible
query I rowsort label-7496
SELECT COUNT ( * ) * - - 51 AS col1
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7497
SELECT ALL + CAST( - + 95 AS SIGNED ) * - - COUNT( * ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-7497
SELECT ALL + CAST ( - + 95 AS INTEGER ) * - - COUNT ( * ) AS col2
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-7498
SELECT ALL 62 + - + COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-7498
SELECT ALL 62 + - + COUNT ( * )
----
61

query I rowsort
SELECT DISTINCT 24 + - 46 AS col2
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7500
SELECT DISTINCT COUNT( * ) * AVG ( ALL - CAST( NULL AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7500
SELECT DISTINCT COUNT ( * ) * AVG ( ALL - CAST ( NULL AS INTEGER ) ) col1
----
NULL

query I rowsort
SELECT + - 10 col2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-7502
SELECT - COUNT( * ) * + 1 * ( - 79 )
----
79

skipif mysql # not compatible
query I rowsort label-7502
SELECT - COUNT ( * ) * + 1 * ( - 79 )
----
79

query I rowsort
SELECT ALL - 15 - + 40 col0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-7504
SELECT ALL + COUNT( * ) - - + 59
----
60

skipif mysql # not compatible
query I rowsort label-7504
SELECT ALL + COUNT ( * ) - - + 59
----
60

query II rowsort
SELECT - 66 AS col1, 30 AS col0
----
-66
30

query I rowsort
SELECT ALL + + ( 89 )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-7507
SELECT DISTINCT + - COUNT( + 88 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7507
SELECT DISTINCT + - COUNT ( + 88 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7508
SELECT - SUM( DISTINCT COALESCE ( + + 52, - + 24 ) ) * - 28 AS col2
----
1456

skipif mysql # not compatible
query I rowsort label-7508
SELECT - SUM ( DISTINCT COALESCE ( + + 52, - + 24 ) ) * - 28 AS col2
----
1456

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7509
SELECT + SUM( DISTINCT - ( + 18 ) ) + + COUNT( * ) DIV 88
----
-18

skipif mysql # not compatible
query I rowsort label-7509
SELECT + SUM ( DISTINCT - ( + 18 ) ) + + COUNT ( * ) / 88
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-7510
SELECT DISTINCT + COUNT( * ) + - 37 col1
----
-36

skipif mysql # not compatible
query I rowsort label-7510
SELECT DISTINCT + COUNT ( * ) + - 37 col1
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7511
SELECT - CAST( - COUNT( + 10 ) AS SIGNED ) col0
----
1

skipif mysql # not compatible
query I rowsort label-7511
SELECT - CAST ( - COUNT ( + 10 ) AS INTEGER ) col0
----
1

query I rowsort
SELECT ALL ( 11 )
----
11

query II rowsort
SELECT ALL - - 30 AS col0, 80
----
30
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7514
SELECT COUNT( * ) * - 69 AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-7514
SELECT COUNT ( * ) * - 69 AS col1
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-7515
SELECT ( + MIN( 1 ) ) + + COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-7515
SELECT ( + MIN ( 1 ) ) + + COUNT ( * ) AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7516
SELECT COUNT( * ) * 16 + 10 AS col2
----
26

skipif mysql # not compatible
query I rowsort label-7516
SELECT COUNT ( * ) * 16 + 10 AS col2
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-7517
SELECT 90 DIV 19 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-7517
SELECT 90 / 19 AS col2
----
4

query I rowsort
SELECT - 29 + 61 AS col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7519
SELECT COUNT( * ) + - 49 * 31 AS col0
----
-1518

skipif mysql # not compatible
query I rowsort label-7519
SELECT COUNT ( * ) + - 49 * 31 AS col0
----
-1518

onlyif mysql # DIV for integer division: 
query I rowsort label-7520
SELECT DISTINCT + 23 DIV + - 60 col2
----
0

skipif mysql # not compatible
query I rowsort label-7520
SELECT DISTINCT + 23 / + - 60 col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7521
SELECT 33 DIV 11 DIV + 19 - - 15 AS col0
----
15

skipif mysql # not compatible
query I rowsort label-7521
SELECT 33 / 11 / + 19 - - 15 AS col0
----
15

query I rowsort
SELECT COALESCE ( - 90, + + 83 )
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7523
SELECT ALL + CAST( + + 10 AS SIGNED )
----
10

skipif mysql # not compatible
query I rowsort label-7523
SELECT ALL + CAST ( + + 10 AS INTEGER )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7524
SELECT DISTINCT + SUM( + 43 ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-7524
SELECT DISTINCT + SUM ( + 43 ) AS col1
----
43

query I rowsort
SELECT - + 15 col2
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7526
SELECT DISTINCT 96 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7526
SELECT DISTINCT 96 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + NULLIF ( 89, + + 1 ) col0
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-7528
SELECT DISTINCT - 80 + + ( 94 ) * 39, + COUNT( * ) AS col0
----
3586
1

skipif mysql # not compatible
query II rowsort label-7528
SELECT DISTINCT - 80 + + ( 94 ) * 39, + COUNT ( * ) AS col0
----
3586
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7529
SELECT - CAST( NULL AS DECIMAL ), + COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-7529
SELECT - CAST ( NULL AS REAL ), + COUNT ( * ) AS col2
----
NULL
1

query I rowsort
SELECT ALL 87 * + 97
----
8439

onlyif mysql # DIV for integer division: 
query I rowsort label-7531
SELECT ALL 93 DIV - 43 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-7531
SELECT ALL 93 / - 43 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7532
SELECT MAX( DISTINCT 61 ) * + - 11 AS col0
----
-671

skipif mysql # not compatible
query I rowsort label-7532
SELECT MAX ( DISTINCT 61 ) * + - 11 AS col0
----
-671

query I rowsort
SELECT ALL 99 - + - 69 + + 23 AS col1
----
191

query II rowsort
SELECT ( - 24 ) AS col1, + 28
----
-24
28

query I rowsort
SELECT DISTINCT + + ( + 93 ) AS col2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7536
SELECT + - 4 + MAX( ALL - + 55 )
----
-59

skipif mysql # not compatible
query I rowsort label-7536
SELECT + - 4 + MAX ( ALL - + 55 )
----
-59

query I rowsort
SELECT - 28 + + + 26
----
-2

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7538
SELECT ALL - CAST( NULL AS DECIMAL ) + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7538
SELECT ALL - CAST ( NULL AS REAL ) + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7539
SELECT CAST( - COALESCE ( COUNT( - + 94 ), - 52 ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-7539
SELECT CAST ( - COALESCE ( COUNT ( - + 94 ), - 52 ) AS INTEGER )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7540
SELECT + CAST( - + 8 AS SIGNED )
----
-8

skipif mysql # not compatible
query I rowsort label-7540
SELECT + CAST ( - + 8 AS INTEGER )
----
-8

query I rowsort
SELECT - 38 * - - 7 AS col0
----
-266

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7542
SELECT MAX( - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7542
SELECT MAX ( - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7543
SELECT SUM( - 28 )
----
-28

skipif mysql # not compatible
query I rowsort label-7543
SELECT SUM ( - 28 )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-7544
SELECT ( - COUNT( * ) ) + - 53
----
-54

skipif mysql # not compatible
query I rowsort label-7544
SELECT ( - COUNT ( * ) ) + - 53
----
-54

query I rowsort
SELECT DISTINCT - + 84 AS col2
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-7546
SELECT ALL - + COUNT( DISTINCT + + 17 )
----
-1

skipif mysql # not compatible
query I rowsort label-7546
SELECT ALL - + COUNT ( DISTINCT + + 17 )
----
-1

query I rowsort
SELECT ALL - - 18 col1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7548
SELECT 3 - + - MIN( + 90 ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-7548
SELECT 3 - + - MIN ( + 90 ) AS col0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7549
SELECT - MAX( 16 ) AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-7549
SELECT - MAX ( 16 ) AS col0
----
-16

query I rowsort
SELECT ALL - 47 + 96 AS col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7551
SELECT - SUM( DISTINCT + 55 ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-7551
SELECT - SUM ( DISTINCT + 55 ) AS col0
----
-55

query I rowsort
SELECT - 79 + 94
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7553
SELECT + NULLIF ( - 10, + COUNT( * ) )
----
-10

skipif mysql # not compatible
query I rowsort label-7553
SELECT + NULLIF ( - 10, + COUNT ( * ) )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-7554
SELECT + 26 * - COUNT( * ) + - 60 col1
----
-86

skipif mysql # not compatible
query I rowsort label-7554
SELECT + 26 * - COUNT ( * ) + - 60 col1
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-7555
SELECT DISTINCT COUNT( * ) * - + 9 AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-7555
SELECT DISTINCT COUNT ( * ) * - + 9 AS col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7556
SELECT - 56 * COUNT( * ) col2
----
-56

skipif mysql # not compatible
query I rowsort label-7556
SELECT - 56 * COUNT ( * ) col2
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-7557
SELECT ALL - COUNT( * ) + ( + 49 ) AS col0
----
48

skipif mysql # not compatible
query I rowsort label-7557
SELECT ALL - COUNT ( * ) + ( + 49 ) AS col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7558
SELECT COUNT( * ) * + 65 AS col1
----
65

skipif mysql # not compatible
query I rowsort label-7558
SELECT COUNT ( * ) * + 65 AS col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7559
SELECT DISTINCT - MIN( 68 )
----
-68

skipif mysql # not compatible
query I rowsort label-7559
SELECT DISTINCT - MIN ( 68 )
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-7560
SELECT 43 * + COUNT( * ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-7560
SELECT 43 * + COUNT ( * ) AS col2
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7561
SELECT + CAST( + MAX( - 67 ) AS SIGNED ) * COUNT( * )
----
-67

skipif mysql # not compatible
query I rowsort label-7561
SELECT + CAST ( + MAX ( - 67 ) AS INTEGER ) * COUNT ( * )
----
-67

query II rowsort
SELECT - 15, 91 col0
----
-15
91

query I rowsort
SELECT ALL - 39 - + 42 AS col0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7564
SELECT - 18 * + COUNT( * ) + + 80 AS col1
----
62

skipif mysql # not compatible
query I rowsort label-7564
SELECT - 18 * + COUNT ( * ) + + 80 AS col1
----
62

query I rowsort
SELECT DISTINCT - ( 31 ) AS col2
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-7566
SELECT - + SUM( DISTINCT + 45 )
----
-45

skipif mysql # not compatible
query I rowsort label-7566
SELECT - + SUM ( DISTINCT + 45 )
----
-45

query I rowsort
SELECT DISTINCT 7 col0
----
7

query II rowsort
SELECT ALL 59 AS col2, + 0
----
59
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7569
SELECT - 40 + + MIN( - 78 )
----
-118

skipif mysql # not compatible
query I rowsort label-7569
SELECT - 40 + + MIN ( - 78 )
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-7570
SELECT - 6 + + COUNT( * )
----
-5

skipif mysql # not compatible
query I rowsort label-7570
SELECT - 6 + + COUNT ( * )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7571
SELECT DISTINCT - MIN( ALL - + 65 )
----
65

skipif mysql # not compatible
query I rowsort label-7571
SELECT DISTINCT - MIN ( ALL - + 65 )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7572
SELECT + ( - + ( + COUNT( * ) ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7572
SELECT + ( - + ( + COUNT ( * ) ) ) AS col2
----
-1

query I rowsort
SELECT 63 - - 7
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7574
SELECT 82 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7574
SELECT 82 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - ( + 39 ) - - 7
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-7576
SELECT ALL + + COUNT( * ) * - 80 AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-7576
SELECT ALL + + COUNT ( * ) * - 80 AS col2
----
-80

query I rowsort
SELECT 63 + 74 AS col1
----
137

query II rowsort
SELECT - 86 AS col2, + 45 AS col2
----
-86
45

query II rowsort
SELECT DISTINCT 25 AS col1, 73 AS col2
----
25
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7580
SELECT DISTINCT CAST( 51 AS SIGNED ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-7580
SELECT DISTINCT CAST ( 51 AS INTEGER ) AS col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7581
SELECT ALL MAX( ALL - 62 ) AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-7581
SELECT ALL MAX ( ALL - 62 ) AS col1
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-7582
SELECT ALL 3 * COUNT( * ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-7582
SELECT ALL 3 * COUNT ( * ) AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7583
SELECT 91 * COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-7583
SELECT 91 * COUNT ( * )
----
91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7584
SELECT 81 / - + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7584
SELECT 81 / - + CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT ALL ( - 17 ) + - + 13
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-7586
SELECT ALL + SUM( DISTINCT + 43 )
----
43

skipif mysql # not compatible
query I rowsort label-7586
SELECT ALL + SUM ( DISTINCT + 43 )
----
43

query I rowsort
SELECT + - ( + 76 )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-7588
SELECT + NULLIF ( - COUNT( * ), + + 87 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7588
SELECT + NULLIF ( - COUNT ( * ), + + 87 ) AS col0
----
-1

query I rowsort
SELECT ALL - 83 + + 48
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7590
SELECT - COUNT( * ) * 67 DIV 9 AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-7590
SELECT - COUNT ( * ) * 67 / 9 AS col1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-7591
SELECT - MIN( + 48 ) AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-7591
SELECT - MIN ( + 48 ) AS col1
----
-48

query I rowsort
SELECT + 39 + + - 11 AS col1
----
28

query I rowsort
SELECT - 8 * + - ( 61 )
----
488

query I rowsort
SELECT - + 85 * - + 97 AS col0
----
8245

query I rowsort
SELECT + + 35 - + 71
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7596
SELECT ALL MIN( - 6 ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7596
SELECT ALL MIN ( - 6 ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7597
SELECT ALL COUNT( * ) - - + 41 + - COUNT( * ) * - 17
----
59

skipif mysql # not compatible
query I rowsort label-7597
SELECT ALL COUNT ( * ) - - + 41 + - COUNT ( * ) * - 17
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7598
SELECT + 39 + + 51 * ( - + COUNT( * ) )
----
-12

skipif mysql # not compatible
query I rowsort label-7598
SELECT + 39 + + 51 * ( - + COUNT ( * ) )
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-7599
SELECT - 4 + + COUNT( * ), - 46 AS col2
----
-3
-46

skipif mysql # not compatible
query II rowsort label-7599
SELECT - 4 + + COUNT ( * ), - 46 AS col2
----
-3
-46

query II rowsort
SELECT 24, ( - 52 ) AS col1
----
24
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-7601
SELECT - COUNT( * ) * - 48 + - ( - 85 )
----
133

skipif mysql # not compatible
query I rowsort label-7601
SELECT - COUNT ( * ) * - 48 + - ( - 85 )
----
133

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7602
SELECT DISTINCT - CAST( - - ( + 45 ) AS SIGNED )
----
-45

skipif mysql # not compatible
query I rowsort label-7602
SELECT DISTINCT - CAST ( - - ( + 45 ) AS INTEGER )
----
-45

query I rowsort
SELECT 15 * - 28 AS col2
----
-420

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7604
SELECT - SUM( + 61 ) - 97 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7604
SELECT - SUM ( + 61 ) - 97 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7605
SELECT ALL ( CAST( - 2 AS SIGNED ) ) + 3 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7605
SELECT ALL ( CAST ( - 2 AS INTEGER ) ) + 3 AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7606
SELECT ALL + MIN( ALL - CAST( NULL AS SIGNED ) ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7606
SELECT ALL + MIN ( ALL - CAST ( NULL AS INTEGER ) ) + - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7607
SELECT ALL + COUNT( * ) + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7607
SELECT ALL + COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7608
SELECT ALL + 82 * 98 - 19 - 42 * - 45 + - CAST( + - 77 AS SIGNED )
----
9984

skipif mysql # not compatible
query I rowsort label-7608
SELECT ALL + 82 * 98 - 19 - 42 * - 45 + - CAST ( + - 77 AS INTEGER )
----
9984

onlyif mysql # aggregate syntax: 
query I rowsort label-7609
SELECT - COUNT( * ) + 45
----
44

skipif mysql # not compatible
query I rowsort label-7609
SELECT - COUNT ( * ) + 45
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7610
SELECT + - 89 * - - 85 * - 56 + MIN( DISTINCT + + 97 ) AS col1
----
423737

skipif mysql # not compatible
query I rowsort label-7610
SELECT + - 89 * - - 85 * - 56 + MIN ( DISTINCT + + 97 ) AS col1
----
423737

onlyif mysql # DIV for integer division: 
query I rowsort label-7611
SELECT DISTINCT 87 DIV ( - 55 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7611
SELECT DISTINCT 87 / ( - 55 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7612
SELECT ALL COUNT( * ) * + 62 AS col0
----
62

skipif mysql # not compatible
query I rowsort label-7612
SELECT ALL COUNT ( * ) * + 62 AS col0
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7613
SELECT ALL + SUM( DISTINCT + CAST( - - 93 AS SIGNED ) )
----
93

skipif mysql # not compatible
query I rowsort label-7613
SELECT ALL + SUM ( DISTINCT + CAST ( - - 93 AS INTEGER ) )
----
93

query I rowsort
SELECT - 50 * - 65 * + - 37
----
-120250

query I rowsort
SELECT ( + 20 ) AS col2
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-7616
SELECT ALL + - ( + COUNT( * ) ) AS col0, - 49
----
-1
-49

skipif mysql # not compatible
query II rowsort label-7616
SELECT ALL + - ( + COUNT ( * ) ) AS col0, - 49
----
-1
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-7617
SELECT ALL + 29 * + - COUNT( * )
----
-29

skipif mysql # not compatible
query I rowsort label-7617
SELECT ALL + 29 * + - COUNT ( * )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-7618
SELECT COUNT( * ) * - 96
----
-96

skipif mysql # not compatible
query I rowsort label-7618
SELECT COUNT ( * ) * - 96
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7619
SELECT ALL - - 42 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7619
SELECT ALL - - 42 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7620
SELECT + + 96, - 24 - + CAST( NULL AS SIGNED ) AS col1
----
96
NULL

skipif mysql # not compatible
query II rowsort label-7620
SELECT + + 96, - 24 - + CAST ( NULL AS INTEGER ) AS col1
----
96
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7621
SELECT ALL + SUM( - 14 ) col0
----
-14

skipif mysql # not compatible
query I rowsort label-7621
SELECT ALL + SUM ( - 14 ) col0
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7622
SELECT ALL + CAST( - - ( - + COUNT( * ) ) AS SIGNED ) + + 97 AS col1
----
96

skipif mysql # not compatible
query I rowsort label-7622
SELECT ALL + CAST ( - - ( - + COUNT ( * ) ) AS INTEGER ) + + 97 AS col1
----
96

query I rowsort
SELECT DISTINCT 86 * 64
----
5504

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7624
SELECT DISTINCT - 80 * 78 + - CAST( - ( + ( - 10 ) ) AS SIGNED ) AS col2
----
-6250

skipif mysql # not compatible
query I rowsort label-7624
SELECT DISTINCT - 80 * 78 + - CAST ( - ( + ( - 10 ) ) AS INTEGER ) AS col2
----
-6250

query I rowsort
SELECT + 21 * 61
----
1281

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7626
SELECT ALL - + COUNT( * ) DIV + + ( + + 11 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7626
SELECT ALL - + COUNT ( * ) / + + ( + + 11 ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7627
SELECT - 19 + 44 * - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7627
SELECT - 19 + 44 * - CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7628
SELECT + COUNT( + 47 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7628
SELECT + COUNT ( + 47 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7629
SELECT + COUNT( * ) * 8
----
8

skipif mysql # not compatible
query I rowsort label-7629
SELECT + COUNT ( * ) * 8
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7630
SELECT DISTINCT - 99 * + COUNT( + 86 ) AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-7630
SELECT DISTINCT - 99 * + COUNT ( + 86 ) AS col1
----
-99

query I rowsort
SELECT ALL ( + 35 ) col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7632
SELECT - - COUNT( DISTINCT + ( 96 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7632
SELECT - - COUNT ( DISTINCT + ( 96 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7633
SELECT DISTINCT + - COUNT( * ) * + 67
----
-67

skipif mysql # not compatible
query I rowsort label-7633
SELECT DISTINCT + - COUNT ( * ) * + 67
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-7634
SELECT + COUNT( - 10 )
----
1

skipif mysql # not compatible
query I rowsort label-7634
SELECT + COUNT ( - 10 )
----
1

query I rowsort
SELECT 25 + + - 13 * - 41 AS col2
----
558

onlyif mysql # aggregate syntax: 
query I rowsort label-7636
SELECT + COUNT( * ) * + 39 + + ( - 41 )
----
-2

skipif mysql # not compatible
query I rowsort label-7636
SELECT + COUNT ( * ) * + 39 + + ( - 41 )
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7637
SELECT CAST( 3 AS SIGNED ) * 38
----
114

skipif mysql # not compatible
query I rowsort label-7637
SELECT CAST ( 3 AS INTEGER ) * 38
----
114

query I rowsort
SELECT + NULLIF ( - 12, - 55 ) * - 66
----
792

onlyif mysql # aggregate syntax: 
query I rowsort label-7639
SELECT ALL - COUNT( ALL - 91 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7639
SELECT ALL - COUNT ( ALL - 91 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7640
SELECT DISTINCT + + COUNT( * ) * - 20 + 70 AS col1
----
50

skipif mysql # not compatible
query I rowsort label-7640
SELECT DISTINCT + + COUNT ( * ) * - 20 + 70 AS col1
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7641
SELECT ALL - CAST( + + 37 AS SIGNED ) + 42
----
5

skipif mysql # not compatible
query I rowsort label-7641
SELECT ALL - CAST ( + + 37 AS INTEGER ) + 42
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7642
SELECT + COUNT( * ) * - - COUNT( * ) + ( - 53 )
----
-52

skipif mysql # not compatible
query I rowsort label-7642
SELECT + COUNT ( * ) * - - COUNT ( * ) + ( - 53 )
----
-52

query II rowsort
SELECT 43, + COALESCE ( - 26, 2 ) AS col2
----
43
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-7644
SELECT ALL 24 * + COUNT( * ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-7644
SELECT ALL 24 * + COUNT ( * ) AS col1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7645
SELECT - NULLIF ( - + 30, + 33 * + + 50 + - MIN( - 83 ) ) * 91 AS col0
----
2730

skipif mysql # not compatible
query I rowsort label-7645
SELECT - NULLIF ( - + 30, + 33 * + + 50 + - MIN ( - 83 ) ) * 91 AS col0
----
2730

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7646
SELECT - CAST( - 21 AS SIGNED ) DIV 40 + - 46 AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-7646
SELECT - CAST ( - 21 AS INTEGER ) / 40 + - 46 AS col2
----
-46

query I rowsort
SELECT + ( + + 8 )
----
8

query I rowsort
SELECT DISTINCT 85 * + 1 col1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7649
SELECT ( + ( - COUNT( * ) ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7649
SELECT ( + ( - COUNT ( * ) ) ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7650
SELECT + 15 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7650
SELECT + 15 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - 42 * + 96
----
-4032

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7652
SELECT CAST( - 88 AS SIGNED )
----
-88

skipif mysql # not compatible
query I rowsort label-7652
SELECT CAST ( - 88 AS INTEGER )
----
-88

query I rowsort
SELECT - - ( - 29 ) AS col2
----
-29

query I rowsort
SELECT DISTINCT - + 75 * 42
----
-3150

onlyif mysql # aggregate syntax: 
query I rowsort label-7655
SELECT ALL - NULLIF ( + COUNT( * ), - 53 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7655
SELECT ALL - NULLIF ( + COUNT ( * ), - 53 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7656
SELECT + 20 AS col2, - COUNT( * ) AS col0
----
20
-1

skipif mysql # not compatible
query II rowsort label-7656
SELECT + 20 AS col2, - COUNT ( * ) AS col0
----
20
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7657
SELECT ALL COUNT( * ) + + CAST( + 6 AS SIGNED )
----
7

skipif mysql # not compatible
query I rowsort label-7657
SELECT ALL COUNT ( * ) + + CAST ( + 6 AS INTEGER )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7658
SELECT + COUNT( * ) + COUNT( * ) * + 74 AS col1
----
75

skipif mysql # not compatible
query I rowsort label-7658
SELECT + COUNT ( * ) + COUNT ( * ) * + 74 AS col1
----
75

query I rowsort
SELECT ALL - + 97 * - 67
----
6499

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7660
SELECT DISTINCT + ( - CAST( - 64 AS SIGNED ) ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-7660
SELECT DISTINCT + ( - CAST ( - 64 AS INTEGER ) ) AS col0
----
64

query I rowsort
SELECT - + 90 col0
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7662
SELECT ALL 16 DIV + ( + + COUNT( * ) ) col1
----
16

skipif mysql # not compatible
query I rowsort label-7662
SELECT ALL 16 / + ( + + COUNT ( * ) ) col1
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7663
SELECT + CAST( + - 37 AS SIGNED )
----
-37

skipif mysql # not compatible
query I rowsort label-7663
SELECT + CAST ( + - 37 AS INTEGER )
----
-37

query II rowsort
SELECT + - 95 AS col1, - 35 AS col1
----
-95
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-7665
SELECT - COUNT( * ) + ( - 72 )
----
-73

skipif mysql # not compatible
query I rowsort label-7665
SELECT - COUNT ( * ) + ( - 72 )
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-7666
SELECT COUNT( * ) * - - 84 * + ( + 32 )
----
2688

skipif mysql # not compatible
query I rowsort label-7666
SELECT COUNT ( * ) * - - 84 * + ( + 32 )
----
2688

onlyif mysql # aggregate syntax: 
query I rowsort label-7667
SELECT ALL - COUNT( * ) + 35
----
34

skipif mysql # not compatible
query I rowsort label-7667
SELECT ALL - COUNT ( * ) + 35
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7668
SELECT COUNT( * ) * - 81 + - MAX( 47 ) AS col0
----
-128

skipif mysql # not compatible
query I rowsort label-7668
SELECT COUNT ( * ) * - 81 + - MAX ( 47 ) AS col0
----
-128

query I rowsort
SELECT 89 * - - 36 col0
----
3204

onlyif mysql # aggregate syntax: 
query I rowsort label-7670
SELECT 95 + + COUNT( * ) col1
----
96

skipif mysql # not compatible
query I rowsort label-7670
SELECT 95 + + COUNT ( * ) col1
----
96

onlyif mysql # DIV for integer division: 
query II rowsort label-7671
SELECT DISTINCT + 95 + - ( - + 54 ), 53 DIV + 43 AS col1
----
149
1

skipif mysql # not compatible
query II rowsort label-7671
SELECT DISTINCT + 95 + - ( - + 54 ), 53 / + 43 AS col1
----
149
1

query I rowsort
SELECT 79 * - 6 col1
----
-474

query I rowsort
SELECT 20 + + - 44
----
-24

query I rowsort
SELECT DISTINCT - ( + 78 ) * + - 13 AS col1
----
1014

query I rowsort
SELECT + 65 * - 76 AS col1
----
-4940

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7676
SELECT + + CAST( NULL AS SIGNED ) * + + 52 - 85
----
NULL

skipif mysql # not compatible
query I rowsort label-7676
SELECT + + CAST ( NULL AS INTEGER ) * + + 52 - 85
----
NULL

query I rowsort
SELECT + + 58 col1
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7678
SELECT - COALESCE ( - CAST( NULL AS SIGNED ), + 17 ) col1
----
-17

skipif mysql # not compatible
query I rowsort label-7678
SELECT - COALESCE ( - CAST ( NULL AS INTEGER ), + 17 ) col1
----
-17

query I rowsort
SELECT - 49 + + - ( + 43 )
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-7680
SELECT DISTINCT MIN( + 2 )
----
2

skipif mysql # not compatible
query I rowsort label-7680
SELECT DISTINCT MIN ( + 2 )
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-7681
SELECT ( - - 18 ) DIV + 8 + 51
----
53

skipif mysql # not compatible
query I rowsort label-7681
SELECT ( - - 18 ) / + 8 + 51
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7682
SELECT DISTINCT + 81 * + 97 + MAX( + 31 ) AS col1
----
7888

skipif mysql # not compatible
query I rowsort label-7682
SELECT DISTINCT + 81 * + 97 + MAX ( + 31 ) AS col1
----
7888

onlyif mysql # aggregate syntax: 
query I rowsort label-7683
SELECT + COUNT( * ) + + + COUNT( * ) * - 51 AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-7683
SELECT + COUNT ( * ) + + + COUNT ( * ) * - 51 AS col0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-7684
SELECT MIN( DISTINCT 11 )
----
11

skipif mysql # not compatible
query I rowsort label-7684
SELECT MIN ( DISTINCT 11 )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7685
SELECT DISTINCT + - SUM( + 20 ) * 48
----
-960

skipif mysql # not compatible
query I rowsort label-7685
SELECT DISTINCT + - SUM ( + 20 ) * 48
----
-960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7686
SELECT + 89 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7686
SELECT + 89 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7687
SELECT ALL - 51 * + + CAST( + + COUNT( * ) AS SIGNED )
----
-51

skipif mysql # not compatible
query I rowsort label-7687
SELECT ALL - 51 * + + CAST ( + + COUNT ( * ) AS INTEGER )
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7688
SELECT NULLIF ( + - 11, + ( + ( + CAST( + 77 AS SIGNED ) ) ) ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-7688
SELECT NULLIF ( + - 11, + ( + ( + CAST ( + 77 AS INTEGER ) ) ) ) AS col2
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7689
SELECT ALL COUNT( CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-7689
SELECT ALL COUNT ( CAST ( NULL AS INTEGER ) )
----
0

query I rowsort
SELECT DISTINCT + 0 - + - ( + ( ( + 86 ) ) ) * 58 AS col1
----
4988

query I rowsort
SELECT - 69 * - 21 AS col1
----
1449

query I rowsort
SELECT DISTINCT 12 col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7693
SELECT ( SUM( - 88 ) )
----
-88

skipif mysql # not compatible
query I rowsort label-7693
SELECT ( SUM ( - 88 ) )
----
-88

query I rowsort
SELECT ( - ( - - 95 ) )
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-7695
SELECT - COUNT( * ) - - 77
----
76

skipif mysql # not compatible
query I rowsort label-7695
SELECT - COUNT ( * ) - - 77
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7696
SELECT ALL SUM( - + CASE WHEN NOT + CAST( NULL AS SIGNED ) IS NULL THEN 92 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-7696
SELECT ALL SUM ( - + CASE WHEN NOT + CAST ( NULL AS INTEGER ) IS NULL THEN 92 END )
----
NULL

query I rowsort
SELECT ALL + ( + + 53 ) AS col1
----
53

query I rowsort
SELECT DISTINCT - 2 * + 88
----
-176

onlyif mysql # aggregate syntax: 
query I rowsort label-7699
SELECT ALL + COUNT( * ) + - + 66 AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-7699
SELECT ALL + COUNT ( * ) + - + 66 AS col0
----
-65

query I rowsort
SELECT ALL ( - + ( + - 29 ) )
----
29

query I rowsort
SELECT - 84 * + + 5 AS col1
----
-420

onlyif mysql # aggregate syntax: 
query I rowsort label-7702
SELECT - COUNT( * ) * + + 15 AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-7702
SELECT - COUNT ( * ) * + + 15 AS col1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7703
SELECT ALL 93 + - 94 + + + COUNT( DISTINCT + 46 ) * + + 19
----
18

skipif mysql # not compatible
query I rowsort label-7703
SELECT ALL 93 + - 94 + + + COUNT ( DISTINCT + 46 ) * + + 19
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7704
SELECT ALL MIN( - + 41 ) * + + 36
----
-1476

skipif mysql # not compatible
query I rowsort label-7704
SELECT ALL MIN ( - + 41 ) * + + 36
----
-1476

onlyif mysql # aggregate syntax: 
query I rowsort label-7705
SELECT + ( + MAX( DISTINCT 51 ) ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-7705
SELECT + ( + MAX ( DISTINCT 51 ) ) AS col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7706
SELECT ( ( - + COUNT( * ) ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7706
SELECT ( ( - + COUNT ( * ) ) ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7707
SELECT DISTINCT - CAST( - + 15 AS SIGNED ) AS col0, + 80
----
15
80

skipif mysql # not compatible
query II rowsort label-7707
SELECT DISTINCT - CAST ( - + 15 AS INTEGER ) AS col0, + 80
----
15
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7708
SELECT ALL COUNT( * ) * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7708
SELECT ALL COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL - 98 * + 80
----
-7840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7710
SELECT ALL - CAST( + 26 AS SIGNED ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-7710
SELECT ALL - CAST ( + 26 AS INTEGER ) AS col0
----
-26

query II rowsort
SELECT ALL 88 AS col1, 57 AS col1
----
88
57

query II rowsort
SELECT ALL 99 AS col2, 25 AS col2
----
99
25

query II rowsort
SELECT DISTINCT 8 AS col2, NULLIF ( - 71, - 49 )
----
8
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-7714
SELECT DISTINCT 60 + + COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-7714
SELECT DISTINCT 60 + + COUNT ( * )
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7715
SELECT + COUNT( + CAST( + ( - 68 ) AS SIGNED ) ) AS col1, - COUNT( * ) AS col2
----
1
-1

skipif mysql # not compatible
query II rowsort label-7715
SELECT + COUNT ( + CAST ( + ( - 68 ) AS INTEGER ) ) AS col1, - COUNT ( * ) AS col2
----
1
-1

query I rowsort
SELECT + ( + - 7 ) col1
----
-7

query I rowsort
SELECT ALL 45 col1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7718
SELECT - COUNT( * ) + + + ( + + 16 )
----
15

skipif mysql # not compatible
query I rowsort label-7718
SELECT - COUNT ( * ) + + + ( + + 16 )
----
15

query I rowsort
SELECT - 2 + + 53 + 19
----
70

query I rowsort
SELECT + ( + 54 ) AS col0
----
54

query I rowsort
SELECT - ( - + 27 )
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7722
SELECT ALL MAX( - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7722
SELECT ALL MAX ( - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query II rowsort
SELECT 77 AS col0, 47
----
77
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7724
SELECT - CAST( 28 AS SIGNED ) col2
----
-28

skipif mysql # not compatible
query I rowsort label-7724
SELECT - CAST ( 28 AS INTEGER ) col2
----
-28

query II rowsort
SELECT 28 AS col1, + 51
----
28
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7726
SELECT ALL 49 * + COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-7726
SELECT ALL 49 * + COUNT ( * )
----
49

query I rowsort
SELECT ( + 48 )
----
48

query I rowsort
SELECT ALL - - 35 AS col2
----
35

query I rowsort
SELECT ALL + 71 + - 97
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-7730
SELECT + - NULLIF ( + NULLIF ( - - 92, - 8 ), - - COUNT( * ) + + 50 )
----
-92

skipif mysql # not compatible
query I rowsort label-7730
SELECT + - NULLIF ( + NULLIF ( - - 92, - 8 ), - - COUNT ( * ) + + 50 )
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-7731
SELECT DISTINCT MIN( DISTINCT - - 74 ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-7731
SELECT DISTINCT MIN ( DISTINCT - - 74 ) AS col2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7732
SELECT - MIN( - 66 ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-7732
SELECT - MIN ( - 66 ) AS col2
----
66

query I rowsort
SELECT NULLIF ( - 42, + - 23 )
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-7734
SELECT + COUNT( * ) * - 54 AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-7734
SELECT + COUNT ( * ) * - 54 AS col1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-7735
SELECT + COUNT( ALL ( + 99 ) ) + + - 79 + ( - - ( 53 ) ) col1
----
-25

skipif mysql # not compatible
query I rowsort label-7735
SELECT + COUNT ( ALL ( + 99 ) ) + + - 79 + ( - - ( 53 ) ) col1
----
-25

query I rowsort
SELECT DISTINCT - 12 * + 38 + - 71 * + - 65 AS col0
----
4159

onlyif mysql # aggregate syntax: 
query I rowsort label-7737
SELECT ALL - - 39 - 43 + - - COUNT( DISTINCT - - 56 )
----
-3

skipif mysql # not compatible
query I rowsort label-7737
SELECT ALL - - 39 - 43 + - - COUNT ( DISTINCT - - 56 )
----
-3

query I rowsort
SELECT ALL 74 * 82
----
6068

query I rowsort
SELECT 83 * + 71 col1
----
5893

onlyif mysql # DIV for integer division: 
query I rowsort label-7740
SELECT DISTINCT - 45 DIV - 26 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7740
SELECT DISTINCT - 45 / - 26 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7741
SELECT 57 * + - COUNT( * ) AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-7741
SELECT 57 * + - COUNT ( * ) AS col2
----
-57

query I rowsort
SELECT DISTINCT + 73 * 45
----
3285

query II rowsort
SELECT DISTINCT - 69, 2 AS col0
----
-69
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7744
SELECT ALL MAX( + - 70 ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-7744
SELECT ALL MAX ( + - 70 ) AS col2
----
-70

query I rowsort
SELECT 97 * + - 48 AS col0
----
-4656

onlyif mysql # aggregate syntax: 
query I rowsort label-7746
SELECT + SUM( ALL + 85 ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-7746
SELECT + SUM ( ALL + 85 ) AS col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7747
SELECT + - COUNT( * ) + + - 60 AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-7747
SELECT + - COUNT ( * ) + + - 60 AS col2
----
-61

query I rowsort
SELECT + 27 + 17 AS col0
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7749
SELECT + ( - 31 ) + - COUNT( * ) DIV + - 11 * - 76 AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-7749
SELECT + ( - 31 ) + - COUNT ( * ) / + - 11 * - 76 AS col0
----
-31

query I rowsort
SELECT DISTINCT 20 + 98
----
118

query I rowsort
SELECT + ( 93 ) AS col0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7752
SELECT DISTINCT 14 * + COUNT( * ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-7752
SELECT DISTINCT 14 * + COUNT ( * ) AS col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7753
SELECT DISTINCT - MAX( DISTINCT - + 94 )
----
94

skipif mysql # not compatible
query I rowsort label-7753
SELECT DISTINCT - MAX ( DISTINCT - + 94 )
----
94

query II rowsort
SELECT + 76 col2, 33
----
76
33

onlyif mysql # aggregate syntax: 
query II rowsort label-7755
SELECT ALL - COUNT( * ) col2, + 37 AS col2
----
-1
37

skipif mysql # not compatible
query II rowsort label-7755
SELECT ALL - COUNT ( * ) col2, + 37 AS col2
----
-1
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7756
SELECT ALL - ( SUM( + 77 ) ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-7756
SELECT ALL - ( SUM ( + 77 ) ) AS col2
----
-77

query I rowsort
SELECT DISTINCT - + ( 67 ) AS col1
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-7758
SELECT ALL + 1 + - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7758
SELECT ALL + 1 + - COUNT ( * ) AS col2
----
0

query I rowsort
SELECT 1 + + - NULLIF ( + 58, - 87 ) col0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-7760
SELECT ALL + COUNT( * ) - - + 12
----
13

skipif mysql # not compatible
query I rowsort label-7760
SELECT ALL + COUNT ( * ) - - + 12
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7761
SELECT DISTINCT 1 * CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7761
SELECT DISTINCT 1 * CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7762
SELECT ALL 0 DIV + + 10 * - 83
----
0

skipif mysql # not compatible
query I rowsort label-7762
SELECT ALL 0 / + + 10 * - 83
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7763
SELECT DISTINCT - CAST( - AVG ( DISTINCT + + 59 ) AS SIGNED ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-7763
SELECT DISTINCT - CAST ( - AVG ( DISTINCT + + 59 ) AS INTEGER ) AS col1
----
59

query I rowsort
SELECT DISTINCT - + 62 AS col0
----
-62

query I rowsort
SELECT DISTINCT 97 + 54 AS col2
----
151

query I rowsort
SELECT ALL - 69 - + 76
----
-145

query I rowsort
SELECT ALL 96 - - 78
----
174

query I rowsort
SELECT ALL - 79 * + 21
----
-1659

query I rowsort
SELECT DISTINCT + - 33 col0
----
-33

query I rowsort
SELECT DISTINCT 55 * - + 51
----
-2805

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7771
SELECT DISTINCT + CAST( NULL AS SIGNED ) / - SUM( + 63 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7771
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / - SUM ( + 63 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7772
SELECT DISTINCT MAX( 43 )
----
43

skipif mysql # not compatible
query I rowsort label-7772
SELECT DISTINCT MAX ( 43 )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7773
SELECT 95 * - COUNT( * )
----
-95

skipif mysql # not compatible
query I rowsort label-7773
SELECT 95 * - COUNT ( * )
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-7774
SELECT ALL - 44 + MIN( 23 ) + 62
----
41

skipif mysql # not compatible
query I rowsort label-7774
SELECT ALL - 44 + MIN ( 23 ) + 62
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7775
SELECT DISTINCT CAST( - - 82 AS SIGNED )
----
82

skipif mysql # not compatible
query I rowsort label-7775
SELECT DISTINCT CAST ( - - 82 AS INTEGER )
----
82

query I rowsort
SELECT + + ( + 32 ) AS col1
----
32

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7777
SELECT DISTINCT - ( + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7777
SELECT DISTINCT - ( + CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7778
SELECT COUNT( * ) * + + MIN( DISTINCT + + 47 ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-7778
SELECT COUNT ( * ) * + + MIN ( DISTINCT + + 47 ) AS col0
----
47

query I rowsort
SELECT 35 - 59 AS col2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7780
SELECT ALL + - SUM( - 8 )
----
8

skipif mysql # not compatible
query I rowsort label-7780
SELECT ALL + - SUM ( - 8 )
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7781
SELECT - COUNT( * ) + - 69 DIV - COUNT( * )
----
68

skipif mysql # not compatible
query I rowsort label-7781
SELECT - COUNT ( * ) + - 69 / - COUNT ( * )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7782
SELECT DISTINCT - 72 * COUNT( DISTINCT + + 19 ) col1
----
-72

skipif mysql # not compatible
query I rowsort label-7782
SELECT DISTINCT - 72 * COUNT ( DISTINCT + + 19 ) col1
----
-72

query I rowsort
SELECT ALL + 91 - - - 50 AS col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7784
SELECT - SUM( - 42 ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-7784
SELECT - SUM ( - 42 ) AS col2
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7785
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-7785
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7786
SELECT DISTINCT + MAX( + 73 ) AS col2
----
73

skipif mysql # not compatible
query I rowsort label-7786
SELECT DISTINCT + MAX ( + 73 ) AS col2
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7787
SELECT ALL + COUNT( * ) + + CAST( + - COUNT( * ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-7787
SELECT ALL + COUNT ( * ) + + CAST ( + - COUNT ( * ) AS INTEGER )
----
0

query I rowsort
SELECT - 18 * 56
----
-1008

query I rowsort
SELECT DISTINCT + 94 + + 91
----
185

query I rowsort
SELECT DISTINCT - 66 * + 44 + - 29
----
-2933

query I rowsort
SELECT DISTINCT + 65 + + ( - + 25 )
----
40

query I rowsort
SELECT ALL 83 * + - 76 AS col1
----
-6308

query I rowsort
SELECT ALL + - 61 AS col0
----
-61

query I rowsort
SELECT - + 88 + + + 88 col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7795
SELECT + + MAX( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7795
SELECT + + MAX ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7796
SELECT ALL 47 + - COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-7796
SELECT ALL 47 + - COUNT ( * )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7797
SELECT DISTINCT + 44 * + SUM( 89 ) AS col0
----
3916

skipif mysql # not compatible
query I rowsort label-7797
SELECT DISTINCT + 44 * + SUM ( 89 ) AS col0
----
3916

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7798
SELECT - + CAST( NULL AS SIGNED ) + 23 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7798
SELECT - + CAST ( NULL AS INTEGER ) + 23 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7799
SELECT + 20 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7799
SELECT + 20 * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7800
SELECT ALL MAX( DISTINCT - 55 ) col0
----
-55

skipif mysql # not compatible
query I rowsort label-7800
SELECT ALL MAX ( DISTINCT - 55 ) col0
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-7801
SELECT 88 DIV + 81
----
1

skipif mysql # not compatible
query I rowsort label-7801
SELECT 88 / + 81
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7802
SELECT ALL - - COUNT( * ) + - 45 AS col0, + 95
----
-44
95

skipif mysql # not compatible
query II rowsort label-7802
SELECT ALL - - COUNT ( * ) + - 45 AS col0, + 95
----
-44
95

onlyif mysql # aggregate syntax: 
query I rowsort label-7803
SELECT DISTINCT - - COUNT( 60 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7803
SELECT DISTINCT - - COUNT ( 60 ) AS col1
----
1

query I rowsort
SELECT 80 * + 83 AS col0
----
6640

onlyif mysql # aggregate syntax: 
query I rowsort label-7805
SELECT + MIN( 42 ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-7805
SELECT + MIN ( 42 ) AS col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7806
SELECT ALL COUNT( * ) + 13 AS col0
----
14

skipif mysql # not compatible
query I rowsort label-7806
SELECT ALL COUNT ( * ) + 13 AS col0
----
14

query I rowsort
SELECT + 5 * + 3
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-7808
SELECT ALL - 44 DIV 13 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-7808
SELECT ALL - 44 / 13 AS col0
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7809
SELECT CAST( NULL AS DECIMAL ) * - 2
----
NULL

skipif mysql # not compatible
query I rowsort label-7809
SELECT CAST ( NULL AS REAL ) * - 2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7810
SELECT ALL MIN( DISTINCT 72 )
----
72

skipif mysql # not compatible
query I rowsort label-7810
SELECT ALL MIN ( DISTINCT 72 )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7811
SELECT - COUNT( * ) * + - 48 col0
----
48

skipif mysql # not compatible
query I rowsort label-7811
SELECT - COUNT ( * ) * + - 48 col0
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-7812
SELECT DISTINCT + - 42 DIV - 34 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7812
SELECT DISTINCT + - 42 / - 34 AS col1
----
1

query I rowsort
SELECT + ( ( 4 ) )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7814
SELECT MIN( DISTINCT - + 19 )
----
-19

skipif mysql # not compatible
query I rowsort label-7814
SELECT MIN ( DISTINCT - + 19 )
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-7815
SELECT + ( - COUNT( * ) ) * - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-7815
SELECT + ( - COUNT ( * ) ) * - COUNT ( * )
----
1

query I rowsort
SELECT DISTINCT ( - 16 )
----
-16

query I rowsort
SELECT - 4 + - 19 AS col1
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7818
SELECT + CAST( - ( + 63 ) AS SIGNED ) * + 8 col2
----
-504

skipif mysql # not compatible
query I rowsort label-7818
SELECT + CAST ( - ( + 63 ) AS INTEGER ) * + 8 col2
----
-504

query I rowsort
SELECT + ( - - 83 ) AS col1
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7820
SELECT + 43 * - 5 + 73 DIV + - COUNT( * ) AS col1
----
-288

skipif mysql # not compatible
query I rowsort label-7820
SELECT + 43 * - 5 + 73 / + - COUNT ( * ) AS col1
----
-288

onlyif mysql # aggregate syntax: 
query I rowsort label-7821
SELECT - + 81 * - + COUNT( * ) * 31
----
2511

skipif mysql # not compatible
query I rowsort label-7821
SELECT - + 81 * - + COUNT ( * ) * 31
----
2511

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7822
SELECT DISTINCT - ( CAST( NULL AS DECIMAL ) ) * - + 96 * COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7822
SELECT DISTINCT - ( CAST ( NULL AS REAL ) ) * - + 96 * COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7823
SELECT CAST( + CASE - ( - 63 ) WHEN - 6 - 42 THEN - 43 END AS SIGNED ) + + 69
----
NULL

skipif mysql # not compatible
query I rowsort label-7823
SELECT CAST ( + CASE - ( - 63 ) WHEN - 6 - 42 THEN - 43 END AS INTEGER ) + + 69
----
NULL

query I rowsort
SELECT ( - - 37 )
----
37

query II rowsort
SELECT DISTINCT 16 AS col1, 38 * + 67 + 93 AS col1
----
16
2639

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7826
SELECT DISTINCT - + CAST( COUNT( * ) AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7826
SELECT DISTINCT - + CAST ( COUNT ( * ) AS INTEGER ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7827
SELECT ALL - 81 + 59 * - CAST( + CAST( + - COUNT( * ) AS SIGNED ) AS SIGNED ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-7827
SELECT ALL - 81 + 59 * - CAST ( + CAST ( + - COUNT ( * ) AS INTEGER ) AS INTEGER ) AS col1
----
-22

query I rowsort
SELECT 36 * - 66 AS col2
----
-2376

query I rowsort
SELECT 61 + - 64
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-7830
SELECT + - 73 + 76 col1, - COUNT( * )
----
3
-1

skipif mysql # not compatible
query II rowsort label-7830
SELECT + - 73 + 76 col1, - COUNT ( * )
----
3
-1

query I rowsort
SELECT DISTINCT + - 8 col2
----
-8

query I rowsort
SELECT + 8 * 78
----
624

onlyif mysql # aggregate syntax: 
query I rowsort label-7833
SELECT COALESCE ( + COUNT( * ), - 33 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7833
SELECT COALESCE ( + COUNT ( * ), - 33 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7834
SELECT ALL + MIN( DISTINCT + 29 ) col2
----
29

skipif mysql # not compatible
query I rowsort label-7834
SELECT ALL + MIN ( DISTINCT + 29 ) col2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7835
SELECT + - SUM( ALL 30 ) col1
----
-30

skipif mysql # not compatible
query I rowsort label-7835
SELECT + - SUM ( ALL 30 ) col1
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7836
SELECT - + MAX( DISTINCT + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7836
SELECT - + MAX ( DISTINCT + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7837
SELECT - + COUNT( * ) * CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7837
SELECT - + COUNT ( * ) * CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7838
SELECT DISTINCT + COUNT( * ) * + + MAX( - 57 )
----
-57

skipif mysql # not compatible
query I rowsort label-7838
SELECT DISTINCT + COUNT ( * ) * + + MAX ( - 57 )
----
-57

query I rowsort
SELECT ALL 93 * + 86
----
7998

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7840
SELECT 18 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7840
SELECT 18 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7841
SELECT DISTINCT + 47 * COUNT( * ) col0
----
47

skipif mysql # not compatible
query I rowsort label-7841
SELECT DISTINCT + 47 * COUNT ( * ) col0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7842
SELECT ALL SUM( ALL 36 )
----
36

skipif mysql # not compatible
query I rowsort label-7842
SELECT ALL SUM ( ALL 36 )
----
36

query I rowsort
SELECT ALL + ( 13 )
----
13

query I rowsort
SELECT ALL - 87 + - + 62 col2
----
-149

query I rowsort
SELECT DISTINCT + - ( 19 ) AS col0
----
-19

query I rowsort
SELECT DISTINCT - 5 * - + 29 col0
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-7847
SELECT - COUNT( ALL - + 90 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7847
SELECT - COUNT ( ALL - + 90 ) AS col1
----
-1

query I rowsort
SELECT ALL 48 * 89 AS col2
----
4272

onlyif mysql # aggregate syntax: 
query I rowsort label-7849
SELECT ALL ( - MAX( DISTINCT + 18 ) ) + COUNT( * ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-7849
SELECT ALL ( - MAX ( DISTINCT + 18 ) ) + COUNT ( * ) AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-7850
SELECT ALL COUNT( DISTINCT - - 44 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7850
SELECT ALL COUNT ( DISTINCT - - 44 ) AS col2
----
1

query I rowsort
SELECT ALL + + 54 * + 19
----
1026

query I rowsort
SELECT ALL - - 56 AS col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7853
SELECT ALL - - MIN( ALL - 47 )
----
-47

skipif mysql # not compatible
query I rowsort label-7853
SELECT ALL - - MIN ( ALL - 47 )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7854
SELECT ALL - MAX( ALL - 14 )
----
14

skipif mysql # not compatible
query I rowsort label-7854
SELECT ALL - MAX ( ALL - 14 )
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7855
SELECT ALL - AVG ( CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7855
SELECT ALL - AVG ( CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7856
SELECT 33 + - COUNT( * ) col1
----
32

skipif mysql # not compatible
query I rowsort label-7856
SELECT 33 + - COUNT ( * ) col1
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-7857
SELECT ALL - COUNT( * ) + + 35, - 45 col0
----
34
-45

skipif mysql # not compatible
query II rowsort label-7857
SELECT ALL - COUNT ( * ) + + 35, - 45 col0
----
34
-45

query I rowsort
SELECT DISTINCT 83 col0
----
83

query I rowsort
SELECT 68 + + 42
----
110

query I rowsort
SELECT - + 28 col1
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-7861
SELECT - - MIN( + + 94 ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-7861
SELECT - - MIN ( + + 94 ) AS col2
----
94

query I rowsort
SELECT DISTINCT + ( 3 ) AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7863
SELECT ALL + SUM( DISTINCT - 49 )
----
-49

skipif mysql # not compatible
query I rowsort label-7863
SELECT ALL + SUM ( DISTINCT - 49 )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-7864
SELECT ALL + COUNT( * ) * - + 77 - 62
----
-139

skipif mysql # not compatible
query I rowsort label-7864
SELECT ALL + COUNT ( * ) * - + 77 - 62
----
-139

onlyif mysql # aggregate syntax: 
query I rowsort label-7865
SELECT ALL COUNT( + - 2 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7865
SELECT ALL COUNT ( + - 2 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7866
SELECT ALL - - 93 + + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7866
SELECT ALL - - 93 + + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT ALL - 95 + + 22 AS col1, 17
----
-73
17

onlyif mysql # DIV for integer division: 
query II rowsort label-7868
SELECT DISTINCT - 40 AS col2, 89 DIV 59
----
-40
1

skipif mysql # not compatible
query II rowsort label-7868
SELECT DISTINCT - 40 AS col2, 89 / 59
----
-40
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7869
SELECT + CAST( + - CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7869
SELECT + CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + ( - - 88 )
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-7871
SELECT 52 DIV 32
----
1

skipif mysql # not compatible
query I rowsort label-7871
SELECT 52 / 32
----
1

query I rowsort
SELECT + ( 31 ) AS col0
----
31

query I rowsort
SELECT ALL - + 48 col2
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-7874
SELECT 33 * + + COUNT( * ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-7874
SELECT 33 * + + COUNT ( * ) AS col1
----
33

query I rowsort
SELECT DISTINCT 65 + + + 35 - - 78
----
178

query II rowsort
SELECT 30 AS col2, + ( - 51 ) col1
----
30
-51

query I rowsort
SELECT ALL 80 + 81 AS col1
----
161

onlyif mysql # DIV for integer division: 
query I rowsort label-7878
SELECT - 79 DIV - 51
----
1

skipif mysql # not compatible
query I rowsort label-7878
SELECT - 79 / - 51
----
1

query I rowsort
SELECT DISTINCT + 26 col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7880
SELECT DISTINCT SUM( ALL 47 )
----
47

skipif mysql # not compatible
query I rowsort label-7880
SELECT DISTINCT SUM ( ALL 47 )
----
47

onlyif mysql # DIV for integer division: 
query II rowsort label-7881
SELECT ALL - 50 DIV + 90 AS col0, - 66 AS col2
----
0
-66

skipif mysql # not compatible
query II rowsort label-7881
SELECT ALL - 50 / + 90 AS col0, - 66 AS col2
----
0
-66

query I rowsort
SELECT + + 36 - 19 AS col0
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-7883
SELECT - 72 DIV 77
----
0

skipif mysql # not compatible
query I rowsort label-7883
SELECT - 72 / 77
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7884
SELECT + COUNT( * ) * - - 71 + - 59 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-7884
SELECT + COUNT ( * ) * - - 71 + - 59 AS col0
----
12

query I rowsort
SELECT - 59 * + 74
----
-4366

onlyif mysql # aggregate syntax: 
query I rowsort label-7886
SELECT ALL MAX( DISTINCT 81 ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-7886
SELECT ALL MAX ( DISTINCT 81 ) AS col1
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7887
SELECT ALL - - 50 DIV + 63 + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-7887
SELECT ALL - - 50 / + 63 + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7888
SELECT ALL + MIN( - - 0 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-7888
SELECT ALL + MIN ( - - 0 ) col1
----
0

query I rowsort
SELECT DISTINCT 77 - - 7
----
84

query II rowsort
SELECT 66, 52 AS col1
----
66
52

query I rowsort
SELECT + 23 * - 89
----
-2047

onlyif mysql # aggregate syntax: 
query I rowsort label-7892
SELECT ALL - 17 + - COUNT( * ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-7892
SELECT ALL - 17 + - COUNT ( * ) AS col2
----
-18

query I rowsort
SELECT 6 * 54
----
324

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7894
SELECT ALL 0 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7894
SELECT ALL 0 / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7895
SELECT DISTINCT + + 58 * + COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-7895
SELECT DISTINCT + + 58 * + COUNT ( * )
----
58

query I rowsort
SELECT + ( - - 64 ) * + ( - ( + 2 ) ) AS col0
----
-128

onlyif mysql # aggregate syntax: 
query I rowsort label-7897
SELECT + MAX( DISTINCT + + 52 )
----
52

skipif mysql # not compatible
query I rowsort label-7897
SELECT + MAX ( DISTINCT + + 52 )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7898
SELECT ALL + COUNT( * ) * 54
----
54

skipif mysql # not compatible
query I rowsort label-7898
SELECT ALL + COUNT ( * ) * 54
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-7899
SELECT + ( MAX( DISTINCT - + 55 ) ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-7899
SELECT + ( MAX ( DISTINCT - + 55 ) ) AS col2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-7900
SELECT ALL SUM( - - 2 )
----
2

skipif mysql # not compatible
query I rowsort label-7900
SELECT ALL SUM ( - - 2 )
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-7901
SELECT DISTINCT + 0 DIV 64 * - 43 + + 96 AS col2
----
96

skipif mysql # not compatible
query I rowsort label-7901
SELECT DISTINCT + 0 / 64 * - 43 + + 96 AS col2
----
96

query I rowsort
SELECT ALL - + 23 - 30
----
-53

query I rowsort
SELECT ALL 49 * + 55
----
2695

onlyif mysql # aggregate syntax: 
query I rowsort label-7904
SELECT 77 + COUNT( * ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-7904
SELECT 77 + COUNT ( * ) AS col2
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-7905
SELECT COUNT( - 36 ) * - + ( + COUNT( * ) ) + + + 90 AS col2, ( + + 66 ) AS col2
----
89
66

skipif mysql # not compatible
query II rowsort label-7905
SELECT COUNT ( - 36 ) * - + ( + COUNT ( * ) ) + + + 90 AS col2, ( + + 66 ) AS col2
----
89
66

onlyif mysql # DIV for integer division: 
query I rowsort label-7906
SELECT ALL 95 DIV - - 78 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7906
SELECT ALL 95 / - - 78 AS col0
----
1

query I rowsort
SELECT + COALESCE ( - 24, - 54 ) AS col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7908
SELECT + - SUM( ALL + 11 ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-7908
SELECT + - SUM ( ALL + 11 ) AS col2
----
-11

query I rowsort
SELECT DISTINCT - + 58 * + 94
----
-5452

onlyif mysql # aggregate syntax: 
query I rowsort label-7910
SELECT ALL SUM( ALL - 72 )
----
-72

skipif mysql # not compatible
query I rowsort label-7910
SELECT ALL SUM ( ALL - 72 )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-7911
SELECT 41 * COUNT( * ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-7911
SELECT 41 * COUNT ( * ) AS col1
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7912
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + + CAST( + + 88 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7912
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + + CAST ( + + 88 AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 30 - + 85
----
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-7914
SELECT DISTINCT - COUNT( * ) * + 10 AS col1, - 0 AS col1
----
-10
0

skipif mysql # not compatible
query II rowsort label-7914
SELECT DISTINCT - COUNT ( * ) * + 10 AS col1, - 0 AS col1
----
-10
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7915
SELECT DISTINCT 31 DIV - - COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-7915
SELECT DISTINCT 31 / - - COUNT ( * )
----
31

query I rowsort
SELECT + 48 + 30 AS col1
----
78

query I rowsort
SELECT - 70 + 61 AS col0
----
-9

query I rowsort
SELECT + ( - 94 ) AS col1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-7919
SELECT - 36 + - COUNT( * ) AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-7919
SELECT - 36 + - COUNT ( * ) AS col0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-7920
SELECT 43 + COUNT( * ) col2
----
44

skipif mysql # not compatible
query I rowsort label-7920
SELECT 43 + COUNT ( * ) col2
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-7921
SELECT 42 DIV ( 18 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-7921
SELECT 42 / ( 18 ) AS col2
----
2

query I rowsort
SELECT ALL - ( ( 19 ) ) col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-7923
SELECT 26 * + - MIN( - + 71 )
----
1846

skipif mysql # not compatible
query I rowsort label-7923
SELECT 26 * + - MIN ( - + 71 )
----
1846

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7924
SELECT ALL - CAST( NULL AS SIGNED ) / 46
----
NULL

skipif mysql # not compatible
query I rowsort label-7924
SELECT ALL - CAST ( NULL AS INTEGER ) / 46
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7925
SELECT + SUM( ALL 45 ) + NULLIF ( + 77, - 56 + - 86 ) AS col1
----
122

skipif mysql # not compatible
query I rowsort label-7925
SELECT + SUM ( ALL 45 ) + NULLIF ( + 77, - 56 + - 86 ) AS col1
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-7926
SELECT + + 79 * - COUNT( * ) AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-7926
SELECT + + 79 * - COUNT ( * ) AS col2
----
-79

query I rowsort
SELECT DISTINCT - 40 * - + 91
----
3640

onlyif mysql # DIV for integer division: 
query I rowsort label-7928
SELECT - 88 DIV - 15
----
5

skipif mysql # not compatible
query I rowsort label-7928
SELECT - 88 / - 15
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7929
SELECT ALL - 44 * - 42 * + COUNT( * ) AS col2
----
1848

skipif mysql # not compatible
query I rowsort label-7929
SELECT ALL - 44 * - 42 * + COUNT ( * ) AS col2
----
1848

onlyif mysql # aggregate syntax: 
query I rowsort label-7930
SELECT ALL COUNT( ALL - 99 ) + + 66
----
67

skipif mysql # not compatible
query I rowsort label-7930
SELECT ALL COUNT ( ALL - 99 ) + + 66
----
67

query I rowsort
SELECT 12 + - NULLIF ( 9, + 2 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7932
SELECT ALL COUNT( DISTINCT + ( + 70 ) )
----
1

skipif mysql # not compatible
query I rowsort label-7932
SELECT ALL COUNT ( DISTINCT + ( + 70 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7933
SELECT ( - 8 ) * + COUNT( * ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-7933
SELECT ( - 8 ) * + COUNT ( * ) AS col0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-7934
SELECT + 36 * - - COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-7934
SELECT + 36 * - - COUNT ( * )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7935
SELECT DISTINCT COUNT( 36 )
----
1

skipif mysql # not compatible
query I rowsort label-7935
SELECT DISTINCT COUNT ( 36 )
----
1

query I rowsort
SELECT + + 77 col2
----
77

query I rowsort
SELECT ALL + + 60 AS col1
----
60

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7938
SELECT MIN( + - CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7938
SELECT MIN ( + - CAST ( NULL AS REAL ) ) AS col0
----
NULL

query I rowsort
SELECT ALL + - 39 AS col0
----
-39

query I rowsort
SELECT ALL - 84 * + - 75 AS col2
----
6300

query I rowsort
SELECT 74 * + 93 AS col0
----
6882

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7942
SELECT 84 + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7942
SELECT 84 + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ( + + 17 ) AS col0
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-7944
SELECT ALL - + COUNT( * ), - 38 AS col1
----
-1
-38

skipif mysql # not compatible
query II rowsort label-7944
SELECT ALL - + COUNT ( * ), - 38 AS col1
----
-1
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7945
SELECT ALL 87 * + CAST( - 86 AS SIGNED ), - MIN( 24 ) AS col0
----
-7482
-24

skipif mysql # not compatible
query II rowsort label-7945
SELECT ALL 87 * + CAST ( - 86 AS INTEGER ), - MIN ( 24 ) AS col0
----
-7482
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7946
SELECT COUNT( * ) * + 86 col2
----
86

skipif mysql # not compatible
query I rowsort label-7946
SELECT COUNT ( * ) * + 86 col2
----
86

query I rowsort
SELECT ALL + 82 * 91
----
7462

onlyif mysql # DIV for integer division: 
query I rowsort label-7948
SELECT ALL - 2 DIV 1
----
-2

skipif mysql # not compatible
query I rowsort label-7948
SELECT ALL - 2 / 1
----
-2

query I rowsort
SELECT + 54 * 68
----
3672

onlyif mysql # aggregate syntax: 
query I rowsort label-7950
SELECT DISTINCT MAX( - + 30 ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-7950
SELECT DISTINCT MAX ( - + 30 ) AS col1
----
-30

query I rowsort
SELECT DISTINCT ( + - 73 )
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-7952
SELECT 10 * MIN( + 85 ) AS col2
----
850

skipif mysql # not compatible
query I rowsort label-7952
SELECT 10 * MIN ( + 85 ) AS col2
----
850

onlyif mysql # aggregate syntax: 
query I rowsort label-7953
SELECT DISTINCT NULLIF ( + 31, + + 17 * - COUNT( * ) + + - ( - COUNT( * ) ) )
----
31

skipif mysql # not compatible
query I rowsort label-7953
SELECT DISTINCT NULLIF ( + 31, + + 17 * - COUNT ( * ) + + - ( - COUNT ( * ) ) )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-7954
SELECT COUNT( * ) + + 87 * + 22
----
1915

skipif mysql # not compatible
query I rowsort label-7954
SELECT COUNT ( * ) + + 87 * + 22
----
1915

query I rowsort
SELECT ALL - ( - 11 )
----
11

query I rowsort
SELECT ALL 29 * - + 75
----
-2175

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7957
SELECT 16 * COUNT( * ) DIV - SUM( - 39 ) - - 21
----
21

skipif mysql # not compatible
query I rowsort label-7957
SELECT 16 * COUNT ( * ) / - SUM ( - 39 ) - - 21
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-7958
SELECT ALL 1 AS col2, + COUNT( * ) AS col2
----
1
1

skipif mysql # not compatible
query II rowsort label-7958
SELECT ALL 1 AS col2, + COUNT ( * ) AS col2
----
1
1

query I rowsort
SELECT - ( - - 69 ) col2
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7960
SELECT ( - COUNT( - CAST( NULL AS SIGNED ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-7960
SELECT ( - COUNT ( - CAST ( NULL AS INTEGER ) ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7961
SELECT ALL + ( ( + + CAST( + + AVG ( + CAST( 78 AS SIGNED ) ) AS SIGNED ) ) ) col2
----
78

skipif mysql # not compatible
query I rowsort label-7961
SELECT ALL + ( ( + + CAST ( + + AVG ( + CAST ( 78 AS INTEGER ) ) AS INTEGER ) ) ) col2
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7962
SELECT ALL 60 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7962
SELECT ALL 60 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7963
SELECT DISTINCT COUNT( * ) + + - 63 AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-7963
SELECT DISTINCT COUNT ( * ) + + - 63 AS col1
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-7964
SELECT COUNT( * ) - - + 77 * - - 89
----
6854

skipif mysql # not compatible
query I rowsort label-7964
SELECT COUNT ( * ) - - + 77 * - - 89
----
6854

query I rowsort
SELECT ALL - ( + 4 ) AS col1
----
-4

query I rowsort
SELECT - 93 + + 29 * - 40
----
-1253

query I rowsort
SELECT DISTINCT ( + 33 ) col1
----
33

query I rowsort
SELECT ALL - 91 + 73
----
-18

query I rowsort
SELECT 79 * - 84 col1
----
-6636

onlyif mysql # aggregate syntax: 
query I rowsort label-7970
SELECT ALL + 28 * COUNT( * ) col2
----
28

skipif mysql # not compatible
query I rowsort label-7970
SELECT ALL + 28 * COUNT ( * ) col2
----
28

query I rowsort
SELECT + 84 + + + 88 AS col1
----
172

onlyif mysql # aggregate syntax: 
query I rowsort label-7972
SELECT - 23 - COUNT( * )
----
-24

skipif mysql # not compatible
query I rowsort label-7972
SELECT - 23 - COUNT ( * )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7973
SELECT DISTINCT - 1 * + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-7973
SELECT DISTINCT - 1 * + COUNT ( * )
----
-1

query I rowsort
SELECT ALL + + 99 AS col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7975
SELECT DISTINCT - COUNT( * ) * - 50 * - COUNT( * ) - - 9
----
-41

skipif mysql # not compatible
query I rowsort label-7975
SELECT DISTINCT - COUNT ( * ) * - 50 * - COUNT ( * ) - - 9
----
-41

query I rowsort
SELECT ALL 1 * - - ( + 84 )
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-7977
SELECT ALL COUNT( * ) AS col0, 70 * + + ( 61 ) + - 89
----
1
4181

skipif mysql # not compatible
query II rowsort label-7977
SELECT ALL COUNT ( * ) AS col0, 70 * + + ( 61 ) + - 89
----
1
4181

query I rowsort
SELECT - ( + + 47 ) col2
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7979
SELECT ALL 63 * - COUNT( * )
----
-63

skipif mysql # not compatible
query I rowsort label-7979
SELECT ALL 63 * - COUNT ( * )
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-7980
SELECT ALL COALESCE ( ( COUNT( * ) ), 87 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7980
SELECT ALL COALESCE ( ( COUNT ( * ) ), 87 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7981
SELECT DISTINCT + - MAX( ALL 8 ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-7981
SELECT DISTINCT + - MAX ( ALL 8 ) AS col0
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-7982
SELECT + MIN( - 90 ) AS col2, 1
----
-90
1

skipif mysql # not compatible
query II rowsort label-7982
SELECT + MIN ( - 90 ) AS col2, 1
----
-90
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7983
SELECT - MIN( + 78 ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-7983
SELECT - MIN ( + 78 ) AS col2
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-7984
SELECT ALL - + ( COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7984
SELECT ALL - + ( COUNT ( * ) ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7985
SELECT + CAST( - ( - 92 ) AS SIGNED )
----
92

skipif mysql # not compatible
query I rowsort label-7985
SELECT + CAST ( - ( - 92 ) AS INTEGER )
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-7986
SELECT ALL COUNT( * ) * 86 AS col2, + 72 AS col2
----
86
72

skipif mysql # not compatible
query II rowsort label-7986
SELECT ALL COUNT ( * ) * 86 AS col2, + 72 AS col2
----
86
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7987
SELECT ( - MIN( + 20 ) ) * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7987
SELECT ( - MIN ( + 20 ) ) * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7988
SELECT ( - NULLIF ( COUNT( ALL - 83 ), - 18 ) ) * - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-7988
SELECT ( - NULLIF ( COUNT ( ALL - 83 ), - 18 ) ) * - COUNT ( * )
----
1

query II rowsort
SELECT DISTINCT + 54 - 94, + 62 AS col0
----
-40
62

onlyif mysql # aggregate syntax: 
query I rowsort label-7990
SELECT 45 + - COUNT( * )
----
44

skipif mysql # not compatible
query I rowsort label-7990
SELECT 45 + - COUNT ( * )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7991
SELECT ALL COUNT( * ) * - COUNT( * ) + + + 96 AS col1
----
95

skipif mysql # not compatible
query I rowsort label-7991
SELECT ALL COUNT ( * ) * - COUNT ( * ) + + + 96 AS col1
----
95

query I rowsort
SELECT DISTINCT + + ( + - 60 ) AS col1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-7993
SELECT DISTINCT COUNT( * ) * + COALESCE ( - 36, + 18 ) col0
----
-36

skipif mysql # not compatible
query I rowsort label-7993
SELECT DISTINCT COUNT ( * ) * + COALESCE ( - 36, + 18 ) col0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-7994
SELECT ALL - 52 * + + COUNT( * ) + + + 78 AS col0
----
26

skipif mysql # not compatible
query I rowsort label-7994
SELECT ALL - 52 * + + COUNT ( * ) + + + 78 AS col0
----
26

query I rowsort
SELECT - 81 * + - 82 AS col0
----
6642

onlyif mysql # aggregate syntax: 
query II rowsort label-7996
SELECT ALL - ( - COUNT( DISTINCT + 55 ) ), 86 AS col0
----
1
86

skipif mysql # not compatible
query II rowsort label-7996
SELECT ALL - ( - COUNT ( DISTINCT + 55 ) ), 86 AS col0
----
1
86

onlyif mysql # aggregate syntax: 
query I rowsort label-7997
SELECT DISTINCT MAX( DISTINCT 93 )
----
93

skipif mysql # not compatible
query I rowsort label-7997
SELECT DISTINCT MAX ( DISTINCT 93 )
----
93

query I rowsort
SELECT - 79 * 72
----
-5688

query I rowsort
SELECT 23 + + 36
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8000
SELECT 15 * + COUNT( * ) col1
----
15

skipif mysql # not compatible
query I rowsort label-8000
SELECT 15 * + COUNT ( * ) col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8001
SELECT DISTINCT COUNT( * ) + - 74 AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-8001
SELECT DISTINCT COUNT ( * ) + - 74 AS col0
----
-73

query I rowsort
SELECT 27 * 34 AS col2
----
918

onlyif mysql # aggregate syntax: 
query I rowsort label-8003
SELECT ALL COUNT( * ) - - COUNT( - 95 )
----
2

skipif mysql # not compatible
query I rowsort label-8003
SELECT ALL COUNT ( * ) - - COUNT ( - 95 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8004
SELECT DISTINCT + COUNT( * ) * - 24
----
-24

skipif mysql # not compatible
query I rowsort label-8004
SELECT DISTINCT + COUNT ( * ) * - 24
----
-24

query I rowsort
SELECT DISTINCT 44 col1
----
44

query I rowsort
SELECT ALL ( + + 44 ) + + 27
----
71

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8007
SELECT ALL COUNT( + CAST( NULL AS DECIMAL ) ), 4 AS col1
----
0
4

skipif mysql # not compatible
query II rowsort label-8007
SELECT ALL COUNT ( + CAST ( NULL AS REAL ) ), 4 AS col1
----
0
4

query I rowsort
SELECT - 40 * 37 AS col1
----
-1480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8009
SELECT - CAST( NULL AS SIGNED ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8009
SELECT - CAST ( NULL AS INTEGER ) * + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8010
SELECT - - 8 AS col2, COUNT( * ) AS col0
----
8
1

skipif mysql # not compatible
query II rowsort label-8010
SELECT - - 8 AS col2, COUNT ( * ) AS col0
----
8
1

query I rowsort
SELECT ALL - 21 * - 61
----
1281

query I rowsort
SELECT - 24 - - 92 AS col2
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8013
SELECT - NULLIF ( + 86, CAST( AVG ( 88 ) AS SIGNED ) )
----
-86

skipif mysql # not compatible
query I rowsort label-8013
SELECT - NULLIF ( + 86, CAST ( AVG ( 88 ) AS INTEGER ) )
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-8014
SELECT ALL 45 + + ( + - COUNT( * ) ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-8014
SELECT ALL 45 + + ( + - COUNT ( * ) ) AS col0
----
44

query I rowsort
SELECT ALL + 76 - + 66
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-8016
SELECT 56 DIV - 27 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-8016
SELECT 56 / - 27 AS col2
----
-2

query I rowsort
SELECT ALL 33 + + 94 * - - 19
----
1819

query I rowsort
SELECT 91 * 66 AS col2
----
6006

query II rowsort
SELECT + 35 AS col0, 95
----
35
95

query I rowsort
SELECT + 17 * + - 10 col1
----
-170

onlyif mysql # aggregate syntax: 
query I rowsort label-8021
SELECT ALL + COUNT( * ) + - + 6 - - 14
----
9

skipif mysql # not compatible
query I rowsort label-8021
SELECT ALL + COUNT ( * ) + - + 6 - - 14
----
9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8022
SELECT - CAST( NULL AS DECIMAL ) + - + 41 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8022
SELECT - CAST ( NULL AS REAL ) + - + 41 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8023
SELECT ALL + MAX( ALL - + 80 )
----
-80

skipif mysql # not compatible
query I rowsort label-8023
SELECT ALL + MAX ( ALL - + 80 )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-8024
SELECT ALL NULLIF ( + + 74, - - COUNT( * ) ) * 76
----
5624

skipif mysql # not compatible
query I rowsort label-8024
SELECT ALL NULLIF ( + + 74, - - COUNT ( * ) ) * 76
----
5624

onlyif mysql # aggregate syntax: 
query I rowsort label-8025
SELECT ALL - SUM( ALL + - 49 ) + + COUNT( * ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-8025
SELECT ALL - SUM ( ALL + - 49 ) + + COUNT ( * ) AS col1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8026
SELECT DISTINCT SUM( + - 32 ) AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-8026
SELECT DISTINCT SUM ( + - 32 ) AS col0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-8027
SELECT + - COUNT( 13 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8027
SELECT + - COUNT ( 13 ) AS col2
----
-1

query I rowsort
SELECT 90 * + 47 AS col1
----
4230

onlyif mysql # aggregate syntax: 
query I rowsort label-8029
SELECT ALL MIN( DISTINCT 98 ) col1
----
98

skipif mysql # not compatible
query I rowsort label-8029
SELECT ALL MIN ( DISTINCT 98 ) col1
----
98

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8030
SELECT DISTINCT - 13 * CAST( 26 AS SIGNED ) DIV + 24 AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-8030
SELECT DISTINCT - 13 * CAST ( 26 AS INTEGER ) / + 24 AS col0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-8031
SELECT 35 * - - COUNT( * )
----
35

skipif mysql # not compatible
query I rowsort label-8031
SELECT 35 * - - COUNT ( * )
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8032
SELECT COALESCE ( - - 7, + + 23, + COUNT( * ) * + COUNT( * ) ), MIN( ALL - - CAST( NULL AS SIGNED ) ) AS col2
----
7
NULL

skipif mysql # not compatible
query II rowsort label-8032
SELECT COALESCE ( - - 7, + + 23, + COUNT ( * ) * + COUNT ( * ) ), MIN ( ALL - - CAST ( NULL AS INTEGER ) ) AS col2
----
7
NULL

query I rowsort
SELECT ALL ( ( - 32 ) )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-8034
SELECT - MIN( DISTINCT + 26 )
----
-26

skipif mysql # not compatible
query I rowsort label-8034
SELECT - MIN ( DISTINCT + 26 )
----
-26

query I rowsort
SELECT - COALESCE ( 65, + 46 ) AS col0
----
-65

query I rowsort
SELECT DISTINCT - ( - 61 ) + 25
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8037
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - 67 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8037
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - 67 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8038
SELECT - MIN( + 40 ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-8038
SELECT - MIN ( + 40 ) AS col1
----
-40

query I rowsort
SELECT ALL 65 + 13
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8040
SELECT + CAST( 46 AS SIGNED )
----
46

skipif mysql # not compatible
query I rowsort label-8040
SELECT + CAST ( 46 AS INTEGER )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8041
SELECT ALL + MIN( ALL + 53 ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-8041
SELECT ALL + MIN ( ALL + 53 ) AS col0
----
53

query I rowsort
SELECT ALL + 51 col0
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8043
SELECT - COUNT( * ) DIV ( - 8 )
----
0

skipif mysql # not compatible
query I rowsort label-8043
SELECT - COUNT ( * ) / ( - 8 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8044
SELECT - COUNT( * ) + CAST( + 1 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-8044
SELECT - COUNT ( * ) + CAST ( + 1 AS INTEGER )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8045
SELECT ALL - 32 * 72 + + 83 DIV 37 AS col2
----
-2302

skipif mysql # not compatible
query I rowsort label-8045
SELECT ALL - 32 * 72 + + 83 / 37 AS col2
----
-2302

query I rowsort
SELECT DISTINCT - 36 + - ( - 76 - 39 ) AS col0
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8047
SELECT ALL CAST( NULL AS SIGNED ) + + 82 + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-8047
SELECT ALL CAST ( NULL AS INTEGER ) + + 82 + 8
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8048
SELECT ALL CAST( NULL AS SIGNED ) + - 21
----
NULL

skipif mysql # not compatible
query I rowsort label-8048
SELECT ALL CAST ( NULL AS INTEGER ) + - 21
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8049
SELECT - ( CAST( COUNT( * ) AS SIGNED ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8049
SELECT - ( CAST ( COUNT ( * ) AS INTEGER ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8050
SELECT COUNT( * ) + - 48 * + 84 AS col2
----
-4031

skipif mysql # not compatible
query I rowsort label-8050
SELECT COUNT ( * ) + - 48 * + 84 AS col2
----
-4031

query II rowsort
SELECT - 50, 20 AS col1
----
-50
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8052
SELECT + SUM( ALL - - 13 )
----
13

skipif mysql # not compatible
query I rowsort label-8052
SELECT + SUM ( ALL - - 13 )
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8053
SELECT ALL - 42 DIV - + COUNT( * )
----
42

skipif mysql # not compatible
query I rowsort label-8053
SELECT ALL - 42 / - + COUNT ( * )
----
42

query I rowsort
SELECT + ( - 4 ) AS col0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-8055
SELECT + 17 * + - ( + COUNT( * ) ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-8055
SELECT + 17 * + - ( + COUNT ( * ) ) AS col1
----
-17

query II rowsort
SELECT DISTINCT - 71, 12 AS col1
----
-71
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8057
SELECT DISTINCT + MIN( ALL + 9 )
----
9

skipif mysql # not compatible
query I rowsort label-8057
SELECT DISTINCT + MIN ( ALL + 9 )
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8058
SELECT + COUNT( * ) DIV + COUNT( * ) AS col0, - 97
----
1
-97

skipif mysql # not compatible
query II rowsort label-8058
SELECT + COUNT ( * ) / + COUNT ( * ) AS col0, - 97
----
1
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8059
SELECT ALL + COUNT( 56 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-8059
SELECT ALL + COUNT ( 56 ) col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8060
SELECT + + CAST( NULL AS SIGNED ) * - - 91 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8060
SELECT + + CAST ( NULL AS INTEGER ) * - - 91 * - COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8061
SELECT + 1 DIV ( - - 30 )
----
0

skipif mysql # not compatible
query I rowsort label-8061
SELECT + 1 / ( - - 30 )
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8062
SELECT + - ( + - 67 ) DIV + CAST( + 4 AS SIGNED )
----
16

skipif mysql # not compatible
query I rowsort label-8062
SELECT + - ( + - 67 ) / + CAST ( + 4 AS INTEGER )
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8063
SELECT DISTINCT + 53 DIV COUNT( * ) * + 95 AS col2
----
5035

skipif mysql # not compatible
query I rowsort label-8063
SELECT DISTINCT + 53 / COUNT ( * ) * + 95 AS col2
----
5035

query I rowsort
SELECT - ( 32 ) AS col0
----
-32

query I rowsort
SELECT ALL 39 + - - 47
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-8066
SELECT DISTINCT + 61 DIV + 44 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8066
SELECT DISTINCT + 61 / + 44 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8067
SELECT ALL + - COUNT( * ) * + 37
----
-37

skipif mysql # not compatible
query I rowsort label-8067
SELECT ALL + - COUNT ( * ) * + 37
----
-37

query I rowsort
SELECT DISTINCT + 7 * - 71 col1
----
-497

query I rowsort
SELECT ALL - + 53 AS col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-8070
SELECT DISTINCT NULLIF ( 73, - COUNT( * ) ) * - COUNT( * ) * - 77 AS col2
----
5621

skipif mysql # not compatible
query I rowsort label-8070
SELECT DISTINCT NULLIF ( 73, - COUNT ( * ) ) * - COUNT ( * ) * - 77 AS col2
----
5621

query II rowsort
SELECT DISTINCT 18 AS col0, 34
----
18
34

query I rowsort
SELECT + + 82 col2
----
82

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8073
SELECT DISTINCT CAST( NULL AS DECIMAL ) + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8073
SELECT DISTINCT CAST ( NULL AS REAL ) + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8074
SELECT COUNT( * ) * + - 96 AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-8074
SELECT COUNT ( * ) * + - 96 AS col0
----
-96

onlyif mysql # DIV for integer division: 
query II rowsort label-8075
SELECT DISTINCT 26 DIV - 48, + ( + - 14 ) DIV - - 90 AS col2
----
0
0

skipif mysql # not compatible
query II rowsort label-8075
SELECT DISTINCT 26 / - 48, + ( + - 14 ) / - - 90 AS col2
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8076
SELECT ALL COUNT( ALL + + 19 )
----
1

skipif mysql # not compatible
query I rowsort label-8076
SELECT ALL COUNT ( ALL + + 19 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8077
SELECT - COUNT( CAST( NULL AS SIGNED ) ) DIV CAST( 7 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-8077
SELECT - COUNT ( CAST ( NULL AS INTEGER ) ) / CAST ( 7 AS INTEGER )
----
0

query II rowsort
SELECT + 50 col2, + 60
----
50
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8079
SELECT ALL + CAST( NULL AS SIGNED ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8079
SELECT ALL + CAST ( NULL AS INTEGER ) * + COUNT ( * )
----
NULL

query I rowsort
SELECT ( + ( - ( + + 37 ) ) )
----
-37

query I rowsort
SELECT + ( + + 92 )
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-8082
SELECT ( - + 86 ) col0, - COUNT( * )
----
-86
-1

skipif mysql # not compatible
query II rowsort label-8082
SELECT ( - + 86 ) col0, - COUNT ( * )
----
-86
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8083
SELECT ALL COUNT( * ) * - + 95 col2, 16 col1
----
-95
16

skipif mysql # not compatible
query II rowsort label-8083
SELECT ALL COUNT ( * ) * - + 95 col2, 16 col1
----
-95
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8084
SELECT DISTINCT - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8084
SELECT DISTINCT - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 44 * - 56
----
-2464

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8086
SELECT - COUNT( * ) / CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8086
SELECT - COUNT ( * ) / CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL 66 * - - ( + 74 ) + 44 AS col0
----
4928

query I rowsort
SELECT ALL - 98 + 69 AS col1
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-8089
SELECT - 3 - ( + + 42 ) + COUNT( * )
----
-44

skipif mysql # not compatible
query I rowsort label-8089
SELECT - 3 - ( + + 42 ) + COUNT ( * )
----
-44

query I rowsort
SELECT + 89 + - 99 AS col2
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8091
SELECT - + 16 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8091
SELECT - + 16 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8092
SELECT - SUM( ALL - 38 )
----
38

skipif mysql # not compatible
query I rowsort label-8092
SELECT - SUM ( ALL - 38 )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8093
SELECT + COUNT( * ) + ( COUNT( * ) ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-8093
SELECT + COUNT ( * ) + ( COUNT ( * ) ) AS col0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8094
SELECT ( - CAST( 11 AS SIGNED ) ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-8094
SELECT ( - CAST ( 11 AS INTEGER ) ) AS col2
----
-11

query II rowsort
SELECT ALL - 3 * + 64, + 62 AS col1
----
-192
62

query I rowsort
SELECT DISTINCT COALESCE ( + 30, + 78 ) AS col2
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8097
SELECT CAST( - ( 30 ) AS SIGNED )
----
-30

skipif mysql # not compatible
query I rowsort label-8097
SELECT CAST ( - ( 30 ) AS INTEGER )
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8098
SELECT 85 - 82 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8098
SELECT 85 - 82 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 44 + - 74
----
-30

query I rowsort
SELECT ALL ( - ( - 69 ) ) + - - 79
----
148

query I rowsort
SELECT DISTINCT - 62 + ( + 48 ) AS col1
----
-14

query I rowsort
SELECT DISTINCT - - ( + - 85 ) AS col2
----
-85

query I rowsort
SELECT - ( 85 ) AS col0
----
-85

query I rowsort
SELECT - ( - - ( - - 26 ) )
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8105
SELECT + COUNT( ALL - CAST( NULL AS SIGNED ) ) + + 22
----
22

skipif mysql # not compatible
query I rowsort label-8105
SELECT + COUNT ( ALL - CAST ( NULL AS INTEGER ) ) + + 22
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8106
SELECT DISTINCT MIN( DISTINCT + + 15 ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-8106
SELECT DISTINCT MIN ( DISTINCT + + 15 ) AS col2
----
15

query I rowsort
SELECT DISTINCT - + ( + - 24 ) AS col0
----
24

query I rowsort
SELECT ALL + + 76 + + 46 AS col1
----
122

query I rowsort
SELECT DISTINCT - + 99 AS col0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8110
SELECT COUNT( * ) * + 7 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-8110
SELECT COUNT ( * ) * + 7 AS col0
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8111
SELECT DISTINCT 23 DIV + COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-8111
SELECT DISTINCT 23 / + COUNT ( * )
----
23

query I rowsort
SELECT ALL ( - ( + 31 ) ) + + 66 AS col0
----
35

query I rowsort
SELECT ALL - + 12 + ( 25 ) * + 17
----
413

query I rowsort
SELECT 41 * 35 AS col2
----
1435

onlyif mysql # aggregate syntax: 
query I rowsort label-8115
SELECT + COUNT( * ) + + 12
----
13

skipif mysql # not compatible
query I rowsort label-8115
SELECT + COUNT ( * ) + + 12
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8116
SELECT ALL + MAX( ( - - 61 ) ) col0
----
61

skipif mysql # not compatible
query I rowsort label-8116
SELECT ALL + MAX ( ( - - 61 ) ) col0
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8117
SELECT ALL + CAST( NULL AS SIGNED ) * - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8117
SELECT ALL + CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8118
SELECT DISTINCT - CAST( ( - 20 ) AS SIGNED ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-8118
SELECT DISTINCT - CAST ( ( - 20 ) AS INTEGER ) AS col0
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8119
SELECT + CAST( - + 9 AS SIGNED ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-8119
SELECT + CAST ( - + 9 AS INTEGER ) AS col1
----
-9

query I rowsort
SELECT ( - - 1 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8121
SELECT - ( + 88 ) / COUNT( * ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8121
SELECT - ( + 88 ) / COUNT ( * ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8122
SELECT DISTINCT COUNT( * ) * - 59 AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-8122
SELECT DISTINCT COUNT ( * ) * - 59 AS col2
----
-59

query I rowsort
SELECT ( - 37 ) * 16 AS col1
----
-592

onlyif mysql # aggregate syntax: 
query I rowsort label-8124
SELECT - 1 - + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8124
SELECT - 1 - + - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8125
SELECT 1 - COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8125
SELECT 1 - COUNT ( * ) AS col1
----
0

query I rowsort
SELECT - ( - 89 ) AS col0
----
89

query I rowsort
SELECT 50 * + 65 AS col2
----
3250

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8128
SELECT DISTINCT - 75 / ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8128
SELECT DISTINCT - 75 / ( CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT 42 AS col0, ( 45 ) AS col2
----
42
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8130
SELECT ALL 67 * + - ( ( - - COUNT( DISTINCT 31 ) ) )
----
-67

skipif mysql # not compatible
query I rowsort label-8130
SELECT ALL 67 * + - ( ( - - COUNT ( DISTINCT 31 ) ) )
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8131
SELECT + ( + 26 ) * + CAST( - COUNT( * ) AS SIGNED ) AS col0, - COUNT( * ) + - - 31 col1
----
-26
30

skipif mysql # not compatible
query II rowsort label-8131
SELECT + ( + 26 ) * + CAST ( - COUNT ( * ) AS INTEGER ) AS col0, - COUNT ( * ) + - - 31 col1
----
-26
30

query I rowsort
SELECT ALL - ( - - 72 ) AS col2
----
-72

query I rowsort
SELECT ALL - 69 * - 36 AS col1
----
2484

query I rowsort
SELECT - - 36 + + + 88 AS col0
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-8135
SELECT + + COUNT( ALL - 94 ) + + 68
----
69

skipif mysql # not compatible
query I rowsort label-8135
SELECT + + COUNT ( ALL - 94 ) + + 68
----
69

query I rowsort
SELECT ALL + 48 * + 89 - 12 AS col2
----
4260

onlyif mysql # DIV for integer division: 
query I rowsort label-8137
SELECT - 86 DIV - 78
----
1

skipif mysql # not compatible
query I rowsort label-8137
SELECT - 86 / - 78
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8138
SELECT DISTINCT + 83 AS col0, - COUNT( * )
----
83
-1

skipif mysql # not compatible
query II rowsort label-8138
SELECT DISTINCT + 83 AS col0, - COUNT ( * )
----
83
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8139
SELECT ALL + MAX( - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) AS col0, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-8139
SELECT ALL + MAX ( - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col0, COUNT ( * )
----
NULL
1

query II rowsort
SELECT ALL 24 col1, + 35
----
24
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8141
SELECT - CAST( + - 5 AS SIGNED ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-8141
SELECT - CAST ( + - 5 AS INTEGER ) AS col1
----
5

query I rowsort
SELECT 22 * - - 71 AS col1
----
1562

query I rowsort
SELECT + + ( 51 )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8144
SELECT 64 - + - COUNT( * ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-8144
SELECT 64 - + - COUNT ( * ) AS col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8145
SELECT DISTINCT + - COALESCE ( + + 73, MAX( DISTINCT - 22 ) ) + SUM( + 43 ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-8145
SELECT DISTINCT + - COALESCE ( + + 73, MAX ( DISTINCT - 22 ) ) + SUM ( + 43 ) AS col1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-8146
SELECT - - ( + MAX( + + 4 ) ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-8146
SELECT - - ( + MAX ( + + 4 ) ) AS col0
----
4

query I rowsort
SELECT - ( + - 92 )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8148
SELECT ALL COUNT( + + 84 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8148
SELECT ALL COUNT ( + + 84 ) AS col2
----
1

query II rowsort
SELECT - 42 AS col2, - 42
----
-42
-42

query I rowsort
SELECT ALL + 42 * + 98 AS col2
----
4116

onlyif mysql # aggregate syntax: 
query I rowsort label-8151
SELECT + COUNT( * ) + + 0 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8151
SELECT + COUNT ( * ) + + 0 AS col2
----
1

query I rowsort
SELECT ALL + ( - 93 ) AS col0
----
-93

query I rowsort
SELECT ALL - 79 * 3
----
-237

query I rowsort
SELECT - 73 * 47 AS col0
----
-3431

onlyif mysql # aggregate syntax: 
query II rowsort label-8155
SELECT ALL + 58, COUNT( * ) AS col0
----
58
1

skipif mysql # not compatible
query II rowsort label-8155
SELECT ALL + 58, COUNT ( * ) AS col0
----
58
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8156
SELECT DISTINCT + + 78 AS col2, + COUNT( * )
----
78
1

skipif mysql # not compatible
query II rowsort label-8156
SELECT DISTINCT + + 78 AS col2, + COUNT ( * )
----
78
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8157
SELECT DISTINCT - 13 * + COUNT( * ) AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-8157
SELECT DISTINCT - 13 * + COUNT ( * ) AS col2
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-8158
SELECT ALL COUNT( DISTINCT + - 11 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8158
SELECT ALL COUNT ( DISTINCT + - 11 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8159
SELECT DISTINCT + COUNT( DISTINCT - 38 )
----
1

skipif mysql # not compatible
query I rowsort label-8159
SELECT DISTINCT + COUNT ( DISTINCT - 38 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8160
SELECT 12 * COUNT( * ) + - + 70
----
-58

skipif mysql # not compatible
query I rowsort label-8160
SELECT 12 * COUNT ( * ) + - + 70
----
-58

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8161
SELECT ALL - COUNT( ALL + CAST( - 25 AS DECIMAL ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8161
SELECT ALL - COUNT ( ALL + CAST ( - 25 AS REAL ) ) AS col0
----
-1

query I rowsort
SELECT 60 * + + 22 AS col2
----
1320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8163
SELECT + NULLIF ( + COUNT( * ), - 52 ) * + COUNT( * ) * - CAST( NULL AS SIGNED ) / + 45
----
NULL

skipif mysql # not compatible
query I rowsort label-8163
SELECT + NULLIF ( + COUNT ( * ), - 52 ) * + COUNT ( * ) * - CAST ( NULL AS INTEGER ) / + 45
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8164
SELECT + 54 * - + 8 + + COUNT( * )
----
-431

skipif mysql # not compatible
query I rowsort label-8164
SELECT + 54 * - + 8 + + COUNT ( * )
----
-431

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8165
SELECT - - ( - 7 ) - - CAST( NULL AS SIGNED ) AS col0, 58 - + 68 AS col0
----
NULL
-10

skipif mysql # not compatible
query II rowsort label-8165
SELECT - - ( - 7 ) - - CAST ( NULL AS INTEGER ) AS col0, 58 - + 68 AS col0
----
NULL
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8166
SELECT + CAST( NULL AS SIGNED ) + - + COUNT( * ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8166
SELECT + CAST ( NULL AS INTEGER ) + - + COUNT ( * ) * COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8167
SELECT + 57 * + CAST( - - 57 AS SIGNED ) col0
----
3249

skipif mysql # not compatible
query I rowsort label-8167
SELECT + 57 * + CAST ( - - 57 AS INTEGER ) col0
----
3249

query I rowsort
SELECT ALL - 42 + 16 AS col2
----
-26

query I rowsort
SELECT + 39 * + 74
----
2886

query I rowsort
SELECT DISTINCT 17 - - + 1 AS col1
----
18

query I rowsort
SELECT ALL - 2 * - NULLIF ( + 76, 79 ) * + + 39
----
5928

onlyif mysql # DIV for integer division: 
query I rowsort label-8172
SELECT ALL 45 DIV + - 97
----
0

skipif mysql # not compatible
query I rowsort label-8172
SELECT ALL 45 / + - 97
----
0

query I rowsort
SELECT DISTINCT + 93 * + 90 AS col0
----
8370

query I rowsort
SELECT 41 * + 49 AS col0
----
2009

onlyif mysql # aggregate syntax: 
query I rowsort label-8175
SELECT COUNT( * ) + + - 89
----
-88

skipif mysql # not compatible
query I rowsort label-8175
SELECT COUNT ( * ) + + - 89
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-8176
SELECT DISTINCT + COUNT( * ) * - 74 col2
----
-74

skipif mysql # not compatible
query I rowsort label-8176
SELECT DISTINCT + COUNT ( * ) * - 74 col2
----
-74

query I rowsort
SELECT ALL + 86 + 57
----
143

query II rowsort
SELECT ALL 58 AS col0, 78 * - 82 AS col1
----
58
-6396

query II rowsort
SELECT - 70, - NULLIF ( + 38, 81 ) AS col0
----
-70
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-8180
SELECT ALL COUNT( * ) AS col1, - 50
----
1
-50

skipif mysql # not compatible
query II rowsort label-8180
SELECT ALL COUNT ( * ) AS col1, - 50
----
1
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8181
SELECT DISTINCT SUM( - 38 ) * - 53 + COALESCE ( - 10, 42 DIV 51, - 5 ) AS col1
----
2004

skipif mysql # not compatible
query I rowsort label-8181
SELECT DISTINCT SUM ( - 38 ) * - 53 + COALESCE ( - 10, 42 / 51, - 5 ) AS col1
----
2004

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8182
SELECT CAST( + - 21 AS SIGNED )
----
-21

skipif mysql # not compatible
query I rowsort label-8182
SELECT CAST ( + - 21 AS INTEGER )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-8183
SELECT + MAX( + 44 )
----
44

skipif mysql # not compatible
query I rowsort label-8183
SELECT + MAX ( + 44 )
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8184
SELECT - CAST( NULL AS SIGNED ) - - - SUM( 80 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8184
SELECT - CAST ( NULL AS INTEGER ) - - - SUM ( 80 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8185
SELECT DISTINCT - COUNT( * ) DIV - ( + + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-8185
SELECT DISTINCT - COUNT ( * ) / - ( + + COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8186
SELECT ALL + COUNT( DISTINCT 34 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8186
SELECT ALL + COUNT ( DISTINCT 34 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8187
SELECT ALL 33 + COUNT( * ) * 36
----
69

skipif mysql # not compatible
query I rowsort label-8187
SELECT ALL 33 + COUNT ( * ) * 36
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8188
SELECT MAX( DISTINCT 72 ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-8188
SELECT MAX ( DISTINCT 72 ) AS col0
----
72

query II rowsort
SELECT DISTINCT 32 AS col2, 54
----
32
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8190
SELECT COUNT( ALL 76 ) * - + 93 AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-8190
SELECT COUNT ( ALL 76 ) * - + 93 AS col0
----
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-8191
SELECT ALL + COUNT( * ) - 22 AS col1, - 27 AS col0
----
-21
-27

skipif mysql # not compatible
query II rowsort label-8191
SELECT ALL + COUNT ( * ) - 22 AS col1, - 27 AS col0
----
-21
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8192
SELECT DISTINCT - + CAST( - 20 AS SIGNED ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-8192
SELECT DISTINCT - + CAST ( - 20 AS INTEGER ) AS col2
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-8193
SELECT - - COUNT( * ) AS col0, + COUNT( * ) AS col1
----
1
1

skipif mysql # not compatible
query II rowsort label-8193
SELECT - - COUNT ( * ) AS col0, + COUNT ( * ) AS col1
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8194
SELECT ALL COUNT( * ) * + 38
----
38

skipif mysql # not compatible
query I rowsort label-8194
SELECT ALL COUNT ( * ) * + 38
----
38

query I rowsort
SELECT ALL 28 * + 44
----
1232

onlyif mysql # aggregate syntax: 
query I rowsort label-8196
SELECT - 56 * - COUNT( * ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-8196
SELECT - 56 * - COUNT ( * ) AS col2
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8197
SELECT ALL + + 60 DIV + COUNT( * ) + + + ( - + 56 ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-8197
SELECT ALL + + 60 / + COUNT ( * ) + + + ( - + 56 ) AS col2
----
4

query I rowsort
SELECT + ( - 16 ) AS col2
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8199
SELECT - CAST( NULL AS SIGNED ) * + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-8199
SELECT - CAST ( NULL AS INTEGER ) * + 86
----
NULL

query I rowsort
SELECT DISTINCT + + 16 * + 93 AS col0
----
1488

onlyif mysql # aggregate syntax: 
query I rowsort label-8201
SELECT ALL - ( - 98 ) + + SUM( 95 ) + + + 51
----
244

skipif mysql # not compatible
query I rowsort label-8201
SELECT ALL - ( - 98 ) + + SUM ( 95 ) + + + 51
----
244

query I rowsort
SELECT ALL - ( - 68 )
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-8203
SELECT ALL + 50 DIV 29 * - + 94 AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-8203
SELECT ALL + 50 / 29 * - + 94 AS col0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-8204
SELECT COUNT( * ) + COUNT( DISTINCT - - 2 )
----
2

skipif mysql # not compatible
query I rowsort label-8204
SELECT COUNT ( * ) + COUNT ( DISTINCT - - 2 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8205
SELECT 99 + COUNT( * )
----
100

skipif mysql # not compatible
query I rowsort label-8205
SELECT 99 + COUNT ( * )
----
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8206
SELECT ALL + - CAST( NULL AS SIGNED ) * + MAX( - - 39 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8206
SELECT ALL + - CAST ( NULL AS INTEGER ) * + MAX ( - - 39 )
----
NULL

query I rowsort
SELECT 20 + + 87 AS col2
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-8208
SELECT ALL COUNT( DISTINCT - 66 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8208
SELECT ALL COUNT ( DISTINCT - 66 ) AS col0
----
1

query I rowsort
SELECT DISTINCT + + 6 AS col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8210
SELECT + 11 + - COUNT( * )
----
10

skipif mysql # not compatible
query I rowsort label-8210
SELECT + 11 + - COUNT ( * )
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8211
SELECT ALL - COUNT( * ) * + + 29 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8211
SELECT ALL - COUNT ( * ) * + + 29 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8212
SELECT + NULLIF ( - COALESCE ( + COUNT( * ), + - 51, 45 ), + + ( + 44 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8212
SELECT + NULLIF ( - COALESCE ( + COUNT ( * ), + - 51, 45 ), + + ( + 44 ) )
----
-1

query II rowsort
SELECT + 86, + 41 AS col0
----
86
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8214
SELECT - COUNT( * ) * + - ( MIN( + 1 ) ) + + - 1
----
0

skipif mysql # not compatible
query I rowsort label-8214
SELECT - COUNT ( * ) * + - ( MIN ( + 1 ) ) + + - 1
----
0

query I rowsort
SELECT + 9 + 40 + + NULLIF ( - 60, + 51 ) + 36 * - 20
----
-731

onlyif mysql # aggregate syntax: 
query I rowsort label-8216
SELECT + COUNT( - 56 ) * - + 68 col2
----
-68

skipif mysql # not compatible
query I rowsort label-8216
SELECT + COUNT ( - 56 ) * - + 68 col2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-8217
SELECT DISTINCT ( + COUNT( * ) ) + + 38 AS col1
----
39

skipif mysql # not compatible
query I rowsort label-8217
SELECT DISTINCT ( + COUNT ( * ) ) + + 38 AS col1
----
39

query I rowsort
SELECT DISTINCT - 32 + 5
----
-27

query I rowsort
SELECT 55 * + + 75
----
4125

query I rowsort
SELECT - + 35 * - + 25 AS col2
----
875

onlyif mysql # aggregate syntax: 
query I rowsort label-8221
SELECT - SUM( + 97 )
----
-97

skipif mysql # not compatible
query I rowsort label-8221
SELECT - SUM ( + 97 )
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8222
SELECT DISTINCT CAST( NULL AS SIGNED ) + 64 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8222
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 64 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8223
SELECT ALL 8 + + - COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-8223
SELECT ALL 8 + + - COUNT ( * )
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-8224
SELECT ALL 75 DIV + + 10
----
7

skipif mysql # not compatible
query I rowsort label-8224
SELECT ALL 75 / + + 10
----
7

query I rowsort
SELECT + ( + 19 ) AS col2
----
19

query I rowsort
SELECT - 25 * + 70 + - 61 * + - 24 AS col0
----
-286

query I rowsort
SELECT COALESCE ( + 49, + - 33 ) AS col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8228
SELECT + 25 * - - 0 + - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8228
SELECT + 25 * - - 0 + - COUNT ( * ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8229
SELECT - - MAX( ALL - 59 ) + + 87 AS col2
----
28

skipif mysql # not compatible
query I rowsort label-8229
SELECT - - MAX ( ALL - 59 ) + + 87 AS col2
----
28

query I rowsort
SELECT - 96 + - 83 AS col0
----
-179

onlyif mysql # aggregate syntax: 
query I rowsort label-8231
SELECT - MIN( + - 55 ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-8231
SELECT - MIN ( + - 55 ) AS col0
----
55

query I rowsort
SELECT + ( ( + - 33 ) )
----
-33

query I rowsort
SELECT DISTINCT ( + - 36 ) * 6 AS col2
----
-216

onlyif mysql # aggregate syntax: 
query I rowsort label-8234
SELECT + COUNT( - 38 )
----
1

skipif mysql # not compatible
query I rowsort label-8234
SELECT + COUNT ( - 38 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8235
SELECT ALL + + COUNT( * ) * 18 col2
----
18

skipif mysql # not compatible
query I rowsort label-8235
SELECT ALL + + COUNT ( * ) * 18 col2
----
18

query I rowsort
SELECT DISTINCT - + 7 AS col1
----
-7

query I rowsort
SELECT DISTINCT ( + - ( - 44 ) ) + + 90 col1
----
134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8238
SELECT ( + 80 ) * COUNT( * ) * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8238
SELECT ( + 80 ) * COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8239
SELECT ALL - COUNT( DISTINCT + - 51 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-8239
SELECT ALL - COUNT ( DISTINCT + - 51 ) col0
----
-1

query I rowsort
SELECT ( 71 ) col1
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8241
SELECT ALL + - ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8241
SELECT ALL + - ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8242
SELECT DISTINCT ( + 96 ) * + COUNT( * )
----
96

skipif mysql # not compatible
query I rowsort label-8242
SELECT DISTINCT ( + 96 ) * + COUNT ( * )
----
96

query I rowsort
SELECT - ( 80 ) AS col2
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8244
SELECT DISTINCT CAST( + COALESCE ( - 29, - 20 ) AS SIGNED ) AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-8244
SELECT DISTINCT CAST ( + COALESCE ( - 29, - 20 ) AS INTEGER ) AS col0
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-8245
SELECT DISTINCT - + 45 DIV 79
----
0

skipif mysql # not compatible
query I rowsort label-8245
SELECT DISTINCT - + 45 / 79
----
0

query I rowsort
SELECT ALL + - 79 AS col1
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8247
SELECT + CAST( - AVG ( 64 ) AS SIGNED ) col0
----
-64

skipif mysql # not compatible
query I rowsort label-8247
SELECT + CAST ( - AVG ( 64 ) AS INTEGER ) col0
----
-64

query I rowsort
SELECT 10 + - 82
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-8249
SELECT DISTINCT - + COUNT( - 78 ) * - 63 + + 21 * + 44 col0
----
987

skipif mysql # not compatible
query I rowsort label-8249
SELECT DISTINCT - + COUNT ( - 78 ) * - 63 + + 21 * + 44 col0
----
987

onlyif mysql # aggregate syntax: 
query I rowsort label-8250
SELECT ALL COUNT( * ) + - 43
----
-42

skipif mysql # not compatible
query I rowsort label-8250
SELECT ALL COUNT ( * ) + - 43
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8251
SELECT 93 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8251
SELECT 93 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8252
SELECT DISTINCT 64 * COUNT( * ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-8252
SELECT DISTINCT 64 * COUNT ( * ) AS col0
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8253
SELECT ALL - NULLIF ( 62, + CAST( NULL AS SIGNED ) )
----
-62

skipif mysql # not compatible
query I rowsort label-8253
SELECT ALL - NULLIF ( 62, + CAST ( NULL AS INTEGER ) )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-8254
SELECT ALL MAX( 92 ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-8254
SELECT ALL MAX ( 92 ) AS col2
----
92

query I rowsort
SELECT ALL + + 61 * 8 col0
----
488

onlyif mysql # aggregate syntax: 
query I rowsort label-8256
SELECT ALL COUNT( * ) * 84 AS col0
----
84

skipif mysql # not compatible
query I rowsort label-8256
SELECT ALL COUNT ( * ) * 84 AS col0
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8257
SELECT DISTINCT - + CAST( - 30 AS SIGNED ) * ( CAST( NULL AS SIGNED ) ) + - 77 / 40
----
NULL

skipif mysql # not compatible
query I rowsort label-8257
SELECT DISTINCT - + CAST ( - 30 AS INTEGER ) * ( CAST ( NULL AS INTEGER ) ) + - 77 / 40
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8258
SELECT DISTINCT + - COALESCE ( - COUNT( * ), 10 ) * 23 AS col1
----
23

skipif mysql # not compatible
query I rowsort label-8258
SELECT DISTINCT + - COALESCE ( - COUNT ( * ), 10 ) * 23 AS col1
----
23

query I rowsort
SELECT DISTINCT 45 * - ( ( - 56 ) ) col0
----
2520

query I rowsort
SELECT + 62 + - 8
----
54

query I rowsort
SELECT DISTINCT + 31 * - - NULLIF ( - 79, 20 )
----
-2449

query I rowsort
SELECT DISTINCT + 4 * - 85 col0
----
-340

onlyif mysql # DIV for integer division: 
query I rowsort label-8263
SELECT + 68 DIV 91 - - + 76 col1
----
76

skipif mysql # not compatible
query I rowsort label-8263
SELECT + 68 / 91 - - + 76 col1
----
76

query I rowsort
SELECT ( - + 5 ) AS col2
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-8265
SELECT + 5 DIV 81 + + - 41 AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-8265
SELECT + 5 / 81 + + - 41 AS col2
----
-41

query I rowsort
SELECT + COALESCE ( - 5, - - 93 ) AS col0
----
-5

query I rowsort
SELECT ( 25 ) AS col0
----
25

query I rowsort
SELECT - 84 * - + 43
----
3612

query I rowsort
SELECT - ( + - 11 )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8270
SELECT ALL + COUNT( - - 36 ) * + 27
----
27

skipif mysql # not compatible
query I rowsort label-8270
SELECT ALL + COUNT ( - - 36 ) * + 27
----
27

query I rowsort
SELECT ALL + 34 - + 84 AS col1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-8272
SELECT 27 + 26 + - COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-8272
SELECT 27 + 26 + - COUNT ( * )
----
52

query I rowsort
SELECT ALL - ( - 91 )
----
91

query I rowsort
SELECT 43 + - 99 col1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-8275
SELECT DISTINCT + 73 * COUNT( * ) + + 44 AS col0
----
117

skipif mysql # not compatible
query I rowsort label-8275
SELECT DISTINCT + 73 * COUNT ( * ) + + 44 AS col0
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-8276
SELECT DISTINCT - COUNT( * ) - 97
----
-98

skipif mysql # not compatible
query I rowsort label-8276
SELECT DISTINCT - COUNT ( * ) - 97
----
-98

query I rowsort
SELECT - ( - + 80 ) AS col2
----
80

onlyif mysql # aggregate syntax: 
query II rowsort label-8278
SELECT + 3, COUNT( * ) AS col2
----
3
1

skipif mysql # not compatible
query II rowsort label-8278
SELECT + 3, COUNT ( * ) AS col2
----
3
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8279
SELECT ( - + COUNT( ALL 93 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8279
SELECT ( - + COUNT ( ALL 93 ) ) AS col2
----
-1

query II rowsort
SELECT + 78, 99 AS col1
----
78
99

query I rowsort
SELECT ( + 85 )
----
85

query I rowsort
SELECT ALL - 86 * - 41 * 31
----
109306

onlyif mysql # aggregate syntax: 
query I rowsort label-8283
SELECT - SUM( ALL 53 )
----
-53

skipif mysql # not compatible
query I rowsort label-8283
SELECT - SUM ( ALL 53 )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-8284
SELECT + COUNT( + 16 ) + - + 75 AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-8284
SELECT + COUNT ( + 16 ) + - + 75 AS col2
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-8285
SELECT DISTINCT + CASE WHEN NOT NULL IS NULL THEN COUNT( * ) ELSE COUNT( * ) END - - 55 AS col2
----
56

skipif mysql # not compatible
query I rowsort label-8285
SELECT DISTINCT + CASE WHEN NOT NULL IS NULL THEN COUNT ( * ) ELSE COUNT ( * ) END - - 55 AS col2
----
56

query I rowsort
SELECT 18 * + 31 AS col0
----
558

onlyif mysql # aggregate syntax: 
query I rowsort label-8287
SELECT DISTINCT + 12 * + COUNT( * ) col0
----
12

skipif mysql # not compatible
query I rowsort label-8287
SELECT DISTINCT + 12 * + COUNT ( * ) col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8288
SELECT ALL + COUNT( * ) + - 57 AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-8288
SELECT ALL + COUNT ( * ) + - 57 AS col2
----
-56

query I rowsort
SELECT ALL - ( - - 98 )
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-8290
SELECT ALL 45 DIV - 24 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8290
SELECT ALL 45 / - 24 AS col0
----
-1

query I rowsort
SELECT - 72 * 18 AS col1
----
-1296

onlyif mysql # aggregate syntax: 
query I rowsort label-8292
SELECT - MIN( DISTINCT - + ( + 42 ) )
----
42

skipif mysql # not compatible
query I rowsort label-8292
SELECT - MIN ( DISTINCT - + ( + 42 ) )
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8293
SELECT DISTINCT CAST( NULL AS SIGNED ) * - + ( + COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8293
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - + ( + COUNT ( * ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8294
SELECT + - CAST( + 19 AS SIGNED ) AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-8294
SELECT + - CAST ( + 19 AS INTEGER ) AS col1
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-8295
SELECT ALL 61 - SUM( DISTINCT - 17 ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-8295
SELECT ALL 61 - SUM ( DISTINCT - 17 ) AS col0
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8296
SELECT + 19 + - + 12 DIV - 43 AS col2, - ( - + COUNT( * ) )
----
19
1

skipif mysql # not compatible
query II rowsort label-8296
SELECT + 19 + - + 12 / - 43 AS col2, - ( - + COUNT ( * ) )
----
19
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8297
SELECT ALL ( ( - CAST( 97 AS SIGNED ) ) ) AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-8297
SELECT ALL ( ( - CAST ( 97 AS INTEGER ) ) ) AS col0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8298
SELECT + - MIN( ( - 39 ) ) + - - 21 AS col1
----
60

skipif mysql # not compatible
query I rowsort label-8298
SELECT + - MIN ( ( - 39 ) ) + - - 21 AS col1
----
60

query I rowsort
SELECT + - ( 34 ) AS col2
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8300
SELECT COUNT( * ) DIV + + ( + 65 )
----
0

skipif mysql # not compatible
query I rowsort label-8300
SELECT COUNT ( * ) / + + ( + 65 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8301
SELECT 27 * - + COUNT( * ) * + - ( + - 50 )
----
-1350

skipif mysql # not compatible
query I rowsort label-8301
SELECT 27 * - + COUNT ( * ) * + - ( + - 50 )
----
-1350

query I rowsort
SELECT ALL + - 14 col1
----
-14

query I rowsort
SELECT DISTINCT + - 53 col0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-8304
SELECT DISTINCT - COUNT( ALL 95 )
----
-1

skipif mysql # not compatible
query I rowsort label-8304
SELECT DISTINCT - COUNT ( ALL 95 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8305
SELECT ALL CAST( NULL AS SIGNED ), 90 AS col0
----
NULL
90

skipif mysql # not compatible
query II rowsort label-8305
SELECT ALL CAST ( NULL AS INTEGER ), 90 AS col0
----
NULL
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8306
SELECT + ( CAST( + + COALESCE ( - + COUNT( * ), + + COUNT( * ) ) AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8306
SELECT + ( CAST ( + + COALESCE ( - + COUNT ( * ), + + COUNT ( * ) ) AS INTEGER ) )
----
-1

query I rowsort
SELECT COALESCE ( + 65, - 93 ) col2
----
65

query II rowsort
SELECT ALL ( + 96 ), 58 AS col1
----
96
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8309
SELECT MIN( 71 )
----
71

skipif mysql # not compatible
query I rowsort label-8309
SELECT MIN ( 71 )
----
71

query I rowsort
SELECT ALL 85 + 60 col2
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-8311
SELECT 81 + + - COUNT( * ) col1
----
80

skipif mysql # not compatible
query I rowsort label-8311
SELECT 81 + + - COUNT ( * ) col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8312
SELECT 71 * + COUNT( * ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-8312
SELECT 71 * + COUNT ( * ) AS col2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8313
SELECT COUNT( * ) * + ( + - 58 )
----
-58

skipif mysql # not compatible
query I rowsort label-8313
SELECT COUNT ( * ) * + ( + - 58 )
----
-58

query I rowsort
SELECT 20 * + 69 col0
----
1380

onlyif mysql # aggregate syntax: 
query I rowsort label-8315
SELECT SUM( 9 ) col0
----
9

skipif mysql # not compatible
query I rowsort label-8315
SELECT SUM ( 9 ) col0
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8316
SELECT COUNT( * ) col1, + COALESCE ( MIN( + CAST( NULL AS SIGNED ) ), + - COUNT( * ) ) AS col1
----
1
-1

skipif mysql # not compatible
query II rowsort label-8316
SELECT COUNT ( * ) col1, + COALESCE ( MIN ( + CAST ( NULL AS INTEGER ) ), + - COUNT ( * ) ) AS col1
----
1
-1

query I rowsort
SELECT DISTINCT 76 + - - 45 AS col0
----
121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8318
SELECT + MAX( DISTINCT - 77 ) + CAST( - 21 AS SIGNED ) + 32 col0
----
-66

skipif mysql # not compatible
query I rowsort label-8318
SELECT + MAX ( DISTINCT - 77 ) + CAST ( - 21 AS INTEGER ) + 32 col0
----
-66

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8319
SELECT ALL + SUM( DISTINCT - - CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8319
SELECT ALL + SUM ( DISTINCT - - CAST ( NULL AS REAL ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8320
SELECT DISTINCT + COUNT( - 53 ), + 22 AS col1
----
1
22

skipif mysql # not compatible
query II rowsort label-8320
SELECT DISTINCT + COUNT ( - 53 ), + 22 AS col1
----
1
22

query I rowsort
SELECT - + 83 col2
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-8322
SELECT DISTINCT MIN( ALL + 77 ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-8322
SELECT DISTINCT MIN ( ALL + 77 ) AS col2
----
77

query I rowsort
SELECT DISTINCT - 47 * - 58 AS col1
----
2726

onlyif mysql # aggregate syntax: 
query I rowsort label-8324
SELECT 70 + - + COUNT( * ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-8324
SELECT 70 + - + COUNT ( * ) AS col0
----
69

query I rowsort
SELECT 5 + + 30 AS col2
----
35

query I rowsort
SELECT ALL - 45 + + 45
----
0

query I rowsort
SELECT + 35 * + 64 AS col0
----
2240

query I rowsort
SELECT ALL 15 + - 51
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8329
SELECT 96 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8329
SELECT 96 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8330
SELECT + 89 * - COUNT( * ) AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-8330
SELECT + 89 * - COUNT ( * ) AS col1
----
-89

query I rowsort
SELECT ALL + ( - + ( - 23 ) ) AS col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8332
SELECT + COUNT( * ) * + - 34
----
-34

skipif mysql # not compatible
query I rowsort label-8332
SELECT + COUNT ( * ) * + - 34
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8333
SELECT DISTINCT + 84 * + CAST( - ( + + 93 ) AS SIGNED )
----
-7812

skipif mysql # not compatible
query I rowsort label-8333
SELECT DISTINCT + 84 * + CAST ( - ( + + 93 ) AS INTEGER )
----
-7812

onlyif mysql # aggregate syntax: 
query I rowsort label-8334
SELECT MIN( DISTINCT 68 )
----
68

skipif mysql # not compatible
query I rowsort label-8334
SELECT MIN ( DISTINCT 68 )
----
68

query I rowsort
SELECT ALL 67 * 36
----
2412

query I rowsort
SELECT DISTINCT 60 + - 84
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8337
SELECT - SUM( + 89 ) + + 68
----
-21

skipif mysql # not compatible
query I rowsort label-8337
SELECT - SUM ( + 89 ) + + 68
----
-21

query I rowsort
SELECT + + ( + + 50 )
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-8339
SELECT - - 55 DIV 62 + 81 AS col0
----
81

skipif mysql # not compatible
query I rowsort label-8339
SELECT - - 55 / 62 + 81 AS col0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8340
SELECT ALL COUNT( DISTINCT + 9 ) + + 93
----
94

skipif mysql # not compatible
query I rowsort label-8340
SELECT ALL COUNT ( DISTINCT + 9 ) + + 93
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8341
SELECT ALL 7 - - ( COUNT( * ) ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-8341
SELECT ALL 7 - - ( COUNT ( * ) ) AS col1
----
8

query II rowsort
SELECT 62 AS col0, - 65 AS col0
----
62
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8343
SELECT 21 + + CAST( NULL AS SIGNED ) * - - 8 * - 23
----
NULL

skipif mysql # not compatible
query I rowsort label-8343
SELECT 21 + + CAST ( NULL AS INTEGER ) * - - 8 * - 23
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8344
SELECT DISTINCT SUM( DISTINCT - - ( + 39 ) ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-8344
SELECT DISTINCT SUM ( DISTINCT - - ( + 39 ) ) AS col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8345
SELECT + COUNT( * ) * 0
----
0

skipif mysql # not compatible
query I rowsort label-8345
SELECT + COUNT ( * ) * 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8346
SELECT ( - + 78 ) + - 19 - - - COUNT( * )
----
-98

skipif mysql # not compatible
query I rowsort label-8346
SELECT ( - + 78 ) + - 19 - - - COUNT ( * )
----
-98

query I rowsort
SELECT DISTINCT - 60 * + 76 AS col2
----
-4560

onlyif mysql # aggregate syntax: 
query I rowsort label-8348
SELECT + ( - + 88 ) * COUNT( * )
----
-88

skipif mysql # not compatible
query I rowsort label-8348
SELECT + ( - + 88 ) * COUNT ( * )
----
-88

query I rowsort
SELECT + - ( 18 )
----
-18

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8350
SELECT + CAST( NULL AS SIGNED ) * - 37 / + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8350
SELECT + CAST ( NULL AS INTEGER ) * - 37 / + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8351
SELECT ALL + SUM( + 98 )
----
98

skipif mysql # not compatible
query I rowsort label-8351
SELECT ALL + SUM ( + 98 )
----
98

onlyif mysql # aggregate syntax: 
query II rowsort label-8352
SELECT DISTINCT - 53 * - 77, + COUNT( * ) + + COALESCE ( - 48, 83 ) AS col0
----
4081
-47

skipif mysql # not compatible
query II rowsort label-8352
SELECT DISTINCT - 53 * - 77, + COUNT ( * ) + + COALESCE ( - 48, 83 ) AS col0
----
4081
-47

query I rowsort
SELECT + 19 + - ( + - 70 ) AS col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8354
SELECT - COUNT( * ) + MIN( 26 ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-8354
SELECT - COUNT ( * ) + MIN ( 26 ) AS col1
----
25

query I rowsort
SELECT ( - + 92 ) AS col2
----
-92

query I rowsort
SELECT + ( + - 31 ) AS col0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-8357
SELECT - 59 * - - COUNT( * )
----
-59

skipif mysql # not compatible
query I rowsort label-8357
SELECT - 59 * - - COUNT ( * )
----
-59

query II rowsort
SELECT DISTINCT - 75 AS col2, - 33
----
-75
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-8359
SELECT - SUM( - + 22 ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-8359
SELECT - SUM ( - + 22 ) AS col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8360
SELECT DISTINCT 71 - - COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-8360
SELECT DISTINCT 71 - - COUNT ( * )
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8361
SELECT 33 - - COUNT( * ) + ( + CAST( COUNT( 13 ) AS SIGNED ) )
----
35

skipif mysql # not compatible
query I rowsort label-8361
SELECT 33 - - COUNT ( * ) + ( + CAST ( COUNT ( 13 ) AS INTEGER ) )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8362
SELECT MIN( ALL - 23 )
----
-23

skipif mysql # not compatible
query I rowsort label-8362
SELECT MIN ( ALL - 23 )
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8363
SELECT - AVG ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8363
SELECT - AVG ( + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT - ( + 55 ) AS col1
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-8365
SELECT ALL 94 + + + 43 * COUNT( * )
----
137

skipif mysql # not compatible
query I rowsort label-8365
SELECT ALL 94 + + + 43 * COUNT ( * )
----
137

query I rowsort
SELECT + - 56 * - 80 AS col1
----
4480

query I rowsort
SELECT ALL ( 33 ) * - - 51 AS col1
----
1683

query I rowsort
SELECT - 26 + + ( - 76 ) AS col2
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-8369
SELECT DISTINCT COUNT( ALL + + 58 )
----
1

skipif mysql # not compatible
query I rowsort label-8369
SELECT DISTINCT COUNT ( ALL + + 58 )
----
1

query I rowsort
SELECT ALL 59 col0
----
59

query I rowsort
SELECT ALL - 65 * + 61 AS col0
----
-3965

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8372
SELECT + CAST( NULL AS SIGNED ) AS col1, 73 + COUNT( * ) * - SUM( 22 )
----
NULL
51

skipif mysql # not compatible
query II rowsort label-8372
SELECT + CAST ( NULL AS INTEGER ) AS col1, 73 + COUNT ( * ) * - SUM ( 22 )
----
NULL
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8373
SELECT ALL - COUNT( * ) * + + 39 AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-8373
SELECT ALL - COUNT ( * ) * + + 39 AS col2
----
-39

query I rowsort
SELECT ALL - ( - 25 ) AS col2
----
25

query I rowsort
SELECT 34 + - ( + 29 )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8376
SELECT COUNT( * ) * 25
----
25

skipif mysql # not compatible
query I rowsort label-8376
SELECT COUNT ( * ) * 25
----
25

query I rowsort
SELECT DISTINCT 54 * 81 AS col1
----
4374

query I rowsort
SELECT ALL 48 * 49 AS col0
----
2352

query I rowsort
SELECT DISTINCT ( 5 ) * + + 76
----
380

query II rowsort
SELECT DISTINCT - 38, + 35 + 58 AS col1
----
-38
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8381
SELECT ALL + + COUNT( * ) + + + ( SUM( DISTINCT 3 ) )
----
4

skipif mysql # not compatible
query I rowsort label-8381
SELECT ALL + + COUNT ( * ) + + + ( SUM ( DISTINCT 3 ) )
----
4

query I rowsort
SELECT ALL + 24 * - 53 col0
----
-1272

onlyif mysql # aggregate syntax: 
query I rowsort label-8383
SELECT - - COUNT( * ) * 45 + + + 21 + + 51 AS col2
----
117

skipif mysql # not compatible
query I rowsort label-8383
SELECT - - COUNT ( * ) * 45 + + + 21 + + 51 AS col2
----
117

query I rowsort
SELECT - ( ( 44 ) ) AS col0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-8385
SELECT ALL - - COUNT( * ) * - + 87 + - + COUNT( * ) AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-8385
SELECT ALL - - COUNT ( * ) * - + 87 + - + COUNT ( * ) AS col0
----
-88

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8386
SELECT - CAST( NULL AS DECIMAL ) AS col0, + MAX( DISTINCT - - 96 )
----
NULL
96

skipif mysql # not compatible
query II rowsort label-8386
SELECT - CAST ( NULL AS REAL ) AS col0, + MAX ( DISTINCT - - 96 )
----
NULL
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8387
SELECT ( + ( COUNT( * ) ) ) * + 86 + 9 AS col1
----
95

skipif mysql # not compatible
query I rowsort label-8387
SELECT ( + ( COUNT ( * ) ) ) * + 86 + 9 AS col1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8388
SELECT ALL - SUM( - 32 ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-8388
SELECT ALL - SUM ( - 32 ) AS col1
----
32

query I rowsort
SELECT 68 + 49
----
117

query I rowsort
SELECT 3 - - ( 62 ) AS col0
----
65

query I rowsort
SELECT ALL - - 57 AS col1
----
57

query I rowsort
SELECT ALL - 7 + + - 74 AS col2
----
-81

query I rowsort
SELECT - 59 * + 93
----
-5487

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8394
SELECT ALL + CAST( + COUNT( * ) AS SIGNED ) - 88 AS col2, COUNT( * )
----
-87
1

skipif mysql # not compatible
query II rowsort label-8394
SELECT ALL + CAST ( + COUNT ( * ) AS INTEGER ) - 88 AS col2, COUNT ( * )
----
-87
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8395
SELECT + COUNT( * ) + + - 53 AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-8395
SELECT + COUNT ( * ) + + - 53 AS col2
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-8396
SELECT + 15 DIV + 85
----
0

skipif mysql # not compatible
query I rowsort label-8396
SELECT + 15 / + 85
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8397
SELECT + NULLIF ( + COUNT( * ), - MAX( DISTINCT + 66 ) ) * 64 AS col1
----
64

skipif mysql # not compatible
query I rowsort label-8397
SELECT + NULLIF ( + COUNT ( * ), - MAX ( DISTINCT + 66 ) ) * 64 AS col1
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8398
SELECT DISTINCT + MAX( DISTINCT - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8398
SELECT DISTINCT + MAX ( DISTINCT - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT - 71 * ( + 41 ) AS col1
----
-2911

onlyif mysql # aggregate syntax: 
query I rowsort label-8400
SELECT ALL COUNT( + + 85 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-8400
SELECT ALL COUNT ( + + 85 ) col0
----
1

query II rowsort
SELECT 7 - 74 * 74, 67 AS col1
----
-5469
67

query I rowsort
SELECT DISTINCT + 65 * + 47
----
3055

query I rowsort
SELECT DISTINCT 35 * + 6
----
210

query I rowsort
SELECT - 32 + - + 76
----
-108

query I rowsort
SELECT + 59 * + 23 AS col0
----
1357

onlyif mysql # aggregate syntax: 
query I rowsort label-8406
SELECT DISTINCT + 66 + - COUNT( * )
----
65

skipif mysql # not compatible
query I rowsort label-8406
SELECT DISTINCT + 66 + - COUNT ( * )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8407
SELECT - COUNT( + 49 )
----
-1

skipif mysql # not compatible
query I rowsort label-8407
SELECT - COUNT ( + 49 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8408
SELECT DISTINCT 20 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8408
SELECT DISTINCT 20 + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8409
SELECT + ( - - ( - - CAST( NULL AS SIGNED ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8409
SELECT + ( - - ( - - CAST ( NULL AS INTEGER ) ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8410
SELECT DISTINCT + ( - + COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8410
SELECT DISTINCT + ( - + COUNT ( * ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8411
SELECT ( + 24 ) AS col0, COUNT( * )
----
24
1

skipif mysql # not compatible
query II rowsort label-8411
SELECT ( + 24 ) AS col0, COUNT ( * )
----
24
1

query I rowsort
SELECT DISTINCT + ( - 43 )
----
-43

query I rowsort
SELECT ALL 7 * + 52
----
364

query I rowsort
SELECT - ( - - 31 ) AS col2
----
-31

query II rowsort
SELECT ALL 23 AS col0, 11 AS col2
----
23
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8416
SELECT ALL - COUNT( * ) + MIN( ALL + + 60 ) * - - COUNT( * )
----
59

skipif mysql # not compatible
query I rowsort label-8416
SELECT ALL - COUNT ( * ) + MIN ( ALL + + 60 ) * - - COUNT ( * )
----
59

query I rowsort
SELECT - ( - - 68 ) col1
----
-68

query I rowsort
SELECT ALL - + 70 - - - 69
----
-139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8419
SELECT ALL - CAST( + 16 AS SIGNED ) AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-8419
SELECT ALL - CAST ( + 16 AS INTEGER ) AS col1
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-8420
SELECT ALL + 85 DIV + 96
----
0

skipif mysql # not compatible
query I rowsort label-8420
SELECT ALL + 85 / + 96
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8421
SELECT CAST( - + 0 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-8421
SELECT CAST ( - + 0 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8422
SELECT + MAX( ALL + + 74 ) * - COUNT( * ), 90 * + COUNT( * ) * + 60 AS col1
----
-74
5400

skipif mysql # not compatible
query II rowsort label-8422
SELECT + MAX ( ALL + + 74 ) * - COUNT ( * ), 90 * + COUNT ( * ) * + 60 AS col1
----
-74
5400

query II rowsort
SELECT - 19 AS col1, 13 AS col1
----
-19
13

query II rowsort
SELECT 3 AS col2, + 81 * + - 60 AS col0
----
3
-4860

onlyif mysql # aggregate syntax: 
query II rowsort label-8425
SELECT 38 col1, + COUNT( * ) - + 65
----
38
-64

skipif mysql # not compatible
query II rowsort label-8425
SELECT 38 col1, + COUNT ( * ) - + 65
----
38
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8426
SELECT ALL - - COUNT( * ) DIV - 39
----
0

skipif mysql # not compatible
query I rowsort label-8426
SELECT ALL - - COUNT ( * ) / - 39
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8427
SELECT - CAST( - 95 AS SIGNED ) * - MIN( 92 ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8427
SELECT - CAST ( - 95 AS INTEGER ) * - MIN ( 92 ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8428
SELECT + CAST( + - 51 AS SIGNED )
----
-51

skipif mysql # not compatible
query I rowsort label-8428
SELECT + CAST ( + - 51 AS INTEGER )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8429
SELECT ( - 29 ) + + COUNT( * ) * + COUNT( + 86 ) * + COUNT( * ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-8429
SELECT ( - 29 ) + + COUNT ( * ) * + COUNT ( + 86 ) * + COUNT ( * ) AS col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-8430
SELECT ALL - MIN( ALL - 11 ) * + - 1
----
-11

skipif mysql # not compatible
query I rowsort label-8430
SELECT ALL - MIN ( ALL - 11 ) * + - 1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-8431
SELECT ALL SUM( - - 56 ) + - 5
----
51

skipif mysql # not compatible
query I rowsort label-8431
SELECT ALL SUM ( - - 56 ) + - 5
----
51

query I rowsort
SELECT 31 * - 97 AS col0
----
-3007

query I rowsort
SELECT ALL 41 - 93 AS col0
----
-52

query I rowsort
SELECT DISTINCT 76 - + 86 AS col1
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8435
SELECT DISTINCT - CAST( + 97 AS SIGNED )
----
-97

skipif mysql # not compatible
query I rowsort label-8435
SELECT DISTINCT - CAST ( + 97 AS INTEGER )
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8436
SELECT COUNT( * ) * + 27 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8436
SELECT COUNT ( * ) * + 27 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8437
SELECT COUNT( * ) AS col0, - 81
----
1
-81

skipif mysql # not compatible
query II rowsort label-8437
SELECT COUNT ( * ) AS col0, - 81
----
1
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8438
SELECT ALL + SUM( DISTINCT - 24 ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-8438
SELECT ALL + SUM ( DISTINCT - 24 ) AS col1
----
-24

query I rowsort
SELECT - + 60 * - 90 AS col0
----
5400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8440
SELECT + CAST( NULL AS SIGNED ) + - + ( 17 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8440
SELECT + CAST ( NULL AS INTEGER ) + - + ( 17 )
----
NULL

query I rowsort
SELECT ( + ( - - 83 ) ) AS col2
----
83

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8442
SELECT ALL - ( CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8442
SELECT ALL - ( CAST ( NULL AS REAL ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8443
SELECT NULLIF ( - 72, - COUNT( * ) )
----
-72

skipif mysql # not compatible
query I rowsort label-8443
SELECT NULLIF ( - 72, - COUNT ( * ) )
----
-72

query I rowsort
SELECT ALL - - 71 - + 89 AS col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-8445
SELECT 50 * - COUNT( DISTINCT + 57 )
----
-50

skipif mysql # not compatible
query I rowsort label-8445
SELECT 50 * - COUNT ( DISTINCT + 57 )
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8446
SELECT SUM( ALL - CAST( + + 0 AS SIGNED ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8446
SELECT SUM ( ALL - CAST ( + + 0 AS INTEGER ) ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8447
SELECT + ( - + MAX( + + 74 ) )
----
-74

skipif mysql # not compatible
query I rowsort label-8447
SELECT + ( - + MAX ( + + 74 ) )
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8448
SELECT ALL CAST( NULL AS SIGNED ) + + + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-8448
SELECT ALL CAST ( NULL AS INTEGER ) + + + 95
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8449
SELECT ALL + CAST( 8 AS SIGNED )
----
8

skipif mysql # not compatible
query I rowsort label-8449
SELECT ALL + CAST ( 8 AS INTEGER )
----
8

query I rowsort
SELECT + 81 * - 63
----
-5103

onlyif mysql # aggregate syntax: 
query I rowsort label-8451
SELECT ALL + COUNT( * ) * 71 - 63 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-8451
SELECT ALL + COUNT ( * ) * 71 - 63 AS col0
----
8

query I rowsort
SELECT + 38 + 66
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-8453
SELECT ALL MAX( 47 ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-8453
SELECT ALL MAX ( 47 ) AS col1
----
47

query I rowsort
SELECT - ( 39 )
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8455
SELECT ALL MAX( DISTINCT CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8455
SELECT ALL MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT ALL + 56 + 23 AS col2
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8457
SELECT 83 / CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + 78 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8457
SELECT 83 / CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + 78 AS col2
----
NULL

query I rowsort
SELECT ( + 5 ) col1
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-8459
SELECT DISTINCT 69 DIV - 64
----
-1

skipif mysql # not compatible
query I rowsort label-8459
SELECT DISTINCT 69 / - 64
----
-1

query I rowsort
SELECT 66 + + 71 + ( + 55 )
----
192

query I rowsort
SELECT ALL 46 * + ( - 92 ) col0
----
-4232

query I rowsort
SELECT DISTINCT - - 41 - + NULLIF ( - 51, - 98 ) * 47
----
2438

onlyif mysql # aggregate syntax: 
query I rowsort label-8463
SELECT DISTINCT - MIN( DISTINCT 68 ) AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-8463
SELECT DISTINCT - MIN ( DISTINCT 68 ) AS col2
----
-68

query I rowsort
SELECT ALL - - 55 AS col1
----
55

query I rowsort
SELECT 85 * + 18 * + 8
----
12240

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8466
SELECT + CAST( - + 47 AS SIGNED ) + - + 26 DIV - 90 AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-8466
SELECT + CAST ( - + 47 AS INTEGER ) + - + 26 / - 90 AS col2
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8467
SELECT ALL COUNT( * ) * - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8467
SELECT ALL COUNT ( * ) * - COUNT ( * ) AS col2
----
-1

query II rowsort
SELECT + 90 + + 68 AS col1, + 28 AS col2
----
158
28

query I rowsort
SELECT + 25 * - 43
----
-1075

query I rowsort
SELECT DISTINCT ( 65 ) AS col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8471
SELECT DISTINCT + COALESCE ( + 18, COUNT( * ) )
----
18

skipif mysql # not compatible
query I rowsort label-8471
SELECT DISTINCT + COALESCE ( + 18, COUNT ( * ) )
----
18

query I rowsort
SELECT 1 * - + 28 - + - 13 AS col1
----
-15

query I rowsort
SELECT DISTINCT ( + - 39 ) AS col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-8474
SELECT COUNT( * ) * + 17 AS col1
----
17

skipif mysql # not compatible
query I rowsort label-8474
SELECT COUNT ( * ) * + 17 AS col1
----
17

query I rowsort
SELECT NULLIF ( + 5, - + ( 67 ) ) AS col1
----
5

query I rowsort
SELECT DISTINCT - - 52 AS col2
----
52

query II rowsort
SELECT ALL - 81, 70 * 97 col1
----
-81
6790

onlyif mysql # DIV for integer division: 
query I rowsort label-8478
SELECT ALL + 46 DIV - 24 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8478
SELECT ALL + 46 / - 24 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8479
SELECT COUNT( * ) AS col1, SUM( 75 ) AS col2
----
1
75

skipif mysql # not compatible
query II rowsort label-8479
SELECT COUNT ( * ) AS col1, SUM ( 75 ) AS col2
----
1
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8480
SELECT - - MIN( + 44 )
----
44

skipif mysql # not compatible
query I rowsort label-8480
SELECT - - MIN ( + 44 )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8481
SELECT COUNT( ALL + + 87 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8481
SELECT COUNT ( ALL + + 87 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8482
SELECT ALL - COUNT( * ) * 70
----
-70

skipif mysql # not compatible
query I rowsort label-8482
SELECT ALL - COUNT ( * ) * 70
----
-70

query I rowsort
SELECT ALL 72 * - 97 * 44 * + 94
----
-28885824

query I rowsort
SELECT + ( 62 ) AS col2
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-8485
SELECT - MIN( 97 ) * - 70 AS col2, + COUNT( * )
----
6790
1

skipif mysql # not compatible
query II rowsort label-8485
SELECT - MIN ( 97 ) * - 70 AS col2, + COUNT ( * )
----
6790
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8486
SELECT ALL - COUNT( * ) * 9 AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-8486
SELECT ALL - COUNT ( * ) * 9 AS col1
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8487
SELECT - + COUNT( * ) - + CAST( NULL AS SIGNED ) - + + 40 + - - 78 + 31 - 52 * + 99 * - - COUNT( * ) * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8487
SELECT - + COUNT ( * ) - + CAST ( NULL AS INTEGER ) - + + 40 + - - 78 + 31 - 52 * + 99 * - - COUNT ( * ) * + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT - - ( - 1 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8489
SELECT - - COUNT( 56 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8489
SELECT - - COUNT ( 56 ) AS col1
----
1

query I rowsort
SELECT ALL 70 * + 29
----
2030

onlyif mysql # aggregate syntax: 
query I rowsort label-8491
SELECT - - COUNT( * ) * + 64 col1
----
64

skipif mysql # not compatible
query I rowsort label-8491
SELECT - - COUNT ( * ) * + 64 col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8492
SELECT - COUNT( * ) - + COUNT( DISTINCT + 3 ) + + ( 87 ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-8492
SELECT - COUNT ( * ) - + COUNT ( DISTINCT + 3 ) + + ( 87 ) AS col0
----
85

query I rowsort
SELECT + ( - - 81 ) AS col1
----
81

query I rowsort
SELECT 60 * 86 AS col2
----
5160

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8495
SELECT DISTINCT 16 / + - CAST( NULL AS DECIMAL ) / - 16 * 96 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8495
SELECT DISTINCT 16 / + - CAST ( NULL AS REAL ) / - 16 * 96 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8496
SELECT - SUM( DISTINCT + 6 ) AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-8496
SELECT - SUM ( DISTINCT + 6 ) AS col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8497
SELECT + ( + COUNT( + - 97 ) )
----
1

skipif mysql # not compatible
query I rowsort label-8497
SELECT + ( + COUNT ( + - 97 ) )
----
1

query I rowsort
SELECT DISTINCT + + 41 AS col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8499
SELECT ALL COUNT( * ) * - + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-8499
SELECT ALL COUNT ( * ) * - + COUNT ( * )
----
-1

query I rowsort
SELECT ALL ( 25 ) AS col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8501
SELECT + 65 * 82 * + MIN( + 92 )
----
490360

skipif mysql # not compatible
query I rowsort label-8501
SELECT + 65 * 82 * + MIN ( + 92 )
----
490360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8502
SELECT ALL + CAST( - COUNT( * ) AS SIGNED ) + 35 col0
----
34

skipif mysql # not compatible
query I rowsort label-8502
SELECT ALL + CAST ( - COUNT ( * ) AS INTEGER ) + 35 col0
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8503
SELECT - + AVG ( + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8503
SELECT - + AVG ( + - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT + - 65 col2
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-8505
SELECT 63 * 55 * + 44 + COUNT( * )
----
152461

skipif mysql # not compatible
query I rowsort label-8505
SELECT 63 * 55 * + 44 + COUNT ( * )
----
152461

onlyif mysql # aggregate syntax: 
query I rowsort label-8506
SELECT SUM( DISTINCT 57 )
----
57

skipif mysql # not compatible
query I rowsort label-8506
SELECT SUM ( DISTINCT 57 )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8507
SELECT ( 22 ) * 59 + - COUNT( * ) AS col2
----
1297

skipif mysql # not compatible
query I rowsort label-8507
SELECT ( 22 ) * 59 + - COUNT ( * ) AS col2
----
1297

query I rowsort
SELECT ALL + 68 + 33
----
101

query I rowsort
SELECT DISTINCT - ( + 5 )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8510
SELECT - ( + + COUNT( * ) ) * + + 35 col0
----
-35

skipif mysql # not compatible
query I rowsort label-8510
SELECT - ( + + COUNT ( * ) ) * + + 35 col0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-8511
SELECT ALL + ( + COUNT( * ) ) * - - COUNT( ALL - 50 )
----
1

skipif mysql # not compatible
query I rowsort label-8511
SELECT ALL + ( + COUNT ( * ) ) * - - COUNT ( ALL - 50 )
----
1

query I rowsort
SELECT DISTINCT - 52 * - 76 col1
----
3952

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8513
SELECT DISTINCT + 61 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8513
SELECT DISTINCT + 61 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + ( - - 33 )
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8515
SELECT ALL - ( + CAST( NULL AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8515
SELECT ALL - ( + CAST ( NULL AS INTEGER ) ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8516
SELECT DISTINCT - + COUNT( * ) + - - 31 AS col1
----
30

skipif mysql # not compatible
query I rowsort label-8516
SELECT DISTINCT - + COUNT ( * ) + - - 31 AS col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8517
SELECT + 71 + SUM( - 36 )
----
35

skipif mysql # not compatible
query I rowsort label-8517
SELECT + 71 + SUM ( - 36 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8518
SELECT ALL - COUNT( DISTINCT + 3 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8518
SELECT ALL - COUNT ( DISTINCT + 3 ) AS col0
----
-1

query I rowsort
SELECT DISTINCT - 60 * 76 AS col2
----
-4560

query I rowsort
SELECT ALL 46 + + 36 AS col2
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8521
SELECT - CAST( 71 AS SIGNED ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-8521
SELECT - CAST ( 71 AS INTEGER ) AS col2
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-8522
SELECT - COUNT( * ) + - MIN( + 4 )
----
-5

skipif mysql # not compatible
query I rowsort label-8522
SELECT - COUNT ( * ) + - MIN ( + 4 )
----
-5

query I rowsort
SELECT DISTINCT - 93 + 46
----
-47

query I rowsort
SELECT DISTINCT 22 * 91 - + + 30
----
1972

onlyif mysql # aggregate syntax: 
query I rowsort label-8525
SELECT DISTINCT MIN( ALL + 91 ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-8525
SELECT DISTINCT MIN ( ALL + 91 ) AS col1
----
91

query I rowsort
SELECT - 5 * + 86 AS col1
----
-430

onlyif mysql # aggregate syntax: 
query I rowsort label-8527
SELECT DISTINCT ( - COUNT( DISTINCT 56 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8527
SELECT DISTINCT ( - COUNT ( DISTINCT 56 ) ) AS col0
----
-1

query I rowsort
SELECT + 97 * + 97
----
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-8529
SELECT DISTINCT 6 * COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-8529
SELECT DISTINCT 6 * COUNT ( * )
----
6

query I rowsort
SELECT 7 - - 88
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8531
SELECT - + CAST( - 11 AS SIGNED )
----
11

skipif mysql # not compatible
query I rowsort label-8531
SELECT - + CAST ( - 11 AS INTEGER )
----
11

query I rowsort
SELECT 4 * + + 50 * 59 AS col1
----
11800

query I rowsort
SELECT ALL 95 + + 5 * - 35 AS col2
----
-80

query I rowsort
SELECT DISTINCT - 68 * 1 AS col2
----
-68

query II rowsort
SELECT ALL + 52, - 33 AS col2
----
52
-33

query I rowsort
SELECT + ( - ( + + NULLIF ( - 40, + 74 ) ) ) * 17
----
680

query I rowsort
SELECT ALL - - 49 AS col2
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8538
SELECT ALL 82 DIV COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-8538
SELECT ALL 82 / COUNT ( * )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8539
SELECT ALL SUM( ALL - 18 )
----
-18

skipif mysql # not compatible
query I rowsort label-8539
SELECT ALL SUM ( ALL - 18 )
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8540
SELECT + 50 + - CAST( + 6 AS SIGNED )
----
44

skipif mysql # not compatible
query I rowsort label-8540
SELECT + 50 + - CAST ( + 6 AS INTEGER )
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-8541
SELECT ALL COUNT( * ) * - + 70, + COUNT( * ) AS col1
----
-70
1

skipif mysql # not compatible
query II rowsort label-8541
SELECT ALL COUNT ( * ) * - + 70, + COUNT ( * ) AS col1
----
-70
1

query II rowsort
SELECT + ( - 66 ) AS col0, 99 AS col1
----
-66
99

query I rowsort
SELECT - 48 * + 3 AS col0
----
-144

query I rowsort
SELECT - ( 25 )
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-8545
SELECT - COUNT( - 70 )
----
-1

skipif mysql # not compatible
query I rowsort label-8545
SELECT - COUNT ( - 70 )
----
-1

query I rowsort
SELECT - ( + 29 )
----
-29

query II rowsort
SELECT ALL 8 AS col2, 74 * + - 28 AS col1
----
8
-2072

onlyif mysql # aggregate syntax: 
query I rowsort label-8548
SELECT ALL - MIN( ALL - + 57 )
----
57

skipif mysql # not compatible
query I rowsort label-8548
SELECT ALL - MIN ( ALL - + 57 )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8549
SELECT ALL + 35 + + - COUNT( * ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-8549
SELECT ALL + 35 + + - COUNT ( * ) AS col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8550
SELECT + SUM( - 16 ) col0
----
-16

skipif mysql # not compatible
query I rowsort label-8550
SELECT + SUM ( - 16 ) col0
----
-16

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8551
SELECT ALL - CAST( NULL AS DECIMAL ) + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8551
SELECT ALL - CAST ( NULL AS REAL ) + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8552
SELECT ALL + 51 - + MIN( + 50 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8552
SELECT ALL + 51 - + MIN ( + 50 ) AS col1
----
1

query I rowsort
SELECT - 45 + + 53
----
8

query I rowsort
SELECT DISTINCT + - 32 col0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-8555
SELECT + COUNT( * ) + - + 81 col1
----
-80

skipif mysql # not compatible
query I rowsort label-8555
SELECT + COUNT ( * ) + - + 81 col1
----
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-8556
SELECT - + 14 DIV 18
----
0

skipif mysql # not compatible
query I rowsort label-8556
SELECT - + 14 / 18
----
0

query I rowsort
SELECT + 44 + - 12 AS col1
----
32

query I rowsort
SELECT ALL + 28 * - 56 AS col2
----
-1568

query I rowsort
SELECT ALL + 69 * - 49 AS col2
----
-3381

onlyif mysql # aggregate syntax: 
query II rowsort label-8560
SELECT 18 + COUNT( * ) AS col2, 22
----
19
22

skipif mysql # not compatible
query II rowsort label-8560
SELECT 18 + COUNT ( * ) AS col2, 22
----
19
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8561
SELECT - MIN( - 70 )
----
70

skipif mysql # not compatible
query I rowsort label-8561
SELECT - MIN ( - 70 )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8562
SELECT DISTINCT COUNT( * ) + ( + + COUNT( * ) ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-8562
SELECT DISTINCT COUNT ( * ) + ( + + COUNT ( * ) ) AS col2
----
2

query I rowsort
SELECT DISTINCT + 0 + - ( ( - ( - 82 ) ) ) AS col0
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8564
SELECT + CAST( + 21 AS SIGNED ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-8564
SELECT + CAST ( + 21 AS INTEGER ) AS col0
----
21

query I rowsort
SELECT + 49 * - 76 AS col1
----
-3724

query I rowsort
SELECT - ( + ( - - 97 ) )
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8567
SELECT ALL ( SUM( - 9 ) ) col0
----
-9

skipif mysql # not compatible
query I rowsort label-8567
SELECT ALL ( SUM ( - 9 ) ) col0
----
-9

query II rowsort
SELECT - 44, - 20 AS col0
----
-44
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-8569
SELECT DISTINCT - - COUNT( * ) * - 18 + + 33
----
15

skipif mysql # not compatible
query I rowsort label-8569
SELECT DISTINCT - - COUNT ( * ) * - 18 + + 33
----
15

query II rowsort
SELECT - 28 col1, + 8 AS col0
----
-28
8

onlyif mysql # aggregate syntax: 
query II rowsort label-8571
SELECT DISTINCT COUNT( * ), 51 + + 29 AS col2
----
1
80

skipif mysql # not compatible
query II rowsort label-8571
SELECT DISTINCT COUNT ( * ), 51 + + 29 AS col2
----
1
80

query I rowsort
SELECT - - ( + 94 )
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8573
SELECT CAST( - 59 AS SIGNED ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-8573
SELECT CAST ( - 59 AS INTEGER ) AS col2
----
-59

query II rowsort
SELECT DISTINCT - 17 col0, + 87 AS col2
----
-17
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8575
SELECT - COUNT( * ) * - + 7 col0
----
7

skipif mysql # not compatible
query I rowsort label-8575
SELECT - COUNT ( * ) * - + 7 col0
----
7

query I rowsort
SELECT - ( - + 39 ) * + COALESCE ( - 32, 44 )
----
-1248

onlyif mysql # aggregate syntax: 
query I rowsort label-8577
SELECT - COUNT( * ) + + - MAX( - 1 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-8577
SELECT - COUNT ( * ) + + - MAX ( - 1 ) col1
----
0

query I rowsort
SELECT ALL + 24 * - 50 AS col1
----
-1200

query I rowsort
SELECT - + 49 col2
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8580
SELECT ALL - ( + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8580
SELECT ALL - ( + - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8581
SELECT 95 * + CAST( - COUNT( * ) AS SIGNED )
----
-95

skipif mysql # not compatible
query I rowsort label-8581
SELECT 95 * + CAST ( - COUNT ( * ) AS INTEGER )
----
-95

query I rowsort
SELECT ( + 80 ) AS col0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8583
SELECT COUNT( * ) + + 67 * 82
----
5495

skipif mysql # not compatible
query I rowsort label-8583
SELECT COUNT ( * ) + + 67 * 82
----
5495

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8584
SELECT DISTINCT 57 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8584
SELECT DISTINCT 57 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8585
SELECT DISTINCT - CAST( - 85 AS SIGNED ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-8585
SELECT DISTINCT - CAST ( - 85 AS INTEGER ) AS col0
----
85

query I rowsort
SELECT ALL - ( + + 7 )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-8587
SELECT ALL - 70 - - COUNT( * ) - 20
----
-89

skipif mysql # not compatible
query I rowsort label-8587
SELECT ALL - 70 - - COUNT ( * ) - 20
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-8588
SELECT + - COUNT( ALL + 67 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8588
SELECT + - COUNT ( ALL + 67 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8589
SELECT - - 80 - - COUNT( * )
----
81

skipif mysql # not compatible
query I rowsort label-8589
SELECT - - 80 - - COUNT ( * )
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8590
SELECT ALL + CAST( - - 32 AS SIGNED ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-8590
SELECT ALL + CAST ( - - 32 AS INTEGER ) AS col2
----
32

query I rowsort
SELECT ALL 90 + + 71 AS col2
----
161

query I rowsort
SELECT ALL 57 + + 6
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8593
SELECT + ( + - CAST( - COUNT( * ) AS SIGNED ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8593
SELECT + ( + - CAST ( - COUNT ( * ) AS INTEGER ) ) AS col0
----
1

query I rowsort
SELECT 77 * 52 + + + 47 col2
----
4051

query II rowsort
SELECT 90, - 48 AS col0
----
90
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-8596
SELECT ALL + COUNT( * ) * + 32
----
32

skipif mysql # not compatible
query I rowsort label-8596
SELECT ALL + COUNT ( * ) * + 32
----
32

query I rowsort
SELECT + 56 + + + 36 AS col0
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-8598
SELECT ALL SUM( DISTINCT + 40 ), 69 AS col1
----
40
69

skipif mysql # not compatible
query II rowsort label-8598
SELECT ALL SUM ( DISTINCT + 40 ), 69 AS col1
----
40
69

query I rowsort
SELECT 5 + ( + + 99 )
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-8600
SELECT ALL MIN( 31 )
----
31

skipif mysql # not compatible
query I rowsort label-8600
SELECT ALL MIN ( 31 )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8601
SELECT 39 + - - COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-8601
SELECT 39 + - - COUNT ( * )
----
40

query I rowsort
SELECT 29 + 3 AS col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8603
SELECT ALL + COUNT( * ) + + + 92 AS col2
----
93

skipif mysql # not compatible
query I rowsort label-8603
SELECT ALL + COUNT ( * ) + + + 92 AS col2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8604
SELECT MAX( + - 78 )
----
-78

skipif mysql # not compatible
query I rowsort label-8604
SELECT MAX ( + - 78 )
----
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8605
SELECT + COUNT( * ) DIV 26 * + 99 DIV 72
----
0

skipif mysql # not compatible
query I rowsort label-8605
SELECT + COUNT ( * ) / 26 * + 99 / 72
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8606
SELECT ALL ( 34 ) DIV 52 col1
----
0

skipif mysql # not compatible
query I rowsort label-8606
SELECT ALL ( 34 ) / 52 col1
----
0

query I rowsort
SELECT DISTINCT 94 * + ( - ( - + 27 ) )
----
2538

query I rowsort
SELECT DISTINCT - ( + 51 ) * ( - 17 ) AS col2
----
867

onlyif mysql # aggregate syntax: 
query I rowsort label-8609
SELECT - + COUNT( * ) + + 32
----
31

skipif mysql # not compatible
query I rowsort label-8609
SELECT - + COUNT ( * ) + + 32
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8610
SELECT 4 * 29 DIV - MIN( + 8 )
----
-14

skipif mysql # not compatible
query I rowsort label-8610
SELECT 4 * 29 / - MIN ( + 8 )
----
-14

query I rowsort
SELECT ALL 39 + + ( + ( - - 43 ) ) AS col1
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8612
SELECT CAST( + + 87 AS SIGNED ) * - - 31
----
2697

skipif mysql # not compatible
query I rowsort label-8612
SELECT CAST ( + + 87 AS INTEGER ) * - - 31
----
2697

query I rowsort
SELECT - 6 * + 90 AS col2
----
-540

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8614
SELECT DISTINCT CAST( + MAX( - - 0 ) AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8614
SELECT DISTINCT CAST ( + MAX ( - - 0 ) AS INTEGER ) AS col0
----
0

query I rowsort
SELECT ALL - - ( - 89 ) col2
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-8616
SELECT - 79 * + - COUNT( * ) + - - 81 col1
----
160

skipif mysql # not compatible
query I rowsort label-8616
SELECT - 79 * + - COUNT ( * ) + - - 81 col1
----
160

onlyif mysql # aggregate syntax: 
query II rowsort label-8617
SELECT + 35 col1, + COUNT( * )
----
35
1

skipif mysql # not compatible
query II rowsort label-8617
SELECT + 35 col1, + COUNT ( * )
----
35
1

query II rowsort
SELECT - 59 AS col0, 24 + - 63
----
-59
-39

query I rowsort
SELECT ( + ( + - 82 ) ) AS col2
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-8620
SELECT DISTINCT + 46 * + + COUNT( * ) + 63 AS col0
----
109

skipif mysql # not compatible
query I rowsort label-8620
SELECT DISTINCT + 46 * + + COUNT ( * ) + 63 AS col0
----
109

query I rowsort
SELECT ALL 10 * + - 22
----
-220

onlyif mysql # aggregate syntax: 
query I rowsort label-8622
SELECT - COUNT( * ) - 93
----
-94

skipif mysql # not compatible
query I rowsort label-8622
SELECT - COUNT ( * ) - 93
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-8623
SELECT - COUNT( * ) * - + 33 * + 28
----
924

skipif mysql # not compatible
query I rowsort label-8623
SELECT - COUNT ( * ) * - + 33 * + 28
----
924

query II rowsort
SELECT - - ( - + 23 ), - 91 AS col1
----
-23
-91

query I rowsort
SELECT ALL + 64 + 78 * 13 AS col0
----
1078

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8626
SELECT ALL + CAST( NULL AS DECIMAL ) * - ( + COUNT( * ) / 61 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8626
SELECT ALL + CAST ( NULL AS REAL ) * - ( + COUNT ( * ) / 61 ) AS col1
----
NULL

query I rowsort
SELECT ALL 47 * 69
----
3243

onlyif mysql # aggregate syntax: 
query I rowsort label-8628
SELECT 39 * + SUM( DISTINCT - 87 )
----
-3393

skipif mysql # not compatible
query I rowsort label-8628
SELECT 39 * + SUM ( DISTINCT - 87 )
----
-3393

onlyif mysql # aggregate syntax: 
query I rowsort label-8629
SELECT ALL 57 * + COUNT( * )
----
57

skipif mysql # not compatible
query I rowsort label-8629
SELECT ALL 57 * + COUNT ( * )
----
57

query I rowsort
SELECT ALL - ( 42 ) col1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-8631
SELECT ALL - SUM( + 32 ) AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-8631
SELECT ALL - SUM ( + 32 ) AS col2
----
-32

query I rowsort
SELECT + 52 + 3
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8633
SELECT ALL NULLIF ( COUNT( * ), COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8633
SELECT ALL NULLIF ( COUNT ( * ), COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8634
SELECT + COUNT( * ) + - 85 col0
----
-84

skipif mysql # not compatible
query I rowsort label-8634
SELECT + COUNT ( * ) + - 85 col0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-8635
SELECT + 60 + COUNT( * ) col1
----
61

skipif mysql # not compatible
query I rowsort label-8635
SELECT + 60 + COUNT ( * ) col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8636
SELECT - ( - + 25 ) * COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-8636
SELECT - ( - + 25 ) * COUNT ( * )
----
25

query I rowsort
SELECT DISTINCT + 22 + - 36 AS col1
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-8638
SELECT - 75 DIV + 78
----
0

skipif mysql # not compatible
query I rowsort label-8638
SELECT - 75 / + 78
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8639
SELECT + CAST( + COALESCE ( + COUNT( * ), 19 ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8639
SELECT + CAST ( + COALESCE ( + COUNT ( * ), 19 ) AS INTEGER ) AS col2
----
1

query I rowsort
SELECT ALL 38 * 58 col1
----
2204

query I rowsort
SELECT DISTINCT - - 73 AS col2
----
73

query I rowsort
SELECT - + 77 col2
----
-77

query I rowsort
SELECT 67 + + 61 AS col2
----
128

query I rowsort
SELECT 2 - + - ( - 92 ) AS col1
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8645
SELECT ALL 27 + - COUNT( DISTINCT + + 93 )
----
26

skipif mysql # not compatible
query I rowsort label-8645
SELECT ALL 27 + - COUNT ( DISTINCT + + 93 )
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8646
SELECT - - 29 DIV - - COUNT( * ) + COUNT( * ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-8646
SELECT - - 29 / - - COUNT ( * ) + COUNT ( * ) AS col2
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8647
SELECT 79 + CAST( - 29 AS SIGNED )
----
50

skipif mysql # not compatible
query I rowsort label-8647
SELECT 79 + CAST ( - 29 AS INTEGER )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8648
SELECT 12 + COUNT( * ) - 78
----
-65

skipif mysql # not compatible
query I rowsort label-8648
SELECT 12 + COUNT ( * ) - 78
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8649
SELECT ALL MAX( - + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8649
SELECT ALL MAX ( - + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8650
SELECT DISTINCT 86 - + - COUNT( * ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-8650
SELECT DISTINCT 86 - + - COUNT ( * ) AS col1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8651
SELECT 92 - COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-8651
SELECT 92 - COUNT ( * )
----
91

query I rowsort
SELECT - NULLIF ( - + 15, 38 ) * - 67 - 6 AS col2
----
-1011

onlyif mysql # aggregate syntax: 
query I rowsort label-8653
SELECT ALL + - COUNT( * ) * + - 61 AS col1
----
61

skipif mysql # not compatible
query I rowsort label-8653
SELECT ALL + - COUNT ( * ) * + - 61 AS col1
----
61

query I rowsort
SELECT + 26 * 7
----
182

onlyif mysql # aggregate syntax: 
query I rowsort label-8655
SELECT - + MAX( ALL 25 ) * - 29 + 81 AS col2
----
806

skipif mysql # not compatible
query I rowsort label-8655
SELECT - + MAX ( ALL 25 ) * - 29 + 81 AS col2
----
806

onlyif mysql # aggregate syntax: 
query I rowsort label-8656
SELECT + COUNT( * ) * 86
----
86

skipif mysql # not compatible
query I rowsort label-8656
SELECT + COUNT ( * ) * 86
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-8657
SELECT ALL COUNT( * ) * - 74 AS col0, 25 AS col0
----
-74
25

skipif mysql # not compatible
query II rowsort label-8657
SELECT ALL COUNT ( * ) * - 74 AS col0, 25 AS col0
----
-74
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8658
SELECT - - COUNT( ALL + CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-8658
SELECT - - COUNT ( ALL + CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8659
SELECT ALL - - CAST( - COUNT( * ) AS SIGNED ) AS col1, - COUNT( * ) AS col1
----
-1
-1

skipif mysql # not compatible
query II rowsort label-8659
SELECT ALL - - CAST ( - COUNT ( * ) AS INTEGER ) AS col1, - COUNT ( * ) AS col1
----
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8660
SELECT 31 DIV + 86
----
0

skipif mysql # not compatible
query I rowsort label-8660
SELECT 31 / + 86
----
0

query I rowsort
SELECT - 56 + - ( - 22 )
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8662
SELECT DISTINCT + 33 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8662
SELECT DISTINCT + 33 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - - NULLIF ( + 41, 83 ) AS col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8664
SELECT ALL - 59 * COUNT( * ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-8664
SELECT ALL - 59 * COUNT ( * ) AS col2
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-8665
SELECT - MIN( 42 ) + - 91
----
-133

skipif mysql # not compatible
query I rowsort label-8665
SELECT - MIN ( 42 ) + - 91
----
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-8666
SELECT DISTINCT + COUNT( * ) + - 61
----
-60

skipif mysql # not compatible
query I rowsort label-8666
SELECT DISTINCT + COUNT ( * ) + - 61
----
-60

query I rowsort
SELECT - + 38 col2
----
-38

query I rowsort
SELECT + ( - 21 )
----
-21

query I rowsort
SELECT - 7 + 23 AS col1
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-8670
SELECT ALL 15 AS col1, - MAX( DISTINCT ( - 15 ) ) + - + COUNT( * ) AS col0
----
15
14

skipif mysql # not compatible
query II rowsort label-8670
SELECT ALL 15 AS col1, - MAX ( DISTINCT ( - 15 ) ) + - + COUNT ( * ) AS col0
----
15
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8671
SELECT - CAST( + + 3 AS SIGNED ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-8671
SELECT - CAST ( + + 3 AS INTEGER ) AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8672
SELECT COUNT( * ) * + + 63
----
63

skipif mysql # not compatible
query I rowsort label-8672
SELECT COUNT ( * ) * + + 63
----
63

query I rowsort
SELECT ALL 3 + + 88 AS col2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8674
SELECT ALL ( - COUNT( * ) ) + + 25 AS col2
----
24

skipif mysql # not compatible
query I rowsort label-8674
SELECT ALL ( - COUNT ( * ) ) + + 25 AS col2
----
24

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8675
SELECT CAST( NULL AS DECIMAL ) + 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8675
SELECT CAST ( NULL AS REAL ) + 40 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8676
SELECT 65 * + COUNT( * )
----
65

skipif mysql # not compatible
query I rowsort label-8676
SELECT 65 * + COUNT ( * )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8677
SELECT ALL + MAX( + + 46 ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-8677
SELECT ALL + MAX ( + + 46 ) AS col1
----
46

query I rowsort
SELECT DISTINCT - COALESCE ( ( 59 ), + 39 ) AS col1
----
-59

query I rowsort
SELECT ALL - 92 * COALESCE ( - - 58, 89 ) + + 92
----
-5244

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8680
SELECT - + 71 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8680
SELECT - + 71 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8681
SELECT + + 60 * - COUNT( * ) * - 72 AS col2
----
4320

skipif mysql # not compatible
query I rowsort label-8681
SELECT + + 60 * - COUNT ( * ) * - 72 AS col2
----
4320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8682
SELECT CAST( - 61 AS SIGNED ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-8682
SELECT CAST ( - 61 AS INTEGER ) AS col1
----
-61

query II rowsort
SELECT ALL 7, 51 col1
----
7
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8684
SELECT ALL - CAST( NULL AS SIGNED ) + 14 * + - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8684
SELECT ALL - CAST ( NULL AS INTEGER ) + 14 * + - CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8685
SELECT DISTINCT + MIN( + 66 ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-8685
SELECT DISTINCT + MIN ( + 66 ) AS col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8686
SELECT + COUNT( * ) + - COALESCE ( - + COUNT( * ), + + ( + 29 ) ) * + + COUNT( * ) + + - 32
----
-30

skipif mysql # not compatible
query I rowsort label-8686
SELECT + COUNT ( * ) + - COALESCE ( - + COUNT ( * ), + + ( + 29 ) ) * + + COUNT ( * ) + + - 32
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-8687
SELECT ALL COUNT( - 96 )
----
1

skipif mysql # not compatible
query I rowsort label-8687
SELECT ALL COUNT ( - 96 )
----
1

query I rowsort
SELECT - 27 * - 65
----
1755

query I rowsort
SELECT ALL - - 36 + - 90 col1
----
-54

query I rowsort
SELECT 21 + - - 45
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8691
SELECT + COUNT( * ) + + 32 AS col0
----
33

skipif mysql # not compatible
query I rowsort label-8691
SELECT + COUNT ( * ) + + 32 AS col0
----
33

query I rowsort
SELECT ALL 44 col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8693
SELECT ALL + 39 * COUNT( * ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-8693
SELECT ALL + 39 * COUNT ( * ) AS col0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8694
SELECT DISTINCT COUNT( ALL - + 0 )
----
1

skipif mysql # not compatible
query I rowsort label-8694
SELECT DISTINCT COUNT ( ALL - + 0 )
----
1

query I rowsort
SELECT ALL 43 * + 46
----
1978

onlyif mysql # aggregate syntax: 
query I rowsort label-8696
SELECT + MAX( + 13 )
----
13

skipif mysql # not compatible
query I rowsort label-8696
SELECT + MAX ( + 13 )
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8697
SELECT + ( 19 ) * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8697
SELECT + ( 19 ) * CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + - 82 AS col2
----
-82

query I rowsort
SELECT NULLIF ( + 81, 32 ) AS col2
----
81

query I rowsort
SELECT + - 75 * - 66 AS col0
----
4950

onlyif mysql # aggregate syntax: 
query I rowsort label-8701
SELECT COUNT( * ) * + COUNT( * ) - - COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-8701
SELECT COUNT ( * ) * + COUNT ( * ) - - COUNT ( * ) AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8702
SELECT ALL COUNT( - - ( + - 35 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8702
SELECT ALL COUNT ( - - ( + - 35 ) ) AS col2
----
1

query I rowsort
SELECT + 22 + + + 89 + + - COALESCE ( - - 89, + 7 )
----
22

query I rowsort
SELECT DISTINCT - + 13 * + + 37 AS col2
----
-481

query I rowsort
SELECT DISTINCT - - 88 * + 95
----
8360

onlyif mysql # aggregate syntax: 
query I rowsort label-8706
SELECT - 45 * + COUNT( * ) AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-8706
SELECT - 45 * + COUNT ( * ) AS col2
----
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-8707
SELECT 2 AS col1, COUNT( * ) * + COUNT( * )
----
2
1

skipif mysql # not compatible
query II rowsort label-8707
SELECT 2 AS col1, COUNT ( * ) * + COUNT ( * )
----
2
1

query I rowsort
SELECT - 2 + - 14 AS col2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-8709
SELECT + SUM( + 85 )
----
85

skipif mysql # not compatible
query I rowsort label-8709
SELECT + SUM ( + 85 )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8710
SELECT - SUM( - 12 )
----
12

skipif mysql # not compatible
query I rowsort label-8710
SELECT - SUM ( - 12 )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8711
SELECT ( + MAX( DISTINCT - + 65 ) ) col1
----
-65

skipif mysql # not compatible
query I rowsort label-8711
SELECT ( + MAX ( DISTINCT - + 65 ) ) col1
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8712
SELECT DISTINCT 80 * - CAST( - - COUNT( * ) AS SIGNED ) AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-8712
SELECT DISTINCT 80 * - CAST ( - - COUNT ( * ) AS INTEGER ) AS col2
----
-80

query I rowsort
SELECT ALL ( - + 77 ) AS col0
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8714
SELECT + CAST( + 41 AS SIGNED ) AS col0
----
41

skipif mysql # not compatible
query I rowsort label-8714
SELECT + CAST ( + 41 AS INTEGER ) AS col0
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8715
SELECT + CAST( NULL AS SIGNED ) - - + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-8715
SELECT + CAST ( NULL AS INTEGER ) - - + 12
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8716
SELECT DISTINCT + + ( + COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8716
SELECT DISTINCT + + ( + COUNT ( * ) ) AS col0
----
1

query I rowsort
SELECT DISTINCT + 45 * - - 94 col1
----
4230

onlyif mysql # aggregate syntax: 
query I rowsort label-8718
SELECT ALL - MAX( - - 6 ) AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-8718
SELECT ALL - MAX ( - - 6 ) AS col0
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-8719
SELECT - + 32 DIV + + 43 - - 52 + 4 AS col2
----
56

skipif mysql # not compatible
query I rowsort label-8719
SELECT - + 32 / + + 43 - - 52 + 4 AS col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8720
SELECT - + MAX( - - 90 ) * 62
----
-5580

skipif mysql # not compatible
query I rowsort label-8720
SELECT - + MAX ( - - 90 ) * 62
----
-5580

query I rowsort
SELECT DISTINCT 55 * - 8 * - - 21
----
-9240

query I rowsort
SELECT ALL + ( + 3 ) + 40 AS col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8723
SELECT ALL MIN( + 42 ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-8723
SELECT ALL MIN ( + 42 ) AS col1
----
42

query I rowsort
SELECT - 85 * + 14 * 98 * 50
----
-5831000

onlyif mysql # DIV for integer division: 
query I rowsort label-8725
SELECT ALL 22 DIV + + 34 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8725
SELECT ALL 22 / + + 34 AS col2
----
0

query I rowsort
SELECT DISTINCT - 10 * - 60 AS col2
----
600

onlyif mysql # aggregate syntax: 
query I rowsort label-8727
SELECT DISTINCT - 59 + + COUNT( * )
----
-58

skipif mysql # not compatible
query I rowsort label-8727
SELECT DISTINCT - 59 + + COUNT ( * )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8728
SELECT ALL - COUNT( * ) * + + 52 AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-8728
SELECT ALL - COUNT ( * ) * + + 52 AS col0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-8729
SELECT - COUNT( * ) + 39 AS col0
----
38

skipif mysql # not compatible
query I rowsort label-8729
SELECT - COUNT ( * ) + 39 AS col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8730
SELECT ALL - + COUNT( - - 33 ) * 48 + COUNT( * ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-8730
SELECT ALL - + COUNT ( - - 33 ) * 48 + COUNT ( * ) AS col1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8731
SELECT DISTINCT - 28 + - ( - COUNT( * ) )
----
-27

skipif mysql # not compatible
query I rowsort label-8731
SELECT DISTINCT - 28 + - ( - COUNT ( * ) )
----
-27

query I rowsort
SELECT DISTINCT + 55 * + 66
----
3630

query I rowsort
SELECT - 21 + - 81
----
-102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8734
SELECT DISTINCT - COUNT( * ) DIV 87 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8734
SELECT DISTINCT - COUNT ( * ) / 87 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8735
SELECT ALL + CAST( - 16 AS SIGNED ) AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-8735
SELECT ALL + CAST ( - 16 AS INTEGER ) AS col1
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8736
SELECT CAST( NULL AS SIGNED ) + - 87 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8736
SELECT CAST ( NULL AS INTEGER ) + - 87 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8737
SELECT DISTINCT COUNT( DISTINCT + ( 57 ) ) + - ( + COUNT( * ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8737
SELECT DISTINCT COUNT ( DISTINCT + ( 57 ) ) + - ( + COUNT ( * ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8738
SELECT - 46 * + COUNT( * ) col0
----
-46

skipif mysql # not compatible
query I rowsort label-8738
SELECT - 46 * + COUNT ( * ) col0
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8739
SELECT DISTINCT - 54 * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8739
SELECT DISTINCT - 54 * + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8740
SELECT + NULLIF ( - COUNT( * ), - 92 )
----
-1

skipif mysql # not compatible
query I rowsort label-8740
SELECT + NULLIF ( - COUNT ( * ), - 92 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8741
SELECT COUNT( * ) * - COUNT( * ) col1, 72 * + 22 AS col0
----
-1
1584

skipif mysql # not compatible
query II rowsort label-8741
SELECT COUNT ( * ) * - COUNT ( * ) col1, 72 * + 22 AS col0
----
-1
1584

onlyif mysql # aggregate syntax: 
query I rowsort label-8742
SELECT MAX( - 11 ) * - 47
----
517

skipif mysql # not compatible
query I rowsort label-8742
SELECT MAX ( - 11 ) * - 47
----
517

query I rowsort
SELECT ALL - - ( - - 61 ) AS col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8744
SELECT + COUNT( * ) + + ( 44 ) AS col1
----
45

skipif mysql # not compatible
query I rowsort label-8744
SELECT + COUNT ( * ) + + ( 44 ) AS col1
----
45

query I rowsort
SELECT - 39 * + 38 + + 1 AS col2
----
-1481

onlyif mysql # aggregate syntax: 
query II rowsort label-8746
SELECT COUNT( * ) AS col1, + 52
----
1
52

skipif mysql # not compatible
query II rowsort label-8746
SELECT COUNT ( * ) AS col1, + 52
----
1
52

query I rowsort
SELECT ALL + ( - 8 ) AS col1
----
-8

query I rowsort
SELECT - 44 * - ( - 78 )
----
-3432

query II rowsort
SELECT 17 AS col1, + ( + - 27 )
----
17
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-8750
SELECT - COUNT( * ) + - 90
----
-91

skipif mysql # not compatible
query I rowsort label-8750
SELECT - COUNT ( * ) + - 90
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8751
SELECT + + ( - COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8751
SELECT + + ( - COUNT ( * ) ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8752
SELECT + ( + CAST( NULL AS SIGNED ) ), - COUNT( * ) AS col1
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-8752
SELECT + ( + CAST ( NULL AS INTEGER ) ), - COUNT ( * ) AS col1
----
NULL
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8753
SELECT ALL - COUNT( * ) * 35
----
-35

skipif mysql # not compatible
query I rowsort label-8753
SELECT ALL - COUNT ( * ) * 35
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-8754
SELECT SUM( - - 54 )
----
54

skipif mysql # not compatible
query I rowsort label-8754
SELECT SUM ( - - 54 )
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8755
SELECT DISTINCT - CAST( - NULLIF ( - COALESCE ( + 0, - 72, 98 ), + 59 ) AS SIGNED ) col0
----
0

skipif mysql # not compatible
query I rowsort label-8755
SELECT DISTINCT - CAST ( - NULLIF ( - COALESCE ( + 0, - 72, 98 ), + 59 ) AS INTEGER ) col0
----
0

query I rowsort
SELECT ALL + 19 * 31
----
589

onlyif mysql # aggregate syntax: 
query I rowsort label-8757
SELECT 24 * COUNT( * )
----
24

skipif mysql # not compatible
query I rowsort label-8757
SELECT 24 * COUNT ( * )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8758
SELECT DISTINCT + 65 * COUNT( * ) * - + 51
----
-3315

skipif mysql # not compatible
query I rowsort label-8758
SELECT DISTINCT + 65 * COUNT ( * ) * - + 51
----
-3315

onlyif mysql # aggregate syntax: 
query I rowsort label-8759
SELECT ALL + SUM( ALL + 47 ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-8759
SELECT ALL + SUM ( ALL + 47 ) AS col1
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8760
SELECT DISTINCT + ( + - ( - 55 ) ) * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8760
SELECT DISTINCT + ( + - ( - 55 ) ) * + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 10 * + - 10 AS col0
----
-100

query I rowsort
SELECT + ( - - 10 ) AS col1
----
10

query I rowsort
SELECT DISTINCT - ( 81 )
----
-81

query I rowsort
SELECT DISTINCT + - 87 * 94
----
-8178

onlyif mysql # aggregate syntax: 
query I rowsort label-8765
SELECT ALL 91 * MAX( 49 )
----
4459

skipif mysql # not compatible
query I rowsort label-8765
SELECT ALL 91 * MAX ( 49 )
----
4459

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8766
SELECT ALL COUNT( * ) - + 65 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8766
SELECT ALL COUNT ( * ) - + 65 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL 75 + - 67
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-8768
SELECT DISTINCT COUNT( * ) col1, + 42
----
1
42

skipif mysql # not compatible
query II rowsort label-8768
SELECT DISTINCT COUNT ( * ) col1, + 42
----
1
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8769
SELECT DISTINCT COUNT( 92 )
----
1

skipif mysql # not compatible
query I rowsort label-8769
SELECT DISTINCT COUNT ( 92 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8770
SELECT + COUNT( ( + - 89 ) )
----
1

skipif mysql # not compatible
query I rowsort label-8770
SELECT + COUNT ( ( + - 89 ) )
----
1

query I rowsort
SELECT ALL + 48 * + 3 col1
----
144

query I rowsort
SELECT ALL 68 * - + 94 col1
----
-6392

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8773
SELECT DISTINCT - + CAST( + + COUNT( * ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-8773
SELECT DISTINCT - + CAST ( + + COUNT ( * ) AS INTEGER )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8774
SELECT DISTINCT - + 74 - - COUNT( * ) AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-8774
SELECT DISTINCT - + 74 - - COUNT ( * ) AS col0
----
-73

query II rowsort
SELECT DISTINCT 44 AS col2, - 19 AS col0
----
44
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-8776
SELECT ALL COUNT( * ), - 6 col1
----
1
-6

skipif mysql # not compatible
query II rowsort label-8776
SELECT ALL COUNT ( * ), - 6 col1
----
1
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8777
SELECT ALL - COUNT( ALL 58 )
----
-1

skipif mysql # not compatible
query I rowsort label-8777
SELECT ALL - COUNT ( ALL 58 )
----
-1

query I rowsort
SELECT DISTINCT - - ( - - 20 )
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8779
SELECT ALL + 32 DIV + SUM( ALL - 2 )
----
-16

skipif mysql # not compatible
query I rowsort label-8779
SELECT ALL + 32 / + SUM ( ALL - 2 )
----
-16

query I rowsort
SELECT + + 57 col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8781
SELECT + 21 * + + COUNT( * )
----
21

skipif mysql # not compatible
query I rowsort label-8781
SELECT + 21 * + + COUNT ( * )
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8782
SELECT + COALESCE ( COALESCE ( + 82, - COUNT( * ) ), 90 ) + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8782
SELECT + COALESCE ( COALESCE ( + 82, - COUNT ( * ) ), 90 ) + + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + + 23 AS col0
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8784
SELECT ALL CAST( 28 AS SIGNED ) * + COUNT( * ) col2
----
28

skipif mysql # not compatible
query I rowsort label-8784
SELECT ALL CAST ( 28 AS INTEGER ) * + COUNT ( * ) col2
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8785
SELECT + 7 + + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8785
SELECT + 7 + + CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT - - 98 * - - 19 AS col2
----
1862

query I rowsort
SELECT ALL 68 + - 12 AS col2
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8788
SELECT ALL 32 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8788
SELECT ALL 32 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8789
SELECT - - 71, COUNT( * ) + - - 17 AS col1
----
71
18

skipif mysql # not compatible
query II rowsort label-8789
SELECT - - 71, COUNT ( * ) + - - 17 AS col1
----
71
18

query I rowsort
SELECT ALL + 86 * 66 AS col0
----
5676

query I rowsort
SELECT DISTINCT - 62 * 10 col1
----
-620

onlyif mysql # aggregate syntax: 
query I rowsort label-8792
SELECT ALL COUNT( * ) + - COUNT( * ) + 30
----
30

skipif mysql # not compatible
query I rowsort label-8792
SELECT ALL COUNT ( * ) + - COUNT ( * ) + 30
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8793
SELECT + MAX( ALL - 73 )
----
-73

skipif mysql # not compatible
query I rowsort label-8793
SELECT + MAX ( ALL - 73 )
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-8794
SELECT + 36 + - ( - COUNT( * ) )
----
37

skipif mysql # not compatible
query I rowsort label-8794
SELECT + 36 + - ( - COUNT ( * ) )
----
37

query I rowsort
SELECT ALL + - 49 + 55 AS col1
----
6

query I rowsort
SELECT ( - 53 ) AS col2
----
-53

query I rowsort
SELECT + ( + - 86 ) AS col1
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-8798
SELECT DISTINCT + 5 * + COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-8798
SELECT DISTINCT + 5 * + COUNT ( * )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8799
SELECT - + 91 * - COUNT( * ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-8799
SELECT - + 91 * - COUNT ( * ) AS col2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8800
SELECT DISTINCT + COUNT( * ) * + 9
----
9

skipif mysql # not compatible
query I rowsort label-8800
SELECT DISTINCT + COUNT ( * ) * + 9
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8801
SELECT ALL - 84 + SUM( - 52 ) + + 21 AS col0
----
-115

skipif mysql # not compatible
query I rowsort label-8801
SELECT ALL - 84 + SUM ( - 52 ) + + 21 AS col0
----
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-8802
SELECT DISTINCT COUNT( * ) + + 24
----
25

skipif mysql # not compatible
query I rowsort label-8802
SELECT DISTINCT COUNT ( * ) + + 24
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8803
SELECT DISTINCT - COUNT( + - 35 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8803
SELECT DISTINCT - COUNT ( + - 35 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8804
SELECT ALL + + 83 * - COUNT( * ) - - 14 AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-8804
SELECT ALL + + 83 * - COUNT ( * ) - - 14 AS col2
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8805
SELECT DISTINCT - ( + COUNT( * ) ) * CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8805
SELECT DISTINCT - ( + COUNT ( * ) ) * CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT - 12 + + 96
----
84

query I rowsort
SELECT + 21 * - 45
----
-945

query I rowsort
SELECT ALL 39 - + + 64
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8809
SELECT CAST( NULL AS SIGNED ) + - ( 40 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8809
SELECT CAST ( NULL AS INTEGER ) + - ( 40 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8810
SELECT - COUNT( * ) DIV - - 23 + - ( 3 ) col0
----
-3

skipif mysql # not compatible
query I rowsort label-8810
SELECT - COUNT ( * ) / - - 23 + - ( 3 ) col0
----
-3

query I rowsort
SELECT DISTINCT 84 * + 22
----
1848

query I rowsort
SELECT ALL + 37 + + 58 AS col0
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8813
SELECT ALL MIN( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8813
SELECT ALL MIN ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8814
SELECT DISTINCT MIN( DISTINCT + ( - 16 ) ) AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-8814
SELECT DISTINCT MIN ( DISTINCT + ( - 16 ) ) AS col1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-8815
SELECT DISTINCT - COUNT( * ) * + + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-8815
SELECT DISTINCT - COUNT ( * ) * + + COUNT ( * )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8816
SELECT DISTINCT 21 * - + COUNT( * ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8816
SELECT DISTINCT 21 * - + COUNT ( * ) * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8817
SELECT - SUM( DISTINCT + CAST( NULL AS SIGNED ) ) + + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-8817
SELECT - SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) + + 66
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8818
SELECT - 61 * - CAST( - 42 AS SIGNED ) * + 96 + + COUNT( * ) col0
----
-245951

skipif mysql # not compatible
query I rowsort label-8818
SELECT - 61 * - CAST ( - 42 AS INTEGER ) * + 96 + + COUNT ( * ) col0
----
-245951

query I rowsort
SELECT 56 + + 10 col1
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-8820
SELECT ALL - 22, + ( + COUNT( * ) ) AS col2
----
-22
1

skipif mysql # not compatible
query II rowsort label-8820
SELECT ALL - 22, + ( + COUNT ( * ) ) AS col2
----
-22
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8821
SELECT ALL + 69 + - 21 DIV - 70
----
69

skipif mysql # not compatible
query I rowsort label-8821
SELECT ALL + 69 + - 21 / - 70
----
69

query I rowsort
SELECT 6 + - 98
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-8823
SELECT ALL - COUNT( * ) - - 51
----
50

skipif mysql # not compatible
query I rowsort label-8823
SELECT ALL - COUNT ( * ) - - 51
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8824
SELECT - 33 + COUNT( * ) AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-8824
SELECT - 33 + COUNT ( * ) AS col2
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-8825
SELECT - 89 + - COUNT( * ) AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-8825
SELECT - 89 + - COUNT ( * ) AS col2
----
-90

query I rowsort
SELECT - 35 - 83 AS col2
----
-118

query I rowsort
SELECT DISTINCT ( + 23 ) AS col0
----
23

query I rowsort
SELECT + ( + 81 ) AS col0
----
81

query I rowsort
SELECT ( - ( + 27 ) ) col0
----
-27

query I rowsort
SELECT + 32 * + ( 96 )
----
3072

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8831
SELECT - CAST( - MAX( ALL - ( + ( 72 ) ) ) AS SIGNED )
----
-72

skipif mysql # not compatible
query I rowsort label-8831
SELECT - CAST ( - MAX ( ALL - ( + ( 72 ) ) ) AS INTEGER )
----
-72

query I rowsort
SELECT DISTINCT ( - 0 )
----
0

query I rowsort
SELECT DISTINCT + ( - 62 )
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8834
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 58 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8834
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 58 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8835
SELECT 60 + - 47 + COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-8835
SELECT 60 + - 47 + COUNT ( * )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8836
SELECT ALL COUNT( * ) * - 31 * + COUNT( * ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-8836
SELECT ALL COUNT ( * ) * - 31 * + COUNT ( * ) AS col1
----
-31

query I rowsort
SELECT ALL ( 53 ) AS col0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8838
SELECT DISTINCT COUNT( * ) + 11 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-8838
SELECT DISTINCT COUNT ( * ) + 11 AS col0
----
12

query I rowsort
SELECT + - 94 + ( + NULLIF ( - 11, - 31 ) ) * + 20 AS col0
----
-314

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8840
SELECT DISTINCT 19 DIV + MAX( - 3 )
----
-6

skipif mysql # not compatible
query I rowsort label-8840
SELECT DISTINCT 19 / + MAX ( - 3 )
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8841
SELECT + 6 DIV - COUNT( * )
----
-6

skipif mysql # not compatible
query I rowsort label-8841
SELECT + 6 / - COUNT ( * )
----
-6

query II rowsort
SELECT DISTINCT 46 col1, + 57
----
46
57

query I rowsort
SELECT COALESCE ( 96, + 53 )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8844
SELECT - 11 * - - COUNT( * )
----
-11

skipif mysql # not compatible
query I rowsort label-8844
SELECT - 11 * - - COUNT ( * )
----
-11

query I rowsort
SELECT DISTINCT - COALESCE ( + - 84, - - 81 ) AS col2
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8846
SELECT ALL COALESCE ( + + 32, CAST( COUNT( * ) AS SIGNED ) ) * CAST( - 85 AS SIGNED ) col0
----
-2720

skipif mysql # not compatible
query I rowsort label-8846
SELECT ALL COALESCE ( + + 32, CAST ( COUNT ( * ) AS INTEGER ) ) * CAST ( - 85 AS INTEGER ) col0
----
-2720

query I rowsort
SELECT NULLIF ( - + 97, ( + + 48 ) ) AS col2
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8848
SELECT + COUNT( * ) + + 39
----
40

skipif mysql # not compatible
query I rowsort label-8848
SELECT + COUNT ( * ) + + 39
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-8849
SELECT + 3 DIV + 94 * - - 76
----
0

skipif mysql # not compatible
query I rowsort label-8849
SELECT + 3 / + 94 * - - 76
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8850
SELECT ( - - 68 ) * COUNT( * ) + - 97 * - COUNT( * )
----
165

skipif mysql # not compatible
query I rowsort label-8850
SELECT ( - - 68 ) * COUNT ( * ) + - 97 * - COUNT ( * )
----
165

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8851
SELECT 61 / + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8851
SELECT 61 / + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8852
SELECT + COUNT( * ) + - 17 AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-8852
SELECT + COUNT ( * ) + - 17 AS col2
----
-16

query I rowsort
SELECT + 58 + - 55
----
3

query I rowsort
SELECT - ( + 52 ) AS col0
----
-52

query I rowsort
SELECT DISTINCT 44 * - 3
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-8856
SELECT ALL + 51 - + - COUNT( * ) + + ( - 28 ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-8856
SELECT ALL + 51 - + - COUNT ( * ) + + ( - 28 ) AS col2
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8857
SELECT DISTINCT - - CAST( - 50 AS SIGNED ) AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-8857
SELECT DISTINCT - - CAST ( - 50 AS INTEGER ) AS col1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-8858
SELECT ALL MAX( DISTINCT - - 34 )
----
34

skipif mysql # not compatible
query I rowsort label-8858
SELECT ALL MAX ( DISTINCT - - 34 )
----
34

query I rowsort
SELECT ALL + ( - + 33 )
----
-33

query II rowsort
SELECT DISTINCT 32, 54 AS col1
----
32
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8861
SELECT DISTINCT MAX( ALL - 19 ) AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-8861
SELECT DISTINCT MAX ( ALL - 19 ) AS col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-8862
SELECT ALL MAX( DISTINCT + 4 )
----
4

skipif mysql # not compatible
query I rowsort label-8862
SELECT ALL MAX ( DISTINCT + 4 )
----
4

query I rowsort
SELECT ALL + 48 + 20 * 38
----
808

onlyif mysql # aggregate syntax: 
query I rowsort label-8864
SELECT + NULLIF ( COUNT( * ), 38 )
----
1

skipif mysql # not compatible
query I rowsort label-8864
SELECT + NULLIF ( COUNT ( * ), 38 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8865
SELECT + 59 + - - COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-8865
SELECT + 59 + - - COUNT ( * )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8866
SELECT ALL - + MIN( DISTINCT - 36 ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-8866
SELECT ALL - + MIN ( DISTINCT - 36 ) AS col1
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8867
SELECT - CAST( NULL AS SIGNED ) - - + ( + AVG ( 29 ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8867
SELECT - CAST ( NULL AS INTEGER ) - - + ( + AVG ( 29 ) ) col0
----
NULL

query I rowsort
SELECT ALL + NULLIF ( 21, - 80 )
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8869
SELECT ALL + CAST( NULL AS SIGNED ) AS col2, CAST( NULL AS SIGNED ) AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8869
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2, CAST ( NULL AS INTEGER ) AS col0
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8870
SELECT DISTINCT + MIN( 53 ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-8870
SELECT DISTINCT + MIN ( 53 ) AS col1
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8871
SELECT - 60 + NULLIF ( - COALESCE ( COALESCE ( 67, + 54 ), + - 76 + + COUNT( * ) ), - COUNT( + 76 ) )
----
-127

skipif mysql # not compatible
query I rowsort label-8871
SELECT - 60 + NULLIF ( - COALESCE ( COALESCE ( 67, + 54 ), + - 76 + + COUNT ( * ) ), - COUNT ( + 76 ) )
----
-127

query I rowsort
SELECT 14 + - 12
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8873
SELECT ( + 39 ) * + CAST( NULL AS SIGNED ) * - + 50 * - - COUNT( * ) / + ( - 46 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8873
SELECT ( + 39 ) * + CAST ( NULL AS INTEGER ) * - + 50 * - - COUNT ( * ) / + ( - 46 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8874
SELECT ALL - SUM( 76 ) AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-8874
SELECT ALL - SUM ( 76 ) AS col0
----
-76

query I rowsort
SELECT - + ( + + ( + 92 ) )
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8876
SELECT - SUM( - + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8876
SELECT - SUM ( - + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8877
SELECT DISTINCT - + MAX( DISTINCT + + 87 ) DIV 67 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8877
SELECT DISTINCT - + MAX ( DISTINCT + + 87 ) / 67 AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8878
SELECT ALL CAST( 8 AS SIGNED )
----
8

skipif mysql # not compatible
query I rowsort label-8878
SELECT ALL CAST ( 8 AS INTEGER )
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-8879
SELECT + MIN( DISTINCT 10 ), + 33 AS col2
----
10
33

skipif mysql # not compatible
query II rowsort label-8879
SELECT + MIN ( DISTINCT 10 ), + 33 AS col2
----
10
33

onlyif mysql # aggregate syntax: 
query I rowsort label-8880
SELECT ALL 64 * + COUNT( * )
----
64

skipif mysql # not compatible
query I rowsort label-8880
SELECT ALL 64 * + COUNT ( * )
----
64

query I rowsort
SELECT - + ( + - 71 )
----
71

query I rowsort
SELECT - 31 + + 63 AS col0
----
32

query I rowsort
SELECT ALL - 45 + 33 AS col1
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8884
SELECT + 53 DIV - COUNT( * ) AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-8884
SELECT + 53 / - COUNT ( * ) AS col0
----
-53

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8885
SELECT ALL - + CAST( NULL AS DECIMAL ) + - + NULLIF ( 19, 19 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8885
SELECT ALL - + CAST ( NULL AS REAL ) + - + NULLIF ( 19, 19 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8886
SELECT ( 28 ) * COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-8886
SELECT ( 28 ) * COUNT ( * )
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8887
SELECT + COUNT( * ) * - AVG ( ALL - - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8887
SELECT + COUNT ( * ) * - AVG ( ALL - - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8888
SELECT COUNT( * ) - - + 70 AS col0
----
71

skipif mysql # not compatible
query I rowsort label-8888
SELECT COUNT ( * ) - - + 70 AS col0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8889
SELECT ALL COUNT( + 13 )
----
1

skipif mysql # not compatible
query I rowsort label-8889
SELECT ALL COUNT ( + 13 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8890
SELECT ALL - CAST( NULL AS SIGNED ) - + 41
----
NULL

skipif mysql # not compatible
query I rowsort label-8890
SELECT ALL - CAST ( NULL AS INTEGER ) - + 41
----
NULL

query I rowsort
SELECT DISTINCT + - 46 AS col1
----
-46

query II rowsort
SELECT ALL + 17 AS col2, 42
----
17
42

query I rowsort
SELECT - 20 + + 37 AS col0
----
17

query I rowsort
SELECT - ( - + 42 ) AS col2
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8895
SELECT DISTINCT ( CAST( + 9 AS SIGNED ) ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-8895
SELECT DISTINCT ( CAST ( + 9 AS INTEGER ) ) AS col0
----
9

query I rowsort
SELECT DISTINCT + - ( 95 )
----
-95

query I rowsort
SELECT + 43 + - + 5 + - 0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8898
SELECT SUM( ALL - - 68 )
----
68

skipif mysql # not compatible
query I rowsort label-8898
SELECT SUM ( ALL - - 68 )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8899
SELECT - 25 - - + MAX( - 5 )
----
-30

skipif mysql # not compatible
query I rowsort label-8899
SELECT - 25 - - + MAX ( - 5 )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-8900
SELECT MIN( DISTINCT 6 )
----
6

skipif mysql # not compatible
query I rowsort label-8900
SELECT MIN ( DISTINCT 6 )
----
6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8901
SELECT ALL AVG ( DISTINCT CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8901
SELECT ALL AVG ( DISTINCT CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT 98 + + 35 AS col0
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-8903
SELECT COUNT( * ) + + 2
----
3

skipif mysql # not compatible
query I rowsort label-8903
SELECT COUNT ( * ) + + 2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8904
SELECT DISTINCT - MAX( 21 ) + COUNT( * )
----
-20

skipif mysql # not compatible
query I rowsort label-8904
SELECT DISTINCT - MAX ( 21 ) + COUNT ( * )
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8905
SELECT DISTINCT 59 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8905
SELECT DISTINCT 59 - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8906
SELECT COUNT( * ) * + 85
----
85

skipif mysql # not compatible
query I rowsort label-8906
SELECT COUNT ( * ) * + 85
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8907
SELECT DISTINCT COUNT( DISTINCT 73 )
----
1

skipif mysql # not compatible
query I rowsort label-8907
SELECT DISTINCT COUNT ( DISTINCT 73 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8908
SELECT - 64 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8908
SELECT - 64 / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8909
SELECT + 37, COUNT( * ) AS col0
----
37
1

skipif mysql # not compatible
query II rowsort label-8909
SELECT + 37, COUNT ( * ) AS col0
----
37
1

query I rowsort
SELECT + - 84 AS col1
----
-84

query I rowsort
SELECT + + 60 * - + 40
----
-2400

query I rowsort
SELECT ( + 24 ) AS col1
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8913
SELECT + CAST( - ( 90 ) AS SIGNED ), - ( + COUNT( * ) ) AS col2
----
-90
-1

skipif mysql # not compatible
query II rowsort label-8913
SELECT + CAST ( - ( 90 ) AS INTEGER ), - ( + COUNT ( * ) ) AS col2
----
-90
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8914
SELECT DISTINCT 47 DIV + - COUNT( * ) AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-8914
SELECT DISTINCT 47 / + - COUNT ( * ) AS col2
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8915
SELECT ALL - 76 * - + CAST( - COUNT( * ) AS SIGNED ) AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-8915
SELECT ALL - 76 * - + CAST ( - COUNT ( * ) AS INTEGER ) AS col0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-8916
SELECT NULLIF ( - + COUNT( * ), - - COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8916
SELECT NULLIF ( - + COUNT ( * ), - - COUNT ( * ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8917
SELECT 66 + + SUM( + + 79 ) AS col0
----
145

skipif mysql # not compatible
query I rowsort label-8917
SELECT 66 + + SUM ( + + 79 ) AS col0
----
145

query I rowsort
SELECT ALL + 97 + 81 AS col0
----
178

query I rowsort
SELECT DISTINCT 3 * - 60
----
-180

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8920
SELECT DISTINCT 30 DIV - COUNT( * )
----
-30

skipif mysql # not compatible
query I rowsort label-8920
SELECT DISTINCT 30 / - COUNT ( * )
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8921
SELECT ALL COUNT( * ) * - 32 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8921
SELECT ALL COUNT ( * ) * - 32 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8922
SELECT DISTINCT 94 DIV COUNT( * ) * COUNT( * )
----
94

skipif mysql # not compatible
query I rowsort label-8922
SELECT DISTINCT 94 / COUNT ( * ) * COUNT ( * )
----
94

query I rowsort
SELECT DISTINCT + 49 + 76 AS col1
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-8924
SELECT 61 * + - ( COUNT( * ) )
----
-61

skipif mysql # not compatible
query I rowsort label-8924
SELECT 61 * + - ( COUNT ( * ) )
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8925
SELECT - + CAST( 98 AS SIGNED )
----
-98

skipif mysql # not compatible
query I rowsort label-8925
SELECT - + CAST ( 98 AS INTEGER )
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8926
SELECT - NULLIF ( + 48, + CAST( NULL AS SIGNED ) ) AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-8926
SELECT - NULLIF ( + 48, + CAST ( NULL AS INTEGER ) ) AS col0
----
-48

query I rowsort
SELECT ALL + ( - 27 )
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8928
SELECT DISTINCT + ( COALESCE ( - 9, + CAST( NULL AS SIGNED ) + + COUNT( * ) - + 7 ) )
----
-9

skipif mysql # not compatible
query I rowsort label-8928
SELECT DISTINCT + ( COALESCE ( - 9, + CAST ( NULL AS INTEGER ) + + COUNT ( * ) - + 7 ) )
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-8929
SELECT ALL + COUNT( * ), - ( - + COUNT( * ) )
----
1
1

skipif mysql # not compatible
query II rowsort label-8929
SELECT ALL + COUNT ( * ), - ( - + COUNT ( * ) )
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8930
SELECT ALL 84 * + COUNT( * )
----
84

skipif mysql # not compatible
query I rowsort label-8930
SELECT ALL 84 * + COUNT ( * )
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8931
SELECT CAST( + COUNT( * ) AS SIGNED ) AS col1, COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-8931
SELECT CAST ( + COUNT ( * ) AS INTEGER ) AS col1, COUNT ( * )
----
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8932
SELECT CAST( 24 AS SIGNED ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-8932
SELECT CAST ( 24 AS INTEGER ) AS col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8933
SELECT - COUNT( * ) + + COUNT( * ) + + 82 * - - 20 AS col0
----
1640

skipif mysql # not compatible
query I rowsort label-8933
SELECT - COUNT ( * ) + + COUNT ( * ) + + 82 * - - 20 AS col0
----
1640

onlyif mysql # aggregate syntax: 
query I rowsort label-8934
SELECT SUM( 27 )
----
27

skipif mysql # not compatible
query I rowsort label-8934
SELECT SUM ( 27 )
----
27

query I rowsort
SELECT + 99 * - - 92
----
9108

onlyif mysql # aggregate syntax: 
query I rowsort label-8936
SELECT DISTINCT + MIN( DISTINCT - 58 ) AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-8936
SELECT DISTINCT + MIN ( DISTINCT - 58 ) AS col1
----
-58

query I rowsort
SELECT ALL 79 * - - 3
----
237

query I rowsort
SELECT ALL 43 * + + 34
----
1462

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8939
SELECT - ( - - 52 ) DIV + - 97 - - 25 + COUNT( * ) * - - COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-8939
SELECT - ( - - 52 ) / + - 97 - - 25 + COUNT ( * ) * - - COUNT ( * )
----
26

query I rowsort
SELECT ALL - + 53 col0
----
-53

query I rowsort
SELECT 92 + - 99 AS col2
----
-7

query I rowsort
SELECT 17 + ( + - 90 ) AS col2
----
-73

query I rowsort
SELECT - ( - - 30 ) - - 25
----
-5

query I rowsort
SELECT ALL ( + 59 ) col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8945
SELECT ALL MIN( DISTINCT + - 24 )
----
-24

skipif mysql # not compatible
query I rowsort label-8945
SELECT ALL MIN ( DISTINCT + - 24 )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8946
SELECT + 35 * + - COUNT( * )
----
-35

skipif mysql # not compatible
query I rowsort label-8946
SELECT + 35 * + - COUNT ( * )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-8947
SELECT ALL + + 32 * - COUNT( * )
----
-32

skipif mysql # not compatible
query I rowsort label-8947
SELECT ALL + + 32 * - COUNT ( * )
----
-32

query I rowsort
SELECT NULLIF ( 56, + + ( + 22 ) ) AS col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8949
SELECT + 48 * COUNT( * )
----
48

skipif mysql # not compatible
query I rowsort label-8949
SELECT + 48 * COUNT ( * )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8950
SELECT + 29 + + COUNT( * )
----
30

skipif mysql # not compatible
query I rowsort label-8950
SELECT + 29 + + COUNT ( * )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8951
SELECT - COUNT( * ) - - - ( - 2 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8951
SELECT - COUNT ( * ) - - - ( - 2 ) AS col2
----
1

query I rowsort
SELECT + 2 + + 95
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8953
SELECT ALL 6 - COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-8953
SELECT ALL 6 - COUNT ( * )
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8954
SELECT ALL CAST( NULL AS SIGNED ) * 18 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8954
SELECT ALL CAST ( NULL AS INTEGER ) * 18 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8955
SELECT DISTINCT - 78 AS col0, - COUNT( * ) AS col2
----
-78
-1

skipif mysql # not compatible
query II rowsort label-8955
SELECT DISTINCT - 78 AS col0, - COUNT ( * ) AS col2
----
-78
-1

query I rowsort
SELECT 61 * 79
----
4819

query I rowsort
SELECT DISTINCT + ( - 14 ) AS col1
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8958
SELECT DISTINCT + ( + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8958
SELECT DISTINCT + ( + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8959
SELECT DISTINCT - + 26 - COUNT( * )
----
-27

skipif mysql # not compatible
query I rowsort label-8959
SELECT DISTINCT - + 26 - COUNT ( * )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-8960
SELECT - - NULLIF ( COUNT( * ), + 40 )
----
1

skipif mysql # not compatible
query I rowsort label-8960
SELECT - - NULLIF ( COUNT ( * ), + 40 )
----
1

query I rowsort
SELECT ALL - 90 * + 75 col0
----
-6750

query II rowsort
SELECT ALL - - 82 * 68 + + - 55 AS col1, - 85 AS col1
----
5521
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8963
SELECT + 76, + ( + COUNT( - 91 ) ) DIV - 24 AS col0
----
76
0

skipif mysql # not compatible
query II rowsort label-8963
SELECT + 76, + ( + COUNT ( - 91 ) ) / - 24 AS col0
----
76
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8964
SELECT - CAST( - ( + 69 ) AS SIGNED ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-8964
SELECT - CAST ( - ( + 69 ) AS INTEGER ) AS col0
----
69

query I rowsort
SELECT DISTINCT ( - - 57 ) - - 45 col0
----
102

query I rowsort
SELECT - 6 * + 33
----
-198

onlyif mysql # aggregate syntax: 
query I rowsort label-8967
SELECT + 18 + + + 23 + + COUNT( * ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-8967
SELECT + 18 + + + 23 + + COUNT ( * ) AS col2
----
42

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8968
SELECT - COUNT( + ( - CAST( NULL AS DECIMAL ) ) ) * COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8968
SELECT - COUNT ( + ( - CAST ( NULL AS REAL ) ) ) * COUNT ( * ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8969
SELECT ALL + CAST( NULL AS SIGNED ) AS col1, 22
----
NULL
22

skipif mysql # not compatible
query II rowsort label-8969
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1, 22
----
NULL
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8970
SELECT - + 89 * - - 33 - CAST( 33 AS SIGNED ) col0
----
-2970

skipif mysql # not compatible
query I rowsort label-8970
SELECT - + 89 * - - 33 - CAST ( 33 AS INTEGER ) col0
----
-2970

query I rowsort
SELECT 60 * - ( - + 80 )
----
4800

onlyif mysql # aggregate syntax: 
query I rowsort label-8972
SELECT + 22 - + + COUNT( * ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-8972
SELECT + 22 - + + COUNT ( * ) AS col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8973
SELECT - COUNT( + 97 )
----
-1

skipif mysql # not compatible
query I rowsort label-8973
SELECT - COUNT ( + 97 )
----
-1

query I rowsort
SELECT ALL ( + - 85 ) AS col0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-8975
SELECT DISTINCT + COUNT( * ) * 77 AS col1
----
77

skipif mysql # not compatible
query I rowsort label-8975
SELECT DISTINCT + COUNT ( * ) * 77 AS col1
----
77

query I rowsort
SELECT ALL + - 94 AS col2
----
-94

query I rowsort
SELECT + - ( - 53 )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8978
SELECT DISTINCT MAX( ALL 22 )
----
22

skipif mysql # not compatible
query I rowsort label-8978
SELECT DISTINCT MAX ( ALL 22 )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8979
SELECT ALL 6 + - + COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-8979
SELECT ALL 6 + - + COUNT ( * )
----
5

query I rowsort
SELECT ALL - 89 * 98 AS col0
----
-8722

onlyif mysql # aggregate syntax: 
query I rowsort label-8981
SELECT ALL - COUNT( DISTINCT 14 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-8981
SELECT ALL - COUNT ( DISTINCT 14 ) col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8982
SELECT COUNT( * ) - + 25 * 75
----
-1874

skipif mysql # not compatible
query I rowsort label-8982
SELECT COUNT ( * ) - + 25 * 75
----
-1874

query I rowsort
SELECT ( + 3 ) AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8984
SELECT DISTINCT + MAX( DISTINCT - 3 ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-8984
SELECT DISTINCT + MAX ( DISTINCT - 3 ) AS col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8985
SELECT 66 * - - 87 + COUNT( * ) AS col2
----
5743

skipif mysql # not compatible
query I rowsort label-8985
SELECT 66 * - - 87 + COUNT ( * ) AS col2
----
5743

query I rowsort
SELECT 5 * - 97
----
-485

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8987
SELECT + COUNT( * ) DIV + 47
----
0

skipif mysql # not compatible
query I rowsort label-8987
SELECT + COUNT ( * ) / + 47
----
0

query I rowsort
SELECT ALL + ( 35 ) AS col2
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8989
SELECT - CAST( NULL AS SIGNED ) / - 9
----
NULL

skipif mysql # not compatible
query I rowsort label-8989
SELECT - CAST ( NULL AS INTEGER ) / - 9
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8990
SELECT - - COUNT( + 96 )
----
1

skipif mysql # not compatible
query I rowsort label-8990
SELECT - - COUNT ( + 96 )
----
1

query I rowsort
SELECT ALL ( - 28 )
----
-28

query I rowsort
SELECT ALL + 74 + + 51
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-8993
SELECT + COUNT( * ) + - - 19 * ( - 58 ) AS col0
----
-1101

skipif mysql # not compatible
query I rowsort label-8993
SELECT + COUNT ( * ) + - - 19 * ( - 58 ) AS col0
----
-1101

onlyif mysql # aggregate syntax: 
query I rowsort label-8994
SELECT DISTINCT - + COUNT( * ) * - - 90
----
-90

skipif mysql # not compatible
query I rowsort label-8994
SELECT DISTINCT - + COUNT ( * ) * - - 90
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8995
SELECT + 37 DIV - + SUM( - - 87 )
----
0

skipif mysql # not compatible
query I rowsort label-8995
SELECT + 37 / - + SUM ( - - 87 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8996
SELECT ALL - - COUNT( * ) + - 63
----
-62

skipif mysql # not compatible
query I rowsort label-8996
SELECT ALL - - COUNT ( * ) + - 63
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-8997
SELECT 70 + - + COUNT( * )
----
69

skipif mysql # not compatible
query I rowsort label-8997
SELECT 70 + - + COUNT ( * )
----
69

query I rowsort
SELECT ALL - NULLIF ( - 15, + 23 ) AS col0
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8999
SELECT DISTINCT COUNT( * ) DIV + + 79 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8999
SELECT DISTINCT COUNT ( * ) / + + 79 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9000
SELECT ALL - MIN( + + 75 ) col2
----
-75

skipif mysql # not compatible
query I rowsort label-9000
SELECT ALL - MIN ( + + 75 ) col2
----
-75

query I rowsort
SELECT DISTINCT - + 82 AS col2
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-9002
SELECT ALL + COUNT( * ) - - + 43
----
44

skipif mysql # not compatible
query I rowsort label-9002
SELECT ALL + COUNT ( * ) - - + 43
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-9003
SELECT ALL COUNT( * ) AS col1, 8
----
1
8

skipif mysql # not compatible
query II rowsort label-9003
SELECT ALL COUNT ( * ) AS col1, 8
----
1
8

query I rowsort
SELECT - 6 + - 16 AS col1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-9005
SELECT ALL + ( + ( MIN( ALL + + 43 ) ) )
----
43

skipif mysql # not compatible
query I rowsort label-9005
SELECT ALL + ( + ( MIN ( ALL + + 43 ) ) )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9006
SELECT - MAX( + 13 ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-9006
SELECT - MAX ( + 13 ) AS col0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-9007
SELECT DISTINCT - NULLIF ( COUNT( * ), + MIN( + 32 ) + - COUNT( * ) * + 47 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9007
SELECT DISTINCT - NULLIF ( COUNT ( * ), + MIN ( + 32 ) + - COUNT ( * ) * + 47 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9008
SELECT DISTINCT + 8 + - COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-9008
SELECT DISTINCT + 8 + - COUNT ( * )
----
7

query I rowsort
SELECT 92 * + 37 AS col0
----
3404

onlyif mysql # aggregate syntax: 
query I rowsort label-9010
SELECT ALL SUM( - 81 ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-9010
SELECT ALL SUM ( - 81 ) AS col1
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9011
SELECT DISTINCT - MAX( 84 ) AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-9011
SELECT DISTINCT - MAX ( 84 ) AS col0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-9012
SELECT ALL + + 48 * - COUNT( * ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-9012
SELECT ALL + + 48 * - COUNT ( * ) AS col2
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9013
SELECT ALL + 32 + + + 28 * - CAST( COUNT( * ) AS SIGNED )
----
4

skipif mysql # not compatible
query I rowsort label-9013
SELECT ALL + 32 + + + 28 * - CAST ( COUNT ( * ) AS INTEGER )
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9014
SELECT DISTINCT ( + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9014
SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9015
SELECT DISTINCT COALESCE ( 40, COUNT( * ) * - ( COUNT( * ) * CAST( + ( 26 ) AS SIGNED ) ) ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-9015
SELECT DISTINCT COALESCE ( 40, COUNT ( * ) * - ( COUNT ( * ) * CAST ( + ( 26 ) AS INTEGER ) ) ) AS col1
----
40

query I rowsort
SELECT DISTINCT + ( - 93 ) * 17 + 16
----
-1565

query I rowsort
SELECT + 30 * + 70
----
2100

onlyif mysql # aggregate syntax: 
query I rowsort label-9018
SELECT SUM( 77 )
----
77

skipif mysql # not compatible
query I rowsort label-9018
SELECT SUM ( 77 )
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9019
SELECT - MIN( DISTINCT + CAST( + 39 AS SIGNED ) ) + 53 AS col1
----
14

skipif mysql # not compatible
query I rowsort label-9019
SELECT - MIN ( DISTINCT + CAST ( + 39 AS INTEGER ) ) + 53 AS col1
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9020
SELECT ALL CAST( + - 64 AS SIGNED )
----
-64

skipif mysql # not compatible
query I rowsort label-9020
SELECT ALL CAST ( + - 64 AS INTEGER )
----
-64

query I rowsort
SELECT - + 8 AS col1
----
-8

query I rowsort
SELECT 42 + + 69
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-9023
SELECT DISTINCT - MAX( ALL - - 7 )
----
-7

skipif mysql # not compatible
query I rowsort label-9023
SELECT DISTINCT - MAX ( ALL - - 7 )
----
-7

query I rowsort
SELECT ALL 10 * + 21 AS col0
----
210

query I rowsort
SELECT + + 26 + 52
----
78

query I rowsort
SELECT DISTINCT + NULLIF ( - - 39, + AVG ( - 3 ) )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9027
SELECT ALL + SUM( DISTINCT - 78 ) AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-9027
SELECT ALL + SUM ( DISTINCT - 78 ) AS col0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-9028
SELECT NULLIF ( + ( + COUNT( * ) ), - - 89 - + - 68 )
----
1

skipif mysql # not compatible
query I rowsort label-9028
SELECT NULLIF ( + ( + COUNT ( * ) ), - - 89 - + - 68 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9029
SELECT DISTINCT + COUNT( * ), 77 AS col2
----
1
77

skipif mysql # not compatible
query II rowsort label-9029
SELECT DISTINCT + COUNT ( * ), 77 AS col2
----
1
77

query I rowsort
SELECT DISTINCT - 1 + + + 20
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9031
SELECT - + CAST( NULL AS SIGNED ) AS col0, + 50
----
NULL
50

skipif mysql # not compatible
query II rowsort label-9031
SELECT - + CAST ( NULL AS INTEGER ) AS col0, + 50
----
NULL
50

query I rowsort
SELECT + ( - 22 ) AS col2
----
-22

query I rowsort
SELECT - 14 + - + 34 col2
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9034
SELECT CAST( - 71 AS SIGNED ) AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-9034
SELECT CAST ( - 71 AS INTEGER ) AS col1
----
-71

query I rowsort
SELECT ALL - 66 * + 26
----
-1716

query I rowsort
SELECT DISTINCT - COALESCE ( + 22, + 55 ) AS col1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-9037
SELECT ALL + ( 31 ) - MAX( ALL 40 )
----
-9

skipif mysql # not compatible
query I rowsort label-9037
SELECT ALL + ( 31 ) - MAX ( ALL 40 )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9038
SELECT 9 + - COUNT( * ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-9038
SELECT 9 + - COUNT ( * ) AS col1
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9039
SELECT 52 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9039
SELECT 52 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT 42 + + 41 * + 43 + + - 23 AS col1, 0
----
1782
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9041
SELECT ( - COUNT( ALL - 33 ) ) DIV + 61
----
0

skipif mysql # not compatible
query I rowsort label-9041
SELECT ( - COUNT ( ALL - 33 ) ) / + 61
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9042
SELECT - ( - CAST( NULL AS SIGNED ) ) * - - CAST( NULL AS SIGNED ) + - 84 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9042
SELECT - ( - CAST ( NULL AS INTEGER ) ) * - - CAST ( NULL AS INTEGER ) + - 84 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9043
SELECT ALL + - 48 DIV - COUNT( * ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-9043
SELECT ALL + - 48 / - COUNT ( * ) AS col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9044
SELECT DISTINCT MAX( DISTINCT + ( - 49 ) )
----
-49

skipif mysql # not compatible
query I rowsort label-9044
SELECT DISTINCT MAX ( DISTINCT + ( - 49 ) )
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9045
SELECT + MIN( ALL + CAST( - + 31 AS SIGNED ) ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-9045
SELECT + MIN ( ALL + CAST ( - + 31 AS INTEGER ) ) AS col2
----
-31

query I rowsort
SELECT + 94 * + - 68
----
-6392

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9047
SELECT ALL + - CAST( - COUNT( * ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-9047
SELECT ALL + - CAST ( - COUNT ( * ) AS INTEGER )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9048
SELECT ALL MAX( DISTINCT - 67 ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-9048
SELECT ALL MAX ( DISTINCT - 67 ) AS col2
----
-67

query I rowsort
SELECT - ( - 78 ) AS col2
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9050
SELECT DISTINCT AVG ( + ( + - CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9050
SELECT DISTINCT AVG ( + ( + - CAST ( NULL AS INTEGER ) ) )
----
NULL

query I rowsort
SELECT ALL + ( 60 )
----
60

query I rowsort
SELECT ALL + ( + + 26 )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9053
SELECT COUNT( ALL + 31 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9053
SELECT COUNT ( ALL + 31 ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9054
SELECT 95 DIV 71 col1
----
1

skipif mysql # not compatible
query I rowsort label-9054
SELECT 95 / 71 col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9055
SELECT ALL - - COUNT( * ) * COUNT( 19 )
----
1

skipif mysql # not compatible
query I rowsort label-9055
SELECT ALL - - COUNT ( * ) * COUNT ( 19 )
----
1

query I rowsort
SELECT DISTINCT 99 * - 77
----
-7623

query I rowsort
SELECT 11 * 38 AS col0
----
418

query I rowsort
SELECT ALL - - 30 col1
----
30

query I rowsort
SELECT ( - - 71 ) AS col1
----
71

onlyif mysql # aggregate syntax: 
query II rowsort label-9060
SELECT COUNT( * ) AS col0, 70 AS col1
----
1
70

skipif mysql # not compatible
query II rowsort label-9060
SELECT COUNT ( * ) AS col0, 70 AS col1
----
1
70

onlyif mysql # aggregate syntax: 
query II rowsort label-9061
SELECT - 7, + COUNT( DISTINCT - - 39 ) AS col1
----
-7
1

skipif mysql # not compatible
query II rowsort label-9061
SELECT - 7, + COUNT ( DISTINCT - - 39 ) AS col1
----
-7
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9062
SELECT ALL COUNT( * ), 79 AS col2
----
1
79

skipif mysql # not compatible
query II rowsort label-9062
SELECT ALL COUNT ( * ), 79 AS col2
----
1
79

query II rowsort
SELECT - 9, 40 AS col0
----
-9
40

query I rowsort
SELECT DISTINCT ( + + 66 ) AS col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9065
SELECT + + 30 * - - COUNT( * )
----
30

skipif mysql # not compatible
query I rowsort label-9065
SELECT + + 30 * - - COUNT ( * )
----
30

query I rowsort
SELECT DISTINCT + 80 * 79
----
6320

query I rowsort
SELECT DISTINCT - 7 * - - 58
----
-406

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9068
SELECT COALESCE ( + 54, 29 + - - 73 DIV + + COUNT( * ) ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-9068
SELECT COALESCE ( + 54, 29 + - - 73 / + + COUNT ( * ) ) AS col2
----
54

query I rowsort
SELECT DISTINCT + ( + 3 ) AS col0
----
3

query I rowsort
SELECT - - 9 col1
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9071
SELECT ALL MIN( ALL CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9071
SELECT ALL MIN ( ALL CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9072
SELECT 47 * COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-9072
SELECT 47 * COUNT ( * )
----
47

query I rowsort
SELECT COALESCE ( - 7, 42 ) * + - 23 AS col2
----
161

query I rowsort
SELECT DISTINCT + 9 + + 11 AS col0
----
20

query I rowsort
SELECT - - ( + 43 )
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-9076
SELECT DISTINCT + 88 AS col1, + COUNT( * ) col1
----
88
1

skipif mysql # not compatible
query II rowsort label-9076
SELECT DISTINCT + 88 AS col1, + COUNT ( * ) col1
----
88
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9077
SELECT ALL COUNT( + 6 )
----
1

skipif mysql # not compatible
query I rowsort label-9077
SELECT ALL COUNT ( + 6 )
----
1

query I rowsort
SELECT - ( - 46 ) AS col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9079
SELECT DISTINCT - 80 + + + COUNT( * )
----
-79

skipif mysql # not compatible
query I rowsort label-9079
SELECT DISTINCT - 80 + + + COUNT ( * )
----
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-9080
SELECT + ( + + 44 ) AS col0, + COUNT( * )
----
44
1

skipif mysql # not compatible
query II rowsort label-9080
SELECT + ( + + 44 ) AS col0, + COUNT ( * )
----
44
1

query I rowsort
SELECT ALL + ( + + ( + 3 ) ) col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9082
SELECT ALL SUM( - 52 ) AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-9082
SELECT ALL SUM ( - 52 ) AS col0
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9083
SELECT CAST( - 35 AS SIGNED ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-9083
SELECT CAST ( - 35 AS INTEGER ) AS col0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-9084
SELECT - 52 * - 90 * - - MIN( - 47 )
----
-219960

skipif mysql # not compatible
query I rowsort label-9084
SELECT - 52 * - 90 * - - MIN ( - 47 )
----
-219960

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9085
SELECT + 34 + - + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9085
SELECT + 34 + - + CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT ( 16 ) + + + 68 col1
----
84

query I rowsort
SELECT DISTINCT + 58 + 83 AS col1
----
141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9088
SELECT COUNT( * ) * - - 4 AS col0, - CAST( NULL AS SIGNED ) col2
----
4
NULL

skipif mysql # not compatible
query II rowsort label-9088
SELECT COUNT ( * ) * - - 4 AS col0, - CAST ( NULL AS INTEGER ) col2
----
4
NULL

query I rowsort
SELECT ( - ( + + 6 ) ) * - 23 * + 49 AS col1
----
6762

onlyif mysql # aggregate syntax: 
query I rowsort label-9090
SELECT COUNT( * ) + - 63 * - + COUNT( * ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-9090
SELECT COUNT ( * ) + - 63 * - + COUNT ( * ) AS col1
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9091
SELECT DISTINCT + 69 DIV - ( COUNT( * ) ) AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-9091
SELECT DISTINCT + 69 / - ( COUNT ( * ) ) AS col2
----
-69

query I rowsort
SELECT DISTINCT + - 19 * - + 90 * 64 AS col0
----
109440

onlyif mysql # aggregate syntax: 
query I rowsort label-9093
SELECT - COUNT( * ) - ( - + 67 )
----
66

skipif mysql # not compatible
query I rowsort label-9093
SELECT - COUNT ( * ) - ( - + 67 )
----
66

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9094
SELECT DISTINCT + 23 * + + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9094
SELECT DISTINCT + 23 * + + CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT - 10 * - 23 AS col0
----
230

onlyif mysql # aggregate syntax: 
query I rowsort label-9096
SELECT DISTINCT MIN( + 7 )
----
7

skipif mysql # not compatible
query I rowsort label-9096
SELECT DISTINCT MIN ( + 7 )
----
7

query II rowsort
SELECT 9 AS col2, + 50 + 33 AS col2
----
9
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9098
SELECT DISTINCT COUNT( ALL - + 58 )
----
1

skipif mysql # not compatible
query I rowsort label-9098
SELECT DISTINCT COUNT ( ALL - + 58 )
----
1

query I rowsort
SELECT ALL - 78 * + 96
----
-7488

onlyif mysql # aggregate syntax: 
query I rowsort label-9100
SELECT + - NULLIF ( + 17, COUNT( * ) ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-9100
SELECT + - NULLIF ( + 17, COUNT ( * ) ) AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-9101
SELECT + MAX( DISTINCT - 89 )
----
-89

skipif mysql # not compatible
query I rowsort label-9101
SELECT + MAX ( DISTINCT - 89 )
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-9102
SELECT + + 79 * - ( COUNT( * ) )
----
-79

skipif mysql # not compatible
query I rowsort label-9102
SELECT + + 79 * - ( COUNT ( * ) )
----
-79

query II rowsort
SELECT ALL + 41, 47 AS col0
----
41
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9104
SELECT ALL + COUNT( * ) + + 77 AS col2
----
78

skipif mysql # not compatible
query I rowsort label-9104
SELECT ALL + COUNT ( * ) + + 77 AS col2
----
78

query I rowsort
SELECT DISTINCT - + 96 AS col2
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9106
SELECT DISTINCT + + COUNT( * ) - - MAX( 16 ) + + 90 AS col1
----
107

skipif mysql # not compatible
query I rowsort label-9106
SELECT DISTINCT + + COUNT ( * ) - - MAX ( 16 ) + + 90 AS col1
----
107

onlyif mysql # aggregate syntax: 
query II rowsort label-9107
SELECT - 25, + COUNT( * ) AS col1
----
-25
1

skipif mysql # not compatible
query II rowsort label-9107
SELECT - 25, + COUNT ( * ) AS col1
----
-25
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9108
SELECT - COUNT( * ) + + - MAX( DISTINCT - + 19 ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-9108
SELECT - COUNT ( * ) + + - MAX ( DISTINCT - + 19 ) AS col2
----
18

query I rowsort
SELECT + 49 + + 92 AS col1
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-9110
SELECT ALL - 86 * - COUNT( ALL - 11 )
----
86

skipif mysql # not compatible
query I rowsort label-9110
SELECT ALL - 86 * - COUNT ( ALL - 11 )
----
86

query I rowsort
SELECT + ( + 21 )
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9112
SELECT - 75 DIV - + 61 DIV - ( - + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-9112
SELECT - 75 / - + 61 / - ( - + COUNT ( * ) )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9113
SELECT - 39 DIV + 33 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9113
SELECT - 39 / + 33 AS col1
----
-1

query I rowsort
SELECT - + 74 col0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-9115
SELECT ALL + + SUM( ALL - 50 )
----
-50

skipif mysql # not compatible
query I rowsort label-9115
SELECT ALL + + SUM ( ALL - 50 )
----
-50

query I rowsort
SELECT ALL + + 55 col2
----
55

query I rowsort
SELECT ( - + 39 )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-9118
SELECT DISTINCT MAX( DISTINCT + 6 )
----
6

skipif mysql # not compatible
query I rowsort label-9118
SELECT DISTINCT MAX ( DISTINCT + 6 )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9119
SELECT ALL - SUM( - - ( + 83 ) )
----
-83

skipif mysql # not compatible
query I rowsort label-9119
SELECT ALL - SUM ( - - ( + 83 ) )
----
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9120
SELECT COUNT( 32 ) DIV - - COUNT( DISTINCT 49 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9120
SELECT COUNT ( 32 ) / - - COUNT ( DISTINCT 49 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9121
SELECT NULLIF ( + - 21, + - 57 ) - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9121
SELECT NULLIF ( + - 21, + - 57 ) - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT - 2 AS col2, 2 + + ( + 58 )
----
-2
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9123
SELECT ALL 12 + MAX( DISTINCT 72 ) - - 61 DIV + ( 8 DIV 39 - + COUNT( * ) ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-9123
SELECT ALL 12 + MAX ( DISTINCT 72 ) - - 61 / + ( 8 / 39 - + COUNT ( * ) ) AS col1
----
23

query I rowsort
SELECT DISTINCT 41 + - 59 + + + 18 + 5 * 85 AS col2
----
425

onlyif mysql # aggregate syntax: 
query I rowsort label-9125
SELECT DISTINCT NULLIF ( + 56, - 21 + COUNT( * ) ) + 72 * 63
----
4592

skipif mysql # not compatible
query I rowsort label-9125
SELECT DISTINCT NULLIF ( + 56, - 21 + COUNT ( * ) ) + 72 * 63
----
4592

query I rowsort
SELECT ALL 76 + + 13 AS col1
----
89

query I rowsort
SELECT - 27 + - 24 AS col2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9128
SELECT + SUM( ALL + ( + + 13 ) ) + - ( ( + COUNT( * ) ) ) * COUNT( * )
----
12

skipif mysql # not compatible
query I rowsort label-9128
SELECT + SUM ( ALL + ( + + 13 ) ) + - ( ( + COUNT ( * ) ) ) * COUNT ( * )
----
12

query I rowsort
SELECT DISTINCT - + 59 * + 2 AS col1
----
-118

query I rowsort
SELECT ALL - - 9 - 99 AS col0
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9131
SELECT DISTINCT - SUM( DISTINCT 83 ) * + + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9131
SELECT DISTINCT - SUM ( DISTINCT 83 ) * + + CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9132
SELECT DISTINCT - - MAX( DISTINCT + 52 )
----
52

skipif mysql # not compatible
query I rowsort label-9132
SELECT DISTINCT - - MAX ( DISTINCT + 52 )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9133
SELECT DISTINCT - + NULLIF ( - - 97, COUNT( * ) * - 58 )
----
-97

skipif mysql # not compatible
query I rowsort label-9133
SELECT DISTINCT - + NULLIF ( - - 97, COUNT ( * ) * - 58 )
----
-97

query II rowsort
SELECT - 21, 75 * - ( - 68 ) AS col2
----
-21
5100

query I rowsort
SELECT + ( ( 29 ) )
----
29

query II rowsort
SELECT 70, COALESCE ( 99, - 3 + - 8 ) AS col0
----
70
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9137
SELECT DISTINCT + + COUNT( DISTINCT COALESCE ( + - 18, 50 ) ) * COALESCE ( - ( 81 ) + 94, - 20, - 37 * 73 ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-9137
SELECT DISTINCT + + COUNT ( DISTINCT COALESCE ( + - 18, 50 ) ) * COALESCE ( - ( 81 ) + 94, - 20, - 37 * 73 ) AS col0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9138
SELECT ( + 8 ) * - ( COUNT( * ) ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-9138
SELECT ( + 8 ) * - ( COUNT ( * ) ) AS col1
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-9139
SELECT ALL + 92 DIV 9 AS col1
----
10

skipif mysql # not compatible
query I rowsort label-9139
SELECT ALL + 92 / 9 AS col1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9140
SELECT ALL - 37 + + COUNT( * ) - + + MAX( + - 74 ) * - 62
----
-4624

skipif mysql # not compatible
query I rowsort label-9140
SELECT ALL - 37 + + COUNT ( * ) - + + MAX ( + - 74 ) * - 62
----
-4624

query I rowsort
SELECT DISTINCT + 83 * + - 45 AS col0
----
-3735

query I rowsort
SELECT ALL NULLIF ( - 48, + 34 ) + + 3 AS col1
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-9143
SELECT COUNT( * ) * + CASE + 38 WHEN - 57 THEN NULL WHEN MAX( + ( 66 ) ) * + 32 THEN 42 ELSE + 63 * - COUNT( * ) + 75 END
----
12

skipif mysql # not compatible
query I rowsort label-9143
SELECT COUNT ( * ) * + CASE + 38 WHEN - 57 THEN NULL WHEN MAX ( + ( 66 ) ) * + 32 THEN 42 ELSE + 63 * - COUNT ( * ) + 75 END
----
12

query I rowsort
SELECT ALL + 65 * 17 AS col2
----
1105

query I rowsort
SELECT DISTINCT ( + 67 ) + + NULLIF ( + 82, 21 ) + 24 AS col0
----
173

onlyif mysql # aggregate syntax: 
query I rowsort label-9146
SELECT DISTINCT MIN( ALL + 80 ) col1
----
80

skipif mysql # not compatible
query I rowsort label-9146
SELECT DISTINCT MIN ( ALL + 80 ) col1
----
80

query II rowsort
SELECT ALL - 93 + + 15, + 46 AS col0
----
-78
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9148
SELECT DISTINCT - ( + MIN( 11 ) ) + 64 AS col2
----
53

skipif mysql # not compatible
query I rowsort label-9148
SELECT DISTINCT - ( + MIN ( 11 ) ) + 64 AS col2
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9149
SELECT - MIN( ALL + + CAST( 28 AS SIGNED ) )
----
-28

skipif mysql # not compatible
query I rowsort label-9149
SELECT - MIN ( ALL + + CAST ( 28 AS INTEGER ) )
----
-28

query I rowsort
SELECT DISTINCT - 21 + + 43
----
22

query II rowsort
SELECT ALL 65 * + 40 AS col0, 87
----
2600
87

query I rowsort
SELECT DISTINCT 24 + - 65 AS col2
----
-41

query I rowsort
SELECT 44 + 66 + - 84
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9154
SELECT ALL 59 - + COUNT( * ) * + 59 col1
----
0

skipif mysql # not compatible
query I rowsort label-9154
SELECT ALL 59 - + COUNT ( * ) * + 59 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9155
SELECT - MAX( - 3 )
----
3

skipif mysql # not compatible
query I rowsort label-9155
SELECT - MAX ( - 3 )
----
3

query I rowsort
SELECT ALL + ( - 95 ) * 76 + + ( 82 ) - + 58 * 96
----
-12706

query I rowsort
SELECT + 65 - + 12
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-9158
SELECT + 34 * + CASE - 82 WHEN + 73 THEN 87 * - 70 ELSE - 31 DIV - 58 END + 91 col1
----
91

skipif mysql # not compatible
query I rowsort label-9158
SELECT + 34 * + CASE - 82 WHEN + 73 THEN 87 * - 70 ELSE - 31 / - 58 END + 91 col1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9159
SELECT ALL 57 * + 27 + + 17 + + - 16 - - COUNT( * ) col1
----
1541

skipif mysql # not compatible
query I rowsort label-9159
SELECT ALL 57 * + 27 + + 17 + + - 16 - - COUNT ( * ) col1
----
1541

onlyif mysql # DIV for integer division: 
query I rowsort label-9160
SELECT 93 DIV + 47 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9160
SELECT 93 / + 47 AS col0
----
1

query I rowsort
SELECT 24 - + 40 AS col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-9162
SELECT + SUM( 83 ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-9162
SELECT + SUM ( 83 ) AS col2
----
83

query II rowsort
SELECT + - 95 * + + 35 AS col0, ( - 17 ) * - 10
----
-3325
170

onlyif mysql # DIV for integer division: 
query I rowsort label-9164
SELECT - - 37 DIV 18
----
2

skipif mysql # not compatible
query I rowsort label-9164
SELECT - - 37 / 18
----
2

query II rowsort
SELECT ALL - 31 * 36, 44 AS col1
----
-1116
44

query II rowsort
SELECT + + 26 + + 30 AS col1, - 3
----
56
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9167
SELECT - 85 * - ( + 84 ) - 21 + NULLIF ( - 13, MAX( + 26 ) * 39 ) * 34
----
6677

skipif mysql # not compatible
query I rowsort label-9167
SELECT - 85 * - ( + 84 ) - 21 + NULLIF ( - 13, MAX ( + 26 ) * 39 ) * 34
----
6677

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9168
SELECT - 77 - + - CAST( - 4 AS SIGNED ) * 16
----
-141

skipif mysql # not compatible
query I rowsort label-9168
SELECT - 77 - + - CAST ( - 4 AS INTEGER ) * 16
----
-141

query I rowsort
SELECT ALL 47 * ( + - 48 ) col1
----
-2256

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9170
SELECT + 17 * - 98 * + + 34 * + COUNT( * ) + CASE 51 WHEN 3 THEN + ( - 57 ) DIV - 50 ELSE 91 * - 54 + 38 END
----
-61520

skipif mysql # not compatible
query I rowsort label-9170
SELECT + 17 * - 98 * + + 34 * + COUNT ( * ) + CASE 51 WHEN 3 THEN + ( - 57 ) / - 50 ELSE 91 * - 54 + 38 END
----
-61520

onlyif mysql # DIV for integer division: 
query I rowsort label-9171
SELECT + 18 * 20 + - 39 * 51 DIV 23 AS col2
----
274

skipif mysql # not compatible
query I rowsort label-9171
SELECT + 18 * 20 + - 39 * 51 / 23 AS col2
----
274

query I rowsort
SELECT + 35 * 69
----
2415

query I rowsort
SELECT ALL 4 + + 66
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9174
SELECT ALL 73 * + + CAST( 18 AS SIGNED )
----
1314

skipif mysql # not compatible
query I rowsort label-9174
SELECT ALL 73 * + + CAST ( 18 AS INTEGER )
----
1314

query I rowsort
SELECT ALL - 6 + + + CASE - 24 WHEN + 25 THEN - + ( + 19 ) ELSE NULL END
----
NULL

query I rowsort
SELECT - 44 + - 51 AS col2
----
-95

query I rowsort
SELECT ALL 49 + + + 21
----
70

query I rowsort
SELECT - 20 + 34 + + ( + 67 ) col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9179
SELECT ALL + COUNT( * ) * + CASE - + 64 WHEN + + 86 THEN - 89 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9179
SELECT ALL + COUNT ( * ) * + CASE - + 64 WHEN + + 86 THEN - 89 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9180
SELECT ALL SUM( 60 ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-9180
SELECT ALL SUM ( 60 ) AS col1
----
60

query II rowsort
SELECT - 84 * - ( 91 ) AS col2, COALESCE ( + 3, 58 + - 57 * 52 ) + 84 AS col1
----
7644
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9182
SELECT ALL + CAST( NULL AS SIGNED ) * - 27 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9182
SELECT ALL + CAST ( NULL AS INTEGER ) * - 27 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9183
SELECT DISTINCT - 89 - + - 52 DIV ( + MIN( 89 ) ) + 28
----
-61

skipif mysql # not compatible
query I rowsort label-9183
SELECT DISTINCT - 89 - + - 52 / ( + MIN ( 89 ) ) + 28
----
-61

query I rowsort
SELECT - 71 + + - 98 * 8
----
-855

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9185
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + ( + - COUNT( * ) ) / + + 96 + - 20 - - 11 * ( 76 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9185
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + ( + - COUNT ( * ) ) / + + 96 + - 20 - - 11 * ( 76 ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9186
SELECT ALL 18 DIV + 26
----
0

skipif mysql # not compatible
query I rowsort label-9186
SELECT ALL 18 / + 26
----
0

query I rowsort
SELECT - 24 * 21 AS col2
----
-504

query II rowsort
SELECT ALL COALESCE ( - - 81, + - 95 ) col0, 37
----
81
37

query I rowsort
SELECT - 35 + 91 + 94 * + 4 + - NULLIF ( 30, NULLIF ( - 96, - 67 ) ) * + 91 AS col1
----
-2298

onlyif mysql # aggregate syntax: 
query I rowsort label-9190
SELECT - 94 - + ( + SUM( ALL + 52 ) ) + SUM( DISTINCT 34 )
----
-112

skipif mysql # not compatible
query I rowsort label-9190
SELECT - 94 - + ( + SUM ( ALL + 52 ) ) + SUM ( DISTINCT 34 )
----
-112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9191
SELECT + COALESCE ( - COUNT( * ), - 11 DIV 19, - COUNT( * ), 51 * 29 + 0 ) * 31
----
-31

skipif mysql # not compatible
query I rowsort label-9191
SELECT + COALESCE ( - COUNT ( * ), - 11 / 19, - COUNT ( * ), 51 * 29 + 0 ) * 31
----
-31

query I rowsort
SELECT - 62 + - 30
----
-92

query I rowsort
SELECT + 32 + 32
----
64

query I rowsort
SELECT + 46 + 12 AS col1
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9195
SELECT - 89 * ( + 51 ) * - MIN( ALL - 31 ) + - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9195
SELECT - 89 * ( + 51 ) * - MIN ( ALL - 31 ) + - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9196
SELECT ALL - 96 * + 74 + + COUNT( * ) col2
----
-7103

skipif mysql # not compatible
query I rowsort label-9196
SELECT ALL - 96 * + 74 + + COUNT ( * ) col2
----
-7103

onlyif mysql # DIV for integer division: 
query I rowsort label-9197
SELECT + 46 DIV + + 37 + + 0 col1
----
1

skipif mysql # not compatible
query I rowsort label-9197
SELECT + 46 / + + 37 + + 0 col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9198
SELECT + - 41 + 67 + 37 * 95 * + MAX( 72 ) col2
----
253106

skipif mysql # not compatible
query I rowsort label-9198
SELECT + - 41 + 67 + 37 * 95 * + MAX ( 72 ) col2
----
253106

query I rowsort
SELECT ALL 62 * - 83 + - 38 + + NULLIF ( 72, + 70 / 73 + 53 )
----
-5112

query I rowsort
SELECT - + NULLIF ( + ( 74 ), - 74 ) * + 13 * NULLIF ( - 33, 94 * - 60 ) + + 66 AS col1
----
31812

onlyif mysql # aggregate syntax: 
query I rowsort label-9201
SELECT + 75 + - 95 + 80 * COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-9201
SELECT + 75 + - 95 + 80 * COUNT ( * )
----
60

query I rowsort
SELECT + + 14 * + 79 col0
----
1106

onlyif mysql # aggregate syntax: 
query I rowsort label-9203
SELECT DISTINCT + 46 * + 79 * 23 * - - ( 85 ) + - COUNT( * ) + + 18
----
7104487

skipif mysql # not compatible
query I rowsort label-9203
SELECT DISTINCT + 46 * + 79 * 23 * - - ( 85 ) + - COUNT ( * ) + + 18
----
7104487

onlyif mysql # aggregate syntax: 
query I rowsort label-9204
SELECT ALL + MIN( DISTINCT - 24 ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-9204
SELECT ALL + MIN ( DISTINCT - 24 ) AS col1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9205
SELECT + ( - - NULLIF ( + - 99, - + 16 * 23 - MIN( ALL 93 ) ) )
----
-99

skipif mysql # not compatible
query I rowsort label-9205
SELECT + ( - - NULLIF ( + - 99, - + 16 * 23 - MIN ( ALL 93 ) ) )
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9206
SELECT DISTINCT + 85 * - - MIN( DISTINCT - 38 ) + - 69
----
-3299

skipif mysql # not compatible
query I rowsort label-9206
SELECT DISTINCT + 85 * - - MIN ( DISTINCT - 38 ) + - 69
----
-3299

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9207
SELECT + CAST( + COUNT( 20 ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-9207
SELECT + CAST ( + COUNT ( 20 ) AS INTEGER )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9208
SELECT COALESCE ( - MIN( ALL - 46 ), 36 * 2 ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-9208
SELECT COALESCE ( - MIN ( ALL - 46 ), 36 * 2 ) AS col2
----
46

query I rowsort
SELECT + ( + + 78 )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9210
SELECT CASE - 88 WHEN - - ( + 27 ) + + 87 * + 40 + SUM( 21 ) THEN 66 * 34 WHEN 91 + + 30 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9210
SELECT CASE - 88 WHEN - - ( + 27 ) + + 87 * + 40 + SUM ( 21 ) THEN 66 * 34 WHEN 91 + + 30 THEN NULL ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT - ( + 14 ) AS col1
----
-14

query I rowsort
SELECT - 7 + + - 13 AS col0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9213
SELECT ALL - COUNT( * ) * + - 57 - + - 33 * 45 AS col0
----
1542

skipif mysql # not compatible
query I rowsort label-9213
SELECT ALL - COUNT ( * ) * + - 57 - + - 33 * 45 AS col0
----
1542

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9214
SELECT ALL 42 AS col2, - MAX( DISTINCT 90 ) - 84 + - - 31 + + + COUNT( * ) + - 88 / 15 * CAST( NULL AS SIGNED )
----
42
NULL

skipif mysql # not compatible
query II rowsort label-9214
SELECT ALL 42 AS col2, - MAX ( DISTINCT 90 ) - 84 + - - 31 + + + COUNT ( * ) + - 88 / 15 * CAST ( NULL AS INTEGER )
----
42
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9215
SELECT - COUNT( * ) - + + COUNT( DISTINCT + - 72 ) * - 94 + - CAST( - 41 AS SIGNED )
----
134

skipif mysql # not compatible
query I rowsort label-9215
SELECT - COUNT ( * ) - + + COUNT ( DISTINCT + - 72 ) * - 94 + - CAST ( - 41 AS INTEGER )
----
134

query I rowsort
SELECT ALL ( 23 ) col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9217
SELECT ALL COUNT( ALL - 4 )
----
1

skipif mysql # not compatible
query I rowsort label-9217
SELECT ALL COUNT ( ALL - 4 )
----
1

query I rowsort
SELECT ALL COALESCE ( 57, 41 + + + 22 ) - + 88 - - 85
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9219
SELECT MIN( 72 ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-9219
SELECT MIN ( 72 ) AS col0
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9220
SELECT ALL COALESCE ( - + CAST( NULL AS SIGNED ), + 33 * 24 * + ( 48 ) + 19 ) AS col0
----
38035

skipif mysql # not compatible
query I rowsort label-9220
SELECT ALL COALESCE ( - + CAST ( NULL AS INTEGER ), + 33 * 24 * + ( 48 ) + 19 ) AS col0
----
38035

query I rowsort
SELECT + 94 + 93 AS col1
----
187

query I rowsort
SELECT - 0 * - 76
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9223
SELECT + 12 * - 79 * SUM( ALL 81 ) * - 11
----
844668

skipif mysql # not compatible
query I rowsort label-9223
SELECT + 12 * - 79 * SUM ( ALL 81 ) * - 11
----
844668

query I rowsort
SELECT - 18 + - 80 AS col0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-9225
SELECT - CASE + 78 WHEN + + 38 THEN - ( + + COUNT( * ) ) * 47 * 40 WHEN - MIN( ALL - 62 ) THEN 44 END - - 65 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9225
SELECT - CASE + 78 WHEN + + 38 THEN - ( + + COUNT ( * ) ) * 47 * 40 WHEN - MIN ( ALL - 62 ) THEN 44 END - - 65 * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9226
SELECT DISTINCT 49, + 83 - + 86 * + - ( 87 ) - COUNT( * ) DIV 30 AS col2
----
49
7565

skipif mysql # not compatible
query II rowsort label-9226
SELECT DISTINCT 49, + 83 - + 86 * + - ( 87 ) - COUNT ( * ) / 30 AS col2
----
49
7565

query I rowsort
SELECT ALL - + 2 * 13
----
-26

query I rowsort
SELECT ALL + + 39 * - 16 * 39
----
-24336

query I rowsort
SELECT - NULLIF ( - 24, - 45 + + - 42 )
----
24

query I rowsort
SELECT - + 86 + 96
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9231
SELECT ALL SUM( + - 40 )
----
-40

skipif mysql # not compatible
query I rowsort label-9231
SELECT ALL SUM ( + - 40 )
----
-40

query I rowsort
SELECT 53 * 85 col1
----
4505

onlyif mysql # aggregate syntax: 
query I rowsort label-9233
SELECT - 63 + 98 + + COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-9233
SELECT - 63 + 98 + + COUNT ( * )
----
36

query II rowsort
SELECT + 73 AS col0, + 92
----
73
92

query I rowsort
SELECT ( 26 ) * + 57 + + - 18
----
1464

query I rowsort
SELECT ALL - - NULLIF ( + 35, + NULLIF ( - - ( + + 30 ), + 85 + 35 ) ) AS col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9237
SELECT COUNT( * ) * - - 69 * 62 * + + 86 col0
----
367908

skipif mysql # not compatible
query I rowsort label-9237
SELECT COUNT ( * ) * - - 69 * 62 * + + 86 col0
----
367908

onlyif mysql # aggregate syntax: 
query I rowsort label-9238
SELECT + COALESCE ( - + 91, - 26, - 36 * + - 86 + + COUNT( * ) )
----
-91

skipif mysql # not compatible
query I rowsort label-9238
SELECT + COALESCE ( - + 91, - 26, - 36 * + - 86 + + COUNT ( * ) )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9239
SELECT ALL - COUNT( * ) + - 31
----
-32

skipif mysql # not compatible
query I rowsort label-9239
SELECT ALL - COUNT ( * ) + - 31
----
-32

query I rowsort
SELECT + 12 - 88 + + 46
----
-30

query I rowsort
SELECT DISTINCT + + 93 + - - 34 AS col0
----
127

query I rowsort
SELECT ALL 65 * - - 9 AS col0
----
585

query I rowsort
SELECT DISTINCT - 46 * - 67
----
3082

query I rowsort
SELECT ALL + - 43 + - + 86 AS col1
----
-129

onlyif mysql # DIV for integer division: 
query I rowsort label-9245
SELECT + 32 DIV + 10 + 10 + - + ( - ( 8 ) )
----
21

skipif mysql # not compatible
query I rowsort label-9245
SELECT + 32 / + 10 + 10 + - + ( - ( 8 ) )
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9246
SELECT 70 * - 52 - 86 AS col2, - 64 + + COALESCE ( + + 60, + - NULLIF ( 74, + 37 ), 87 - - 70 ) + ( CAST( NULL AS SIGNED ) )
----
-3726
NULL

skipif mysql # not compatible
query II rowsort label-9246
SELECT 70 * - 52 - 86 AS col2, - 64 + + COALESCE ( + + 60, + - NULLIF ( 74, + 37 ), 87 - - 70 ) + ( CAST ( NULL AS INTEGER ) )
----
-3726
NULL

query I rowsort
SELECT ALL 20 * - 62 col1
----
-1240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9248
SELECT - COUNT( * ) * + 46 * + + ( - CASE + 21 WHEN + ( - 57 ) THEN 84 + 39 * - 2 WHEN 34 THEN - 37 END ) + + CAST( NULL AS SIGNED ) / 51
----
NULL

skipif mysql # not compatible
query I rowsort label-9248
SELECT - COUNT ( * ) * + 46 * + + ( - CASE + 21 WHEN + ( - 57 ) THEN 84 + 39 * - 2 WHEN 34 THEN - 37 END ) + + CAST ( NULL AS INTEGER ) / 51
----
NULL

query I rowsort
SELECT DISTINCT + 89 - + 60
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9250
SELECT ALL - NULLIF ( - 30, + CASE - - 5 WHEN + 46 THEN NULLIF ( - 28, 61 / 39 ) END / CAST( + 19 - - 46 / - 40 AS SIGNED ) ) * 95
----
2850

skipif mysql # not compatible
query I rowsort label-9250
SELECT ALL - NULLIF ( - 30, + CASE - - 5 WHEN + 46 THEN NULLIF ( - 28, 61 / 39 ) END / CAST ( + 19 - - 46 / - 40 AS INTEGER ) ) * 95
----
2850

onlyif mysql # aggregate syntax: 
query I rowsort label-9251
SELECT COALESCE ( + 4, 4 * + CASE 29 WHEN COUNT( * ) THEN - + NULLIF ( - 8, + ( - 1 ) ) * 63 WHEN + 80 - AVG ( - 39 ) THEN NULL WHEN + 13 * CASE 58 WHEN + COUNT( * ) + 30 THEN CASE WHEN NOT ( - 60 ) NOT IN ( - COUNT( * ) ) THEN - 84 ELSE ( 67 ) END + 99 * COUNT( * ) WHEN - 65 * - 58 + COUNT( - 61 ) THEN 28 ELSE NULL END THEN NULL END + ( + 18 ), + 65 + 53 ) + 37 AS col2
----
41

skipif mysql # not compatible
query I rowsort label-9251
SELECT COALESCE ( + 4, 4 * + CASE 29 WHEN COUNT ( * ) THEN - + NULLIF ( - 8, + ( - 1 ) ) * 63 WHEN + 80 - AVG ( - 39 ) THEN NULL WHEN + 13 * CASE 58 WHEN + COUNT ( * ) + 30 THEN CASE WHEN NOT ( - 60 ) NOT IN ( - COUNT ( * ) ) THEN - 84 ELSE ( 67 ) END + 99 * COUNT ( * ) WHEN - 65 * - 58 + COUNT ( - 61 ) THEN 28 ELSE NULL END THEN NULL END + ( + 18 ), + 65 + 53 ) + 37 AS col2
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9252
SELECT ALL - CAST( 26 AS SIGNED )
----
-26

skipif mysql # not compatible
query I rowsort label-9252
SELECT ALL - CAST ( 26 AS INTEGER )
----
-26

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9253
SELECT 44 + + CASE + - 35 WHEN + 74 * + - 26 * + + 62 + CAST( 83 AS DECIMAL ) * MIN( ALL 23 + 23 ) THEN 90 + 95 * 93 ELSE + 52 END
----
96

skipif mysql # not compatible
query I rowsort label-9253
SELECT 44 + + CASE + - 35 WHEN + 74 * + - 26 * + + 62 + CAST ( 83 AS REAL ) * MIN ( ALL 23 + 23 ) THEN 90 + 95 * 93 ELSE + 52 END
----
96

query I rowsort
SELECT ALL 6 * + - 44 AS col0
----
-264

onlyif mysql # aggregate syntax: 
query I rowsort label-9255
SELECT COUNT( * ) + - - ( 10 ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-9255
SELECT COUNT ( * ) + - - ( 10 ) AS col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9256
SELECT 79 + + COUNT( * ) * + 95
----
174

skipif mysql # not compatible
query I rowsort label-9256
SELECT 79 + + COUNT ( * ) * + 95
----
174

query I rowsort
SELECT 50 * + COALESCE ( + 88, - 67 ) AS col0
----
4400

query II rowsort
SELECT DISTINCT 0 * - + 19, + 78 AS col2
----
0
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9259
SELECT - COUNT( DISTINCT 49 )
----
-1

skipif mysql # not compatible
query I rowsort label-9259
SELECT - COUNT ( DISTINCT 49 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9260
SELECT ALL COUNT( * ) * + 33 * + - CAST( + 62 AS SIGNED ) AS col2
----
-2046

skipif mysql # not compatible
query I rowsort label-9260
SELECT ALL COUNT ( * ) * + 33 * + - CAST ( + 62 AS INTEGER ) AS col2
----
-2046

onlyif mysql # aggregate syntax: 
query I rowsort label-9261
SELECT DISTINCT MIN( + - 76 ) AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-9261
SELECT DISTINCT MIN ( + - 76 ) AS col0
----
-76

query II rowsort
SELECT DISTINCT - - 24 + 91, 28 AS col1
----
115
28

query I rowsort
SELECT 9 + + 33 + 8 AS col0
----
50

query I rowsort
SELECT 52 + - ( 23 ) AS col1
----
29

query I rowsort
SELECT + CASE 53 WHEN 63 * + 52 THEN NULL ELSE - COALESCE ( - 28, - 23 * + 94 ) END
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9266
SELECT CASE - 23 WHEN - + 57 * - CAST( + 96 AS SIGNED ) - + 57 THEN NULL WHEN - + 50 + 4 THEN NULL WHEN 91 THEN 54 ELSE COUNT( ALL 90 ) - + ( 84 ) * 48 END AS col0
----
-4031

skipif mysql # not compatible
query I rowsort label-9266
SELECT CASE - 23 WHEN - + 57 * - CAST ( + 96 AS INTEGER ) - + 57 THEN NULL WHEN - + 50 + 4 THEN NULL WHEN 91 THEN 54 ELSE COUNT ( ALL 90 ) - + ( 84 ) * 48 END AS col0
----
-4031

query I rowsort
SELECT DISTINCT + 11 + - 59 - - 58
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9268
SELECT ALL - 52 + + + 58 + - 10 + + MAX( ALL + 19 ) * 24 AS col1
----
452

skipif mysql # not compatible
query I rowsort label-9268
SELECT ALL - 52 + + + 58 + - 10 + + MAX ( ALL + 19 ) * 24 AS col1
----
452

query I rowsort
SELECT 32 + + + 64 * CASE + 88 WHEN - - 64 THEN + - 26 * + 30 + ( 16 ) - - 3 WHEN - ( + 79 ) * 52 THEN + 53 * + 53 + - 79 ELSE ( - 82 ) END AS col1
----
-5216

onlyif mysql # aggregate syntax: 
query I rowsort label-9270
SELECT DISTINCT CASE + - 57 WHEN - 98 * + 11 / - COUNT( * ) + 13 + - 13 / 50 * 15 THEN 22 * 67 WHEN 95 + NULLIF ( ( - 91 ), + SUM( + 99 ) ) THEN - 42 WHEN + COUNT( * ) THEN NULL END / 5 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9270
SELECT DISTINCT CASE + - 57 WHEN - 98 * + 11 / - COUNT ( * ) + 13 + - 13 / 50 * 15 THEN 22 * 67 WHEN 95 + NULLIF ( ( - 91 ), + SUM ( + 99 ) ) THEN - 42 WHEN + COUNT ( * ) THEN NULL END / 5 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9271
SELECT ALL - CAST( 9 AS SIGNED ), 93 * + 38 col0
----
-9
3534

skipif mysql # not compatible
query II rowsort label-9271
SELECT ALL - CAST ( 9 AS INTEGER ), 93 * + 38 col0
----
-9
3534

query II rowsort
SELECT + 1 * + 77 AS col0, 80 + - 62 * - + 9 AS col1
----
77
638

query I rowsort
SELECT ALL 71 * 27 AS col0
----
1917

onlyif mysql # DIV for integer division: 
query I rowsort label-9274
SELECT - 99 DIV + 38 + 16 * - - 91 + 28 * 96
----
4142

skipif mysql # not compatible
query I rowsort label-9274
SELECT - 99 / + 38 + 16 * - - 91 + 28 * 96
----
4142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9275
SELECT DISTINCT + MIN( DISTINCT - + 30 ) + - + ( - CAST( 10 AS SIGNED ) )
----
-20

skipif mysql # not compatible
query I rowsort label-9275
SELECT DISTINCT + MIN ( DISTINCT - + 30 ) + - + ( - CAST ( 10 AS INTEGER ) )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9276
SELECT - MIN( - 43 ) * - 73 AS col2
----
-3139

skipif mysql # not compatible
query I rowsort label-9276
SELECT - MIN ( - 43 ) * - 73 AS col2
----
-3139

query I rowsort
SELECT - 78 * - CASE - - 2 WHEN 64 THEN - 11 ELSE NULL END / - 75 + + 20 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9278
SELECT COUNT( 27 ) * - 21 * CASE 3 WHEN - 92 * - 53 * - 46 THEN NULL ELSE - 15 END + 17 AS col1
----
332

skipif mysql # not compatible
query I rowsort label-9278
SELECT COUNT ( 27 ) * - 21 * CASE 3 WHEN - 92 * - 53 * - 46 THEN NULL ELSE - 15 END + 17 AS col1
----
332

onlyif mysql # aggregate syntax: 
query I rowsort label-9279
SELECT SUM( - 52 ) + - 85 + 86 AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-9279
SELECT SUM ( - 52 ) + - 85 + 86 AS col2
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9280
SELECT ALL + ( - + 81 ) - - + 34 + - 34 / - 39 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9280
SELECT ALL + ( - + 81 ) - - + 34 + - 34 / - 39 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9281
SELECT ALL - 63, CAST( NULL AS SIGNED ) AS col0
----
-63
NULL

skipif mysql # not compatible
query II rowsort label-9281
SELECT ALL - 63, CAST ( NULL AS INTEGER ) AS col0
----
-63
NULL

query I rowsort
SELECT DISTINCT 7 - - + 5 + ( + 95 ) * - 54 + - - 64 col2
----
-5054

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9283
SELECT ALL 66 * NULLIF ( - - CASE - 85 WHEN - 67 * + 31 THEN NULL WHEN - 83 THEN NULL ELSE - 41 * CAST( + MAX( + 38 ) AS SIGNED ) END, MIN( ALL - 11 ) / - ( 95 ) + 47 ) * 68
----
-6992304

skipif mysql # not compatible
query I rowsort label-9283
SELECT ALL 66 * NULLIF ( - - CASE - 85 WHEN - 67 * + 31 THEN NULL WHEN - 83 THEN NULL ELSE - 41 * CAST ( + MAX ( + 38 ) AS INTEGER ) END, MIN ( ALL - 11 ) / - ( 95 ) + 47 ) * 68
----
-6992304

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9284
SELECT ALL - ( - + CASE + 1 WHEN + - 53 THEN NULL WHEN - COUNT( * ) * - MAX( + - 89 ) * + 41 THEN 35 DIV 80 + - 56 * MAX( ALL + CASE - 28 WHEN - 28 + CAST( + 30 AS SIGNED ) THEN ( + 34 ) ELSE NULL END ) ELSE + 38 END )
----
38

skipif mysql # not compatible
query I rowsort label-9284
SELECT ALL - ( - + CASE + 1 WHEN + - 53 THEN NULL WHEN - COUNT ( * ) * - MAX ( + - 89 ) * + 41 THEN 35 / 80 + - 56 * MAX ( ALL + CASE - 28 WHEN - 28 + CAST ( + 30 AS INTEGER ) THEN ( + 34 ) ELSE NULL END ) ELSE + 38 END )
----
38

query I rowsort
SELECT ALL 1 * - ( 85 ) * - + 10 * - 70
----
-59500

query I rowsort
SELECT ALL - 12 * 94 AS col1
----
-1128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9287
SELECT 24 - + + MAX( + + CAST( NULL AS SIGNED ) ) + - 48 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9287
SELECT 24 - + + MAX ( + + CAST ( NULL AS INTEGER ) ) + - 48 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9288
SELECT ALL - COUNT( * ) * - + NULLIF ( + 29, - NULLIF ( 61, ( + AVG ( DISTINCT - - ( 65 ) ) ) + - COALESCE ( CASE 70 WHEN 34 THEN NULL WHEN + 17 THEN - COUNT( * ) + 48 END, COUNT( * ), - ( 50 ) ) ) )
----
29

skipif mysql # not compatible
query I rowsort label-9288
SELECT ALL - COUNT ( * ) * - + NULLIF ( + 29, - NULLIF ( 61, ( + AVG ( DISTINCT - - ( 65 ) ) ) + - COALESCE ( CASE 70 WHEN 34 THEN NULL WHEN + 17 THEN - COUNT ( * ) + 48 END, COUNT ( * ), - ( 50 ) ) ) )
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-9289
SELECT 62 AS col2, - 19 * - SUM( DISTINCT + 31 )
----
62
589

skipif mysql # not compatible
query II rowsort label-9289
SELECT 62 AS col2, - 19 * - SUM ( DISTINCT + 31 )
----
62
589

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9290
SELECT + COUNT( * ) AS col2, 99 * 54 DIV 38 DIV + NULLIF ( + - CAST( + 47 AS SIGNED ), + 71 * 40 )
----
1
-2

skipif mysql # not compatible
query II rowsort label-9290
SELECT + COUNT ( * ) AS col2, 99 * 54 / 38 / + NULLIF ( + - CAST ( + 47 AS INTEGER ), + 71 * 40 )
----
1
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-9291
SELECT 50 DIV - - 72 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9291
SELECT 50 / - - 72 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9292
SELECT COUNT( CAST( 47 AS SIGNED ) ) + 85 * + 58 + - COUNT( 31 ) * + + ( 2 )
----
4929

skipif mysql # not compatible
query I rowsort label-9292
SELECT COUNT ( CAST ( 47 AS INTEGER ) ) + 85 * + 58 + - COUNT ( 31 ) * + + ( 2 )
----
4929

query II rowsort
SELECT DISTINCT + 95 * + 75 * - 4 AS col2, + 39
----
-28500
39

onlyif mysql # aggregate syntax: 
query II rowsort label-9294
SELECT ALL COUNT( * ) AS col0, + SUM( ALL + 25 )
----
1
25

skipif mysql # not compatible
query II rowsort label-9294
SELECT ALL COUNT ( * ) AS col0, + SUM ( ALL + 25 )
----
1
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9295
SELECT DISTINCT + COUNT( DISTINCT + 61 ) + + 39
----
40

skipif mysql # not compatible
query I rowsort label-9295
SELECT DISTINCT + COUNT ( DISTINCT + 61 ) + + 39
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9296
SELECT SUM( 61 ) * + 53, 68 DIV - 9 - - 77 AS col1
----
3233
70

skipif mysql # not compatible
query II rowsort label-9296
SELECT SUM ( 61 ) * + 53, 68 / - 9 - - 77 AS col1
----
3233
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9297
SELECT DISTINCT + - COUNT( * ) + - 10 col1
----
-11

skipif mysql # not compatible
query I rowsort label-9297
SELECT DISTINCT + - COUNT ( * ) + - 10 col1
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9298
SELECT + - COUNT( * ) * NULLIF ( 47, - 38 ) / CASE - CAST( - - 63 AS SIGNED ) WHEN - - 43 * - 46 + - 64 THEN + 44 * + 14 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9298
SELECT + - COUNT ( * ) * NULLIF ( 47, - 38 ) / CASE - CAST ( - - 63 AS INTEGER ) WHEN - - 43 * - 46 + - 64 THEN + 44 * + 14 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9299
SELECT ALL 52 + - 55 + - - 7 + + COUNT( * ) * + 96
----
100

skipif mysql # not compatible
query I rowsort label-9299
SELECT ALL 52 + - 55 + - - 7 + + COUNT ( * ) * + 96
----
100

query II rowsort
SELECT DISTINCT + 19 AS col2, + 74
----
19
74

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9301
SELECT ALL + 48 + + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9301
SELECT ALL + 48 + + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9302
SELECT - + 42 DIV - 25 col2
----
1

skipif mysql # not compatible
query I rowsort label-9302
SELECT - + 42 / - 25 col2
----
1

query I rowsort
SELECT + 45 * - 60
----
-2700

query I rowsort
SELECT + 14 + - 41
----
-27

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9305
SELECT ALL CASE + COUNT( * ) WHEN 68 THEN NULL WHEN 14 + - + 84 * MIN( - 7 ) * - CAST( NULL AS DECIMAL ) * - 92 + - 13 * - COUNT( 93 ) THEN NULL ELSE COUNT( * ) * COUNT( * ) END + 41
----
42

skipif mysql # not compatible
query I rowsort label-9305
SELECT ALL CASE + COUNT ( * ) WHEN 68 THEN NULL WHEN 14 + - + 84 * MIN ( - 7 ) * - CAST ( NULL AS REAL ) * - 92 + - 13 * - COUNT ( 93 ) THEN NULL ELSE COUNT ( * ) * COUNT ( * ) END + 41
----
42

query I rowsort
SELECT ALL 2 + + 37
----
39

query I rowsort
SELECT ALL 41 * 24
----
984

query I rowsort
SELECT ALL - 21 + - + 73 AS col1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-9309
SELECT ALL 69 * + COUNT( * ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-9309
SELECT ALL 69 * + COUNT ( * ) AS col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9310
SELECT + + 41 + - ( - 13 ) * + 13 * + - COUNT( * ) AS col2
----
-128

skipif mysql # not compatible
query I rowsort label-9310
SELECT + + 41 + - ( - 13 ) * + 13 * + - COUNT ( * ) AS col2
----
-128

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9311
SELECT - ( + SUM( ALL 64 ) ) DIV + 7 + + - 73
----
-82

skipif mysql # not compatible
query I rowsort label-9311
SELECT - ( + SUM ( ALL 64 ) ) / + 7 + + - 73
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-9312
SELECT ( + ( COUNT( - - 49 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-9312
SELECT ( + ( COUNT ( - - 49 ) ) )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9313
SELECT 7 DIV + SUM( - - NULLIF ( - + 95, + 34 ) ) - + 16
----
-16

skipif mysql # not compatible
query I rowsort label-9313
SELECT 7 / + SUM ( - - NULLIF ( - + 95, + 34 ) ) - + 16
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-9314
SELECT + 37 * - MIN( 3 ) AS col1
----
-111

skipif mysql # not compatible
query I rowsort label-9314
SELECT + 37 * - MIN ( 3 ) AS col1
----
-111

onlyif mysql # DIV for integer division: 
query I rowsort label-9315
SELECT ALL NULLIF ( + - 28, - + 28 DIV - 73 ) DIV 61
----
0

skipif mysql # not compatible
query I rowsort label-9315
SELECT ALL NULLIF ( + - 28, - + 28 / - 73 ) / 61
----
0

query I rowsort
SELECT ALL + 71 * - - 29
----
2059

query I rowsort
SELECT DISTINCT ( - - 40 ) * - - 26
----
1040

onlyif mysql # aggregate syntax: 
query I rowsort label-9318
SELECT DISTINCT ( + - 94 ) * + COUNT( + 16 ) * + 68 - + - 82 - + 77 * + 16 AS col2
----
-7542

skipif mysql # not compatible
query I rowsort label-9318
SELECT DISTINCT ( + - 94 ) * + COUNT ( + 16 ) * + 68 - + - 82 - + 77 * + 16 AS col2
----
-7542

query I rowsort
SELECT + 60 * - 33 + 42 AS col0
----
-1938

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9320
SELECT + 19 + + - 33 + + - 20 - - CAST( NULL AS SIGNED ) + 62 * NULLIF ( 25, - 31 ) / + 75 + 59 * + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9320
SELECT + 19 + + - 33 + + - 20 - - CAST ( NULL AS INTEGER ) + 62 * NULLIF ( 25, - 31 ) / + 75 + 59 * + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9321
SELECT ALL + CASE - + 3 WHEN - - 73 * - 45 + + 32 / 86 * - 60 * 10 * - + ( 89 ) * 63 + 85 + - COUNT( * ) THEN NULL WHEN - NULLIF ( 35, - 23 ) THEN - 94 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9321
SELECT ALL + CASE - + 3 WHEN - - 73 * - 45 + + 32 / 86 * - 60 * 10 * - + ( 89 ) * 63 + 85 + - COUNT ( * ) THEN NULL WHEN - NULLIF ( 35, - 23 ) THEN - 94 ELSE NULL END
----
NULL

query I rowsort
SELECT - 1 - - 87 AS col0
----
86

query I rowsort
SELECT - 97 * 50 + 32 AS col2
----
-4818

query I rowsort
SELECT ALL - 51 * 44 + ( 21 )
----
-2223

query I rowsort
SELECT ALL 40 * 66 + - NULLIF ( - 14, + 38 ) + NULLIF ( - 14, + 26 + - + 64 ) * 89
----
1408

onlyif mysql # aggregate syntax: 
query I rowsort label-9326
SELECT - ( + COUNT( * ) ) * - ( - 1 ) + 66 AS col0
----
65

skipif mysql # not compatible
query I rowsort label-9326
SELECT - ( + COUNT ( * ) ) * - ( - 1 ) + 66 AS col0
----
65

query I rowsort
SELECT 71 * + + 9 + 16
----
655

query I rowsort
SELECT - - 13 * ( - 19 ) AS col1
----
-247

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9329
SELECT - CAST( NULL AS SIGNED ) + + 5 AS col0, + 8 + + + 44 AS col2
----
NULL
52

skipif mysql # not compatible
query II rowsort label-9329
SELECT - CAST ( NULL AS INTEGER ) + + 5 AS col0, + 8 + + + 44 AS col2
----
NULL
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9330
SELECT + COUNT( DISTINCT - + 6 ) / - - CAST( NULL AS SIGNED ) * - NULLIF ( ( + COUNT( * ) ), - 71 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9330
SELECT + COUNT ( DISTINCT - + 6 ) / - - CAST ( NULL AS INTEGER ) * - NULLIF ( ( + COUNT ( * ) ), - 71 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9331
SELECT DISTINCT + CASE - + 61 WHEN + 9 THEN - + 3 WHEN - 59 THEN - - CAST( NULL AS SIGNED ) * - - 32 ELSE + 45 END + + 75 - + 89 col2
----
31

skipif mysql # not compatible
query I rowsort label-9331
SELECT DISTINCT + CASE - + 61 WHEN + 9 THEN - + 3 WHEN - 59 THEN - - CAST ( NULL AS INTEGER ) * - - 32 ELSE + 45 END + + 75 - + 89 col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9332
SELECT ALL + - 24 * - + COUNT( DISTINCT - - ( - 10 ) ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-9332
SELECT ALL + - 24 * - + COUNT ( DISTINCT - - ( - 10 ) ) AS col0
----
24

query I rowsort
SELECT - - 30 + 12 AS col2
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9334
SELECT ALL - - 11 - + + COALESCE ( - ( - + 10 ), 91, + 91 * + + CAST( + 56 AS SIGNED ) * - + SUM( 28 ) + + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-9334
SELECT ALL - - 11 - + + COALESCE ( - ( - + 10 ), 91, + 91 * + + CAST ( + 56 AS INTEGER ) * - + SUM ( 28 ) + + COUNT ( * ) )
----
1

query I rowsort
SELECT + - 81 + + 4 AS col0
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9336
SELECT - COUNT( * ) + COUNT( * ) + 7 DIV - NULLIF ( + + 25, + 99 - + 97 + + + CAST( + 77 AS SIGNED ) + CAST( - CAST( 37 AS SIGNED ) AS SIGNED ) * 36 DIV - COUNT( * ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9336
SELECT - COUNT ( * ) + COUNT ( * ) + 7 / - NULLIF ( + + 25, + 99 - + 97 + + + CAST ( + 77 AS INTEGER ) + CAST ( - CAST ( 37 AS INTEGER ) AS INTEGER ) * 36 / - COUNT ( * ) ) AS col0
----
0

query I rowsort
SELECT DISTINCT CASE WHEN NOT NULL NOT BETWEEN 4 AND 7 THEN - 13 END / - - CASE + - 60 WHEN + 7 * - 59 THEN NULL ELSE NULLIF ( - 12, 26 ) + - 5 * - 30 END - - 64
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9338
SELECT DISTINCT + 42 DIV - 3 + - - CAST( + NULLIF ( + AVG ( DISTINCT + 39 ), - 79 ) AS SIGNED ) - - 7 col2
----
32

skipif mysql # not compatible
query I rowsort label-9338
SELECT DISTINCT + 42 / - 3 + - - CAST ( + NULLIF ( + AVG ( DISTINCT + 39 ), - 79 ) AS INTEGER ) - - 7 col2
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-9339
SELECT + 19 DIV 71
----
0

skipif mysql # not compatible
query I rowsort label-9339
SELECT + 19 / 71
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9340
SELECT + MAX( 49 ) * + - COUNT( * ) AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-9340
SELECT + MAX ( 49 ) * + - COUNT ( * ) AS col1
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9341
SELECT ALL + CAST( NULL AS SIGNED ) * - ( - + 16 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9341
SELECT ALL + CAST ( NULL AS INTEGER ) * - ( - + 16 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9342
SELECT ALL ( 80 ) * COUNT( * ) - + 71
----
9

skipif mysql # not compatible
query I rowsort label-9342
SELECT ALL ( 80 ) * COUNT ( * ) - + 71
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9343
SELECT + - NULLIF ( + + COUNT( * ), ( + - 93 ) ) + 24 AS col1
----
23

skipif mysql # not compatible
query I rowsort label-9343
SELECT + - NULLIF ( + + COUNT ( * ), ( + - 93 ) ) + 24 AS col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9344
SELECT DISTINCT ( 4 ) * - MAX( ALL + + 7 )
----
-28

skipif mysql # not compatible
query I rowsort label-9344
SELECT DISTINCT ( 4 ) * - MAX ( ALL + + 7 )
----
-28

query I rowsort
SELECT DISTINCT NULLIF ( - COALESCE ( + 66, 85, - 93 ), + + 10 * - 66 ) * + 61 * 19 * + + 69 - + 35 * + 96
----
-5281446

onlyif mysql # aggregate syntax: 
query I rowsort label-9346
SELECT + COUNT( * ) + - ( - 52 ) + ( + + 15 ) * + + 90 * MAX( - 11 )
----
-14797

skipif mysql # not compatible
query I rowsort label-9346
SELECT + COUNT ( * ) + - ( - 52 ) + ( + + 15 ) * + + 90 * MAX ( - 11 )
----
-14797

query I rowsort
SELECT + NULLIF ( + - 99, 90 )
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9348
SELECT + CASE + 81 WHEN - + COALESCE ( - 18, 42 * 41 ) + - - COUNT( * ) THEN MAX( ALL - 58 ) + + 59 WHEN 44 - SUM( 21 ) THEN NULL END * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9348
SELECT + CASE + 81 WHEN - + COALESCE ( - 18, 42 * 41 ) + - - COUNT ( * ) THEN MAX ( ALL - 58 ) + + 59 WHEN 44 - SUM ( 21 ) THEN NULL END * COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9349
SELECT ALL + 33 DIV - - COUNT( * ) + + + 92 + + 34 + - - 71 + + 75 + - 78 - - 10 + + + 0 * - 98
----
237

skipif mysql # not compatible
query I rowsort label-9349
SELECT ALL + 33 / - - COUNT ( * ) + + + 92 + + 34 + - - 71 + + 75 + - 78 - - 10 + + + 0 * - 98
----
237

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9350
SELECT + 31 * + CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) + + - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-9350
SELECT + 31 * + CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) + + - 6
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9351
SELECT CAST( + 42 AS SIGNED ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-9351
SELECT CAST ( + 42 AS INTEGER ) AS col1
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-9352
SELECT ( - 82 ) DIV - 63 + - 63
----
-62

skipif mysql # not compatible
query I rowsort label-9352
SELECT ( - 82 ) / - 63 + - 63
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9353
SELECT CAST( 30 AS SIGNED ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-9353
SELECT CAST ( 30 AS INTEGER ) AS col2
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9354
SELECT ALL + SUM( DISTINCT - 20 ) DIV - 38 + - 76 * + 56 col0
----
-4256

skipif mysql # not compatible
query I rowsort label-9354
SELECT ALL + SUM ( DISTINCT - 20 ) / - 38 + - 76 * + 56 col0
----
-4256

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9355
SELECT DISTINCT ( + 37 ) DIV 29 + + + ( 45 ) * + - ( + 74 ) + ( + + COUNT( - 44 ) ) AS col2
----
-3328

skipif mysql # not compatible
query I rowsort label-9355
SELECT DISTINCT ( + 37 ) / 29 + + + ( 45 ) * + - ( + 74 ) + ( + + COUNT ( - 44 ) ) AS col2
----
-3328

query I rowsort
SELECT 78 * + 86 * 1 * + 82 AS col1
----
550056

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9357
SELECT ALL 24 + AVG ( - 39 ) - - - 58 * 48 * + CAST( COALESCE ( 6, - - COUNT( * ) ) AS SIGNED ) * - + COUNT( * ) + COALESCE ( - CASE + 21 WHEN CAST( 97 AS SIGNED ) THEN + 18 / 59 WHEN CAST( 4 AS SIGNED ) THEN NULL ELSE NULL END, - 47 + - CASE 13 WHEN + 52 THEN + COUNT( * ) ELSE NULL END ) * - 79 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9357
SELECT ALL 24 + AVG ( - 39 ) - - - 58 * 48 * + CAST ( COALESCE ( 6, - - COUNT ( * ) ) AS INTEGER ) * - + COUNT ( * ) + COALESCE ( - CASE + 21 WHEN CAST ( 97 AS INTEGER ) THEN + 18 / 59 WHEN CAST ( 4 AS INTEGER ) THEN NULL ELSE NULL END, - 47 + - CASE 13 WHEN + 52 THEN + COUNT ( * ) ELSE NULL END ) * - 79 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9358
SELECT DISTINCT 41 * + NULLIF ( + - SUM( DISTINCT + - CAST( NULL AS SIGNED ) ), + - 31 / + SUM( 15 ) - - - 16 + + 36 + 84 + - 8 * ( + 14 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9358
SELECT DISTINCT 41 * + NULLIF ( + - SUM ( DISTINCT + - CAST ( NULL AS INTEGER ) ), + - 31 / + SUM ( 15 ) - - - 16 + + 36 + 84 + - 8 * ( + 14 ) ) AS col2
----
NULL

query I rowsort
SELECT ALL + 77 * + 92 AS col0
----
7084

query I rowsort
SELECT ALL - + 1 + ( COALESCE ( 37, 65 - - 29, + 22 ) )
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-9361
SELECT - 74 * COUNT( * ) * - - 50 AS col1, - 95
----
-3700
-95

skipif mysql # not compatible
query II rowsort label-9361
SELECT - 74 * COUNT ( * ) * - - 50 AS col1, - 95
----
-3700
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-9362
SELECT 76 + - MIN( DISTINCT 39 ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-9362
SELECT 76 + - MIN ( DISTINCT 39 ) AS col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9363
SELECT - 87 * + 2 * + - 39 - - MAX( DISTINCT 7 ) + + 77 + + + 92 * - - 83 + - + CASE + 18 WHEN COUNT( * ) + 56 THEN NULL WHEN 47 THEN NULL ELSE - 34 * - 23 END
----
13724

skipif mysql # not compatible
query I rowsort label-9363
SELECT - 87 * + 2 * + - 39 - - MAX ( DISTINCT 7 ) + + 77 + + + 92 * - - 83 + - + CASE + 18 WHEN COUNT ( * ) + 56 THEN NULL WHEN 47 THEN NULL ELSE - 34 * - 23 END
----
13724

query I rowsort
SELECT ALL - - CASE WHEN NOT NULL NOT BETWEEN NULL AND 74 THEN + 8 + - 76 END AS col2
----
NULL

query I rowsort
SELECT ALL 1 + + + 41 AS col1
----
42

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9366
SELECT + COUNT( * ) AS col2, NULLIF ( CAST( NULL AS DECIMAL ), - 55 * 9 ) AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-9366
SELECT + COUNT ( * ) AS col2, NULLIF ( CAST ( NULL AS REAL ), - 55 * 9 ) AS col1
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9367
SELECT DISTINCT - - 59 - + - COUNT( * ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-9367
SELECT DISTINCT - - 59 - + - COUNT ( * ) AS col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9368
SELECT ALL CASE + - 15 WHEN 82 + + - 70 THEN NULL WHEN 21 - - ( 9 ) THEN NULL ELSE 97 * - COALESCE ( + 29, - SUM( DISTINCT - 65 ) + MAX( - 81 + + 36 ) * + COUNT( * ) ) - + 79 END AS col2
----
-2892

skipif mysql # not compatible
query I rowsort label-9368
SELECT ALL CASE + - 15 WHEN 82 + + - 70 THEN NULL WHEN 21 - - ( 9 ) THEN NULL ELSE 97 * - COALESCE ( + 29, - SUM ( DISTINCT - 65 ) + MAX ( - 81 + + 36 ) * + COUNT ( * ) ) - + 79 END AS col2
----
-2892

query II rowsort
SELECT - 20, 32 + 31 AS col0
----
-20
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9370
SELECT ALL - COUNT( * ) - + - 88 AS col2
----
87

skipif mysql # not compatible
query I rowsort label-9370
SELECT ALL - COUNT ( * ) - + - 88 AS col2
----
87

query I rowsort
SELECT - 20 * + 71
----
-1420

query I rowsort
SELECT 25 + 53
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9373
SELECT - - CASE ( - - CAST( NULL AS SIGNED ) ) WHEN + 57 * - CAST( - 46 AS SIGNED ) THEN NULL ELSE + 60 END AS col1
----
60

skipif mysql # not compatible
query I rowsort label-9373
SELECT - - CASE ( - - CAST ( NULL AS INTEGER ) ) WHEN + 57 * - CAST ( - 46 AS INTEGER ) THEN NULL ELSE + 60 END AS col1
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9374
SELECT ALL - 43 AS col1, 9 * - CAST( NULL AS SIGNED )
----
-43
NULL

skipif mysql # not compatible
query II rowsort label-9374
SELECT ALL - 43 AS col1, 9 * - CAST ( NULL AS INTEGER )
----
-43
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9375
SELECT ALL - CASE - 35 WHEN COUNT( * ) THEN - + 11 * - 11 * + + COUNT( 7 ) * 17 END * 57 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9375
SELECT ALL - CASE - 35 WHEN COUNT ( * ) THEN - + 11 * - 11 * + + COUNT ( 7 ) * 17 END * 57 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9376
SELECT + 56 * - + MAX( DISTINCT 56 ), + NULLIF ( - + NULLIF ( 65, + 39 + - - 32 ), - 56 * 70 ) * 70 - + 8 col1
----
-3136
-4558

skipif mysql # not compatible
query II rowsort label-9376
SELECT + 56 * - + MAX ( DISTINCT 56 ), + NULLIF ( - + NULLIF ( 65, + 39 + - - 32 ), - 56 * 70 ) * 70 - + 8 col1
----
-3136
-4558

query I rowsort
SELECT ALL - - 4 * - - 29 AS col0
----
116

query II rowsort
SELECT DISTINCT - 36 * + 70 * + 41, 45 + 24 + + 85 * 66 AS col2
----
-103320
5679

query I rowsort
SELECT 44 * - 89 AS col2
----
-3916

query I rowsort
SELECT ALL + 16 + - 30
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9381
SELECT 24 + SUM( + - 15 ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-9381
SELECT 24 + SUM ( + - 15 ) AS col0
----
9

query I rowsort
SELECT ALL 90 + + 74 + + 44 col2
----
208

query II rowsort
SELECT 34 + 1, 12 + + - 3 AS col2
----
35
9

query I rowsort
SELECT 69 * 81 col2
----
5589

onlyif mysql # DIV for integer division: 
query I rowsort label-9385
SELECT ALL 7 * 6 DIV + + 6 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-9385
SELECT ALL 7 * 6 / + + 6 AS col1
----
7

query II rowsort
SELECT + 82 AS col2, 32
----
82
32

onlyif mysql # DIV for integer division: 
query I rowsort label-9387
SELECT 53 DIV + 71
----
0

skipif mysql # not compatible
query I rowsort label-9387
SELECT 53 / + 71
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9388
SELECT ALL - CASE + + 53 WHEN - MAX( - 55 ) - - + 99 * + 66 THEN 69 * + - 86 END + - COALESCE ( + + 15, 68 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9388
SELECT ALL - CASE + + 53 WHEN - MAX ( - 55 ) - - + 99 * + 66 THEN 69 * + - 86 END + - COALESCE ( + + 15, 68 ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9389
SELECT DISTINCT + 99 + + - COUNT( * )
----
98

skipif mysql # not compatible
query I rowsort label-9389
SELECT DISTINCT + 99 + + - COUNT ( * )
----
98

query II rowsort
SELECT 59 AS col0, 89 AS col1
----
59
89

query I rowsort
SELECT ALL 48 + - 52
----
-4

query I rowsort
SELECT 54 * 18 + - 92 AS col0
----
880

query II rowsort
SELECT ALL - 49, 5 AS col0
----
-49
5

query I rowsort
SELECT 59 + 57
----
116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9395
SELECT COALESCE ( - 16, - 23 DIV CASE 93 WHEN + 30 THEN + 25 + + 84 ELSE NULL END * + ( - COALESCE ( - - ( + COUNT( ALL + 93 ) ), 95 ) ) - - NULLIF ( 49, - 14 DIV COUNT( * ) + 33 DIV + 23 ) + 88 ) - ( - COUNT( * ) ) * + 81 AS col2
----
65

skipif mysql # not compatible
query I rowsort label-9395
SELECT COALESCE ( - 16, - 23 / CASE 93 WHEN + 30 THEN + 25 + + 84 ELSE NULL END * + ( - COALESCE ( - - ( + COUNT ( ALL + 93 ) ), 95 ) ) - - NULLIF ( 49, - 14 / COUNT ( * ) + 33 / + 23 ) + 88 ) - ( - COUNT ( * ) ) * + 81 AS col2
----
65

query II rowsort
SELECT 64 AS col1, + 53 AS col2
----
64
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9397
SELECT 97 * - + 20 * 30 + - 41 * COUNT( * ) * + 97, ( + + 46 ) * + + ( - + 69 ) DIV COUNT( * ) col0
----
-62177
-3174

skipif mysql # not compatible
query II rowsort label-9397
SELECT 97 * - + 20 * 30 + - 41 * COUNT ( * ) * + 97, ( + + 46 ) * + + ( - + 69 ) / COUNT ( * ) col0
----
-62177
-3174

query I rowsort
SELECT ALL - 85 - + - 63 * + - 86
----
-5503

onlyif mysql # aggregate syntax: 
query I rowsort label-9399
SELECT + COUNT( * ) * - 44 * - 61 AS col1
----
2684

skipif mysql # not compatible
query I rowsort label-9399
SELECT + COUNT ( * ) * - 44 * - 61 AS col1
----
2684

query II rowsort
SELECT ALL - 19 AS col2, - 38 * - + 56
----
-19
2128

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9401
SELECT DISTINCT CASE ( SUM( ALL - 53 ) ) WHEN - + 64 THEN - - 33 WHEN - + 63 THEN NULL ELSE + 83 END - - 30 DIV - 83 - + 49 * COUNT( * )
----
34

skipif mysql # not compatible
query I rowsort label-9401
SELECT DISTINCT CASE ( SUM ( ALL - 53 ) ) WHEN - + 64 THEN - - 33 WHEN - + 63 THEN NULL ELSE + 83 END - - 30 / - 83 - + 49 * COUNT ( * )
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9402
SELECT DISTINCT - - COUNT( * ) AS col1, COUNT( * ) + - 13 + COALESCE ( + + 38, - 53 * + ( - MIN( + 19 ) ) ) + 36 - - CASE - 46 WHEN 64 + CAST( ( - 14 ) AS SIGNED ) THEN NULL WHEN SUM( DISTINCT - 6 ) THEN + 0 WHEN 24 THEN NULL END * - 9 * 69 AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-9402
SELECT DISTINCT - - COUNT ( * ) AS col1, COUNT ( * ) + - 13 + COALESCE ( + + 38, - 53 * + ( - MIN ( + 19 ) ) ) + 36 - - CASE - 46 WHEN 64 + CAST ( ( - 14 ) AS INTEGER ) THEN NULL WHEN SUM ( DISTINCT - 6 ) THEN + 0 WHEN 24 THEN NULL END * - 9 * 69 AS col0
----
1
NULL

query II rowsort
SELECT DISTINCT - + 12 AS col0, + 97
----
-12
97

onlyif mysql # aggregate syntax: 
query II rowsort label-9404
SELECT ALL 37 AS col1, 95 * + + 29 * - NULLIF ( CASE + SUM( 12 ) WHEN 24 - + + 45 + 32 * 85 THEN COUNT( * ) ELSE NULL END, 42 ) AS col2
----
37
NULL

skipif mysql # not compatible
query II rowsort label-9404
SELECT ALL 37 AS col1, 95 * + + 29 * - NULLIF ( CASE + SUM ( 12 ) WHEN 24 - + + 45 + 32 * 85 THEN COUNT ( * ) ELSE NULL END, 42 ) AS col2
----
37
NULL

query I rowsort
SELECT ALL 35 * + + 65 + - 16 AS col1
----
2259

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9406
SELECT SUM( DISTINCT - 91 ) DIV + 44 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-9406
SELECT SUM ( DISTINCT - 91 ) / + 44 AS col2
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9407
SELECT CAST( - 34 AS SIGNED ) + + COUNT( * ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-9407
SELECT CAST ( - 34 AS INTEGER ) + + COUNT ( * ) AS col0
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9408
SELECT + 88 * + - 86 DIV COALESCE ( - COUNT( * ), - 27 DIV - - 87 * + - 78 + 48 )
----
7568

skipif mysql # not compatible
query I rowsort label-9408
SELECT + 88 * + - 86 / COALESCE ( - COUNT ( * ), - 27 / - - 87 * + - 78 + 48 )
----
7568

query II rowsort
SELECT ALL - 81 col1, - 8 AS col2
----
-81
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9410
SELECT + 27 + 0 * CASE 10 WHEN - CAST( + 92 AS SIGNED ) - - + 69 THEN + + 21 * COALESCE ( - 55, - 69 * - 2 ) * - 52 WHEN 20 / 89 THEN NULL WHEN 33 + 62 * CAST( 8 AS SIGNED ) THEN COUNT( * ) / - COUNT( * ) ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9410
SELECT + 27 + 0 * CASE 10 WHEN - CAST ( + 92 AS INTEGER ) - - + 69 THEN + + 21 * COALESCE ( - 55, - 69 * - 2 ) * - 52 WHEN 20 / 89 THEN NULL WHEN 33 + 62 * CAST ( 8 AS INTEGER ) THEN COUNT ( * ) / - COUNT ( * ) ELSE NULL END col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9411
SELECT ALL + ( + NULLIF ( - 89, - + 39 ) ) AS col2, - COUNT( ALL + - 43 )
----
-89
-1

skipif mysql # not compatible
query II rowsort label-9411
SELECT ALL + ( + NULLIF ( - 89, - + 39 ) ) AS col2, - COUNT ( ALL + - 43 )
----
-89
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9412
SELECT 47 + - - COUNT( * ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-9412
SELECT 47 + - - COUNT ( * ) AS col2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9413
SELECT DISTINCT - MAX( - 84 )
----
84

skipif mysql # not compatible
query I rowsort label-9413
SELECT DISTINCT - MAX ( - 84 )
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9414
SELECT - MAX( ALL - - 37 ) + + 15 DIV + 61 AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-9414
SELECT - MAX ( ALL - - 37 ) + + 15 / + 61 AS col1
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-9415
SELECT DISTINCT 56 AS col1, MIN( DISTINCT - - ( + + 16 ) ) * - 10 - - + 6 * + - 33 * - 1 + ( 16 ) - COUNT( * ) - + 75 * + 37 AS col1
----
56
-2722

skipif mysql # not compatible
query II rowsort label-9415
SELECT DISTINCT 56 AS col1, MIN ( DISTINCT - - ( + + 16 ) ) * - 10 - - + 6 * + - 33 * - 1 + ( 16 ) - COUNT ( * ) - + 75 * + 37 AS col1
----
56
-2722

query I rowsort
SELECT - NULLIF ( + 97, - 28 ) AS col0
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9417
SELECT DISTINCT + 12 + + 91 + ( - MIN( ALL + CAST( + 42 AS SIGNED ) ) ) - + 80 * 68 DIV - 64
----
146

skipif mysql # not compatible
query I rowsort label-9417
SELECT DISTINCT + 12 + + 91 + ( - MIN ( ALL + CAST ( + 42 AS INTEGER ) ) ) - + 80 * 68 / - 64
----
146

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9418
SELECT 44 * - CAST( 73 AS SIGNED ) col1
----
-3212

skipif mysql # not compatible
query I rowsort label-9418
SELECT 44 * - CAST ( 73 AS INTEGER ) col1
----
-3212

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9419
SELECT DISTINCT NULLIF ( COUNT( * ), + CAST( 98 AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-9419
SELECT DISTINCT NULLIF ( COUNT ( * ), + CAST ( 98 AS INTEGER ) )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9420
SELECT DISTINCT COUNT( ALL - ( - 55 ) ) AS col2, + 64 * + 0
----
1
0

skipif mysql # not compatible
query II rowsort label-9420
SELECT DISTINCT COUNT ( ALL - ( - 55 ) ) AS col2, + 64 * + 0
----
1
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9421
SELECT ALL - 22 + - 74 AS col1, 16 * - COUNT( * ) AS col1
----
-96
-16

skipif mysql # not compatible
query II rowsort label-9421
SELECT ALL - 22 + - 74 AS col1, 16 * - COUNT ( * ) AS col1
----
-96
-16

query I rowsort
SELECT - 42 + + 9 + - - 43 * 68 * 8
----
23359

query I rowsort
SELECT ALL 41 * + + 96 + + 45
----
3981

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9424
SELECT - 6 DIV + 60 * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-9424
SELECT - 6 / + 60 * COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9425
SELECT - ( - - COUNT( * ) ) * - 72
----
72

skipif mysql # not compatible
query I rowsort label-9425
SELECT - ( - - COUNT ( * ) ) * - 72
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9426
SELECT COALESCE ( MIN( ALL + 71 ), - + 76 )
----
71

skipif mysql # not compatible
query I rowsort label-9426
SELECT COALESCE ( MIN ( ALL + 71 ), - + 76 )
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-9427
SELECT - 91 DIV + 66 + - ( + 14 ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-9427
SELECT - 91 / + 66 + - ( + 14 ) AS col1
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9428
SELECT DISTINCT SUM( + 50 ) * 89 DIV CAST( - 75 AS SIGNED )
----
-59

skipif mysql # not compatible
query I rowsort label-9428
SELECT DISTINCT SUM ( + 50 ) * 89 / CAST ( - 75 AS INTEGER )
----
-59

query I rowsort
SELECT ALL 39 * 7
----
273

query I rowsort
SELECT DISTINCT + - ( - + 42 ) * + - 89 * + - 32 - - - 9
----
119607

onlyif mysql # aggregate syntax: 
query I rowsort label-9431
SELECT + 46 * 63 - + 99 + SUM( + 53 ) * - 81 + + 83 + - 37 AS col1
----
-1448

skipif mysql # not compatible
query I rowsort label-9431
SELECT + 46 * 63 - + 99 + SUM ( + 53 ) * - 81 + + 83 + - 37 AS col1
----
-1448

query II rowsort
SELECT + - ( + 20 ), - 4 AS col1
----
-20
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9433
SELECT ALL + + NULLIF ( COUNT( * ), - + 63 + MIN( ALL + 52 ) - 26 )
----
1

skipif mysql # not compatible
query I rowsort label-9433
SELECT ALL + + NULLIF ( COUNT ( * ), - + 63 + MIN ( ALL + 52 ) - 26 )
----
1

query I rowsort
SELECT + 11 * - 70 AS col1
----
-770

onlyif mysql # aggregate syntax: 
query I rowsort label-9435
SELECT + 81 + + 56 + - SUM( ALL 25 ) + 53 + + - 66
----
99

skipif mysql # not compatible
query I rowsort label-9435
SELECT + 81 + + 56 + - SUM ( ALL 25 ) + 53 + + - 66
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-9436
SELECT + + COUNT( + 38 ), + COUNT( * ) AS col0
----
1
1

skipif mysql # not compatible
query II rowsort label-9436
SELECT + + COUNT ( + 38 ), + COUNT ( * ) AS col0
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9437
SELECT + - 41 * MIN( + 5 ) col2
----
-205

skipif mysql # not compatible
query I rowsort label-9437
SELECT + - 41 * MIN ( + 5 ) col2
----
-205

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9438
SELECT DISTINCT CAST( NULL AS SIGNED ) / - CAST( NULL AS SIGNED ) / + 56 - - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-9438
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - CAST ( NULL AS INTEGER ) / + 56 - - 6
----
NULL

query I rowsort
SELECT ALL - 61 + + 81
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-9440
SELECT + - 92 DIV 55
----
-1

skipif mysql # not compatible
query I rowsort label-9440
SELECT + - 92 / 55
----
-1

query I rowsort
SELECT + + 22 + 1 AS col0
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9442
SELECT DISTINCT + 8 DIV - ( + COUNT( * ) ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-9442
SELECT DISTINCT + 8 / - ( + COUNT ( * ) ) AS col0
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9443
SELECT DISTINCT CASE - - 33 WHEN 18 * + 21 + - + CAST( NULL AS SIGNED ) - 0 + + - COALESCE ( 39, COUNT( * ) + - 66 ) * - - 25 THEN NULL WHEN + + 6 THEN NULL ELSE + 61 END
----
61

skipif mysql # not compatible
query I rowsort label-9443
SELECT DISTINCT CASE - - 33 WHEN 18 * + 21 + - + CAST ( NULL AS INTEGER ) - 0 + + - COALESCE ( 39, COUNT ( * ) + - 66 ) * - - 25 THEN NULL WHEN + + 6 THEN NULL ELSE + 61 END
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9444
SELECT 84 AS col1, + 7 DIV + COUNT( * ) AS col1
----
84
7

skipif mysql # not compatible
query II rowsort label-9444
SELECT 84 AS col1, + 7 / + COUNT ( * ) AS col1
----
84
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9445
SELECT + COALESCE ( - - CAST( + + 77 AS SIGNED ), + MAX( DISTINCT + 47 ), 47 - - 5 + + - 38 - COUNT( * ) ) + COUNT( * ) + 93
----
171

skipif mysql # not compatible
query I rowsort label-9445
SELECT + COALESCE ( - - CAST ( + + 77 AS INTEGER ), + MAX ( DISTINCT + 47 ), 47 - - 5 + + - 38 - COUNT ( * ) ) + COUNT ( * ) + 93
----
171

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9446
SELECT - CAST( NULL AS SIGNED ) - - ( 93 ) + + 78 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9446
SELECT - CAST ( NULL AS INTEGER ) - - ( 93 ) + + 78 AS col0
----
NULL

query I rowsort
SELECT DISTINCT CASE - + 52 WHEN - + 77 THEN NULL ELSE + 60 + - 91 END
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-9448
SELECT + COUNT( DISTINCT - + ( - 45 ) ) + - 5 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-9448
SELECT + COUNT ( DISTINCT - + ( - 45 ) ) + - 5 AS col1
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9449
SELECT - 89 * - - NULLIF ( ( + CAST( - 28 AS SIGNED ) ), 45 )
----
2492

skipif mysql # not compatible
query I rowsort label-9449
SELECT - 89 * - - NULLIF ( ( + CAST ( - 28 AS INTEGER ) ), 45 )
----
2492

onlyif mysql # aggregate syntax: 
query I rowsort label-9450
SELECT ALL - COUNT( * ) * + 48
----
-48

skipif mysql # not compatible
query I rowsort label-9450
SELECT ALL - COUNT ( * ) * + 48
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9451
SELECT ALL + ( + MAX( + - CAST( + 23 AS SIGNED ) ) )
----
-23

skipif mysql # not compatible
query I rowsort label-9451
SELECT ALL + ( + MAX ( + - CAST ( + 23 AS INTEGER ) ) )
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9452
SELECT + 5 / COALESCE ( + CAST( NULL AS DECIMAL ), - 2, COUNT( * ) + + 32 * - + 76 ) * 6 * - 68 + - + 56 + 23 + 22 * 25 * - 55 - - 80 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9452
SELECT + 5 / COALESCE ( + CAST ( NULL AS REAL ), - 2, COUNT ( * ) + + 32 * - + 76 ) * 6 * - 68 + - + 56 + 23 + 22 * 25 * - 55 - - 80 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9453
SELECT - COALESCE ( + - 42, + SUM( DISTINCT - + 52 ) ) + 75
----
117

skipif mysql # not compatible
query I rowsort label-9453
SELECT - COALESCE ( + - 42, + SUM ( DISTINCT - + 52 ) ) + 75
----
117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9454
SELECT ALL + CASE + AVG ( + NULLIF ( + 30, - 93 ) ) WHEN MIN( DISTINCT 18 ) * COUNT( * ) * - CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) THEN NULL ELSE + ( - 57 ) DIV + 26 + 66 END
----
64

skipif mysql # not compatible
query I rowsort label-9454
SELECT ALL + CASE + AVG ( + NULLIF ( + 30, - 93 ) ) WHEN MIN ( DISTINCT 18 ) * COUNT ( * ) * - CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) THEN NULL ELSE + ( - 57 ) / + 26 + 66 END
----
64

query I rowsort
SELECT - + 89 + 80 AS col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9456
SELECT ALL + ( + COUNT( DISTINCT + 74 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9456
SELECT ALL + ( + COUNT ( DISTINCT + 74 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9457
SELECT - - 99 * SUM( DISTINCT + 78 ) + 37
----
7759

skipif mysql # not compatible
query I rowsort label-9457
SELECT - - 99 * SUM ( DISTINCT + 78 ) + 37
----
7759

query II rowsort
SELECT ALL + + 90, - 67 AS col2
----
90
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9459
SELECT - - 3 DIV + NULLIF ( - 36, + ( - 26 ) - + + NULLIF ( - CASE 82 WHEN - + 31 - - NULLIF ( - + 43, - 42 ) THEN - 99 - + 13 ELSE + 60 * 2 + + 98 * 37 END, - COALESCE ( + 23, - 64 + + 54 ) * - MIN( DISTINCT 55 ) ) + MIN( DISTINCT - ( 74 ) ) * + 42 )
----
0

skipif mysql # not compatible
query I rowsort label-9459
SELECT - - 3 / + NULLIF ( - 36, + ( - 26 ) - + + NULLIF ( - CASE 82 WHEN - + 31 - - NULLIF ( - + 43, - 42 ) THEN - 99 - + 13 ELSE + 60 * 2 + + 98 * 37 END, - COALESCE ( + 23, - 64 + + 54 ) * - MIN ( DISTINCT 55 ) ) + MIN ( DISTINCT - ( 74 ) ) * + 42 )
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9460
SELECT - - 97 DIV - CAST( + + 93 AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-9460
SELECT - - 97 / - CAST ( + + 93 AS INTEGER )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9461
SELECT + 10 DIV - - MIN( + 70 ) + - 5 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-9461
SELECT + 10 / - - MIN ( + 70 ) + - 5 AS col1
----
-5

query I rowsort
SELECT ALL + NULLIF ( - 26, - + 85 * 76 )
----
-26

query II rowsort
SELECT - + ( + ( - + 89 ) ) + + - 17 * + 8 + - - 84 AS col1, 55 AS col1
----
37
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9464
SELECT - MAX( DISTINCT - + 41 ) DIV 62
----
0

skipif mysql # not compatible
query I rowsort label-9464
SELECT - MAX ( DISTINCT - + 41 ) / 62
----
0

query I rowsort
SELECT DISTINCT + - 64 * + - 82 AS col2
----
5248

onlyif mysql # DIV for integer division: 
query I rowsort label-9466
SELECT DISTINCT + 15 DIV 74
----
0

skipif mysql # not compatible
query I rowsort label-9466
SELECT DISTINCT + 15 / 74
----
0

query I rowsort
SELECT DISTINCT 57 * + 75
----
4275

onlyif mysql # aggregate syntax: 
query I rowsort label-9468
SELECT + - 12 + + COUNT( * ) - ( - 39 ) + - - 52
----
80

skipif mysql # not compatible
query I rowsort label-9468
SELECT + - 12 + + COUNT ( * ) - ( - 39 ) + - - 52
----
80

query I rowsort
SELECT + - 96 * - 58 + + + 21 AS col0
----
5589

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9470
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 12 + 53 * - SUM( - 36 ) + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-9470
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 12 + 53 * - SUM ( - 36 ) + 47
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9471
SELECT + CAST( - + 38 AS SIGNED ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-9471
SELECT + CAST ( - + 38 AS INTEGER ) AS col0
----
-38

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9472
SELECT + CASE - MIN( ALL 97 ) WHEN + CAST( + 18 AS DECIMAL ) THEN - 62 + - MIN( - - 78 ) + 54 / - + 0 WHEN - 59 * - - 9 - - 45 - 31 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9472
SELECT + CASE - MIN ( ALL 97 ) WHEN + CAST ( + 18 AS REAL ) THEN - 62 + - MIN ( - - 78 ) + 54 / - + 0 WHEN - 59 * - - 9 - - 45 - 31 THEN NULL END
----
NULL

query II rowsort
SELECT ALL + 12 AS col0, 4 * + 94 AS col1
----
12
376

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9474
SELECT ALL CAST( - - COUNT( * ) AS SIGNED ) * 31 + + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9474
SELECT ALL CAST ( - - COUNT ( * ) AS INTEGER ) * 31 + + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL 61 + + 41 + 22 AS col1
----
124

query I rowsort
SELECT DISTINCT ( 49 ) + + 24 * + - 38 + 84
----
-779

query I rowsort
SELECT DISTINCT 78 * + ( - 27 )
----
-2106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9478
SELECT 69 + + + COUNT( * ) + + + CASE + COUNT( * ) WHEN + 19 THEN - 32 - - MIN( ALL + CAST( NULL AS SIGNED ) ) WHEN - 68 THEN COUNT( * ) * + - 77 - + COUNT( * ) END AS col2, + 16 AS col1
----
NULL
16

skipif mysql # not compatible
query II rowsort label-9478
SELECT 69 + + + COUNT ( * ) + + + CASE + COUNT ( * ) WHEN + 19 THEN - 32 - - MIN ( ALL + CAST ( NULL AS INTEGER ) ) WHEN - 68 THEN COUNT ( * ) * + - 77 - + COUNT ( * ) END AS col2, + 16 AS col1
----
NULL
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9479
SELECT CASE - - 22 WHEN - 11 THEN - - 16 * - COUNT( * ) / + 23 END * + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-9479
SELECT CASE - - 22 WHEN - 11 THEN - - 16 * - COUNT ( * ) / + 23 END * + 71
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9480
SELECT ALL COUNT( * ) * + 87
----
87

skipif mysql # not compatible
query I rowsort label-9480
SELECT ALL COUNT ( * ) * + 87
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-9481
SELECT ( 12 ) + - 17 + + 97 DIV - - 66 + + ( - 70 ) AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-9481
SELECT ( 12 ) + - 17 + + 97 / - - 66 + + ( - 70 ) AS col2
----
-74

query I rowsort
SELECT ALL 25 * 98
----
2450

onlyif mysql # aggregate syntax: 
query I rowsort label-9483
SELECT COUNT( * ) * 60 AS col0
----
60

skipif mysql # not compatible
query I rowsort label-9483
SELECT COUNT ( * ) * 60 AS col0
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9484
SELECT CAST( - 5 AS SIGNED ) * 45 - + 62 col0, - 2
----
-287
-2

skipif mysql # not compatible
query II rowsort label-9484
SELECT CAST ( - 5 AS INTEGER ) * 45 - + 62 col0, - 2
----
-287
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9485
SELECT ALL COUNT( 37 ) * ( CASE 7 WHEN - 66 THEN 58 ELSE + 51 END ) col1
----
51

skipif mysql # not compatible
query I rowsort label-9485
SELECT ALL COUNT ( 37 ) * ( CASE 7 WHEN - 66 THEN 58 ELSE + 51 END ) col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9486
SELECT 13 + - + COUNT( * ) * + - 87 + - 74 + + 94 * - 40 * + + 0
----
26

skipif mysql # not compatible
query I rowsort label-9486
SELECT 13 + - + COUNT ( * ) * + - 87 + - 74 + + 94 * - 40 * + + 0
----
26

query I rowsort
SELECT DISTINCT 24 - 89
----
-65

query I rowsort
SELECT DISTINCT 82 * + 70 AS col0
----
5740

onlyif mysql # DIV for integer division: 
query I rowsort label-9489
SELECT ALL + 59 DIV - 79 * ( + + 56 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9489
SELECT ALL + 59 / - 79 * ( + + 56 ) AS col2
----
0

query I rowsort
SELECT DISTINCT - 5 - - 71
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9491
SELECT ALL - MIN( ALL 53 ) AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-9491
SELECT ALL - MIN ( ALL 53 ) AS col0
----
-53

query I rowsort
SELECT - 42 * 33 - + 73
----
-1459

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9493
SELECT + 48 * + 95 - CAST( - + CAST( 97 AS SIGNED ) AS SIGNED ) * 66
----
10962

skipif mysql # not compatible
query I rowsort label-9493
SELECT + 48 * + 95 - CAST ( - + CAST ( 97 AS INTEGER ) AS INTEGER ) * 66
----
10962

onlyif mysql # aggregate syntax: 
query I rowsort label-9494
SELECT 66 * + 56 + + + SUM( + + 72 )
----
3768

skipif mysql # not compatible
query I rowsort label-9494
SELECT 66 * + 56 + + + SUM ( + + 72 )
----
3768

onlyif mysql # aggregate syntax: 
query I rowsort label-9495
SELECT ALL + - NULLIF ( 47, + 57 ) * + 95 * + COUNT( * ) AS col1
----
-4465

skipif mysql # not compatible
query I rowsort label-9495
SELECT ALL + - NULLIF ( 47, + 57 ) * + 95 * + COUNT ( * ) AS col1
----
-4465

query I rowsort
SELECT ALL + 13 * + CASE AVG ( - + 34 ) WHEN - 98 + - + ( COALESCE ( + 33, 6 ) ) + - 54 * - 41 THEN - + 29 + 89 - + 11 + 94 * 45 WHEN + 43 * 11 THEN + 73 ELSE NULL END * ( 11 + 6 ) + - 19 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9497
SELECT ALL + - 62 * - + 99 * + 25 - 50 + - CAST( NULL AS SIGNED ) * 70 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9497
SELECT ALL + - 62 * - + 99 * + 25 - 50 + - CAST ( NULL AS INTEGER ) * 70 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9498
SELECT + NULLIF ( - 74, 28 + 20 + - 32 * - - 53 + COUNT( * ) )
----
-74

skipif mysql # not compatible
query I rowsort label-9498
SELECT + NULLIF ( - 74, 28 + 20 + - 32 * - - 53 + COUNT ( * ) )
----
-74

query I rowsort
SELECT DISTINCT + ( + 1 ) + 38 + + 72
----
111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9500
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + - 41 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9500
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + - 41 AS col2
----
NULL

query I rowsort
SELECT ALL - 61 + 56 * 28 col0
----
1507

onlyif mysql # aggregate syntax: 
query I rowsort label-9502
SELECT - ( - CASE 90 WHEN + 77 * - COUNT( DISTINCT 93 ) THEN NULL ELSE - + 69 * ( - - 50 ) END ) * + 7 + - + 60 + - CASE 95 WHEN - 52 THEN - 45 END * 85 * 14 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9502
SELECT - ( - CASE 90 WHEN + 77 * - COUNT ( DISTINCT 93 ) THEN NULL ELSE - + 69 * ( - - 50 ) END ) * + 7 + - + 60 + - CASE 95 WHEN - 52 THEN - 45 END * 85 * 14 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9503
SELECT - 57 * + + COUNT( * ) * + 21
----
-1197

skipif mysql # not compatible
query I rowsort label-9503
SELECT - 57 * + + COUNT ( * ) * + 21
----
-1197

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9504
SELECT ALL + 70 DIV + 62 + - ( + 90 ) * - COALESCE ( + COUNT( * ), + MIN( ALL + - 39 ) ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-9504
SELECT ALL + 70 / + 62 + - ( + 90 ) * - COALESCE ( + COUNT ( * ), + MIN ( ALL + - 39 ) ) AS col0
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9505
SELECT DISTINCT - 11 + + MAX( 81 ) + CAST( SUM( DISTINCT 12 ) AS SIGNED )
----
82

skipif mysql # not compatible
query I rowsort label-9505
SELECT DISTINCT - 11 + + MAX ( 81 ) + CAST ( SUM ( DISTINCT 12 ) AS INTEGER )
----
82

query I rowsort
SELECT 94 + + 22 AS col1
----
116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9507
SELECT + ( - CAST( + 7 AS SIGNED ) ) + + 16 col0
----
9

skipif mysql # not compatible
query I rowsort label-9507
SELECT + ( - CAST ( + 7 AS INTEGER ) ) + + 16 col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9508
SELECT ALL - 20 + - COUNT( * ) * + CASE + + 30 WHEN 65 * 0 - + + 2 THEN - CASE + NULLIF ( - 30, COALESCE ( + 26, - 46 ) + - + 21 + 91 * 4 ) WHEN 0 + - COUNT( * ) THEN 13 + - 16 * + ( 85 ) WHEN - 31 THEN + AVG ( DISTINCT 61 ) END + 65 ELSE NULL END - 13 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9508
SELECT ALL - 20 + - COUNT ( * ) * + CASE + + 30 WHEN 65 * 0 - + + 2 THEN - CASE + NULLIF ( - 30, COALESCE ( + 26, - 46 ) + - + 21 + 91 * 4 ) WHEN 0 + - COUNT ( * ) THEN 13 + - 16 * + ( 85 ) WHEN - 31 THEN + AVG ( DISTINCT 61 ) END + 65 ELSE NULL END - 13 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9509
SELECT + 23 * - COUNT( * ) AS col1, + ( + ( - COUNT( * ) ) )
----
-23
-1

skipif mysql # not compatible
query II rowsort label-9509
SELECT + 23 * - COUNT ( * ) AS col1, + ( + ( - COUNT ( * ) ) )
----
-23
-1

query I rowsort
SELECT ALL 20 - + + 83 AS col2
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9511
SELECT DISTINCT 78 * - 11 * + + CAST( - - 77 AS SIGNED )
----
-66066

skipif mysql # not compatible
query I rowsort label-9511
SELECT DISTINCT 78 * - 11 * + + CAST ( - - 77 AS INTEGER )
----
-66066

query I rowsort
SELECT ALL 37 * ( - 4 )
----
-148

query II rowsort
SELECT - 19 AS col0, 43
----
-19
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9514
SELECT ALL + 36 - - + MAX( + - 86 ) DIV 55 AS col0
----
35

skipif mysql # not compatible
query I rowsort label-9514
SELECT ALL + 36 - - + MAX ( + - 86 ) / 55 AS col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9515
SELECT 62 + SUM( - + 76 ) AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-9515
SELECT 62 + SUM ( - + 76 ) AS col1
----
-14

query II rowsort
SELECT - 30 AS col1, - 47 - 4
----
-30
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9517
SELECT ( MAX( + - 18 ) ) * COUNT( * ) AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-9517
SELECT ( MAX ( + - 18 ) ) * COUNT ( * ) AS col1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-9518
SELECT SUM( DISTINCT - - 49 ) * + 24 + 54 * - 42
----
-1092

skipif mysql # not compatible
query I rowsort label-9518
SELECT SUM ( DISTINCT - - 49 ) * + 24 + 54 * - 42
----
-1092

query II rowsort
SELECT ALL 87, + 75 AS col2
----
87
75

query I rowsort
SELECT 94 - + - 4 * ( 14 )
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-9521
SELECT ALL MAX( - + 28 ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-9521
SELECT ALL MAX ( - + 28 ) AS col2
----
-28

query I rowsort
SELECT 84 + COALESCE ( - 98, - + 95 * + 27, + 18 * - 7 * ( + + 71 ) + + - CASE + 0 WHEN - 60 THEN NULL WHEN 37 + - 63 + + 69 THEN + 73 * CASE + 5 * COALESCE ( - 16, 13 / CASE + NULLIF ( 76, 16 ) WHEN 16 THEN NULL WHEN - 40 / + 2 THEN + ( 19 ) + + 94 * 52 ELSE 34 END ) WHEN + 69 THEN 66 * + 95 - ( - ( 87 ) ) END END ) AS col1
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-9523
SELECT 87 DIV - 96
----
0

skipif mysql # not compatible
query I rowsort label-9523
SELECT 87 / - 96
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9524
SELECT 23 * - - CAST( 31 AS SIGNED ) AS col2
----
713

skipif mysql # not compatible
query I rowsort label-9524
SELECT 23 * - - CAST ( 31 AS INTEGER ) AS col2
----
713

onlyif mysql # aggregate syntax: 
query I rowsort label-9525
SELECT 93 + NULLIF ( + COUNT( DISTINCT - 92 ), + 7 - + + 6 + - 70 )
----
94

skipif mysql # not compatible
query I rowsort label-9525
SELECT 93 + NULLIF ( + COUNT ( DISTINCT - 92 ), + 7 - + + 6 + - 70 )
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9526
SELECT + 11 - 17 + + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + 10 - 73 / + 47 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9526
SELECT + 11 - 17 + + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + 10 - 73 / + 47 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9527
SELECT ALL - 75 * + + SUM( + 21 ) AS col1
----
-1575

skipif mysql # not compatible
query I rowsort label-9527
SELECT ALL - 75 * + + SUM ( + 21 ) AS col1
----
-1575

query I rowsort
SELECT ALL 85 + + 94 + - + 0
----
179

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9529
SELECT + 55 + + - ( + 57 ), + CAST( - 44 AS SIGNED ) AS col2
----
-2
-44

skipif mysql # not compatible
query II rowsort label-9529
SELECT + 55 + + - ( + 57 ), + CAST ( - 44 AS INTEGER ) AS col2
----
-2
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9530
SELECT ALL + 40 * 5 + - 68 + + + CAST( - 62 AS SIGNED ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-9530
SELECT ALL + 40 * 5 + - 68 + + + CAST ( - 62 AS INTEGER ) AS col2
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-9531
SELECT DISTINCT - + 12 AS col2, - 30 + COUNT( * )
----
-12
-29

skipif mysql # not compatible
query II rowsort label-9531
SELECT DISTINCT - + 12 AS col2, - 30 + COUNT ( * )
----
-12
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9532
SELECT ALL - + AVG ( - 61 ) * + - CAST( NULL AS SIGNED ) * + + ( + 31 ) + + 60 * 41 + - + ( + 14 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9532
SELECT ALL - + AVG ( - 61 ) * + - CAST ( NULL AS INTEGER ) * + + ( + 31 ) + + 60 * 41 + - + ( + 14 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9533
SELECT ALL - + 24 * - 46 * 51 + - + 40 * - SUM( DISTINCT + 62 ) * - 47 col1
----
-60256

skipif mysql # not compatible
query I rowsort label-9533
SELECT ALL - + 24 * - 46 * 51 + - + 40 * - SUM ( DISTINCT + 62 ) * - 47 col1
----
-60256

query I rowsort
SELECT ALL + + 25 * 76 + - 15 + + - 71 AS col2
----
1814

onlyif mysql # aggregate syntax: 
query I rowsort label-9535
SELECT + NULLIF ( + - MAX( ALL - - 12 ), + 60 * + COALESCE ( - 35, + COUNT( * ) ) )
----
-12

skipif mysql # not compatible
query I rowsort label-9535
SELECT + NULLIF ( + - MAX ( ALL - - 12 ), + 60 * + COALESCE ( - 35, + COUNT ( * ) ) )
----
-12

query I rowsort
SELECT 29 + + + COALESCE ( - - 78, - - 6 )
----
107

query I rowsort
SELECT NULLIF ( 7, ( 81 ) )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9538
SELECT + - MIN( - 84 )
----
84

skipif mysql # not compatible
query I rowsort label-9538
SELECT + - MIN ( - 84 )
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9539
SELECT CASE + + 19 WHEN + - 92 * - 39 + - CAST( - ( - COALESCE ( NULLIF ( - - ( + 53 ), ( + 12 ) * - + 56 * + 41 ), 38 + - 93, - AVG ( DISTINCT - 10 ) + - 82 ) ) AS SIGNED ) * 98 THEN - 21 * - 24 + + 21 WHEN - 83 THEN 57 / 33 + + 91 * COALESCE ( - 38, 35 - 99 ) ELSE NULL END * 49
----
NULL

skipif mysql # not compatible
query I rowsort label-9539
SELECT CASE + + 19 WHEN + - 92 * - 39 + - CAST ( - ( - COALESCE ( NULLIF ( - - ( + 53 ), ( + 12 ) * - + 56 * + 41 ), 38 + - 93, - AVG ( DISTINCT - 10 ) + - 82 ) ) AS INTEGER ) * 98 THEN - 21 * - 24 + + 21 WHEN - 83 THEN 57 / 33 + + 91 * COALESCE ( - 38, 35 - 99 ) ELSE NULL END * 49
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9540
SELECT + 54 + - - COUNT( * ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-9540
SELECT + 54 + - - COUNT ( * ) AS col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9541
SELECT ALL - 10 * - 43 * 42 - + + 40 + + MIN( ALL - 5 ) * - 86 AS col2
----
18450

skipif mysql # not compatible
query I rowsort label-9541
SELECT ALL - 10 * - 43 * 42 - + + 40 + + MIN ( ALL - 5 ) * - 86 AS col2
----
18450

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9542
SELECT ALL - CAST( + - 54 AS SIGNED ) * + 51
----
2754

skipif mysql # not compatible
query I rowsort label-9542
SELECT ALL - CAST ( + - 54 AS INTEGER ) * + 51
----
2754

query II rowsort
SELECT - 21 * + - 73 + - ( - - ( - - 82 ) ) + + 47 * 64 * + - 5 AS col1, + 63
----
-13589
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9544
SELECT ALL + - MIN( + 88 )
----
-88

skipif mysql # not compatible
query I rowsort label-9544
SELECT ALL + - MIN ( + 88 )
----
-88

query I rowsort
SELECT ALL + COALESCE ( 3, - 1 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9546
SELECT ( SUM( - - 87 ) ) * - 21 + + 67 AS col0
----
-1760

skipif mysql # not compatible
query I rowsort label-9546
SELECT ( SUM ( - - 87 ) ) * - 21 + + 67 AS col0
----
-1760

onlyif mysql # aggregate syntax: 
query I rowsort label-9547
SELECT + 90 * - - SUM( ALL - 40 )
----
-3600

skipif mysql # not compatible
query I rowsort label-9547
SELECT + 90 * - - SUM ( ALL - 40 )
----
-3600

query I rowsort
SELECT 59 * + + COALESCE ( + - 89, + - 84 - + 8 * - 74 ) * - 90 + - 79
----
472511

onlyif mysql # aggregate syntax: 
query I rowsort label-9549
SELECT ALL MAX( ALL + - 98 )
----
-98

skipif mysql # not compatible
query I rowsort label-9549
SELECT ALL MAX ( ALL + - 98 )
----
-98

query I rowsort
SELECT DISTINCT CASE 18 WHEN 45 - 29 * 78 + + 95 + + - 69 THEN + + 89 END
----
NULL

query I rowsort
SELECT - 60 * 36 AS col0
----
-2160

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9552
SELECT - CAST( NULL AS DECIMAL ) * - 89 * 13 * 15 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9552
SELECT - CAST ( NULL AS REAL ) * - 89 * 13 * 15 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9553
SELECT DISTINCT - 78 DIV + 55 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9553
SELECT DISTINCT - 78 / + 55 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9554
SELECT DISTINCT MAX( ALL 46 )
----
46

skipif mysql # not compatible
query I rowsort label-9554
SELECT DISTINCT MAX ( ALL 46 )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9555
SELECT - 6 + + ( + + SUM( - 63 ) ) AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-9555
SELECT - 6 + + ( + + SUM ( - 63 ) ) AS col1
----
-69

query II rowsort
SELECT - 97 AS col2, - 74
----
-97
-74

query I rowsort
SELECT DISTINCT + 87 * - 61 * - 5
----
26535

query II rowsort
SELECT - 51 col2, 90 AS col2
----
-51
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9559
SELECT + 0 + - - 6 + COUNT( * ) * - 84 + - - 26 col0
----
-52

skipif mysql # not compatible
query I rowsort label-9559
SELECT + 0 + - - 6 + COUNT ( * ) * - 84 + - - 26 col0
----
-52

query I rowsort
SELECT - 70 * 87
----
-6090

query I rowsort
SELECT ALL 79 + + 45 + 75 AS col1
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-9562
SELECT MIN( DISTINCT + 54 ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-9562
SELECT MIN ( DISTINCT + 54 ) AS col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9563
SELECT DISTINCT COUNT( DISTINCT + 12 )
----
1

skipif mysql # not compatible
query I rowsort label-9563
SELECT DISTINCT COUNT ( DISTINCT + 12 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9564
SELECT DISTINCT + COUNT( * ) + - COALESCE ( - 68, + - 13, 34 DIV + COALESCE ( - SUM( DISTINCT - - 98 ), ( + - 7 ), - + 53 * + + 51 + 35 + + 65 ), - 89 )
----
69

skipif mysql # not compatible
query I rowsort label-9564
SELECT DISTINCT + COUNT ( * ) + - COALESCE ( - 68, + - 13, 34 / + COALESCE ( - SUM ( DISTINCT - - 98 ), ( + - 7 ), - + 53 * + + 51 + 35 + + 65 ), - 89 )
----
69

query I rowsort
SELECT ALL NULLIF ( 65, + 81 ) + - - 76
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-9566
SELECT DISTINCT + 47 + + SUM( ALL - 1 ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-9566
SELECT DISTINCT + 47 + + SUM ( ALL - 1 ) AS col1
----
46

query I rowsort
SELECT - 95 * - 17 * + 28 - + 52
----
45168

query I rowsort
SELECT + + 8 * - - ( 37 ) AS col2
----
296

query I rowsort
SELECT DISTINCT + 3 * + - 34 * - 89 * - + 62 AS col2
----
-562836

onlyif mysql # aggregate syntax: 
query II rowsort label-9570
SELECT + - 85 AS col2, COUNT( * ) + - 72 AS col2
----
-85
-71

skipif mysql # not compatible
query II rowsort label-9570
SELECT + - 85 AS col2, COUNT ( * ) + - 72 AS col2
----
-85
-71

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9571
SELECT + CAST( NULL AS SIGNED ), + 13 AS col2
----
NULL
13

skipif mysql # not compatible
query II rowsort label-9571
SELECT + CAST ( NULL AS INTEGER ), + 13 AS col2
----
NULL
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9572
SELECT MIN( + 91 )
----
91

skipif mysql # not compatible
query I rowsort label-9572
SELECT MIN ( + 91 )
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9573
SELECT ALL - 87 DIV 6 * - 74 - + 46 AS col2, - 21 + + 74 + - COUNT( * ) * - - CAST( NULL AS SIGNED ) + - - COUNT( * ) + + MAX( ALL 44 ) + 18 * + + 61 DIV - + COUNT( * ) * - ( + COUNT( 59 ) ) AS col1
----
990
NULL

skipif mysql # not compatible
query II rowsort label-9573
SELECT ALL - 87 / 6 * - 74 - + 46 AS col2, - 21 + + 74 + - COUNT ( * ) * - - CAST ( NULL AS INTEGER ) + - - COUNT ( * ) + + MAX ( ALL 44 ) + 18 * + + 61 / - + COUNT ( * ) * - ( + COUNT ( 59 ) ) AS col1
----
990
NULL

query II rowsort
SELECT DISTINCT + + 84 col1, 42 * 96 * 64 * - 62
----
84
-15998976

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9575
SELECT CASE - 45 WHEN - CAST( NULL AS DECIMAL ) * - ( + 80 ) + - + 53 * - 58 * + - 74 * - + 96 / - + COALESCE ( - 51, 62 + + 28, - - 22 ) THEN + + AVG ( - ( 36 ) ) * - 26 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9575
SELECT CASE - 45 WHEN - CAST ( NULL AS REAL ) * - ( + 80 ) + - + 53 * - 58 * + - 74 * - + 96 / - + COALESCE ( - 51, 62 + + 28, - - 22 ) THEN + + AVG ( - ( 36 ) ) * - 26 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9576
SELECT - 72 * - CAST( - + 47 AS SIGNED )
----
-3384

skipif mysql # not compatible
query I rowsort label-9576
SELECT - 72 * - CAST ( - + 47 AS INTEGER )
----
-3384

query I rowsort
SELECT - 90 + 61 + - ( + 54 ) AS col2
----
-83

query I rowsort
SELECT DISTINCT 96 * - + 10
----
-960

query I rowsort
SELECT + ( + 80 ) col0
----
80

query I rowsort
SELECT ALL - 73 * 72 AS col0
----
-5256

onlyif mysql # aggregate syntax: 
query I rowsort label-9581
SELECT + 36 * - COUNT( * )
----
-36

skipif mysql # not compatible
query I rowsort label-9581
SELECT + 36 * - COUNT ( * )
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9582
SELECT MAX( DISTINCT - 3 ) AS col2, 58 DIV 16 * - 63
----
-3
-189

skipif mysql # not compatible
query II rowsort label-9582
SELECT MAX ( DISTINCT - 3 ) AS col2, 58 / 16 * - 63
----
-3
-189

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9583
SELECT DISTINCT + 83 * + + 42 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9583
SELECT DISTINCT + 83 * + + 42 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9584
SELECT 10 * + MAX( DISTINCT - 42 ) + + 98 * - 10 * 23
----
-22960

skipif mysql # not compatible
query I rowsort label-9584
SELECT 10 * + MAX ( DISTINCT - 42 ) + + 98 * - 10 * 23
----
-22960

onlyif mysql # aggregate syntax: 
query II rowsort label-9585
SELECT ALL 95 * - + 21, COUNT( 12 ) AS col0
----
-1995
1

skipif mysql # not compatible
query II rowsort label-9585
SELECT ALL 95 * - + 21, COUNT ( 12 ) AS col0
----
-1995
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9586
SELECT DISTINCT - COUNT( * ) + - 96 + - ( + + COUNT( * ) ) * - ( + - 74 )
----
-171

skipif mysql # not compatible
query I rowsort label-9586
SELECT DISTINCT - COUNT ( * ) + - 96 + - ( + + COUNT ( * ) ) * - ( + - 74 )
----
-171

onlyif mysql # DIV for integer division: 
query I rowsort label-9587
SELECT + 70 DIV - 92
----
0

skipif mysql # not compatible
query I rowsort label-9587
SELECT + 70 / - 92
----
0

query I rowsort
SELECT - 76 * - + 12 * - 69 AS col2
----
-62928

onlyif mysql # aggregate syntax: 
query II rowsort label-9589
SELECT ALL + ( - COUNT( * ) ) + - 90, + 35 AS col1
----
-91
35

skipif mysql # not compatible
query II rowsort label-9589
SELECT ALL + ( - COUNT ( * ) ) + - 90, + 35 AS col1
----
-91
35

onlyif mysql # aggregate syntax: 
query II rowsort label-9590
SELECT ALL ( - 97 ) AS col0, COUNT( * ) * + + 2
----
-97
2

skipif mysql # not compatible
query II rowsort label-9590
SELECT ALL ( - 97 ) AS col0, COUNT ( * ) * + + 2
----
-97
2

query I rowsort
SELECT ALL 52 + - 98 col2
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9592
SELECT - 64 - + 41 + - - ( 68 ) + - 12 + + 16 + 30 * - + 4 - + 34 - + 11 DIV SUM( DISTINCT + 15 ) * 82
----
-187

skipif mysql # not compatible
query I rowsort label-9592
SELECT - 64 - + 41 + - - ( 68 ) + - 12 + + 16 + 30 * - + 4 - + 34 - + 11 / SUM ( DISTINCT + 15 ) * 82
----
-187

query I rowsort
SELECT ALL + + 55 + + NULLIF ( + + 50, + 26 ) AS col1
----
105

query I rowsort
SELECT - + 4 - - - 48 + + 96 AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9595
SELECT ALL + + COUNT( * ) + - MAX( ALL - - 75 ) AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-9595
SELECT ALL + + COUNT ( * ) + - MAX ( ALL - - 75 ) AS col1
----
-74

query I rowsort
SELECT ALL - 34 * - + 92 * 81 + - 93
----
253275

query I rowsort
SELECT DISTINCT - - 26 * 13 AS col1
----
338

query I rowsort
SELECT - - 43 + - - NULLIF ( ( - 37 ), + 20 ) col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9599
SELECT - COUNT( * ) + - COUNT( * ) * - ( - ( - 10 ) ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-9599
SELECT - COUNT ( * ) + - COUNT ( * ) * - ( - ( - 10 ) ) AS col1
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9600
SELECT - 53 + + + 68 DIV - 93 * MIN( ALL + 90 )
----
-53

skipif mysql # not compatible
query I rowsort label-9600
SELECT - 53 + + + 68 / - 93 * MIN ( ALL + 90 )
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9601
SELECT + 23 - - 26 * - - 47 * + 36 + - NULLIF ( + + 81, + ( - 0 ) + - 48 ) - + 6 col1, - SUM( ALL ( - - 37 ) ) DIV + - CAST( - + SUM( 80 ) AS SIGNED )
----
43928
0

skipif mysql # not compatible
query II rowsort label-9601
SELECT + 23 - - 26 * - - 47 * + 36 + - NULLIF ( + + 81, + ( - 0 ) + - 48 ) - + 6 col1, - SUM ( ALL ( - - 37 ) ) / + - CAST ( - + SUM ( 80 ) AS INTEGER )
----
43928
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9602
SELECT - 92 DIV 31 * + COUNT( * ) + 0 + - 26 * + 79 + 69 col0
----
-1987

skipif mysql # not compatible
query I rowsort label-9602
SELECT - 92 / 31 * + COUNT ( * ) + 0 + - 26 * + 79 + 69 col0
----
-1987

query I rowsort
SELECT ALL - + 84 * + + 21
----
-1764

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9604
SELECT - CAST( + 7 AS SIGNED ) * + 22 AS col1
----
-154

skipif mysql # not compatible
query I rowsort label-9604
SELECT - CAST ( + 7 AS INTEGER ) * + 22 AS col1
----
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-9605
SELECT ALL 33 * - COUNT( ALL + + 58 ) + + 47
----
14

skipif mysql # not compatible
query I rowsort label-9605
SELECT ALL 33 * - COUNT ( ALL + + 58 ) + + 47
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-9606
SELECT + 92 * 25 + + CASE 87 WHEN - - 9 + - - 67 THEN + 87 ELSE NULL END AS col2, COUNT( * ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-9606
SELECT + 92 * 25 + + CASE 87 WHEN - - 9 + - - 67 THEN + 87 ELSE NULL END AS col2, COUNT ( * ) AS col1
----
NULL
1

query I rowsort
SELECT 0 * - 16
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9608
SELECT DISTINCT + COUNT( * ) DIV - - 3 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9608
SELECT DISTINCT + COUNT ( * ) / - - 3 AS col1
----
0

query I rowsort
SELECT ALL 61 * + 41
----
2501

query II rowsort
SELECT 69 * - 40 * - 82, 11 AS col2
----
226320
11

query I rowsort
SELECT 7 + 79 AS col2
----
86

query I rowsort
SELECT ALL + 77 * 83 AS col1
----
6391

query II rowsort
SELECT + 70 AS col1, 4 AS col1
----
70
4

query II rowsort
SELECT ALL 7 + + + ( 12 ) col2, 97 * + + 62 AS col2
----
19
6014

query I rowsort
SELECT ALL 19 * + 88 * 64 AS col0
----
107008

onlyif mysql # aggregate syntax: 
query I rowsort label-9616
SELECT ( - MAX( + 65 ) ) * + - 31 + - - 35 * + - 6 * 8
----
335

skipif mysql # not compatible
query I rowsort label-9616
SELECT ( - MAX ( + 65 ) ) * + - 31 + - - 35 * + - 6 * 8
----
335

query II rowsort
SELECT + 81 AS col2, + 54 * + 13 AS col0
----
81
702

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9618
SELECT ( - COUNT( * ) ) DIV + 96 * - 52 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9618
SELECT ( - COUNT ( * ) ) / + 96 * - 52 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9619
SELECT ALL COUNT( * ) + - 42
----
-41

skipif mysql # not compatible
query I rowsort label-9619
SELECT ALL COUNT ( * ) + - 42
----
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-9620
SELECT 63 col2, COUNT( * ) * - 84 * 99 * 39
----
63
-324324

skipif mysql # not compatible
query II rowsort label-9620
SELECT 63 col2, COUNT ( * ) * - 84 * 99 * 39
----
63
-324324

query I rowsort
SELECT ( - - 66 ) + + 73 + + 6 AS col2
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-9622
SELECT DISTINCT ( COUNT( * ) ) + 34 + - ( - CASE + 17 WHEN 88 * + 86 + - + 30 + ( + 8 ) + + + 45 / - + 38 / 20 THEN 80 + COUNT( * ) ELSE NULL END ) + - - 85 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9622
SELECT DISTINCT ( COUNT ( * ) ) + 34 + - ( - CASE + 17 WHEN 88 * + 86 + - + 30 + ( + 8 ) + + + 45 / - + 38 / 20 THEN 80 + COUNT ( * ) ELSE NULL END ) + - - 85 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9623
SELECT ALL COUNT( * ) * 57 * - 27
----
-1539

skipif mysql # not compatible
query I rowsort label-9623
SELECT ALL COUNT ( * ) * 57 * - 27
----
-1539

query II rowsort
SELECT DISTINCT 98 AS col2, + 92
----
98
92

query I rowsort
SELECT DISTINCT 11 + + 37 + + + 73
----
121

query I rowsort
SELECT 29 + - + 59 + + + ( + - 43 ) + 28
----
-45

query I rowsort
SELECT ALL + 69 * + 45 * - - 89 col1
----
276345

onlyif mysql # aggregate syntax: 
query I rowsort label-9628
SELECT + MIN( + 98 ) + - 92 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-9628
SELECT + MIN ( + 98 ) + - 92 AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9629
SELECT DISTINCT + COUNT( * ) + - 73 AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-9629
SELECT DISTINCT + COUNT ( * ) + - 73 AS col1
----
-72

query II rowsort
SELECT - 64 AS col0, 70 AS col0
----
-64
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9631
SELECT + CAST( NULL AS SIGNED ) * 20 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9631
SELECT + CAST ( NULL AS INTEGER ) * 20 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9632
SELECT ALL - 79 AS col1, 33 DIV + MIN( DISTINCT + 10 ) col1
----
-79
3

skipif mysql # not compatible
query II rowsort label-9632
SELECT ALL - 79 AS col1, 33 / + MIN ( DISTINCT + 10 ) col1
----
-79
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9633
SELECT DISTINCT - COALESCE ( - 59, - + COUNT( * ), 78 * + 98 ) - - ( - 13 ) * - - 6 AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-9633
SELECT DISTINCT - COALESCE ( - 59, - + COUNT ( * ), 78 * + 98 ) - - ( - 13 ) * - - 6 AS col0
----
-19

query II rowsort
SELECT DISTINCT + 9 AS col1, - 53 AS col2
----
9
-53

query I rowsort
SELECT 14 * - 7 col2
----
-98

query II rowsort
SELECT DISTINCT + 73, + 47 * + - 19 AS col0
----
73
-893

onlyif mysql # aggregate syntax: 
query I rowsort label-9637
SELECT - SUM( DISTINCT - 98 )
----
98

skipif mysql # not compatible
query I rowsort label-9637
SELECT - SUM ( DISTINCT - 98 )
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9638
SELECT DISTINCT + 4 * - 54 - COALESCE ( - 70, - + 79 - - 80 * CAST( - COALESCE ( - - 72, CAST( NULL AS SIGNED ) + - COUNT( - ( + CAST( NULL AS SIGNED ) ) ), + 39, 0 + + - 69 ) AS SIGNED ) + - 45, 13 )
----
-146

skipif mysql # not compatible
query I rowsort label-9638
SELECT DISTINCT + 4 * - 54 - COALESCE ( - 70, - + 79 - - 80 * CAST ( - COALESCE ( - - 72, CAST ( NULL AS INTEGER ) + - COUNT ( - ( + CAST ( NULL AS INTEGER ) ) ), + 39, 0 + + - 69 ) AS INTEGER ) + - 45, 13 )
----
-146

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9639
SELECT ALL + 93 DIV + + COUNT( * ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-9639
SELECT ALL + 93 / + + COUNT ( * ) AS col2
----
93

query II rowsort
SELECT - 49, - 98 AS col2
----
-49
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-9641
SELECT DISTINCT + - COUNT( * ) * ( - COUNT( * ) ) AS col1, + 34 AS col0
----
1
34

skipif mysql # not compatible
query II rowsort label-9641
SELECT DISTINCT + - COUNT ( * ) * ( - COUNT ( * ) ) AS col1, + 34 AS col0
----
1
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9642
SELECT ALL - 1 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9642
SELECT ALL - 1 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9643
SELECT MIN( ALL 20 ) * 96 * + + COUNT( * ) - + MAX( + 77 )
----
1843

skipif mysql # not compatible
query I rowsort label-9643
SELECT MIN ( ALL 20 ) * 96 * + + COUNT ( * ) - + MAX ( + 77 )
----
1843

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9644
SELECT - 60 DIV ( + ( - + MIN( + 8 ) ) ) - + - 30
----
37

skipif mysql # not compatible
query I rowsort label-9644
SELECT - 60 / ( + ( - + MIN ( + 8 ) ) ) - + - 30
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9645
SELECT + + MAX( 73 )
----
73

skipif mysql # not compatible
query I rowsort label-9645
SELECT + + MAX ( 73 )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9646
SELECT ALL - COALESCE ( + COUNT( * ), - 40 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9646
SELECT ALL - COALESCE ( + COUNT ( * ), - 40 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9647
SELECT DISTINCT + COUNT( DISTINCT + 48 ) + - 55
----
-54

skipif mysql # not compatible
query I rowsort label-9647
SELECT DISTINCT + COUNT ( DISTINCT + 48 ) + - 55
----
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-9648
SELECT DISTINCT + 91 * 63, + COUNT( * ) col2
----
5733
1

skipif mysql # not compatible
query II rowsort label-9648
SELECT DISTINCT + 91 * 63, + COUNT ( * ) col2
----
5733
1

query I rowsort
SELECT ALL 49 + 61
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-9650
SELECT ALL COUNT( * ) + 56 col2
----
57

skipif mysql # not compatible
query I rowsort label-9650
SELECT ALL COUNT ( * ) + 56 col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9651
SELECT + 82 * + + 92 * - - CASE + - 21 WHEN + 43 THEN + SUM( + + 2 ) END - + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-9651
SELECT + 82 * + + 92 * - - CASE + - 21 WHEN + 43 THEN + SUM ( + + 2 ) END - + 52
----
NULL

query I rowsort
SELECT ALL - NULLIF ( + - 93, - 98 ) AS col2
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9653
SELECT ALL + COUNT( * ) + + CAST( + 6 AS SIGNED ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-9653
SELECT ALL + COUNT ( * ) + + CAST ( + 6 AS INTEGER ) AS col2
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9654
SELECT NULLIF ( + CASE + + 62 WHEN - 51 * - - 98 * - 11 + - - 80 * NULLIF ( - COUNT( DISTINCT CAST( NULL AS SIGNED ) ), + + 28 ) + COUNT( * ) - + 12 THEN - 67 * - - ( + 18 ) WHEN 74 * + 14 THEN - + 13 * 5 + + 57 END, ( + 65 ) * + 30 + + 78 ) * + COUNT( * ) + COALESCE ( + 42, ( - COUNT( * ) ) + + CASE - 13 WHEN 87 * + CAST( - 62 AS SIGNED ) THEN NULL WHEN - 73 + - 27 THEN - 83 ELSE NULL END, 63 / + 43 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9654
SELECT NULLIF ( + CASE + + 62 WHEN - 51 * - - 98 * - 11 + - - 80 * NULLIF ( - COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ), + + 28 ) + COUNT ( * ) - + 12 THEN - 67 * - - ( + 18 ) WHEN 74 * + 14 THEN - + 13 * 5 + + 57 END, ( + 65 ) * + 30 + + 78 ) * + COUNT ( * ) + COALESCE ( + 42, ( - COUNT ( * ) ) + + CASE - 13 WHEN 87 * + CAST ( - 62 AS INTEGER ) THEN NULL WHEN - 73 + - 27 THEN - 83 ELSE NULL END, 63 / + 43 ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9655
SELECT 39 + + 40 + + + MIN( - 72 )
----
7

skipif mysql # not compatible
query I rowsort label-9655
SELECT 39 + + 40 + + + MIN ( - 72 )
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9656
SELECT ALL CAST( 32 AS SIGNED ) + - COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-9656
SELECT ALL CAST ( 32 AS INTEGER ) + - COUNT ( * )
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-9657
SELECT DISTINCT + COUNT( * ) * 23 AS col2, + 89 col1
----
23
89

skipif mysql # not compatible
query II rowsort label-9657
SELECT DISTINCT + COUNT ( * ) * 23 AS col2, + 89 col1
----
23
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9658
SELECT COUNT( * ) * + 53 * - - 14 AS col1
----
742

skipif mysql # not compatible
query I rowsort label-9658
SELECT COUNT ( * ) * + 53 * - - 14 AS col1
----
742

onlyif mysql # aggregate syntax: 
query I rowsort label-9659
SELECT ALL COALESCE ( 63, + 99 + + 91 + - COUNT( * ) )
----
63

skipif mysql # not compatible
query I rowsort label-9659
SELECT ALL COALESCE ( 63, + 99 + + 91 + - COUNT ( * ) )
----
63

query I rowsort
SELECT DISTINCT CASE + 24 WHEN - + 40 * - + 89 THEN - 68 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT 29 - + - 70 + 6 AS col0
----
105

query I rowsort
SELECT 45 - - + 65
----
110

query II rowsort
SELECT 4 * - 96 AS col0, 44 AS col1
----
-384
44

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9664
SELECT DISTINCT + CAST( + 0 AS SIGNED ) AS col0, 22
----
0
22

skipif mysql # not compatible
query II rowsort label-9664
SELECT DISTINCT + CAST ( + 0 AS INTEGER ) AS col0, 22
----
0
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9665
SELECT DISTINCT MAX( ALL 1 ) * + 85
----
85

skipif mysql # not compatible
query I rowsort label-9665
SELECT DISTINCT MAX ( ALL 1 ) * + 85
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9666
SELECT ALL SUM( DISTINCT - ( + + 25 ) )
----
-25

skipif mysql # not compatible
query I rowsort label-9666
SELECT ALL SUM ( DISTINCT - ( + + 25 ) )
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9667
SELECT + 44 - - 82 * + - 28 * + COALESCE ( ( - CASE - 82 WHEN + MAX( - 34 ) + + 40 THEN NULL ELSE + 28 END ), + 68, - CAST( - COUNT( * ) AS SIGNED ) ) AS col2, 69 * + ( + 91 ) + - 68 * + 5 + COUNT( * )
----
64332
5940

skipif mysql # not compatible
query II rowsort label-9667
SELECT + 44 - - 82 * + - 28 * + COALESCE ( ( - CASE - 82 WHEN + MAX ( - 34 ) + + 40 THEN NULL ELSE + 28 END ), + 68, - CAST ( - COUNT ( * ) AS INTEGER ) ) AS col2, 69 * + ( + 91 ) + - 68 * + 5 + COUNT ( * )
----
64332
5940

query I rowsort
SELECT + - 2 * + 40 AS col2
----
-80

query I rowsort
SELECT ALL - 91 * - ( 80 ) - + ( + + 12 )
----
7268

onlyif mysql # aggregate syntax: 
query I rowsort label-9670
SELECT + COUNT( + - 53 ) - + 26 + 45 + 75 + MIN( DISTINCT - + 25 ) + 33 * + MIN( DISTINCT 94 ) + - 43 - - - ( CASE + 86 WHEN + 99 * + 0 / COUNT( 81 ) THEN NULL ELSE - 14 END ) * - 30 AS col2
----
2709

skipif mysql # not compatible
query I rowsort label-9670
SELECT + COUNT ( + - 53 ) - + 26 + 45 + 75 + MIN ( DISTINCT - + 25 ) + 33 * + MIN ( DISTINCT 94 ) + - 43 - - - ( CASE + 86 WHEN + 99 * + 0 / COUNT ( 81 ) THEN NULL ELSE - 14 END ) * - 30 AS col2
----
2709

query I rowsort
SELECT DISTINCT + 63 * - 43 AS col0
----
-2709

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9672
SELECT + 15 * + COALESCE ( + - COUNT( * ), + 3 DIV + - NULLIF ( + 31, + 65 * - 47 ) ) * 36 - 59 + + 53 DIV + + 4 col1
----
-586

skipif mysql # not compatible
query I rowsort label-9672
SELECT + 15 * + COALESCE ( + - COUNT ( * ), + 3 / + - NULLIF ( + 31, + 65 * - 47 ) ) * 36 - 59 + + 53 / + + 4 col1
----
-586

onlyif mysql # aggregate syntax: 
query I rowsort label-9673
SELECT + COUNT( * ) + COUNT( * ) + - - 94
----
96

skipif mysql # not compatible
query I rowsort label-9673
SELECT + COUNT ( * ) + COUNT ( * ) + - - 94
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9674
SELECT - - 44 - - COUNT( * ) AS col1
----
45

skipif mysql # not compatible
query I rowsort label-9674
SELECT - - 44 - - COUNT ( * ) AS col1
----
45

query I rowsort
SELECT - + 70 - 36
----
-106

query I rowsort
SELECT + - NULLIF ( - 32, + + 4 ) + - 5 + - 41 * 63
----
-2556

query II rowsort
SELECT + ( - ( - 83 ) ) AS col2, 30
----
83
30

query I rowsort
SELECT ALL - 1 * 93 + - 48 AS col1
----
-141

query I rowsort
SELECT - 13 + + 80 + - 48 AS col1
----
19

query I rowsort
SELECT ALL - 5 * 14
----
-70

query I rowsort
SELECT DISTINCT 59 * - + CASE - - 26 WHEN 38 / - + 23 THEN 50 END / - 21 + ( - + 56 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9682
SELECT + CASE 88 WHEN - 86 THEN 83 WHEN - - 50 * + COUNT( + + CAST( NULL AS DECIMAL ) ) THEN NULL WHEN - + 99 + ( + 98 ) THEN - 34 + - 96 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9682
SELECT + CASE 88 WHEN - 86 THEN 83 WHEN - - 50 * + COUNT ( + + CAST ( NULL AS REAL ) ) THEN NULL WHEN - + 99 + ( + 98 ) THEN - 34 + - 96 END
----
NULL

query I rowsort
SELECT COALESCE ( + 72, 94 )
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-9684
SELECT 51 DIV + 47 + 99 * - 47 AS col1
----
-4652

skipif mysql # not compatible
query I rowsort label-9684
SELECT 51 / + 47 + 99 * - 47 AS col1
----
-4652

query II rowsort
SELECT ALL + 24 * + + 24 + - 82 col1, 57
----
494
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9686
SELECT DISTINCT + 60 * + COUNT( * ) DIV + 69
----
0

skipif mysql # not compatible
query I rowsort label-9686
SELECT DISTINCT + 60 * + COUNT ( * ) / + 69
----
0

query I rowsort
SELECT ALL + COALESCE ( + 59, + - 16, - - 68 * + 68, + 25 ) * + 76 AS col1
----
4484

onlyif mysql # aggregate syntax: 
query I rowsort label-9688
SELECT - 36 + - 92 + - COUNT( * ) AS col2
----
-129

skipif mysql # not compatible
query I rowsort label-9688
SELECT - 36 + - 92 + - COUNT ( * ) AS col2
----
-129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9689
SELECT ALL + MIN( ALL + + CAST( + 76 AS SIGNED ) ) AS col0, CAST( + 20 AS SIGNED )
----
76
20

skipif mysql # not compatible
query II rowsort label-9689
SELECT ALL + MIN ( ALL + + CAST ( + 76 AS INTEGER ) ) AS col0, CAST ( + 20 AS INTEGER )
----
76
20

query I rowsort
SELECT ALL - 8 * - - 77 - + 87 AS col1
----
-703

onlyif mysql # aggregate syntax: 
query I rowsort label-9691
SELECT - 24 * - + MIN( ALL + + 65 ) col2
----
1560

skipif mysql # not compatible
query I rowsort label-9691
SELECT - 24 * - + MIN ( ALL + + 65 ) col2
----
1560

onlyif mysql # aggregate syntax: 
query I rowsort label-9692
SELECT ALL + CASE + 32 WHEN - 19 + - 98 THEN 92 * - ( + - MIN( - - 61 ) ) WHEN + + SUM( DISTINCT - 31 ) + - 99 * + 95 * 56 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9692
SELECT ALL + CASE + 32 WHEN - 19 + - 98 THEN 92 * - ( + - MIN ( - - 61 ) ) WHEN + + SUM ( DISTINCT - 31 ) + - 99 * + 95 * 56 THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9693
SELECT - COUNT( * ) * - 61 + - 0 * + 94
----
61

skipif mysql # not compatible
query I rowsort label-9693
SELECT - COUNT ( * ) * - 61 + - 0 * + 94
----
61

query I rowsort
SELECT NULLIF ( - 66, + 28 * + 2 )
----
-66

query I rowsort
SELECT - 17 + - 13
----
-30

query I rowsort
SELECT DISTINCT - 98 * 15
----
-1470

query I rowsort
SELECT - + 68 * + 12 + 92 + - 81 AS col2
----
-805

query I rowsort
SELECT + - 50 - 18 + + - 82 + - 39 AS col0
----
-189

onlyif mysql # aggregate syntax: 
query II rowsort label-9699
SELECT DISTINCT + 54 * - 68 - + 60 + - + SUM( - 23 ) AS col1, COUNT( * ) AS col2
----
-3709
1

skipif mysql # not compatible
query II rowsort label-9699
SELECT DISTINCT + 54 * - 68 - + 60 + - + SUM ( - 23 ) AS col1, COUNT ( * ) AS col2
----
-3709
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9700
SELECT - + 81 * + + SUM( DISTINCT - ( 57 ) ) col0
----
4617

skipif mysql # not compatible
query I rowsort label-9700
SELECT - + 81 * + + SUM ( DISTINCT - ( 57 ) ) col0
----
4617

query I rowsort
SELECT - ( + 69 ) * + 91 + 7
----
-6272

query II rowsort
SELECT ALL 49, + 18 AS col1
----
49
18

onlyif mysql # aggregate syntax: 
query II rowsort label-9703
SELECT DISTINCT - COUNT( * ) AS col0, + 63 col2
----
-1
63

skipif mysql # not compatible
query II rowsort label-9703
SELECT DISTINCT - COUNT ( * ) AS col0, + 63 col2
----
-1
63

query I rowsort
SELECT ALL - - 77 * - 15
----
-1155

query I rowsort
SELECT + 42 + - + 45 AS col2
----
-3

query I rowsort
SELECT DISTINCT + NULLIF ( 28, + 68 ) AS col2
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-9707
SELECT - 99 DIV + - 50 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9707
SELECT - 99 / + - 50 AS col0
----
1

query I rowsort
SELECT - - 54 * - - 21 col1
----
1134

query I rowsort
SELECT - - ( - - 73 ) AS col0
----
73

query II rowsort
SELECT ALL 23 AS col0, 45 - + 5
----
23
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9711
SELECT DISTINCT MIN( - 89 ) + + COUNT( * ) * + 4 + + MAX( 13 ) col2
----
-72

skipif mysql # not compatible
query I rowsort label-9711
SELECT DISTINCT MIN ( - 89 ) + + COUNT ( * ) * + 4 + + MAX ( 13 ) col2
----
-72

query I rowsort
SELECT DISTINCT ( + 99 ) AS col2
----
99

query I rowsort
SELECT + + 30 * 69 * - - 35
----
72450

query II rowsort
SELECT DISTINCT + 49 AS col2, - 58
----
49
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9715
SELECT ALL 32 + + - MIN( 49 )
----
-17

skipif mysql # not compatible
query I rowsort label-9715
SELECT ALL 32 + + - MIN ( 49 )
----
-17

query I rowsort
SELECT - ( - + ( + 54 ) )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9717
SELECT ALL SUM( 86 ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-9717
SELECT ALL SUM ( 86 ) AS col2
----
86

query I rowsort
SELECT ALL 84 + + 48 AS col2
----
132

query I rowsort
SELECT + 90 * - + 52 * - 76 * - - 59
----
20985120

query I rowsort
SELECT ALL 96 + - 49
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9721
SELECT + CAST( NULL AS SIGNED ) AS col0, ( + COALESCE ( + + 72, - 71 + + 58 + - ( 9 ) ) )
----
NULL
72

skipif mysql # not compatible
query II rowsort label-9721
SELECT + CAST ( NULL AS INTEGER ) AS col0, ( + COALESCE ( + + 72, - 71 + + 58 + - ( 9 ) ) )
----
NULL
72

onlyif mysql # aggregate syntax: 
query II rowsort label-9722
SELECT ALL + 58 col0, MAX( - + ( 40 ) )
----
58
-40

skipif mysql # not compatible
query II rowsort label-9722
SELECT ALL + 58 col0, MAX ( - + ( 40 ) )
----
58
-40

query I rowsort
SELECT - 60 * - 71
----
4260

onlyif mysql # aggregate syntax: 
query I rowsort label-9724
SELECT DISTINCT + MAX( DISTINCT - 22 ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-9724
SELECT DISTINCT + MAX ( DISTINCT - 22 ) AS col1
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9725
SELECT CAST( 58 AS SIGNED ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-9725
SELECT CAST ( 58 AS INTEGER ) AS col1
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9726
SELECT DISTINCT + CASE - 72 WHEN + 0 THEN - CASE 8 WHEN + - 35 + + 33 - + + 10 + - + 55 * - COUNT( * ) + - 95 * + + 70 + - 8 + - 6 THEN + + 38 * - 90 END WHEN 69 THEN 31 * - COALESCE ( COALESCE ( - 58, CAST( COUNT( * ) AS SIGNED ), - 53, - 11 ), 3 - - 20, - 71 * - 58 ) * NULLIF ( - 60, - 37 ) + 96 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9726
SELECT DISTINCT + CASE - 72 WHEN + 0 THEN - CASE 8 WHEN + - 35 + + 33 - + + 10 + - + 55 * - COUNT ( * ) + - 95 * + + 70 + - 8 + - 6 THEN + + 38 * - 90 END WHEN 69 THEN 31 * - COALESCE ( COALESCE ( - 58, CAST ( COUNT ( * ) AS INTEGER ), - 53, - 11 ), 3 - - 20, - 71 * - 58 ) * NULLIF ( - 60, - 37 ) + 96 END col2
----
NULL

query I rowsort
SELECT + 24 * 43 * + + 24 * + 12 * - + 94 AS col0
----
-27938304

query I rowsort
SELECT - 35 * 29 - 21 AS col0
----
-1036

query I rowsort
SELECT ALL + ( + 52 ) AS col2
----
52

query I rowsort
SELECT - 76 - + 67
----
-143

query II rowsort
SELECT - 94 * - 23, 93 col0
----
2162
93

query I rowsort
SELECT - ( 62 ) * - 76 * + - 59 * 17 AS col2
----
-4726136

query II rowsort
SELECT + - 74 AS col0, 66 * 63
----
-74
4158

onlyif mysql # aggregate syntax: 
query I rowsort label-9734
SELECT DISTINCT - + COUNT( DISTINCT + 12 )
----
-1

skipif mysql # not compatible
query I rowsort label-9734
SELECT DISTINCT - + COUNT ( DISTINCT + 12 )
----
-1

query II rowsort
SELECT - 33 AS col1, 97
----
-33
97

query I rowsort
SELECT DISTINCT - - 91 col2
----
91

query I rowsort
SELECT 43 * + 73 AS col2
----
3139

query I rowsort
SELECT ALL - 63 + - 42
----
-105

query II rowsort
SELECT - ( 6 ) - + 21 + - - 87, 75 col1
----
60
75

query I rowsort
SELECT 23 + 83
----
106

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9741
SELECT - AVG ( + CAST( NULL AS DECIMAL ) ) * + 58 / + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9741
SELECT - AVG ( + CAST ( NULL AS REAL ) ) * + 58 / + + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9742
SELECT DISTINCT - - CASE + + 78 WHEN - 31 + - 33 THEN - + COUNT( * ) * + 45 * + SUM( + - 1 ) WHEN + 24 THEN NULL END + - - MIN( CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9742
SELECT DISTINCT - - CASE + + 78 WHEN - 31 + - 33 THEN - + COUNT ( * ) * + 45 * + SUM ( + - 1 ) WHEN + 24 THEN NULL END + - - MIN ( CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9743
SELECT ALL + COUNT( * ) + + - 68 + + COUNT( * ) col2
----
-66

skipif mysql # not compatible
query I rowsort label-9743
SELECT ALL + COUNT ( * ) + + - 68 + + COUNT ( * ) col2
----
-66

query II rowsort
SELECT DISTINCT - 43 AS col1, - 93 AS col1
----
-43
-93

query I rowsort
SELECT ALL 73 + + 74
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-9746
SELECT + COUNT( * ) - + 59 col1
----
-58

skipif mysql # not compatible
query I rowsort label-9746
SELECT + COUNT ( * ) - + 59 col1
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9747
SELECT DISTINCT - 20 + CASE COUNT( * ) WHEN + + 28 * 18 THEN 8 / - 94 - + 20 + + 74 + + 40 / 3 + 90 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9747
SELECT DISTINCT - 20 + CASE COUNT ( * ) WHEN + + 28 * 18 THEN 8 / - 94 - + 20 + + 74 + + 40 / 3 + 90 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9748
SELECT ALL COUNT( * ) col1, - 40
----
1
-40

skipif mysql # not compatible
query II rowsort label-9748
SELECT ALL COUNT ( * ) col1, - 40
----
1
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-9749
SELECT ALL + 98 / - SUM( 25 ) + - CASE 22 WHEN COUNT( * ) / + - 3 THEN + ( - + 59 ) END - + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-9749
SELECT ALL + 98 / - SUM ( 25 ) + - CASE 22 WHEN COUNT ( * ) / + - 3 THEN + ( - + 59 ) END - + 19
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9750
SELECT + COUNT( DISTINCT + 56 ) + COUNT( * ) * - - 16 + - 92
----
-75

skipif mysql # not compatible
query I rowsort label-9750
SELECT + COUNT ( DISTINCT + 56 ) + COUNT ( * ) * - - 16 + - 92
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9751
SELECT ALL + COUNT( * ) + + + ( + 38 ) DIV 28
----
2

skipif mysql # not compatible
query I rowsort label-9751
SELECT ALL + COUNT ( * ) + + + ( + 38 ) / 28
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9752
SELECT 78 * MIN( ALL - ( + 9 ) )
----
-702

skipif mysql # not compatible
query I rowsort label-9752
SELECT 78 * MIN ( ALL - ( + 9 ) )
----
-702

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9753
SELECT ALL COUNT( * ) DIV + - 43 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9753
SELECT ALL COUNT ( * ) / + - 43 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9754
SELECT 6 + - CASE 20 WHEN + 63 / + + MAX( DISTINCT + 18 ) + 55 / + ( - - 96 ) - - - MIN( ALL + 39 ) + + - CAST( NULL AS SIGNED ) / - + MIN( + ( + 87 ) ) * + 67 THEN + 73 WHEN CASE - 45 WHEN ( - 79 ) + + 52 + + 58 THEN + 87 - 20 END + - 28 * - 15 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9754
SELECT 6 + - CASE 20 WHEN + 63 / + + MAX ( DISTINCT + 18 ) + 55 / + ( - - 96 ) - - - MIN ( ALL + 39 ) + + - CAST ( NULL AS INTEGER ) / - + MIN ( + ( + 87 ) ) * + 67 THEN + 73 WHEN CASE - 45 WHEN ( - 79 ) + + 52 + + 58 THEN + 87 - 20 END + - 28 * - 15 THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9755
SELECT 13 * + 49 DIV - CASE COUNT( ALL + + 63 ) WHEN COUNT( * ) THEN - 66 DIV + 63 WHEN + - 90 THEN NULL END
----
637

skipif mysql # not compatible
query I rowsort label-9755
SELECT 13 * + 49 / - CASE COUNT ( ALL + + 63 ) WHEN COUNT ( * ) THEN - 66 / + 63 WHEN + - 90 THEN NULL END
----
637

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9756
SELECT - 56 DIV - 17 * + COUNT( * ) + + 96
----
99

skipif mysql # not compatible
query I rowsort label-9756
SELECT - 56 / - 17 * + COUNT ( * ) + + 96
----
99

query I rowsort
SELECT ALL 12 * + - 79
----
-948

onlyif mysql # aggregate syntax: 
query I rowsort label-9758
SELECT SUM( + ( 30 ) ) * - ( + 39 )
----
-1170

skipif mysql # not compatible
query I rowsort label-9758
SELECT SUM ( + ( 30 ) ) * - ( + 39 )
----
-1170

query I rowsort
SELECT ( - 22 ) + - - ( - 34 ) AS col1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-9760
SELECT COUNT( * ) * + 9
----
9

skipif mysql # not compatible
query I rowsort label-9760
SELECT COUNT ( * ) * + 9
----
9

query I rowsort
SELECT ALL - + 58 col1
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9762
SELECT + MAX( + 75 )
----
75

skipif mysql # not compatible
query I rowsort label-9762
SELECT + MAX ( + 75 )
----
75

query I rowsort
SELECT ALL - 78 + + + 66 + 15 * - 94 AS col1
----
-1422

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9764
SELECT + 24 + + - 15 DIV 76 AS col0, - 85 + - + COUNT( * ) * 94 + + COUNT( * ) - + - MAX( ALL - 1 ) * - + CAST( 41 AS SIGNED ) DIV + 19 AS col2
----
24
-176

skipif mysql # not compatible
query II rowsort label-9764
SELECT + 24 + + - 15 / 76 AS col0, - 85 + - + COUNT ( * ) * 94 + + COUNT ( * ) - + - MAX ( ALL - 1 ) * - + CAST ( 41 AS INTEGER ) / + 19 AS col2
----
24
-176

query II rowsort
SELECT DISTINCT 3 * + 86 AS col2, - 81
----
258
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9766
SELECT COUNT( * ) * - 20 + - 24 + 78 * 36
----
2764

skipif mysql # not compatible
query I rowsort label-9766
SELECT COUNT ( * ) * - 20 + - 24 + 78 * 36
----
2764

query I rowsort
SELECT ALL + - 10 + + 60 * + - 50 * + + 25
----
-75010

query I rowsort
SELECT + 93 * - 59 + 86 col1
----
-5401

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9769
SELECT 37 * CAST( - 51 AS SIGNED )
----
-1887

skipif mysql # not compatible
query I rowsort label-9769
SELECT 37 * CAST ( - 51 AS INTEGER )
----
-1887

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9770
SELECT ALL - - 97 + 73 + - + 13 * - + CAST( - + 51 AS SIGNED ) col2, 89
----
-493
89

skipif mysql # not compatible
query II rowsort label-9770
SELECT ALL - - 97 + 73 + - + 13 * - + CAST ( - + 51 AS INTEGER ) col2, 89
----
-493
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9771
SELECT DISTINCT ( + - SUM( DISTINCT - + 77 ) ) + 70 AS col2
----
147

skipif mysql # not compatible
query I rowsort label-9771
SELECT DISTINCT ( + - SUM ( DISTINCT - + 77 ) ) + 70 AS col2
----
147

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9772
SELECT ALL - - 5 + CAST( NULL AS DECIMAL ) + - 66 / - COALESCE ( - 5, + + 62 / - 92 + 87 + COUNT( * ), 76 * + COUNT( * ) + - 78 - + COUNT( * ) ) * - 88 * + + CAST( - 98 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9772
SELECT ALL - - 5 + CAST ( NULL AS REAL ) + - 66 / - COALESCE ( - 5, + + 62 / - 92 + 87 + COUNT ( * ), 76 * + COUNT ( * ) + - 78 - + COUNT ( * ) ) * - 88 * + + CAST ( - 98 AS INTEGER )
----
NULL

query I rowsort
SELECT 87 * + 78 AS col2
----
6786

query I rowsort
SELECT 32 + + 18 + + - 86 * 46 + - 84 * + - 17 * + 43 AS col0
----
57498

query I rowsort
SELECT 13 * 21
----
273

query I rowsort
SELECT DISTINCT + 10 * - - 16 AS col0
----
160

query I rowsort
SELECT ALL + 84 - - 18 AS col2
----
102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9778
SELECT - 28, CASE 22 WHEN ( - CAST( 96 AS SIGNED ) ) * - - NULLIF ( COUNT( * ), 45 + 9 * + 57 ) * - 79 * - NULLIF ( - 6, NULLIF ( + 13, 56 ) ) + - + 75 + - COUNT( * ) + COUNT( * ) + - ( - COALESCE ( 47, - 72, - 65 * - 4 ) ) THEN + 22 ELSE 84 * 82 + - 17 END * 84 col0
----
-28
577164

skipif mysql # not compatible
query II rowsort label-9778
SELECT - 28, CASE 22 WHEN ( - CAST ( 96 AS INTEGER ) ) * - - NULLIF ( COUNT ( * ), 45 + 9 * + 57 ) * - 79 * - NULLIF ( - 6, NULLIF ( + 13, 56 ) ) + - + 75 + - COUNT ( * ) + COUNT ( * ) + - ( - COALESCE ( 47, - 72, - 65 * - 4 ) ) THEN + 22 ELSE 84 * 82 + - 17 END * 84 col0
----
-28
577164

onlyif mysql # aggregate syntax: 
query I rowsort label-9779
SELECT DISTINCT COUNT( + 30 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-9779
SELECT DISTINCT COUNT ( + 30 ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9780
SELECT ALL + MAX( ALL 28 )
----
28

skipif mysql # not compatible
query I rowsort label-9780
SELECT ALL + MAX ( ALL 28 )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9781
SELECT - 41 - 3 + + 29 * - + 10 + 10 + + COALESCE ( - 15, - COUNT( ALL + 28 ) - - 38 * 22 * + + 85, - 31 * - - 18 ) + - 45 * - - 30 * + + 74 - - 99 * 91 * + ( + + 92 ) - - 80 * - 13 + - NULLIF ( 41 + - 58, 7 + - 62 * + 54 )
----
727566

skipif mysql # not compatible
query I rowsort label-9781
SELECT - 41 - 3 + + 29 * - + 10 + 10 + + COALESCE ( - 15, - COUNT ( ALL + 28 ) - - 38 * 22 * + + 85, - 31 * - - 18 ) + - 45 * - - 30 * + + 74 - - 99 * 91 * + ( + + 92 ) - - 80 * - 13 + - NULLIF ( 41 + - 58, 7 + - 62 * + 54 )
----
727566

query I rowsort
SELECT COALESCE ( 31, - 69 + + 69 * - 77 ) AS col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9783
SELECT COALESCE ( + 60, COUNT( * ) + ( - 41 ) ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-9783
SELECT COALESCE ( + 60, COUNT ( * ) + ( - 41 ) ) AS col0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9784
SELECT + MIN( + 6 )
----
6

skipif mysql # not compatible
query I rowsort label-9784
SELECT + MIN ( + 6 )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9785
SELECT ALL - 70 * + ( 55 ) + - 1 + + + COUNT( * )
----
-3850

skipif mysql # not compatible
query I rowsort label-9785
SELECT ALL - 70 * + ( 55 ) + - 1 + + + COUNT ( * )
----
-3850

query I rowsort
SELECT + 95 * + 61 AS col2
----
5795

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9787
SELECT + - 69 - + 51 + MIN( ALL 4 ) DIV - 36 * - - 16 AS col0
----
-120

skipif mysql # not compatible
query I rowsort label-9787
SELECT + - 69 - + 51 + MIN ( ALL 4 ) / - 36 * - - 16 AS col0
----
-120

query II rowsort
SELECT 19 AS col1, 3
----
19
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9789
SELECT - - 41 * 65 / - CASE + COUNT( * ) WHEN 8 THEN + + 43 END * + 71 + + 71 * - - ( - + 56 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9789
SELECT - - 41 * 65 / - CASE + COUNT ( * ) WHEN 8 THEN + + 43 END * + 71 + + 71 * - - ( - + 56 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9790
SELECT 83 * - - 21 / + 59 * - 42 + 21 + + 41 - CASE + - 24 WHEN + CASE - CAST( + 31 AS SIGNED ) WHEN - 9 + - 75 + - - 5 THEN NULL WHEN - 0 * - - 81 * 39 + + SUM( 44 ) THEN NULL ELSE + 73 END THEN NULL WHEN + - CAST( 65 AS SIGNED ) * + CASE WHEN 90 NOT BETWEEN NULL AND COALESCE ( + 92, + CASE - 36 WHEN + CAST( ( 25 ) AS SIGNED ) * 80 THEN NULL WHEN 78 THEN - COUNT( * ) * MIN( ALL + 17 ) WHEN 31 THEN - 60 WHEN 17 THEN NULL ELSE + 20 END, - 51 ) - + 5 * - COUNT( 89 * - 20 ) THEN 6 + 85 END + - 72 THEN + 53 END + - COALESCE ( + 11, - COUNT( * ) * COALESCE ( 18, + CAST( - 59 AS SIGNED ) * 1, - COUNT( * ) * 94 ) + - COUNT( * ) * 50 ) * + 38 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9790
SELECT 83 * - - 21 / + 59 * - 42 + 21 + + 41 - CASE + - 24 WHEN + CASE - CAST ( + 31 AS INTEGER ) WHEN - 9 + - 75 + - - 5 THEN NULL WHEN - 0 * - - 81 * 39 + + SUM ( 44 ) THEN NULL ELSE + 73 END THEN NULL WHEN + - CAST ( 65 AS INTEGER ) * + CASE WHEN 90 NOT BETWEEN NULL AND COALESCE ( + 92, + CASE - 36 WHEN + CAST ( ( 25 ) AS INTEGER ) * 80 THEN NULL WHEN 78 THEN - COUNT ( * ) * MIN ( ALL + 17 ) WHEN 31 THEN - 60 WHEN 17 THEN NULL ELSE + 20 END, - 51 ) - + 5 * - COUNT ( 89 * - 20 ) THEN 6 + 85 END + - 72 THEN + 53 END + - COALESCE ( + 11, - COUNT ( * ) * COALESCE ( 18, + CAST ( - 59 AS INTEGER ) * 1, - COUNT ( * ) * 94 ) + - COUNT ( * ) * 50 ) * + 38 AS col2
----
NULL

query II rowsort
SELECT + 29 AS col2, 36 AS col2
----
29
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9792
SELECT + - SUM( DISTINCT + + 51 )
----
-51

skipif mysql # not compatible
query I rowsort label-9792
SELECT + - SUM ( DISTINCT + + 51 )
----
-51

query I rowsort
SELECT + + 61 + + 38 AS col0
----
99

query I rowsort
SELECT ALL + + ( + + 81 ) AS col2
----
81

query I rowsort
SELECT + - 42 * + - 13 + - + 66 + - - 77
----
557

query I rowsort
SELECT ALL 55 * 86
----
4730

onlyif mysql # DIV for integer division: 
query I rowsort label-9797
SELECT + 24 DIV - 12 + - 8
----
-10

skipif mysql # not compatible
query I rowsort label-9797
SELECT + 24 / - 12 + - 8
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9798
SELECT COALESCE ( - COUNT( ALL - COALESCE ( + ( + + 16 ), - + 54, + - 7 * - 26 - + 92 ) ), - + 43 ) * CAST( NULL AS SIGNED ) - 41 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9798
SELECT COALESCE ( - COUNT ( ALL - COALESCE ( + ( + + 16 ), - + 54, + - 7 * - 26 - + 92 ) ), - + 43 ) * CAST ( NULL AS INTEGER ) - 41 AS col1
----
NULL

query I rowsort
SELECT + 82 * - 93 AS col0
----
-7626

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9800
SELECT + + 65 + - 40 * - ( CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9800
SELECT + + 65 + - 40 * - ( CAST ( NULL AS INTEGER ) ) col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9801
SELECT - + SUM( DISTINCT + 90 ) DIV 54 * - COALESCE ( 79, - 87 - - 95 * - ( + - ( + 3 ) ) ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-9801
SELECT - + SUM ( DISTINCT + 90 ) / 54 * - COALESCE ( 79, - 87 - - 95 * - ( + - ( + 3 ) ) ) AS col0
----
79

query I rowsort
SELECT + - 90 + + 3 * - - 75 + + - 62
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9803
SELECT MAX( DISTINCT + 95 ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-9803
SELECT MAX ( DISTINCT + 95 ) AS col1
----
95

query I rowsort
SELECT + 31 + - 16 AS col0
----
15

query I rowsort
SELECT - ( - - 72 ) col2
----
-72

query I rowsort
SELECT - 25 - + 70
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-9807
SELECT ALL COALESCE ( + - COUNT( * ), + 49 - - 11, + 28 )
----
-1

skipif mysql # not compatible
query I rowsort label-9807
SELECT ALL COALESCE ( + - COUNT ( * ), + 49 - - 11, + 28 )
----
-1

query I rowsort
SELECT - 1 + - + 21 AS col0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-9809
SELECT - MAX( + 15 ) + + 6 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-9809
SELECT - MAX ( + 15 ) + + 6 AS col0
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-9810
SELECT + 89 + + + COUNT( * ), + ( 41 ) AS col1
----
90
41

skipif mysql # not compatible
query II rowsort label-9810
SELECT + 89 + + + COUNT ( * ), + ( 41 ) AS col1
----
90
41

query II rowsort
SELECT ALL COALESCE ( + 36, 30 + - 69 ) AS col0, 83
----
36
83

query I rowsort
SELECT - 41 + - + 66
----
-107

query I rowsort
SELECT ALL + 52 * + 76 col1
----
3952

onlyif mysql # aggregate syntax: 
query I rowsort label-9814
SELECT DISTINCT ( - 18 ) + - MAX( - ( - 30 ) ) * 58 + - + MIN( 39 ) + - 47 AS col0
----
-1844

skipif mysql # not compatible
query I rowsort label-9814
SELECT DISTINCT ( - 18 ) + - MAX ( - ( - 30 ) ) * 58 + - + MIN ( 39 ) + - 47 AS col0
----
-1844

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9815
SELECT DISTINCT COUNT( * ) DIV - 37 + + + 75
----
75

skipif mysql # not compatible
query I rowsort label-9815
SELECT DISTINCT COUNT ( * ) / - 37 + + + 75
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9816
SELECT DISTINCT + 95 / + 68 + SUM( - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9816
SELECT DISTINCT + 95 / + 68 + SUM ( - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9817
SELECT ALL 34 DIV 37 + + 31
----
31

skipif mysql # not compatible
query I rowsort label-9817
SELECT ALL 34 / 37 + + 31
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9818
SELECT + 16 * - 41 + - 28 * - CAST( NULL AS SIGNED ) * 45 / + 86 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9818
SELECT + 16 * - 41 + - 28 * - CAST ( NULL AS INTEGER ) * 45 / + 86 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9819
SELECT ( - 75 ) * - MIN( - - 45 ) + ( - - 20 ) + 56
----
3451

skipif mysql # not compatible
query I rowsort label-9819
SELECT ( - 75 ) * - MIN ( - - 45 ) + ( - - 20 ) + 56
----
3451

onlyif mysql # aggregate syntax: 
query I rowsort label-9820
SELECT ALL + 51 / - COUNT( * ) + - + COUNT( * ) + + - CASE + 8 WHEN - - 35 THEN 8 END + - COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9820
SELECT ALL + 51 / - COUNT ( * ) + - + COUNT ( * ) + + - CASE + 8 WHEN - - 35 THEN 8 END + - COUNT ( * ) col1
----
NULL

query I rowsort
SELECT + + NULLIF ( 62, + + 53 )
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9822
SELECT - - 37 DIV + 77 AS col2, + MAX( + + CAST( + 21 AS SIGNED ) ) col0
----
0
21

skipif mysql # not compatible
query II rowsort label-9822
SELECT - - 37 / + 77 AS col2, + MAX ( + + CAST ( + 21 AS INTEGER ) ) col0
----
0
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9823
SELECT + - COUNT( * ) + - 7, COALESCE ( - 4, - ( - 3 ) - 56 + + 93 + + - 41 * - + CASE - 42 WHEN + + COALESCE ( CAST( NULL AS SIGNED ), - COALESCE ( 23, + 77 + + 29 ) + NULLIF ( + 32, - - 45 ) + + 1, 4 ) THEN + + COUNT( * ) END * + COUNT( * ), 31 DIV 21 + - 59 DIV AVG ( ALL 91 * - 47 ) ) * + 91 + + 15 AS col2
----
-8
-349

skipif mysql # not compatible
query II rowsort label-9823
SELECT + - COUNT ( * ) + - 7, COALESCE ( - 4, - ( - 3 ) - 56 + + 93 + + - 41 * - + CASE - 42 WHEN + + COALESCE ( CAST ( NULL AS INTEGER ), - COALESCE ( 23, + 77 + + 29 ) + NULLIF ( + 32, - - 45 ) + + 1, 4 ) THEN + + COUNT ( * ) END * + COUNT ( * ), 31 / 21 + - 59 / AVG ( ALL 91 * - 47 ) ) * + 91 + + 15 AS col2
----
-8
-349

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9824
SELECT ALL - 26 / - 64 + - + CAST( NULL AS SIGNED ) * + - 49 / + COUNT( * ) - - NULLIF ( 97, - + 8 ) / + 95 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9824
SELECT ALL - 26 / - 64 + - + CAST ( NULL AS INTEGER ) * + - 49 / + COUNT ( * ) - - NULLIF ( 97, - + 8 ) / + 95 AS col1
----
NULL

query I rowsort
SELECT + 13 * + - 41 - - 79
----
-454

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9826
SELECT + + CASE 92 WHEN - COUNT( * ) THEN + MAX( DISTINCT - + CAST( + 71 AS SIGNED ) ) WHEN + CAST( NULL AS SIGNED ) + + COALESCE ( 33, - 92 ) THEN + - COALESCE ( + 1, - 46 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9826
SELECT + + CASE 92 WHEN - COUNT ( * ) THEN + MAX ( DISTINCT - + CAST ( + 71 AS INTEGER ) ) WHEN + CAST ( NULL AS INTEGER ) + + COALESCE ( 33, - 92 ) THEN + - COALESCE ( + 1, - 46 ) END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9827
SELECT ( - - MAX( ALL - ( 24 ) ) ) * - COUNT( * ) + - + 37 * - + MAX( DISTINCT + NULLIF ( 12, + 8 * - 87 + - + CAST( + 12 AS SIGNED ) ) )
----
468

skipif mysql # not compatible
query I rowsort label-9827
SELECT ( - - MAX ( ALL - ( 24 ) ) ) * - COUNT ( * ) + - + 37 * - + MAX ( DISTINCT + NULLIF ( 12, + 8 * - 87 + - + CAST ( + 12 AS INTEGER ) ) )
----
468

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9828
SELECT - - CAST( NULL AS DECIMAL ) - + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-9828
SELECT - - CAST ( NULL AS REAL ) - + 64
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9829
SELECT DISTINCT + 78 * ( - + 32 ) - + + 52 + + + 74 + - 52 + COUNT( * ) * - COUNT( * )
----
-2527

skipif mysql # not compatible
query I rowsort label-9829
SELECT DISTINCT + 78 * ( - + 32 ) - + + 52 + + + 74 + - 52 + COUNT ( * ) * - COUNT ( * )
----
-2527

query I rowsort
SELECT + 8 * + 25
----
200

onlyif mysql # DIV for integer division: 
query I rowsort label-9831
SELECT ALL 19 DIV - + 75 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9831
SELECT ALL 19 / - + 75 AS col1
----
0

query I rowsort
SELECT + 25 + - - 10 AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9833
SELECT MIN( 2 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-9833
SELECT MIN ( 2 ) AS col0
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9834
SELECT ALL CASE + 1 WHEN 35 + 5 DIV - - 2 THEN 78 END AS col1, - 17 + - + ( - COUNT( * ) ) * - + 29 DIV - 32 * - 47 * - - 86 + - - 78 AS col2
----
NULL
61

skipif mysql # not compatible
query II rowsort label-9834
SELECT ALL CASE + 1 WHEN 35 + 5 / - - 2 THEN 78 END AS col1, - 17 + - + ( - COUNT ( * ) ) * - + 29 / - 32 * - 47 * - - 86 + - - 78 AS col2
----
NULL
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9835
SELECT + 77 * + + SUM( ALL - + CAST( - + 36 AS SIGNED ) ) AS col2
----
2772

skipif mysql # not compatible
query I rowsort label-9835
SELECT + 77 * + + SUM ( ALL - + CAST ( - + 36 AS INTEGER ) ) AS col2
----
2772

query I rowsort
SELECT DISTINCT 18 * - 7 col2
----
-126

onlyif mysql # DIV for integer division: 
query I rowsort label-9837
SELECT 61 DIV + 98
----
0

skipif mysql # not compatible
query I rowsort label-9837
SELECT 61 / + 98
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9838
SELECT 67 + - COUNT( * ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-9838
SELECT 67 + - COUNT ( * ) AS col2
----
66

query I rowsort
SELECT DISTINCT 65 + + 87 AS col1
----
152

query I rowsort
SELECT ALL ( 66 ) + 56
----
122

query I rowsort
SELECT DISTINCT + 48 + + 10 AS col2
----
58

query II rowsort
SELECT ALL 40 AS col1, + 86
----
40
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9843
SELECT 66 * + - NULLIF ( - + 38, COUNT( * ) * + 54 + 57 * - 52 ) * - 78 col1
----
-195624

skipif mysql # not compatible
query I rowsort label-9843
SELECT 66 * + - NULLIF ( - + 38, COUNT ( * ) * + 54 + 57 * - 52 ) * - 78 col1
----
-195624

query I rowsort
SELECT DISTINCT 11 + 23 + - - 87 * - 95
----
-8231

onlyif mysql # aggregate syntax: 
query I rowsort label-9845
SELECT ALL - 47 + - 67 + 82 / + + CASE + 70 WHEN - - 59 + - ( + 90 ) * 81 * 33 * - 75 + + 80 + 53 THEN + MAX( - 9 ) WHEN + - COUNT( * ) * + 30 THEN NULL END + - 48 * 41 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9845
SELECT ALL - 47 + - 67 + 82 / + + CASE + 70 WHEN - - 59 + - ( + 90 ) * 81 * 33 * - 75 + + 80 + 53 THEN + MAX ( - 9 ) WHEN + - COUNT ( * ) * + 30 THEN NULL END + - 48 * 41 col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9846
SELECT 41 DIV - 87 - + 37 - 99 AS col2
----
-136

skipif mysql # not compatible
query I rowsort label-9846
SELECT 41 / - 87 - + 37 - 99 AS col2
----
-136

onlyif mysql # aggregate syntax: 
query III rowsort label-9847
SELECT + 4 * - 9 - - - MAX( DISTINCT + - 2 ) + - 16, + COUNT( * ) * ( 66 ) AS col0, - 41 + + MAX( + 17 ) * - MAX( NULLIF ( 29, - 16 ) ) AS col2
----
-50
66
-534

skipif mysql # not compatible
query III rowsort label-9847
SELECT + 4 * - 9 - - - MAX ( DISTINCT + - 2 ) + - 16, + COUNT ( * ) * ( 66 ) AS col0, - 41 + + MAX ( + 17 ) * - MAX ( NULLIF ( 29, - 16 ) ) AS col2
----
-50
66
-534

onlyif mysql # aggregate syntax: 
query II rowsort label-9848
SELECT ( - 85 ) + - 77 + - 22 * - 43, - MAX( ALL + + 97 ) AS col1
----
784
-97

skipif mysql # not compatible
query II rowsort label-9848
SELECT ( - 85 ) + - 77 + - 22 * - 43, - MAX ( ALL + + 97 ) AS col1
----
784
-97

query I rowsort
SELECT DISTINCT - 97 * 46 * + + 60 + - 99
----
-267819

query I rowsort
SELECT ALL 31 - - 74
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-9851
SELECT ALL + 6 - - 33 - 64 * + SUM( + + 19 ) + - 64 AS col2
----
-1241

skipif mysql # not compatible
query I rowsort label-9851
SELECT ALL + 6 - - 33 - 64 * + SUM ( + + 19 ) + - 64 AS col2
----
-1241

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9852
SELECT + 32 DIV 75 + 35 * CAST( 98 AS SIGNED ) - + 52 * 12
----
2806

skipif mysql # not compatible
query I rowsort label-9852
SELECT + 32 / 75 + 35 * CAST ( 98 AS INTEGER ) - + 52 * 12
----
2806

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9853
SELECT CAST( NULL AS SIGNED ) * + COUNT( ALL - 38 ) * 54 * + 75 + + + 52 + + 31 * COUNT( * ) * 43
----
NULL

skipif mysql # not compatible
query I rowsort label-9853
SELECT CAST ( NULL AS INTEGER ) * + COUNT ( ALL - 38 ) * 54 * + 75 + + + 52 + + 31 * COUNT ( * ) * 43
----
NULL

query I rowsort
SELECT + ( - 62 ) AS col1
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-9855
SELECT + 34 DIV - 30 + - 99
----
-100

skipif mysql # not compatible
query I rowsort label-9855
SELECT + 34 / - 30 + - 99
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-9856
SELECT NULLIF ( - 30, - + 54 * COUNT( * ) + + + ( + 56 ) * - 99 )
----
-30

skipif mysql # not compatible
query I rowsort label-9856
SELECT NULLIF ( - 30, - + 54 * COUNT ( * ) + + + ( + 56 ) * - 99 )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-9857
SELECT - - COUNT( * ) * + 55 * - 93 - + CASE + ( + 82 ) WHEN - 89 * - 31 + COUNT( * ) * - + COUNT( * ) THEN NULL WHEN + + 47 THEN - 60 * COUNT( * ) - + 86 END - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-9857
SELECT - - COUNT ( * ) * + 55 * - 93 - + CASE + ( + 82 ) WHEN - 89 * - 31 + COUNT ( * ) * - + COUNT ( * ) THEN NULL WHEN + + 47 THEN - 60 * COUNT ( * ) - + 86 END - 97
----
NULL

query I rowsort
SELECT ALL - - ( + 46 )
----
46

query II rowsort
SELECT + 71, 83 AS col1
----
71
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9860
SELECT ALL - MIN( ALL - - 81 ) AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-9860
SELECT ALL - MIN ( ALL - - 81 ) AS col2
----
-81

query II rowsort
SELECT ALL - 61 AS col2, 58 AS col1
----
-61
58

query II rowsort
SELECT - 60, 66 AS col2
----
-60
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9863
SELECT 12 + + 45 DIV 64 * COUNT( * )
----
12

skipif mysql # not compatible
query I rowsort label-9863
SELECT 12 + + 45 / 64 * COUNT ( * )
----
12

query II rowsort
SELECT 51 * + + 17 AS col0, 84 AS col1
----
867
84

query I rowsort
SELECT 22 + 52
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-9866
SELECT - 17 col0, COUNT( * )
----
-17
1

skipif mysql # not compatible
query II rowsort label-9866
SELECT - 17 col0, COUNT ( * )
----
-17
1

query I rowsort
SELECT DISTINCT 77 * - 87 AS col0
----
-6699

query I rowsort
SELECT ALL - 62 + + 79 + - 42 * + 4 + 66
----
-85

query I rowsort
SELECT DISTINCT + ( 7 ) + 25 - 55 + - 93
----
-116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9870
SELECT ALL 6 + - ( - 45 ) + + + CAST( NULL AS SIGNED ) * 59
----
NULL

skipif mysql # not compatible
query I rowsort label-9870
SELECT ALL 6 + - ( - 45 ) + + + CAST ( NULL AS INTEGER ) * 59
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9871
SELECT ALL COUNT( + NULLIF ( + - ( - 7 ), - 66 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9871
SELECT ALL COUNT ( + NULLIF ( + - ( - 7 ), - 66 ) )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9872
SELECT ALL 35 AS col1, - COUNT( * )
----
35
-1

skipif mysql # not compatible
query II rowsort label-9872
SELECT ALL 35 AS col1, - COUNT ( * )
----
35
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9873
SELECT 66 + + - 89 * + COUNT( ALL 62 ) AS col2, - 81 * - + ( - CASE + 91 WHEN - 68 + 24 * - 84 * - + 68 * 82 THEN NULL ELSE 85 * - + 88 * - + CAST( NULL AS SIGNED ) + 46 + - CAST( - ( - - 71 ) AS SIGNED ) + + 52 END ) + + 81 AS col2
----
-23
NULL

skipif mysql # not compatible
query II rowsort label-9873
SELECT 66 + + - 89 * + COUNT ( ALL 62 ) AS col2, - 81 * - + ( - CASE + 91 WHEN - 68 + 24 * - 84 * - + 68 * 82 THEN NULL ELSE 85 * - + 88 * - + CAST ( NULL AS INTEGER ) + 46 + - CAST ( - ( - - 71 ) AS INTEGER ) + + 52 END ) + + 81 AS col2
----
-23
NULL

query I rowsort
SELECT 37 * 5 * 33 AS col1
----
6105

onlyif mysql # DIV for integer division: 
query I rowsort label-9875
SELECT DISTINCT 11 DIV 26
----
0

skipif mysql # not compatible
query I rowsort label-9875
SELECT DISTINCT 11 / 26
----
0

query I rowsort
SELECT ALL 70 + 36 * + 55 + - + ( + + 0 ) + - - 28 + + ( - - 34 )
----
2112

query I rowsort
SELECT 56 + + 73 AS col2
----
129

query I rowsort
SELECT ALL 64 * - 54 * - 34
----
117504

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9879
SELECT - COUNT( * ) + + 94 DIV - + COUNT( * )
----
-95

skipif mysql # not compatible
query I rowsort label-9879
SELECT - COUNT ( * ) + + 94 / - + COUNT ( * )
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9880
SELECT DISTINCT + CAST( - 97 AS SIGNED ) * + - COUNT( * ) - + + ( - COUNT( * ) )
----
98

skipif mysql # not compatible
query I rowsort label-9880
SELECT DISTINCT + CAST ( - 97 AS INTEGER ) * + - COUNT ( * ) - + + ( - COUNT ( * ) )
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-9881
SELECT 58 * - 27 - 53 DIV + + 95 AS col2
----
-1566

skipif mysql # not compatible
query I rowsort label-9881
SELECT 58 * - 27 - 53 / + + 95 AS col2
----
-1566

onlyif mysql # aggregate syntax: 
query I rowsort label-9882
SELECT ALL - COUNT( - ( 82 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9882
SELECT ALL - COUNT ( - ( 82 ) )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9883
SELECT + 68 + - 62, + COUNT( * ) + - CASE 85 WHEN + - 81 THEN SUM( DISTINCT + 2 ) END AS col1
----
6
NULL

skipif mysql # not compatible
query II rowsort label-9883
SELECT + 68 + - 62, + COUNT ( * ) + - CASE 85 WHEN + - 81 THEN SUM ( DISTINCT + 2 ) END AS col1
----
6
NULL

query I rowsort
SELECT ALL + 24 * - 36
----
-864

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9885
SELECT CAST( NULL AS SIGNED ) AS col0, 1 AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-9885
SELECT CAST ( NULL AS INTEGER ) AS col0, 1 AS col2
----
NULL
1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9886
SELECT - CAST( NULL AS DECIMAL ) * - ( 35 ) / 73 + + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9886
SELECT - CAST ( NULL AS REAL ) * - ( 35 ) / 73 + + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT - 43, 7 AS col1
----
-43
7

query II rowsort
SELECT + 54 AS col2, + 23 + - 93
----
54
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9889
SELECT - CASE WHEN NOT + CASE - 86 WHEN + + 40 + - ( CAST( NULL AS SIGNED ) ) THEN + 18 * 48 / 82 END NOT IN ( - 63, + COUNT( * ) ) THEN 55 ELSE NULL END + + 39 * - ( ( - + COUNT( * ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9889
SELECT - CASE WHEN NOT + CASE - 86 WHEN + + 40 + - ( CAST ( NULL AS INTEGER ) ) THEN + 18 * 48 / 82 END NOT IN ( - 63, + COUNT ( * ) ) THEN 55 ELSE NULL END + + 39 * - ( ( - + COUNT ( * ) ) ) AS col2
----
NULL

query II rowsort
SELECT 7 * - + 18 - + - 82 + + 64 AS col0, - 6
----
20
-6

query I rowsort
SELECT ALL - 92 * + 33 AS col1
----
-3036

onlyif mysql # aggregate syntax: 
query I rowsort label-9892
SELECT + MIN( ALL + 30 )
----
30

skipif mysql # not compatible
query I rowsort label-9892
SELECT + MIN ( ALL + 30 )
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-9893
SELECT ALL - COUNT( * ) * 89 col1, + 54 AS col2
----
-89
54

skipif mysql # not compatible
query II rowsort label-9893
SELECT ALL - COUNT ( * ) * 89 col1, + 54 AS col2
----
-89
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9894
SELECT DISTINCT COUNT( - 26 ) + + + CAST( NULL AS SIGNED ) + + 4 + + + ( - 16 ) + + + 64 * - CAST( NULL AS SIGNED ) / - 81 * CASE - + 66 WHEN - 31 + - + COALESCE ( - 39, 80 + - COUNT( * ) * + 39 ) - - + 86 / - COUNT( * ) THEN 20 WHEN - + 51 + - 75 * - - 50 THEN - 94 + + ( - + 17 ) - + 77 ELSE NULL END / MAX( 27 + - 93 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9894
SELECT DISTINCT COUNT ( - 26 ) + + + CAST ( NULL AS INTEGER ) + + 4 + + + ( - 16 ) + + + 64 * - CAST ( NULL AS INTEGER ) / - 81 * CASE - + 66 WHEN - 31 + - + COALESCE ( - 39, 80 + - COUNT ( * ) * + 39 ) - - + 86 / - COUNT ( * ) THEN 20 WHEN - + 51 + - 75 * - - 50 THEN - 94 + + ( - + 17 ) - + 77 ELSE NULL END / MAX ( 27 + - 93 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9895
SELECT + NULLIF ( + 1, + + CAST( NULL AS SIGNED ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9895
SELECT + NULLIF ( + 1, + + CAST ( NULL AS INTEGER ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9896
SELECT 42 + MIN( DISTINCT - ( + - 56 ) )
----
98

skipif mysql # not compatible
query I rowsort label-9896
SELECT 42 + MIN ( DISTINCT - ( + - 56 ) )
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9897
SELECT ALL - ( + - 32 ) + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9897
SELECT ALL - ( + - 32 ) + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + CASE - 72 WHEN + 25 THEN NULL ELSE - - 18 END AS col1
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9899
SELECT - SUM( - + 10 ) DIV - MAX( ALL NULLIF ( 50, + + 79 ) )
----
0

skipif mysql # not compatible
query I rowsort label-9899
SELECT - SUM ( - + 10 ) / - MAX ( ALL NULLIF ( 50, + + 79 ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9900
SELECT - 42 * - MIN( ALL CAST( 48 AS SIGNED ) ) * - - 92 AS col0, 30 AS col0
----
185472
30

skipif mysql # not compatible
query II rowsort label-9900
SELECT - 42 * - MIN ( ALL CAST ( 48 AS INTEGER ) ) * - - 92 AS col0, 30 AS col0
----
185472
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9901
SELECT DISTINCT - 48 + - + 67 + - + COUNT( * ) + + COUNT( * ) AS col2
----
-115

skipif mysql # not compatible
query I rowsort label-9901
SELECT DISTINCT - 48 + - + 67 + - + COUNT ( * ) + + COUNT ( * ) AS col2
----
-115

query I rowsort
SELECT ALL + 93 + - - 2
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9903
SELECT DISTINCT + COUNT( * ) DIV - 92, 1 + - + 59 + - 52 AS col1
----
0
-110

skipif mysql # not compatible
query II rowsort label-9903
SELECT DISTINCT + COUNT ( * ) / - 92, 1 + - + 59 + - 52 AS col1
----
0
-110

query I rowsort
SELECT - 12 * + ( + ( + + 46 ) ) col2
----
-552

onlyif mysql # aggregate syntax: 
query I rowsort label-9905
SELECT DISTINCT - COUNT( * ) + - ( 76 ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-9905
SELECT DISTINCT - COUNT ( * ) + - ( 76 ) AS col2
----
-77

query I rowsort
SELECT ALL - 31 + - 0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-9907
SELECT - COUNT( 66 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9907
SELECT - COUNT ( 66 ) AS col1
----
-1

query I rowsort
SELECT ALL - 4 * ( - 74 )
----
296

query I rowsort
SELECT + 34 + + 0 - - + 5 AS col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9910
SELECT DISTINCT CASE + + COUNT( - + 29 ) WHEN + + 29 * 67 * - + 43 THEN - + 47 * 26 * - COUNT( * ) WHEN + ( + 2 ) THEN NULL ELSE ( - 92 ) END
----
-92

skipif mysql # not compatible
query I rowsort label-9910
SELECT DISTINCT CASE + + COUNT ( - + 29 ) WHEN + + 29 * 67 * - + 43 THEN - + 47 * 26 * - COUNT ( * ) WHEN + ( + 2 ) THEN NULL ELSE ( - 92 ) END
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9911
SELECT - CAST( 15 AS SIGNED )
----
-15

skipif mysql # not compatible
query I rowsort label-9911
SELECT - CAST ( 15 AS INTEGER )
----
-15

query II rowsort
SELECT ALL ( - 0 ) AS col0, CASE - 62 WHEN - + 69 THEN - + 91 ELSE NULL END
----
0
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9913
SELECT + ( 21 ) DIV - 42
----
0

skipif mysql # not compatible
query I rowsort label-9913
SELECT + ( 21 ) / - 42
----
0

query I rowsort
SELECT + 46 + - + ( - - ( - 52 ) ) * - 31 AS col2
----
-1566

onlyif mysql # DIV for integer division: 
query II rowsort label-9915
SELECT ALL + + 65 DIV 8 AS col0, - 89
----
8
-89

skipif mysql # not compatible
query II rowsort label-9915
SELECT ALL + + 65 / 8 AS col0, - 89
----
8
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9916
SELECT + + COUNT( * ) DIV 37 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9916
SELECT + + COUNT ( * ) / 37 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9917
SELECT ALL - 52 * + - COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-9917
SELECT ALL - 52 * + - COUNT ( * )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9918
SELECT - + ( + - 87 ) * - - 46 - 87 + + MIN( 95 ) - - + 80 * + COUNT( * ) + + COUNT( * ) * + - SUM( DISTINCT + - 28 ) AS col1
----
4118

skipif mysql # not compatible
query I rowsort label-9918
SELECT - + ( + - 87 ) * - - 46 - 87 + + MIN ( 95 ) - - + 80 * + COUNT ( * ) + + COUNT ( * ) * + - SUM ( DISTINCT + - 28 ) AS col1
----
4118

query I rowsort
SELECT ALL + - 21 col2
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-9920
SELECT + COUNT( * ) * + - COALESCE ( + 79, 58 ) * 47 * + 42 AS col2
----
-155946

skipif mysql # not compatible
query I rowsort label-9920
SELECT + COUNT ( * ) * + - COALESCE ( + 79, 58 ) * 47 * + 42 AS col2
----
-155946

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9921
SELECT ALL - - MAX( ALL - 7 ) * 0 + + + COALESCE ( - CAST( NULL AS SIGNED ), 54 ) + + COALESCE ( + CASE - + 45 WHEN - 30 DIV + + 56 * - ( 55 ) + + ( CASE + 52 WHEN 30 + - 87 DIV + 24 - - COUNT( * ) THEN NULL WHEN - 36 THEN NULL ELSE + SUM( - 50 ) END ) THEN + CAST( - + 41 AS SIGNED ) WHEN - 52 + - 19 * + CASE + COALESCE ( - 74, - COUNT( * ) * + 65 + - 43 ) WHEN CASE 82 WHEN + 32 THEN NULL WHEN - 25 * 53 - - 57 THEN + 10 + - 96 ELSE + 49 + - COUNT( * ) END + - 38 * 33 THEN NULL WHEN - 99 + 65 THEN NULL WHEN - 78 THEN 59 DIV - COUNT( * ) ELSE + 87 END THEN NULL WHEN AVG ( 46 ) THEN 12 END, + 84 ) + - 8 DIV 92 * + 57 + ( - COUNT( * ) ) * + 21
----
117

skipif mysql # not compatible
query I rowsort label-9921
SELECT ALL - - MAX ( ALL - 7 ) * 0 + + + COALESCE ( - CAST ( NULL AS INTEGER ), 54 ) + + COALESCE ( + CASE - + 45 WHEN - 30 / + + 56 * - ( 55 ) + + ( CASE + 52 WHEN 30 + - 87 / + 24 - - COUNT ( * ) THEN NULL WHEN - 36 THEN NULL ELSE + SUM ( - 50 ) END ) THEN + CAST ( - + 41 AS INTEGER ) WHEN - 52 + - 19 * + CASE + COALESCE ( - 74, - COUNT ( * ) * + 65 + - 43 ) WHEN CASE 82 WHEN + 32 THEN NULL WHEN - 25 * 53 - - 57 THEN + 10 + - 96 ELSE + 49 + - COUNT ( * ) END + - 38 * 33 THEN NULL WHEN - 99 + 65 THEN NULL WHEN - 78 THEN 59 / - COUNT ( * ) ELSE + 87 END THEN NULL WHEN AVG ( 46 ) THEN 12 END, + 84 ) + - 8 / 92 * + 57 + ( - COUNT ( * ) ) * + 21
----
117

query I rowsort
SELECT COALESCE ( + 99, + 56 ) AS col0
----
99

query I rowsort
SELECT + 42 * + - 77 AS col1
----
-3234

onlyif mysql # aggregate syntax: 
query I rowsort label-9924
SELECT - COUNT( * ) * + - 7 col1
----
7

skipif mysql # not compatible
query I rowsort label-9924
SELECT - COUNT ( * ) * + - 7 col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9925
SELECT ALL - 18 * - - COUNT( + - 0 ) + + - 13 - - COALESCE ( 57, - + 7, 90 ) * 12 + + 83 col0
----
736

skipif mysql # not compatible
query I rowsort label-9925
SELECT ALL - 18 * - - COUNT ( + - 0 ) + + - 13 - - COALESCE ( 57, - + 7, 90 ) * 12 + + 83 col0
----
736

onlyif mysql # DIV for integer division: 
query II rowsort label-9926
SELECT DISTINCT + 73 AS col1, 32 DIV - + 71
----
73
0

skipif mysql # not compatible
query II rowsort label-9926
SELECT DISTINCT + 73 AS col1, 32 / - + 71
----
73
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9927
SELECT ALL 0 * + 60 * + + 77 + - CASE + + 62 WHEN + 4 THEN + - 36 - + 32 WHEN COUNT( * ) * + 78 + - + 17 THEN - SUM( DISTINCT - 65 ) - 29 + 9 * NULLIF ( ( + ( + 18 ) ), + - 60 ) / - - 94 END * 25 * + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-9927
SELECT ALL 0 * + 60 * + + 77 + - CASE + + 62 WHEN + 4 THEN + - 36 - + 32 WHEN COUNT ( * ) * + 78 + - + 17 THEN - SUM ( DISTINCT - 65 ) - 29 + 9 * NULLIF ( ( + ( + 18 ) ), + - 60 ) / - - 94 END * 25 * + 38
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9928
SELECT ALL + 7 * + COUNT( * ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-9928
SELECT ALL + 7 * + COUNT ( * ) AS col2
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9929
SELECT ALL ( + + COUNT( * ) ) / CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9929
SELECT ALL ( + + COUNT ( * ) ) / CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9930
SELECT - COUNT( * ) * - - 38
----
-38

skipif mysql # not compatible
query I rowsort label-9930
SELECT - COUNT ( * ) * - - 38
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9931
SELECT DISTINCT CAST( NULL AS SIGNED ) * - + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-9931
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - + 97
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9932
SELECT SUM( - - 7 ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-9932
SELECT SUM ( - - 7 ) AS col1
----
7

query I rowsort
SELECT - ( 85 ) * + 75 col0
----
-6375

onlyif mysql # aggregate syntax: 
query I rowsort label-9934
SELECT DISTINCT CASE + MAX( - 87 ) WHEN - + 26 THEN + 68 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9934
SELECT DISTINCT CASE + MAX ( - 87 ) WHEN - + 26 THEN + 68 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9935
SELECT + 53 + - + 30 - 30 + - COUNT( * ) / + CAST( NULL AS SIGNED ) + + - 5 * + 7 * + COUNT( * ) / - 99 * + 79 + - 23 + + 66 * 90 + - 20 + - + COALESCE ( - 92, + ( 55 ) ) / + 58 / + 58
----
NULL

skipif mysql # not compatible
query I rowsort label-9935
SELECT + 53 + - + 30 - 30 + - COUNT ( * ) / + CAST ( NULL AS INTEGER ) + + - 5 * + 7 * + COUNT ( * ) / - 99 * + 79 + - 23 + + 66 * 90 + - 20 + - + COALESCE ( - 92, + ( 55 ) ) / + 58 / + 58
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9936
SELECT DISTINCT COUNT( * ), COUNT( * ) + - COALESCE ( + 7, + 87, + 59 * 27 - - 26 + CASE + COUNT( * ) WHEN 61 * - + COALESCE ( + 15, + COUNT( * ) ) THEN + ( 77 ) ELSE NULL END ) AS col1
----
1
-6

skipif mysql # not compatible
query II rowsort label-9936
SELECT DISTINCT COUNT ( * ), COUNT ( * ) + - COALESCE ( + 7, + 87, + 59 * 27 - - 26 + CASE + COUNT ( * ) WHEN 61 * - + COALESCE ( + 15, + COUNT ( * ) ) THEN + ( 77 ) ELSE NULL END ) AS col1
----
1
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9937
SELECT - COUNT( * ) * - + COALESCE ( + 15, - - 43 * 54 )
----
15

skipif mysql # not compatible
query I rowsort label-9937
SELECT - COUNT ( * ) * - + COALESCE ( + 15, - - 43 * 54 )
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-9938
SELECT ALL - 72 DIV + + 17 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-9938
SELECT ALL - 72 / + + 17 AS col0
----
-4

query II rowsort
SELECT ALL 4, ( + 92 ) AS col0
----
4
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9940
SELECT ALL + COUNT( * ) * - 41
----
-41

skipif mysql # not compatible
query I rowsort label-9940
SELECT ALL + COUNT ( * ) * - 41
----
-41

query I rowsort
SELECT - 64 + + + 61 + - ( + ( - 36 ) ) + 31 + + + 25 * + 69 - - + 97
----
1886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9942
SELECT + 77 + + CAST( NULL AS SIGNED ) + + AVG ( DISTINCT - 25 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9942
SELECT + 77 + + CAST ( NULL AS INTEGER ) + + AVG ( DISTINCT - 25 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9943
SELECT - + 52 + - NULLIF ( - 91, - 39 + + - 62 + + CAST( + - CASE + 38 WHEN 89 / - 1 THEN + 50 + 11 + + + 52 + CASE + 18 WHEN - + 40 + COUNT( * ) THEN - MIN( - + 28 ) END ELSE NULL END AS SIGNED ) )
----
39

skipif mysql # not compatible
query I rowsort label-9943
SELECT - + 52 + - NULLIF ( - 91, - 39 + + - 62 + + CAST ( + - CASE + 38 WHEN 89 / - 1 THEN + 50 + 11 + + + 52 + CASE + 18 WHEN - + 40 + COUNT ( * ) THEN - MIN ( - + 28 ) END ELSE NULL END AS INTEGER ) )
----
39

query I rowsort
SELECT + + 47 + 30 + 83
----
160

query I rowsort
SELECT - + 36 * + 77
----
-2772

query I rowsort
SELECT - - 78 + 33
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-9947
SELECT ALL - + 0 + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-9947
SELECT ALL - + 0 + + COUNT ( * )
----
1

query I rowsort
SELECT DISTINCT + ( + - 75 )
----
-75

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9949
SELECT DISTINCT - COALESCE ( + 33, - + 65, + CAST( NULL AS SIGNED ) ) DIV - - 78 - + 34 + - 71
----
-105

skipif mysql # not compatible
query I rowsort label-9949
SELECT DISTINCT - COALESCE ( + 33, - + 65, + CAST ( NULL AS INTEGER ) ) / - - 78 - + 34 + - 71
----
-105

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9950
SELECT ALL + - COUNT( * ) DIV 30 - + COUNT( * ) + - + 4 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-9950
SELECT ALL + - COUNT ( * ) / 30 - + COUNT ( * ) + - + 4 AS col1
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9951
SELECT 62 DIV - 79 + - - 57 + - 95 + COUNT( * ) - + 9 * + 36 AS col1
----
-361

skipif mysql # not compatible
query I rowsort label-9951
SELECT 62 / - 79 + - - 57 + - 95 + COUNT ( * ) - + 9 * + 36 AS col1
----
-361

onlyif mysql # DIV for integer division: 
query I rowsort label-9952
SELECT DISTINCT ( 0 ) DIV + 60 * + 46
----
0

skipif mysql # not compatible
query I rowsort label-9952
SELECT DISTINCT ( 0 ) / + 60 * + 46
----
0

query I rowsort
SELECT 5 * + 47 * + 95 * + + CASE 43 WHEN + 88 + 3 THEN NULL WHEN + 71 THEN NULL ELSE + 3 * + + 81 END
----
5424975

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9954
SELECT 32 + - + CAST( NULL AS SIGNED ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9954
SELECT 32 + - + CAST ( NULL AS INTEGER ) + - COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT 54 + + 58 + - 62 AS col2
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-9956
SELECT ALL 89 + 73 DIV + 69
----
90

skipif mysql # not compatible
query I rowsort label-9956
SELECT ALL 89 + 73 / + 69
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9957
SELECT ALL 1 * SUM( ALL + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9957
SELECT ALL 1 * SUM ( ALL + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT 18 - + - 10 * - 66 AS col0
----
-642

onlyif mysql # aggregate syntax: 
query I rowsort label-9959
SELECT ALL 95 - - MIN( DISTINCT + 79 )
----
174

skipif mysql # not compatible
query I rowsort label-9959
SELECT ALL 95 - - MIN ( DISTINCT + 79 )
----
174

query I rowsort
SELECT 76 + + 99
----
175

query I rowsort
SELECT DISTINCT + 59 * - ( + 21 )
----
-1239

onlyif mysql # DIV for integer division: 
query I rowsort label-9962
SELECT DISTINCT 46 DIV + 70 * 36 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9962
SELECT DISTINCT 46 / + 70 * 36 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9963
SELECT + CASE CASE - ( - - 96 ) WHEN - - 27 + - - 75 THEN + 85 ELSE NULL END WHEN - CAST( 88 AS SIGNED ) THEN + 69 WHEN - + 77 THEN 37 / - ( + - CAST( + 41 AS SIGNED ) ) END - - CASE - - 35 WHEN + 83 - - 31 THEN 74 ELSE + 8 + + 14 / + 48 + 73 END + + 67 * - NULLIF ( - 57, - - 47 ) - - 44
----
NULL

skipif mysql # not compatible
query I rowsort label-9963
SELECT + CASE CASE - ( - - 96 ) WHEN - - 27 + - - 75 THEN + 85 ELSE NULL END WHEN - CAST ( 88 AS INTEGER ) THEN + 69 WHEN - + 77 THEN 37 / - ( + - CAST ( + 41 AS INTEGER ) ) END - - CASE - - 35 WHEN + 83 - - 31 THEN 74 ELSE + 8 + + 14 / + 48 + 73 END + + 67 * - NULLIF ( - 57, - - 47 ) - - 44
----
NULL

query I rowsort
SELECT DISTINCT - + 39 + 4 + 80
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9965
SELECT DISTINCT + ( + + COUNT( * ) ) AS col0, + 16 + + 97 DIV + - NULLIF ( + 95, 33 )
----
1
15

skipif mysql # not compatible
query II rowsort label-9965
SELECT DISTINCT + ( + + COUNT ( * ) ) AS col0, + 16 + + 97 / + - NULLIF ( + 95, 33 )
----
1
15

query I rowsort
SELECT ALL 98 + 9 + - - 69
----
176

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9967
SELECT DISTINCT + COALESCE ( - 43, 3, 93 DIV + - 98 DIV + 8 * - + COALESCE ( + 71, 91, + + 37 - 68 + - 2 ) * - COUNT( * ) ) AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-9967
SELECT DISTINCT + COALESCE ( - 43, 3, 93 / + - 98 / + 8 * - + COALESCE ( + 71, 91, + + 37 - 68 + - 2 ) * - COUNT ( * ) ) AS col1
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9968
SELECT DISTINCT - - 64 + - 12 + - - 86 DIV - 16 + - 89 - 72 + + COUNT( * ) * - 20 AS col2
----
-134

skipif mysql # not compatible
query I rowsort label-9968
SELECT DISTINCT - - 64 + - 12 + - - 86 / - 16 + - 89 - 72 + + COUNT ( * ) * - 20 AS col2
----
-134

query II rowsort
SELECT - 94 + 61 AS col2, 64 * - 66 AS col1
----
-33
-4224

onlyif mysql # aggregate syntax: 
query I rowsort label-9970
SELECT ALL - + 97 + + - 49 + 24 - + + 27 - COUNT( * ) + + + 39 + - + 66 * + 44
----
-3015

skipif mysql # not compatible
query I rowsort label-9970
SELECT ALL - + 97 + + - 49 + 24 - + + 27 - COUNT ( * ) + + + 39 + - + 66 * + 44
----
-3015

query I rowsort
SELECT - - ( - 6 )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9972
SELECT 84 + MAX( + 35 )
----
119

skipif mysql # not compatible
query I rowsort label-9972
SELECT 84 + MAX ( + 35 )
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-9973
SELECT ALL + COUNT( ALL 32 ) * + 67 AS col0
----
67

skipif mysql # not compatible
query I rowsort label-9973
SELECT ALL + COUNT ( ALL 32 ) * + 67 AS col0
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9974
SELECT - 26 * + 49 * - + ( - MIN( DISTINCT + 99 ) ) - + - MAX( + - 35 ) AS col1, CAST( NULL AS SIGNED ) * + 51
----
-126161
NULL

skipif mysql # not compatible
query II rowsort label-9974
SELECT - 26 * + 49 * - + ( - MIN ( DISTINCT + 99 ) ) - + - MAX ( + - 35 ) AS col1, CAST ( NULL AS INTEGER ) * + 51
----
-126161
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9975
SELECT ALL + ( - COUNT( * ) ) - COUNT( + - NULLIF ( - 60, - - 85 ) ) * + 63
----
-64

skipif mysql # not compatible
query I rowsort label-9975
SELECT ALL + ( - COUNT ( * ) ) - COUNT ( + - NULLIF ( - 60, - - 85 ) ) * + 63
----
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-9976
SELECT DISTINCT - 18, + 76 * - 24 * - CASE SUM( ALL + 66 ) WHEN 55 * - SUM( DISTINCT + 9 ) THEN NULL WHEN + 89 + - 82 + - 9 THEN - - 10 WHEN - 57 THEN NULL END AS col2
----
-18
NULL

skipif mysql # not compatible
query II rowsort label-9976
SELECT DISTINCT - 18, + 76 * - 24 * - CASE SUM ( ALL + 66 ) WHEN 55 * - SUM ( DISTINCT + 9 ) THEN NULL WHEN + 89 + - 82 + - 9 THEN - - 10 WHEN - 57 THEN NULL END AS col2
----
-18
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9977
SELECT DISTINCT - NULLIF ( - - COUNT( * ), 22 ) * - NULLIF ( - 81, - 2 * AVG ( 26 ) + - 96 * + 28 ) AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-9977
SELECT DISTINCT - NULLIF ( - - COUNT ( * ), 22 ) * - NULLIF ( - 81, - 2 * AVG ( 26 ) + - 96 * + 28 ) AS col0
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9978
SELECT DISTINCT + 62 - SUM( ALL + 21 ) + 97 * - + 59, 12 DIV + SUM( DISTINCT - 96 ) col1
----
-5682
0

skipif mysql # not compatible
query II rowsort label-9978
SELECT DISTINCT + 62 - SUM ( ALL + 21 ) + 97 * - + 59, 12 / + SUM ( DISTINCT - 96 ) col1
----
-5682
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9979
SELECT 47 - - 24 + 99 DIV + + 45
----
73

skipif mysql # not compatible
query I rowsort label-9979
SELECT 47 - - 24 + 99 / + + 45
----
73

query I rowsort
SELECT 86 * 83 col1
----
7138

query II rowsort
SELECT 70, 94 col0
----
70
94

query I rowsort
SELECT ALL 0 * 54 col0
----
0

query I rowsort
SELECT 76 * - 43
----
-3268

onlyif mysql # aggregate syntax: 
query I rowsort label-9984
SELECT CASE COUNT( 49 ) WHEN 34 THEN - - 19 ELSE NULL END * + 36 / - 59 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9984
SELECT CASE COUNT ( 49 ) WHEN 34 THEN - - 19 ELSE NULL END * + 36 / - 59 col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9985
SELECT DISTINCT - 54 * - 2 DIV + 2 AS col2
----
54

skipif mysql # not compatible
query I rowsort label-9985
SELECT DISTINCT - 54 * - 2 / + 2 AS col2
----
54

query I rowsort
SELECT ALL + 0 * - 11
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9987
SELECT COUNT( * ) * + - 44 AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-9987
SELECT COUNT ( * ) * + - 44 AS col0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-9988
SELECT ALL COUNT( * ) * + + 91
----
91

skipif mysql # not compatible
query I rowsort label-9988
SELECT ALL COUNT ( * ) * + + 91
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9989
SELECT CAST( NULL AS SIGNED ) * + 82 * + + 0 * - 92 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9989
SELECT CAST ( NULL AS INTEGER ) * + 82 * + + 0 * - 92 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9990
SELECT 58 + + COUNT( 7 ) * + - 86
----
-28

skipif mysql # not compatible
query I rowsort label-9990
SELECT 58 + + COUNT ( 7 ) * + - 86
----
-28

query I rowsort
SELECT - 85 + + 75 - - 80 AS col1
----
70

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9992
SELECT DISTINCT + CASE + 61 WHEN + + COUNT( * ) THEN NULL ELSE + - 34 + + NULLIF ( CAST( NULL AS DECIMAL ), - 51 ) END + - - 48 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9992
SELECT DISTINCT + CASE + 61 WHEN + + COUNT ( * ) THEN NULL ELSE + - 34 + + NULLIF ( CAST ( NULL AS REAL ), - 51 ) END + - - 48 col2
----
NULL

query I rowsort
SELECT ALL 38 + + 74 AS col0
----
112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9994
SELECT 96 + - - CAST( NULL AS SIGNED ) - - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9994
SELECT 96 + - - CAST ( NULL AS INTEGER ) - - COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9995
SELECT ALL MIN( DISTINCT + 28 ) + - 47
----
-19

skipif mysql # not compatible
query I rowsort label-9995
SELECT ALL MIN ( DISTINCT + 28 ) + - 47
----
-19

query I rowsort
SELECT ALL - 75 + - + 52 AS col2
----
-127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9997
SELECT + COUNT( * ) + - 61 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9997
SELECT + COUNT ( * ) + - 61 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9998
SELECT ALL + 64 * 9 + + 42, CASE - - 52 WHEN - 46 * + 68 + + NULLIF ( - 32, + 55 ) + - 82 * - - 28 / + - ( - - 92 ) THEN - 88 WHEN + - 41 * + + 90 + + 89 + + + 98 * COUNT( DISTINCT - 57 ) THEN NULL WHEN - COUNT( * ) THEN 34 + 96 / 9 END * - 81 * - 37 AS col1
----
618
NULL

skipif mysql # not compatible
query II rowsort label-9998
SELECT ALL + 64 * 9 + + 42, CASE - - 52 WHEN - 46 * + 68 + + NULLIF ( - 32, + 55 ) + - 82 * - - 28 / + - ( - - 92 ) THEN - 88 WHEN + - 41 * + + 90 + + 89 + + + 98 * COUNT ( DISTINCT - 57 ) THEN NULL WHEN - COUNT ( * ) THEN 34 + 96 / 9 END * - 81 * - 37 AS col1
----
618
NULL

query I rowsort
SELECT + - 95 + - + 48
----
-143

