hash-threshold 8

statement ok
CREATE TABLE tab0(col0 INTEGER, col1 INTEGER, col2 INTEGER)

statement ok
CREATE TABLE tab1(col0 INTEGER, col1 INTEGER, col2 INTEGER)

statement ok
CREATE TABLE tab2(col0 INTEGER, col1 INTEGER, col2 INTEGER)

statement ok
INSERT INTO tab0 VALUES(97,1,99)

statement ok
INSERT INTO tab0 VALUES(15,81,47)

statement ok
INSERT INTO tab0 VALUES(87,21,10)

statement ok
INSERT INTO tab1 VALUES(51,14,96)

statement ok
INSERT INTO tab1 VALUES(85,5,59)

statement ok
INSERT INTO tab1 VALUES(91,47,68)

statement ok
INSERT INTO tab2 VALUES(64,77,40)

statement ok
INSERT INTO tab2 VALUES(75,67,58)

statement ok
INSERT INTO tab2 VALUES(46,51,23)

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1
SELECT DISTINCT + 51, + CAST( NULL AS SIGNED ) AS col2
----
51
NULL

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-5
SELECT - SUM ( - 72 )
----
72

query II rowsort
SELECT DISTINCT 86, - 83 AS col0
----
86
-83

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

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

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + 69 * 10
----
690

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-16
SELECT + COUNT( * ) DIV MIN( DISTINCT - 41 ) * 88
----
0

skipif mysql # not compatible
query I rowsort label-16
SELECT + COUNT ( * ) / MIN ( DISTINCT - 41 ) * 88
----
0

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

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

query I rowsort
SELECT ALL - 12 col0
----
-12

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

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

query I rowsort
SELECT + 20 * + 98 AS col1
----
1960

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

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

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

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

query I rowsort
SELECT ALL - 15 + 65
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-25
SELECT MIN( DISTINCT + + 63 ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-25
SELECT MIN ( DISTINCT + + 63 ) AS col1
----
63

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-28
SELECT ALL - 65 DIV + + 96
----
0

skipif mysql # not compatible
query I rowsort label-28
SELECT ALL - 65 / + + 96
----
0

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

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

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

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

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

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

query II rowsort
SELECT ALL + 68 col2, 17 + + ( - ( - ( - 75 ) ) )
----
68
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-33
SELECT + 78 - COALESCE ( + + 18, + + COUNT( * ) )
----
60

skipif mysql # not compatible
query I rowsort label-33
SELECT + 78 - COALESCE ( + + 18, + + COUNT ( * ) )
----
60

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

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

query I rowsort
SELECT 47 * + + 47 * - - 33 col2
----
72897

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-40
SELECT + + SUM( - - 78 ) col2
----
78

skipif mysql # not compatible
query I rowsort label-40
SELECT + + SUM ( - - 78 ) col2
----
78

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

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

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

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

query I rowsort
SELECT ALL 1 col0
----
1

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-46
SELECT ALL 88 DIV + + 48
----
1

skipif mysql # not compatible
query I rowsort label-46
SELECT ALL 88 / + + 48
----
1

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT 5 col0
----
5

query II rowsort
SELECT DISTINCT - 40 AS col0, + 84
----
-40
84

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

onlyif mysql # aggregate syntax: 
query I rowsort label-55
SELECT DISTINCT + 95 + + - MIN( DISTINCT + ( 49 ) ) * + - 60 AS col0
----
3035

skipif mysql # not compatible
query I rowsort label-55
SELECT DISTINCT + 95 + + - MIN ( DISTINCT + ( 49 ) ) * + - 60 AS col0
----
3035

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT - 55 col2
----
-55

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

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

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

query I rowsort
SELECT + + 22 * 56
----
1232

query I rowsort
SELECT DISTINCT + 98 * + - 37
----
-3626

query I rowsort
SELECT ALL + 72 * + - 42 AS col1
----
-3024

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-71
SELECT + COUNT( DISTINCT + 72 ) + + + 69
----
70

skipif mysql # not compatible
query I rowsort label-71
SELECT + COUNT ( DISTINCT + 72 ) + + + 69
----
70

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

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

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

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

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

query I rowsort
SELECT + NULLIF ( + + 28, 36 )
----
28

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-77
SELECT - 39 * + 32 * - COUNT( * ) AS col2
----
1248

skipif mysql # not compatible
query I rowsort label-77
SELECT - 39 * + 32 * - COUNT ( * ) AS col2
----
1248

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

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

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

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

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

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

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

query I rowsort
SELECT 95 + - 57 col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-83
SELECT - - 38 + - - COUNT( 79 )
----
39

skipif mysql # not compatible
query I rowsort label-83
SELECT - - 38 + - - COUNT ( 79 )
----
39

query II rowsort
SELECT 28 AS col1, 36 AS col1
----
28
36

query I rowsort
SELECT - + 94
----
-94

query II rowsort
SELECT ALL - 38 col2, - 97
----
-38
-97

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-89
SELECT DISTINCT - 11, 60 + + + CAST( - + 5 AS SIGNED ) AS col2
----
-11
55

skipif mysql # not compatible
query II rowsort label-89
SELECT DISTINCT - 11, 60 + + + CAST ( - + 5 AS INTEGER ) AS col2
----
-11
55

query I rowsort
SELECT DISTINCT - + 66 + - 50 AS col2
----
-116

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

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

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

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

query I rowsort
SELECT DISTINCT + 64 * + 77 + 5
----
4933

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-98
SELECT + MAX ( + 51 )
----
51

query II rowsort
SELECT 80 * + 96 AS col2, + 95 AS col2
----
7680
95

query I rowsort
SELECT DISTINCT - 2 col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-101
SELECT 95 + 14 + + + COUNT( * ) col2
----
110

skipif mysql # not compatible
query I rowsort label-101
SELECT 95 + 14 + + + COUNT ( * ) col2
----
110

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-105
SELECT 5 DIV - - ( 86 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-105
SELECT 5 / - - ( 86 ) AS col2
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-107
SELECT ALL - + 5 DIV + 58
----
0

skipif mysql # not compatible
query I rowsort label-107
SELECT ALL - + 5 / + 58
----
0

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-112
SELECT DISTINCT - COUNT( * ) * + + SUM( 6 ) - - 72 AS col2
----
66

skipif mysql # not compatible
query I rowsort label-112
SELECT DISTINCT - COUNT ( * ) * + + SUM ( 6 ) - - 72 AS col2
----
66

query I rowsort
SELECT - 68 + 0 AS col2
----
-68

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

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

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

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

query I rowsort
SELECT ALL + 43 * + 93 AS col0
----
3999

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

query I rowsort
SELECT DISTINCT - - 15
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-119
SELECT ( + SUM( 15 ) ) + + 23 AS col1
----
38

skipif mysql # not compatible
query I rowsort label-119
SELECT ( + SUM ( 15 ) ) + + 23 AS col1
----
38

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

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

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL - - 52
----
52

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-129
SELECT + 52 AS col1, NULLIF ( CAST( NULL AS DECIMAL ), - + SUM( DISTINCT - 5 ) * + 58 * - 73 - - + COUNT( * ) )
----
52
NULL

skipif mysql # not compatible
query II rowsort label-129
SELECT + 52 AS col1, NULLIF ( CAST ( NULL AS REAL ), - + SUM ( DISTINCT - 5 ) * + 58 * - 73 - - + COUNT ( * ) )
----
52
NULL

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

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

query I rowsort
SELECT ALL - + NULLIF ( 24, + - 73 ) AS col1
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-132
SELECT DISTINCT - + COALESCE ( 52, - - COUNT( * ) * + 73 ) AS col0, + AVG ( - CAST( NULL AS SIGNED ) ) col0
----
-52
NULL

skipif mysql # not compatible
query II rowsort label-132
SELECT DISTINCT - + COALESCE ( 52, - - COUNT ( * ) * + 73 ) AS col0, + AVG ( - CAST ( NULL AS INTEGER ) ) col0
----
-52
NULL

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

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

query I rowsort
SELECT ALL - 33 * 23 AS col0
----
-759

query II rowsort
SELECT 8 * + + 87 AS col2, ( - 3 ) AS col1
----
696
-3

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

skipif mysql # not compatible
query I rowsort label-136
SELECT DISTINCT - COUNT ( * ) + + 86 AS col2
----
85

query I rowsort
SELECT ALL - - 93
----
93

query I rowsort
SELECT ALL - - 5 * - 88 AS col2
----
-440

query I rowsort
SELECT 79 * + 45
----
3555

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

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

query II rowsort
SELECT ALL + 2, + ( - 87 ) AS col2
----
2
-87

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-145
SELECT DISTINCT + - MAX( ALL + 43 ) AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-145
SELECT DISTINCT + - MAX ( ALL + 43 ) AS col1
----
-43

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-147
SELECT - 35 + - 3 - + COUNT( * )
----
-39

skipif mysql # not compatible
query I rowsort label-147
SELECT - 35 + - 3 - + COUNT ( * )
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-148
SELECT ALL - COUNT( * ) * - 58 AS col0, - 87 AS col2
----
58
-87

skipif mysql # not compatible
query II rowsort label-148
SELECT ALL - COUNT ( * ) * - 58 AS col0, - 87 AS col2
----
58
-87

query II rowsort
SELECT DISTINCT - 75 AS col0, 21
----
-75
21

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

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

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

query I rowsort
SELECT ALL - ( 30 ) col0
----
-30

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

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

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

skipif mysql # not compatible
query I rowsort label-154
SELECT DISTINCT MAX ( - 91 )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-155
SELECT - COUNT( * ) + + + CASE 84 WHEN + 95 THEN 66 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-155
SELECT - COUNT ( * ) + + + CASE 84 WHEN + 95 THEN 66 ELSE NULL END AS col0
----
NULL

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

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

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

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

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

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

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

query I rowsort
SELECT + 42 + + 27
----
69

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-162
SELECT MIN( DISTINCT 63 ) col1
----
63

skipif mysql # not compatible
query I rowsort label-162
SELECT MIN ( DISTINCT 63 ) col1
----
63

query I rowsort
SELECT + ( NULLIF ( + 87, - + 44 ) )
----
87

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

skipif mysql # not compatible
query I rowsort label-164
SELECT - 20 * - 55 + - + ( - COUNT ( * ) ) AS col0
----
1101

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

onlyif mysql # DIV for integer division: 
query I rowsort label-166
SELECT DISTINCT + 27 DIV 37 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-166
SELECT DISTINCT + 27 / 37 AS col0
----
0

query I rowsort
SELECT ALL 53 * + 7
----
371

query I rowsort
SELECT 73 - 50 AS col1
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-169
SELECT ALL + CAST( - 60 AS SIGNED ) * + COUNT( * ) + + ( - - MIN( - + 65 ) ) * - MAX( - - 13 ) AS col1
----
785

skipif mysql # not compatible
query I rowsort label-169
SELECT ALL + CAST ( - 60 AS INTEGER ) * + COUNT ( * ) + + ( - - MIN ( - + 65 ) ) * - MAX ( - - 13 ) AS col1
----
785

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

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

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT - 7 col2
----
-7

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-182
SELECT 92 * + - 21 * COUNT( - - 29 )
----
-1932

skipif mysql # not compatible
query I rowsort label-182
SELECT 92 * + - 21 * COUNT ( - - 29 )
----
-1932

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

skipif mysql # not compatible
query II rowsort label-183
SELECT DISTINCT 55, CAST ( + COUNT ( * ) AS INTEGER ) * + 89 col0
----
55
89

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-185
SELECT + 17 - + COUNT( * ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-185
SELECT + 17 - + COUNT ( * ) AS col0
----
16

query II rowsort
SELECT - 42 - + 94 AS col1, 52
----
-136
52

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-191
SELECT CAST( AVG ( DISTINCT 52 ) AS SIGNED )
----
52

skipif mysql # not compatible
query I rowsort label-191
SELECT CAST ( AVG ( DISTINCT 52 ) AS INTEGER )
----
52

query I rowsort
SELECT + 25 * - 40 AS col1
----
-1000

onlyif mysql # DIV for integer division: 
query I rowsort label-193
SELECT ALL + 74 DIV + 69
----
1

skipif mysql # not compatible
query I rowsort label-193
SELECT ALL + 74 / + 69
----
1

query I rowsort
SELECT 96 * 81
----
7776

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

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

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

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

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

query I rowsort
SELECT 66 * 41 col1
----
2706

onlyif mysql # aggregate syntax: 
query I rowsort label-199
SELECT NULLIF ( - COUNT( * ), SUM( DISTINCT + ( - 25 ) ) * COUNT( * ) ) - + ( 97 )
----
-98

skipif mysql # not compatible
query I rowsort label-199
SELECT NULLIF ( - COUNT ( * ), SUM ( DISTINCT + ( - 25 ) ) * COUNT ( * ) ) - + ( 97 )
----
-98

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

skipif mysql # not compatible
query I rowsort label-200
SELECT - SUM ( DISTINCT 87 )
----
-87

query I rowsort
SELECT DISTINCT - 56 * 55 AS col0
----
-3080

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

skipif mysql # not compatible
query I rowsort label-202
SELECT 14 * COUNT ( * )
----
14

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT + 72 + - 46
----
26

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

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

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

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

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

query I rowsort
SELECT + 98 * 90 * 37
----
326340

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

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

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

query I rowsort
SELECT ALL 32 col2
----
32

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

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

query I rowsort
SELECT 92 * - + 65
----
-5980

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

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

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

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

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

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

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

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

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

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

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

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

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

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

query II rowsort
SELECT ALL 25 AS col0, 32
----
25
32

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

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

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

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

query I rowsort
SELECT + - 57 col1
----
-57

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

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

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

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

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

query II rowsort
SELECT + 82 * + 33 AS col0, 45 AS col2
----
2706
45

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - 52 * - 10 AS col0
----
520

query I rowsort
SELECT ALL - 8 + + 9
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-239
SELECT ALL - - CASE - 73 WHEN - + MAX( 35 ) THEN NULL WHEN COUNT( * ) THEN 71 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-239
SELECT ALL - - CASE - 73 WHEN - + MAX ( 35 ) THEN NULL WHEN COUNT ( * ) THEN 71 END col0
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-242
SELECT DISTINCT COUNT( * ) DIV + 17, COUNT( * ) AS col0
----
0
1

skipif mysql # not compatible
query II rowsort label-242
SELECT DISTINCT COUNT ( * ) / + 17, COUNT ( * ) AS col0
----
0
1

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

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

query I rowsort
SELECT DISTINCT + 8 * + 67 AS col1
----
536

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-251
SELECT - MIN( DISTINCT - 59 ) col2
----
59

skipif mysql # not compatible
query I rowsort label-251
SELECT - MIN ( DISTINCT - 59 ) col2
----
59

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

skipif mysql # not compatible
query I rowsort label-252
SELECT MAX ( ALL - CAST ( - 0 AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-253
SELECT - + COUNT( * ) + - 38 AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-253
SELECT - + COUNT ( * ) + - 38 AS col1
----
-39

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

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

query I rowsort
SELECT - 44 * + 97 AS col1
----
-4268

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-261
SELECT ALL - COUNT( * ) + - MIN( ALL + 46 ) col2
----
-47

skipif mysql # not compatible
query I rowsort label-261
SELECT ALL - COUNT ( * ) + - MIN ( ALL + 46 ) col2
----
-47

query I rowsort
SELECT ALL 45 * 82 AS col2
----
3690

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

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

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

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

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

skipif mysql # not compatible
query II rowsort label-265
SELECT - - CAST ( NULL AS INTEGER ) AS col1, - ( - 36 )
----
NULL
36

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

onlyif mysql # aggregate syntax: 
query I rowsort label-267
SELECT CASE - - COUNT( * ) WHEN - - 95 + + 20 * + 9 THEN + 60 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-267
SELECT CASE - - COUNT ( * ) WHEN - - 95 + + 20 * + 9 THEN + 60 ELSE NULL END
----
NULL

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-269
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - ( + - 69 ) + - - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-269
SELECT DISTINCT CAST ( NULL AS REAL ) * - ( + - 69 ) + - - 31
----
NULL

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

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

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

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

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

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

query I rowsort
SELECT - - 82 AS col1
----
82

query I rowsort
SELECT - - 27
----
27

query II rowsort
SELECT DISTINCT 75 AS col1, + 36
----
75
36

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

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

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

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

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

query I rowsort
SELECT 99 * 22
----
2178

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

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

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

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

query I rowsort
SELECT - 98 * + ( + + ( - 23 ) ) AS col1
----
2254

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-285
SELECT + CAST( - AVG ( + - 50 ) AS SIGNED ) * - 22
----
-1100

skipif mysql # not compatible
query I rowsort label-285
SELECT + CAST ( - AVG ( + - 50 ) AS INTEGER ) * - 22
----
-1100

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-290
SELECT ALL CAST( - 78 AS SIGNED ) + - - 83
----
5

skipif mysql # not compatible
query I rowsort label-290
SELECT ALL CAST ( - 78 AS INTEGER ) + - - 83
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-291
SELECT ALL - 72 DIV - COUNT( * ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-291
SELECT ALL - 72 / - COUNT ( * ) AS col1
----
72

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

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

query I rowsort
SELECT ALL + 30 + + + 53 - 38
----
45

query I rowsort
SELECT ALL - 68 * 73 AS col2
----
-4964

query I rowsort
SELECT 31 col1
----
31

query I rowsort
SELECT - NULLIF ( - 93, + - 51 ) AS col2
----
93

query I rowsort
SELECT ( 16 )
----
16

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

onlyif mysql # aggregate syntax: 
query I rowsort label-299
SELECT ALL SUM( 96 ) * + - 92 AS col2
----
-8832

skipif mysql # not compatible
query I rowsort label-299
SELECT ALL SUM ( 96 ) * + - 92 AS col2
----
-8832

onlyif mysql # DIV for integer division: 
query I rowsort label-300
SELECT + 99 DIV + 34
----
2

skipif mysql # not compatible
query I rowsort label-300
SELECT + 99 / + 34
----
2

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

skipif mysql # not compatible
query I rowsort label-301
SELECT DISTINCT CAST ( NULL AS INTEGER ) / 65
----
NULL

query I rowsort
SELECT - 9 * ( 25 ) AS col1
----
-225

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

query I rowsort
SELECT - 80 * + 80 AS col1
----
-6400

onlyif mysql # aggregate syntax: 
query II rowsort label-305
SELECT ALL + 73 col1, 87 * - COUNT( * ) * 36
----
73
-3132

skipif mysql # not compatible
query II rowsort label-305
SELECT ALL + 73 col1, 87 * - COUNT ( * ) * 36
----
73
-3132

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-309
SELECT DISTINCT MAX ( - ( CAST ( NULL AS REAL ) ) ) AS col0
----
NULL

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

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

query I rowsort
SELECT DISTINCT 26 * + 90
----
2340

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

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

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

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

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

query I rowsort
SELECT 43 * + + 62
----
2666

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

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

query I rowsort
SELECT - - 12 AS col0
----
12

query I rowsort
SELECT ALL - + 7 + 28 col0
----
21

query I rowsort
SELECT + 63 + + 59
----
122

query I rowsort
SELECT + 63 * 32
----
2016

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

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

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

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

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

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

query I rowsort
SELECT ALL 69 * - + 73
----
-5037

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

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

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

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

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

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

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

query I rowsort
SELECT + 69 * + 51 AS col2
----
3519

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

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

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

query I rowsort
SELECT 91 * - 11 AS col1
----
-1001

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-338
SELECT ALL - 50 DIV - 39 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-338
SELECT ALL - 50 / - 39 AS col1
----
1

query II rowsort
SELECT 77 * + 62, + 69 AS col1
----
4774
69

onlyif mysql # aggregate syntax: 
query I rowsort label-340
SELECT - MAX( - 77 ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-340
SELECT - MAX ( - 77 ) AS col1
----
77

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

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

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

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

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

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

query II rowsort
SELECT ALL + - 54, ( - 88 ) AS col1
----
-54
-88

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

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

query I rowsort
SELECT DISTINCT - 50 * 29 * 19 AS col0
----
-27550

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

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

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

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

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

query I rowsort
SELECT + 53 + 93 AS col0
----
146

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-354
SELECT MAX( - ( + 79 ) ) + - 66
----
-145

skipif mysql # not compatible
query I rowsort label-354
SELECT MAX ( - ( + 79 ) ) + - 66
----
-145

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

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

query I rowsort
SELECT 12 col1
----
12

query I rowsort
SELECT ALL 27 - + 2
----
25

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-361
SELECT DISTINCT - SUM ( 62 )
----
-62

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-364
SELECT - 50 * SUM( DISTINCT - 14 ) AS col0
----
700

skipif mysql # not compatible
query I rowsort label-364
SELECT - 50 * SUM ( DISTINCT - 14 ) AS col0
----
700

query I rowsort
SELECT + 34 * + ( 44 )
----
1496

onlyif mysql # DIV for integer division: 
query II rowsort label-366
SELECT + 20 DIV + 57, - 96 AS col2
----
0
-96

skipif mysql # not compatible
query II rowsort label-366
SELECT + 20 / + 57, - 96 AS col2
----
0
-96

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT 62 + - - 73
----
135

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL - ( - - 60 ) col0
----
-60

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

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

skipif mysql # not compatible
query II rowsort label-381
SELECT DISTINCT + ( - + COUNT ( * ) ) + - 58 AS col2, ( - CAST ( - COUNT ( * ) AS INTEGER ) ) AS col0
----
-59
1

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

query I rowsort
SELECT - ( + 52 ) + 98 col0
----
46

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

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

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

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

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

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

query I rowsort
SELECT + 55 + 62 AS col1
----
117

query I rowsort
SELECT 75 * + 15
----
1125

onlyif mysql # DIV for integer division: 
query I rowsort label-389
SELECT ALL - 4 DIV - 94
----
0

skipif mysql # not compatible
query I rowsort label-389
SELECT ALL - 4 / - 94
----
0

query I rowsort
SELECT ALL ( - - 18 ) + - - 9
----
27

query II rowsort
SELECT ALL - 61 col1, + 57
----
-61
57

onlyif mysql # aggregate syntax: 
query I rowsort label-392
SELECT 57 * + ( - 96 ) + - MAX( + 60 )
----
-5532

skipif mysql # not compatible
query I rowsort label-392
SELECT 57 * + ( - 96 ) + - MAX ( + 60 )
----
-5532

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-393
SELECT ALL 77 col1, - ( - CAST( NULL AS SIGNED ) ) * + COUNT( * )
----
77
NULL

skipif mysql # not compatible
query II rowsort label-393
SELECT ALL 77 col1, - ( - CAST ( NULL AS INTEGER ) ) * + COUNT ( * )
----
77
NULL

query I rowsort
SELECT ALL - 1 + - 24
----
-25

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

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

query I rowsort
SELECT ALL - 74 * - 48 AS col2
----
3552

query I rowsort
SELECT NULLIF ( - 72, - - 7 )
----
-72

query I rowsort
SELECT ALL - 4 col0
----
-4

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

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

query I rowsort
SELECT ALL + 1 + - 39 * + 43 AS col1
----
-1676

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

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

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

query I rowsort
SELECT 15 + + 99 AS col2
----
114

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

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

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

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

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

query I rowsort
SELECT ALL - 93 * + 88
----
-8184

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-411
SELECT + MIN( 22 ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-411
SELECT + MIN ( 22 ) AS col0
----
22

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

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

query I rowsort
SELECT ( - - 86 )
----
86

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-417
SELECT ALL + COUNT( * ) * 78 col0, + ( + 76 )
----
78
76

skipif mysql # not compatible
query II rowsort label-417
SELECT ALL + COUNT ( * ) * 78 col0, + ( + 76 )
----
78
76

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

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

skipif mysql # not compatible
query I rowsort label-419
SELECT ALL - SUM ( ALL - 54 )
----
54

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

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-426
SELECT 85 * + 54 + - COUNT( * )
----
4589

skipif mysql # not compatible
query I rowsort label-426
SELECT 85 * + 54 + - COUNT ( * )
----
4589

query I rowsort
SELECT ALL 52 * 95
----
4940

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

skipif mysql # not compatible
query I rowsort label-428
SELECT 41 * - COUNT ( * ) + 88 AS col0
----
47

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-431
SELECT + ( - 65 ) + COUNT ( * ) * 14 AS col2
----
-51

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

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

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

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

skipif mysql # not compatible
query I rowsort label-434
SELECT - ( 83 ) / COUNT ( * )
----
-83

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-440
SELECT DISTINCT + COUNT( * ) + - COALESCE ( - + ( 49 ), 98 ) * + 36 col1
----
1765

skipif mysql # not compatible
query I rowsort label-440
SELECT DISTINCT + COUNT ( * ) + - COALESCE ( - + ( 49 ), 98 ) * + 36 col1
----
1765

query II rowsort
SELECT ALL 56 AS col0, 6
----
56
6

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

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

query I rowsort
SELECT - 63 + + 93 AS col1
----
30

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

onlyif mysql # aggregate syntax: 
query I rowsort label-445
SELECT - SUM( ALL - - 54 ) col2
----
-54

skipif mysql # not compatible
query I rowsort label-445
SELECT - SUM ( ALL - - 54 ) col2
----
-54

query I rowsort
SELECT ALL 57 * + 13 AS col2
----
741

query I rowsort
SELECT ALL 6 col1
----
6

query I rowsort
SELECT DISTINCT + 38 * + 91 AS col1
----
3458

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-450
SELECT DISTINCT + SUM( ALL - - NULLIF ( - 85, - 87 ) ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-450
SELECT DISTINCT + SUM ( ALL - - NULLIF ( - 85, - 87 ) ) AS col1
----
-85

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT + + 75 + 96 AS col1
----
171

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-457
SELECT - CASE + COUNT( * ) WHEN + 9 THEN + COUNT( * ) WHEN - 48 THEN CAST( NULL AS SIGNED ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-457
SELECT - CASE + COUNT ( * ) WHEN + 9 THEN + COUNT ( * ) WHEN - 48 THEN CAST ( NULL AS INTEGER ) ELSE NULL END AS col2
----
NULL

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-460
SELECT - + 50, - 8 DIV 23 AS col2
----
-50
0

skipif mysql # not compatible
query II rowsort label-460
SELECT - + 50, - 8 / 23 AS col2
----
-50
0

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

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

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

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

query I rowsort
SELECT ALL - COALESCE ( - - 52, - ( + 49 ) ) AS col1
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-464
SELECT 71 * + CAST( + + COUNT( * ) AS SIGNED ) + - 75 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-464
SELECT 71 * + CAST ( + + COUNT ( * ) AS INTEGER ) + - 75 AS col0
----
-4

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

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

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

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

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

query I rowsort
SELECT 87 + 5
----
92

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

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

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

query I rowsort
SELECT ALL - 31 * - 19 col2
----
589

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

query II rowsort
SELECT - 12 AS col1, + 36 AS col0
----
-12
36

query I rowsort
SELECT ALL ( 6 ) * + 69
----
414

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

query II rowsort
SELECT ALL - 20 * - 91 AS col0, + 93
----
1820
93

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-480
SELECT ALL - COUNT( * ) + 82 * - 80 + - 11
----
-6572

skipif mysql # not compatible
query I rowsort label-480
SELECT ALL - COUNT ( * ) + 82 * - 80 + - 11
----
-6572

onlyif mysql # aggregate syntax: 
query I rowsort label-481
SELECT MAX( DISTINCT + - 1 ) + + + MIN( - - 75 )
----
74

skipif mysql # not compatible
query I rowsort label-481
SELECT MAX ( DISTINCT + - 1 ) + + + MIN ( - - 75 )
----
74

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-486
SELECT DISTINCT MAX( 52 ) + + 70
----
122

skipif mysql # not compatible
query I rowsort label-486
SELECT DISTINCT MAX ( 52 ) + + 70
----
122

query II rowsort
SELECT ALL - 31 AS col2, + 44
----
-31
44

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-489
SELECT MAX( 71 ) * - 55 col1
----
-3905

skipif mysql # not compatible
query I rowsort label-489
SELECT MAX ( 71 ) * - 55 col1
----
-3905

query I rowsort
SELECT ALL 10 * + 69 col0
----
690

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-493
SELECT 78, - CAST( NULL AS SIGNED ) AS col2
----
78
NULL

skipif mysql # not compatible
query II rowsort label-493
SELECT 78, - CAST ( NULL AS INTEGER ) AS col2
----
78
NULL

query I rowsort
SELECT ALL 54 - - + 7 AS col2
----
61

query I rowsort
SELECT + 75 * - 75 - - 95 col1
----
-5530

onlyif mysql # aggregate syntax: 
query II rowsort label-496
SELECT ALL 83 * - 43 col1, + ( + MAX( - 5 ) ) AS col2
----
-3569
-5

skipif mysql # not compatible
query II rowsort label-496
SELECT ALL 83 * - 43 col1, + ( + MAX ( - 5 ) ) AS col2
----
-3569
-5

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-499
SELECT 8 AS col2, - CAST( NULL AS SIGNED )
----
8
NULL

skipif mysql # not compatible
query II rowsort label-499
SELECT 8 AS col2, - CAST ( NULL AS INTEGER )
----
8
NULL

query I rowsort
SELECT - 81 col2
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-501
SELECT - ( - 95 ) + COUNT( * ) - 30 * 14
----
-324

skipif mysql # not compatible
query I rowsort label-501
SELECT - ( - 95 ) + COUNT ( * ) - 30 * 14
----
-324

query I rowsort
SELECT - 40 - - 40 AS col2
----
0

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

skipif mysql # not compatible
query I rowsort label-503
SELECT + COUNT ( + - ( - 0 ) ) / 99 AS col1
----
0

query I rowsort
SELECT + 68 * + 53 AS col0
----
3604

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

skipif mysql # not compatible
query I rowsort label-505
SELECT + SUM ( + + 34 )
----
34

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

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

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

query I rowsort
SELECT - 15 + 17 + - - 14
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-509
SELECT + 97 + + + CAST( 25 AS SIGNED )
----
122

skipif mysql # not compatible
query I rowsort label-509
SELECT + 97 + + + CAST ( 25 AS INTEGER )
----
122

query II rowsort
SELECT - 44 * 68, - ( + 93 ) AS col2
----
-2992
-93

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

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

skipif mysql # not compatible
query I rowsort label-512
SELECT 76 / + COUNT ( * ) col1
----
76

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

skipif mysql # not compatible
query I rowsort label-513
SELECT 83 + + CAST ( NULL AS INTEGER ) / - 44
----
NULL

query I rowsort
SELECT ALL - 21 col2
----
-21

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-518
SELECT ALL SUM( DISTINCT + 78 ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-518
SELECT ALL SUM ( DISTINCT + 78 ) AS col2
----
78

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

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

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

query I rowsort
SELECT DISTINCT + + 20 - + 68 AS col0
----
-48

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-523
SELECT DISTINCT + + COUNT( * ) - + ( 26 )
----
-25

skipif mysql # not compatible
query I rowsort label-523
SELECT DISTINCT + + COUNT ( * ) - + ( 26 )
----
-25

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-525
SELECT ALL + 9 * + CAST( - + COUNT( * ) AS SIGNED ) DIV + + 11 + + COUNT( * )
----
1

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-527
SELECT - NULLIF ( + 76, - COUNT( * ) * 16 ) AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-527
SELECT - NULLIF ( + 76, - COUNT ( * ) * 16 ) AS col1
----
-76

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

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

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

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

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

query I rowsort
SELECT DISTINCT 43 col0
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-533
SELECT + 54 DIV + 27 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-533
SELECT + 54 / + 27 AS col2
----
2

query I rowsort
SELECT 35 * - 46 AS col1
----
-1610

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

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

query I rowsort
SELECT DISTINCT - 97 * - + 78 * - 41 AS col0
----
-310206

query I rowsort
SELECT ALL 52 col2
----
52

query I rowsort
SELECT DISTINCT 9 col0
----
9

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL 90 - + 32 AS col2
----
58

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - 29 * 3
----
-87

query I rowsort
SELECT 47 * - 83 * 51 + - 0
----
-198951

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-560
SELECT DISTINCT - 39 + - 35 + - COUNT( - 25 ) AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-560
SELECT DISTINCT - 39 + - 35 + - COUNT ( - 25 ) AS col1
----
-75

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

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

query I rowsort
SELECT ALL 53 * - 66 AS col2
----
-3498

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-564
SELECT MIN( ALL + - 66 ) DIV + - 28 + 29
----
31

skipif mysql # not compatible
query I rowsort label-564
SELECT MIN ( ALL + - 66 ) / + - 28 + 29
----
31

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

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

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

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

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

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

query II rowsort
SELECT 8 AS col0, + 59 AS col1
----
8
59

query I rowsort
SELECT ALL - COALESCE ( - 42, - + 43 ) AS col1
----
42

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-571
SELECT 83 * - 31 - + COUNT( * ) AS col1
----
-2574

skipif mysql # not compatible
query I rowsort label-571
SELECT 83 * - 31 - + COUNT ( * ) AS col1
----
-2574

query I rowsort
SELECT + 36 * - 90 AS col2
----
-3240

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-576
SELECT MAX( 7 ) * 98 AS col1
----
686

skipif mysql # not compatible
query I rowsort label-576
SELECT MAX ( 7 ) * 98 AS col1
----
686

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

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

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

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

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

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

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

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

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

query II rowsort
SELECT ALL 31, 85 AS col2
----
31
85

onlyif mysql # aggregate syntax: 
query I rowsort label-584
SELECT DISTINCT SUM( + 79 ) * 45
----
3555

skipif mysql # not compatible
query I rowsort label-584
SELECT DISTINCT SUM ( + 79 ) * 45
----
3555

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-585
SELECT COUNT( * ) DIV + 1 + 82
----
83

skipif mysql # not compatible
query I rowsort label-585
SELECT COUNT ( * ) / + 1 + 82
----
83

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

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

query II rowsort
SELECT DISTINCT + 74 AS col1, 36 AS col2
----
74
36

onlyif mysql # aggregate syntax: 
query II rowsort label-588
SELECT ALL - 5 AS col0, - MIN( - 9 )
----
-5
9

skipif mysql # not compatible
query II rowsort label-588
SELECT ALL - 5 AS col0, - MIN ( - 9 )
----
-5
9

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-589
SELECT - 20 - 25 AS col0, CAST( NULL AS DECIMAL )
----
-45
NULL

skipif mysql # not compatible
query II rowsort label-589
SELECT - 20 - 25 AS col0, CAST ( NULL AS REAL )
----
-45
NULL

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

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

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

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

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

query I rowsort
SELECT 69 + - + 50 AS col2
----
19

query II rowsort
SELECT DISTINCT 95, - 51 AS col0
----
95
-51

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-599
SELECT + 7 + - - MIN( ALL + 75 ) * + COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-599
SELECT + 7 + - - MIN ( ALL + 75 ) * + COUNT ( * )
----
82

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-601
SELECT COUNT( * ), 31 * - COUNT( * ) * - - 22 AS col1
----
1
-682

skipif mysql # not compatible
query II rowsort label-601
SELECT COUNT ( * ), 31 * - COUNT ( * ) * - - 22 AS col1
----
1
-682

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

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

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

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

query I rowsort
SELECT NULLIF ( 63, - 27 )
----
63

query I rowsort
SELECT 98 - 11
----
87

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-608
SELECT 40 * - MAX( + 88 )
----
-3520

skipif mysql # not compatible
query I rowsort label-608
SELECT 40 * - MAX ( + 88 )
----
-3520

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

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

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

query I rowsort
SELECT DISTINCT 37 + + - 9 + + 29
----
57

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-618
SELECT MIN( DISTINCT - 32 ) AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-618
SELECT MIN ( DISTINCT - 32 ) AS col0
----
-32

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-632
SELECT ALL - SUM( 43 ) * - 54 AS col2
----
2322

skipif mysql # not compatible
query I rowsort label-632
SELECT ALL - SUM ( 43 ) * - 54 AS col2
----
2322

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

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

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-637
SELECT NULLIF ( + + 36, + 95 ) DIV - ( 34 )
----
-1

skipif mysql # not compatible
query I rowsort label-637
SELECT NULLIF ( + + 36, + 95 ) / - ( 34 )
----
-1

query I rowsort
SELECT ALL 54 + 63
----
117

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

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

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

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

query I rowsort
SELECT DISTINCT - - ( + 75 ) * - 15
----
-1125

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-642
SELECT ALL 25 DIV NULLIF ( + + ( COUNT( * ) ), - ( - - 46 ) ) col2
----
25

skipif mysql # not compatible
query I rowsort label-642
SELECT ALL 25 / NULLIF ( + + ( COUNT ( * ) ), - ( - - 46 ) ) col2
----
25

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

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

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

query I rowsort
SELECT DISTINCT - 78 + 51 AS col0
----
-27

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

skipif mysql # not compatible
query I rowsort label-647
SELECT ALL 60 + + - COUNT ( * ) AS col0
----
59

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-648
SELECT DISTINCT CAST( NULL AS DECIMAL ), + 75 * + 97 * + COUNT( * ) AS col1
----
NULL
7275

skipif mysql # not compatible
query II rowsort label-648
SELECT DISTINCT CAST ( NULL AS REAL ), + 75 * + 97 * + COUNT ( * ) AS col1
----
NULL
7275

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

query I rowsort
SELECT + - 30 - - 23
----
-7

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

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

query I rowsort
SELECT DISTINCT - 57 * + - 18
----
1026

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

query I rowsort
SELECT ALL - - 70
----
70

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

query I rowsort
SELECT + 11 * - + 72
----
-792

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-660
SELECT ALL MAX( DISTINCT 86 ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-660
SELECT ALL MAX ( DISTINCT 86 ) AS col2
----
86

query I rowsort
SELECT - 31 + - 41 * + 54 AS col1
----
-2245

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-664
SELECT ALL COUNT( * ), - 56 DIV + 79 AS col2
----
1
0

skipif mysql # not compatible
query II rowsort label-664
SELECT ALL COUNT ( * ), - 56 / + 79 AS col2
----
1
0

query I rowsort
SELECT + 77 - + + 42 AS col1
----
35

query I rowsort
SELECT + 32 * + 80 + - 82 AS col2
----
2478

query I rowsort
SELECT + 41 + + - 13
----
28

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

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

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

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

skipif mysql # not compatible
query I rowsort label-670
SELECT - ( + ( + - COUNT ( * ) ) ) / + 35 / - 1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-671
SELECT - 26 * + SUM( - 13 ) AS col0
----
338

skipif mysql # not compatible
query I rowsort label-671
SELECT - 26 * + SUM ( - 13 ) AS col0
----
338

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-673
SELECT ALL - CAST( + 73 AS SIGNED ) AS col1, + 77 + + - 17 AS col0
----
-73
60

skipif mysql # not compatible
query II rowsort label-673
SELECT ALL - CAST ( + 73 AS INTEGER ) AS col1, + 77 + + - 17 AS col0
----
-73
60

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-676
SELECT COUNT( * ) * 51 * + 30 + + COUNT( * ) * - 26 + 21 AS col2
----
1525

skipif mysql # not compatible
query I rowsort label-676
SELECT COUNT ( * ) * 51 * + 30 + + COUNT ( * ) * - 26 + 21 AS col2
----
1525

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-678
SELECT DISTINCT + 57 + - + COUNT( * ) col0
----
56

skipif mysql # not compatible
query I rowsort label-678
SELECT DISTINCT + 57 + - + COUNT ( * ) col0
----
56

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-681
SELECT - MAX( 22 ) col1
----
-22

skipif mysql # not compatible
query I rowsort label-681
SELECT - MAX ( 22 ) col1
----
-22

query I rowsort
SELECT DISTINCT - 19 col1
----
-19

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT - 34 * + 93 AS col0
----
-3162

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-690
SELECT DISTINCT + 80 + + COUNT( DISTINCT 79 ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-690
SELECT DISTINCT + 80 + + COUNT ( DISTINCT 79 ) AS col0
----
81

query I rowsort
SELECT ALL + 62 + 50
----
112

query I rowsort
SELECT 61 * - 80
----
-4880

query I rowsort
SELECT 86 * - 28
----
-2408

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-704
SELECT ALL 47 DIV ( + 80 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-704
SELECT ALL 47 / ( + 80 ) AS col1
----
0

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

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

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

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

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

query I rowsort
SELECT - 13 * - 93 col0
----
1209

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-709
SELECT + 75 DIV + 22 + + COUNT( * ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-709
SELECT + 75 / + 22 + + COUNT ( * ) AS col0
----
4

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-716
SELECT DISTINCT - - NULLIF ( - CAST( 38 AS SIGNED ), - 30 ) - MIN( DISTINCT + 26 )
----
-64

skipif mysql # not compatible
query I rowsort label-716
SELECT DISTINCT - - NULLIF ( - CAST ( 38 AS INTEGER ), - 30 ) - MIN ( DISTINCT + 26 )
----
-64

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

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

query I rowsort
SELECT DISTINCT + ( - 16 ) + 16
----
0

query I rowsort
SELECT 30 * + 74 * - 44
----
-97680

query I rowsort
SELECT 91 * + - 31 * + 36
----
-101556

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL 84 col2
----
84

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

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

query II rowsort
SELECT - - 64, + 43 col1
----
64
43

query I rowsort
SELECT + 85 * - - 55 AS col0
----
4675

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

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

query I rowsort
SELECT ALL - 56 + + 88 AS col2
----
32

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

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

query I rowsort
SELECT ALL - 82 * + - 45 col1
----
3690

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-739
SELECT + MIN( 42 ) - - + 82 AS col0
----
124

skipif mysql # not compatible
query I rowsort label-739
SELECT + MIN ( 42 ) - - + 82 AS col0
----
124

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

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

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

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

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

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

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

query I rowsort
SELECT + - 71 * + 22
----
-1562

query II rowsort
SELECT ALL 56 AS col2, 19
----
56
19

query I rowsort
SELECT 80 col0
----
80

query I rowsort
SELECT - - 39 * - 18 AS col2
----
-702

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

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

query I rowsort
SELECT - ( + + 19 ) * - 73 AS col1
----
1387

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

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

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

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

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

query II rowsort
SELECT DISTINCT 12 + - 40 AS col1, 85
----
-28
85

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

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

query I rowsort
SELECT DISTINCT + + ( NULLIF ( + 23, 55 ) )
----
23

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT 64 * + 80
----
5120

onlyif mysql # aggregate syntax: 
query I rowsort label-762
SELECT DISTINCT + - 6 * + SUM( + 19 ) col1
----
-114

skipif mysql # not compatible
query I rowsort label-762
SELECT DISTINCT + - 6 * + SUM ( + 19 ) col1
----
-114

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

onlyif mysql # aggregate syntax: 
query I rowsort label-764
SELECT - 46 * + - 88 * + COUNT( * ) AS col1
----
4048

skipif mysql # not compatible
query I rowsort label-764
SELECT - 46 * + - 88 * + COUNT ( * ) AS col1
----
4048

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

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

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

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

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

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

query I rowsort
SELECT + 58 * + - 38 col1
----
-2204

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-773
SELECT DISTINCT - ( ( - COUNT ( * ) ) )
----
1

query I rowsort
SELECT DISTINCT - 91 col0
----
-91

query I rowsort
SELECT 93 + 88 AS col0
----
181

query I rowsort
SELECT ALL ( 77 ) AS col2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-777
SELECT MIN( DISTINCT + + 9 ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-777
SELECT MIN ( DISTINCT + + 9 ) AS col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-778
SELECT 73 + - COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-778
SELECT 73 + - COUNT ( * )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-779
SELECT 18 - COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-779
SELECT 18 - COUNT ( * )
----
17

query I rowsort
SELECT DISTINCT - ( 53 ) col1
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-781
SELECT ALL - COUNT( * ) * + MIN( - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-781
SELECT ALL - COUNT ( * ) * + MIN ( - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-782
SELECT DISTINCT + SUM( DISTINCT - + 58 ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-782
SELECT DISTINCT + SUM ( DISTINCT - + 58 ) AS col2
----
-58

query I rowsort
SELECT ALL + ( + 55 )
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-784
SELECT ALL - 90 DIV COUNT( * ) AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-784
SELECT ALL - 90 / COUNT ( * ) AS col0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-785
SELECT DISTINCT - + COUNT( * ) * + + ( - 65 ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-785
SELECT DISTINCT - + COUNT ( * ) * + + ( - 65 ) AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-786
SELECT ALL - COUNT( * ) * - - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-786
SELECT ALL - COUNT ( * ) * - - COUNT ( * )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-787
SELECT ( - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-787
SELECT ( - + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ( + 40 ) AS col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-789
SELECT + 76 * COUNT( * )
----
76

skipif mysql # not compatible
query I rowsort label-789
SELECT + 76 * COUNT ( * )
----
76

query I rowsort
SELECT ALL + + 67 AS col2
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-791
SELECT ALL - CAST( + 53 AS SIGNED ) AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-791
SELECT ALL - CAST ( + 53 AS INTEGER ) AS col1
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-792
SELECT DISTINCT - 0 * CAST( NULL AS SIGNED ) * AVG ( DISTINCT - - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-792
SELECT DISTINCT - 0 * CAST ( NULL AS INTEGER ) * AVG ( DISTINCT - - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-793
SELECT - COUNT( - 88 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-793
SELECT - COUNT ( - 88 ) AS col0
----
-1

query I rowsort
SELECT DISTINCT - 95 * - 85
----
8075

onlyif mysql # aggregate syntax: 
query I rowsort label-795
SELECT ALL 17 * COUNT( * ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-795
SELECT ALL 17 * COUNT ( * ) AS col1
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-796
SELECT COUNT( * ) DIV + 83
----
0

skipif mysql # not compatible
query I rowsort label-796
SELECT COUNT ( * ) / + 83
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-797
SELECT 18 + - 66 + + COUNT( * ) AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-797
SELECT 18 + - 66 + + COUNT ( * ) AS col2
----
-47

query I rowsort
SELECT ALL + 19 - - + 11
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-799
SELECT DISTINCT + COUNT( * ) * COUNT( ALL - CAST( NULL AS SIGNED ) ) * 2 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-799
SELECT DISTINCT + COUNT ( * ) * COUNT ( ALL - CAST ( NULL AS INTEGER ) ) * 2 AS col2
----
0

query I rowsort
SELECT ALL - ( + ( + - 76 ) )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-801
SELECT + + MIN( ALL 75 ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-801
SELECT + + MIN ( ALL 75 ) AS col0
----
75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-802
SELECT DISTINCT - - CAST( NULL AS DECIMAL ) + + + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-802
SELECT DISTINCT - - CAST ( NULL AS REAL ) + + + 75
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-803
SELECT DISTINCT 42 + - - COUNT( DISTINCT - + 95 ) * + COUNT( * ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-803
SELECT DISTINCT 42 + - - COUNT ( DISTINCT - + 95 ) * + COUNT ( * ) AS col0
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-804
SELECT DISTINCT - 49 - + - ( + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-804
SELECT DISTINCT - 49 - + - ( + - CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT ALL 26 AS col0, 88
----
26
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-806
SELECT - MAX( ALL 37 ) * - 12 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-806
SELECT - MAX ( ALL 37 ) * - 12 + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-807
SELECT - 66 DIV - 85 col2
----
0

skipif mysql # not compatible
query I rowsort label-807
SELECT - 66 / - 85 col2
----
0

query I rowsort
SELECT + + 74 AS col1
----
74

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-809
SELECT ALL + ( + + CAST( NULL AS DECIMAL ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-809
SELECT ALL + ( + + CAST ( NULL AS REAL ) ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-810
SELECT - COUNT( * ) AS col1, - 4 * + 34 AS col2
----
-1
-136

skipif mysql # not compatible
query II rowsort label-810
SELECT - COUNT ( * ) AS col1, - 4 * + 34 AS col2
----
-1
-136

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-811
SELECT ALL CAST( - 71 AS SIGNED )
----
-71

skipif mysql # not compatible
query I rowsort label-811
SELECT ALL CAST ( - 71 AS INTEGER )
----
-71

query II rowsort
SELECT DISTINCT 72 AS col2, + 5 AS col2
----
72
5

query I rowsort
SELECT ALL 75 * + 43 AS col2
----
3225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-814
SELECT DISTINCT - CAST( + 15 AS SIGNED )
----
-15

skipif mysql # not compatible
query I rowsort label-814
SELECT DISTINCT - CAST ( + 15 AS INTEGER )
----
-15

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-815
SELECT ALL 34 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-815
SELECT ALL 34 * + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT - ( 80 ) AS col0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-817
SELECT ALL 3 * 19 + 26 + + COUNT( * ) * 35 AS col2
----
118

skipif mysql # not compatible
query I rowsort label-817
SELECT ALL 3 * 19 + 26 + + COUNT ( * ) * 35 AS col2
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-818
SELECT DISTINCT + COUNT( * ) * 61 AS col1
----
61

skipif mysql # not compatible
query I rowsort label-818
SELECT DISTINCT + COUNT ( * ) * 61 AS col1
----
61

query I rowsort
SELECT ALL + 78 * + - 69
----
-5382

query I rowsort
SELECT ( 90 ) AS col0
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-821
SELECT ALL 22 * COUNT( * ) DIV + 34 * + 63
----
0

skipif mysql # not compatible
query I rowsort label-821
SELECT ALL 22 * COUNT ( * ) / + 34 * + 63
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-822
SELECT ALL - 95 * + - COUNT( * ) col2
----
95

skipif mysql # not compatible
query I rowsort label-822
SELECT ALL - 95 * + - COUNT ( * ) col2
----
95

query I rowsort
SELECT 26 + + + 71 AS col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-824
SELECT - ( + + COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-824
SELECT - ( + + COUNT ( * ) ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-825
SELECT ALL 16 + - + CAST( 31 AS SIGNED ) - - 72 AS col2
----
57

skipif mysql # not compatible
query I rowsort label-825
SELECT ALL 16 + - + CAST ( 31 AS INTEGER ) - - 72 AS col2
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-826
SELECT + 98 DIV - 96 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-826
SELECT + 98 / - 96 AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-827
SELECT DISTINCT COUNT( * ) * - 46 DIV 14
----
-3

skipif mysql # not compatible
query I rowsort label-827
SELECT DISTINCT COUNT ( * ) * - 46 / 14
----
-3

query I rowsort
SELECT + 8 + - 24
----
-16

query I rowsort
SELECT DISTINCT + + 14 AS col2
----
14

query I rowsort
SELECT DISTINCT + 61 AS col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-831
SELECT DISTINCT + MIN( + 62 )
----
62

skipif mysql # not compatible
query I rowsort label-831
SELECT DISTINCT + MIN ( + 62 )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-832
SELECT ALL + COUNT( + + 15 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-832
SELECT ALL + COUNT ( + + 15 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-833
SELECT ALL + - COUNT( * ) * + COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-833
SELECT ALL + - COUNT ( * ) * + COUNT ( * ) AS col2
----
-1

query I rowsort
SELECT ALL + - 14 * - ( - 41 ) AS col2
----
-574

query I rowsort
SELECT - - 88 AS col1
----
88

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-836
SELECT + ( - - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-836
SELECT + ( - - CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-837
SELECT ALL - COUNT( * ) + + 14
----
13

skipif mysql # not compatible
query I rowsort label-837
SELECT ALL - COUNT ( * ) + + 14
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-838
SELECT 46 - MIN( + 43 ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-838
SELECT 46 - MIN ( + 43 ) AS col1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-839
SELECT CAST( NULL AS SIGNED ) * + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-839
SELECT CAST ( NULL AS INTEGER ) * + + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-840
SELECT DISTINCT + 97 * COUNT( * ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-840
SELECT DISTINCT + 97 * COUNT ( * ) AS col2
----
97

query I rowsort
SELECT - 68 * 89 AS col0
----
-6052

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-842
SELECT COUNT( * ) * ( - 14 ) DIV + + COUNT( * )
----
-14

skipif mysql # not compatible
query I rowsort label-842
SELECT COUNT ( * ) * ( - 14 ) / + + COUNT ( * )
----
-14

query I rowsort
SELECT 52 * + 31
----
1612

query I rowsort
SELECT 15 * + + 87
----
1305

onlyif mysql # aggregate syntax: 
query I rowsort label-845
SELECT - MAX( - + 13 )
----
13

skipif mysql # not compatible
query I rowsort label-845
SELECT - MAX ( - + 13 )
----
13

query I rowsort
SELECT ALL ( + 44 ) AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-847
SELECT ( + - ( + COUNT( * ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-847
SELECT ( + - ( + COUNT ( * ) ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-848
SELECT ( ( + ( COUNT( * ) ) ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-848
SELECT ( ( + ( COUNT ( * ) ) ) ) AS col1
----
1

query I rowsort
SELECT + ( ( - + 85 ) )
----
-85

query II rowsort
SELECT DISTINCT + - 57 col2, - 70
----
-57
-70

query I rowsort
SELECT - - 89 AS col1
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-852
SELECT DISTINCT + + 10 DIV - 93 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-852
SELECT DISTINCT + + 10 / - 93 AS col2
----
0

query I rowsort
SELECT - 1 * - - 27
----
-27

query I rowsort
SELECT ALL + 90 + - + 95 col0
----
-5

query II rowsort
SELECT + + 39, 28 AS col1
----
39
28

query II rowsort
SELECT 50, 3 AS col2
----
50
3

query I rowsort
SELECT + + ( - 56 ) AS col0
----
-56

query I rowsort
SELECT DISTINCT 92 * 97
----
8924

onlyif mysql # DIV for integer division: 
query I rowsort label-859
SELECT 30 DIV + 86
----
0

skipif mysql # not compatible
query I rowsort label-859
SELECT 30 / + 86
----
0

query I rowsort
SELECT 37 - - 14
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-861
SELECT - MIN( - - 34 ) AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-861
SELECT - MIN ( - - 34 ) AS col0
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-862
SELECT ALL + + ( + CAST( + 21 AS SIGNED ) )
----
21

skipif mysql # not compatible
query I rowsort label-862
SELECT ALL + + ( + CAST ( + 21 AS INTEGER ) )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-863
SELECT - COUNT( + 12 ) + - + 68
----
-69

skipif mysql # not compatible
query I rowsort label-863
SELECT - COUNT ( + 12 ) + - + 68
----
-69

query I rowsort
SELECT - 36 + + 66
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-865
SELECT MIN( DISTINCT + + CAST( + 46 AS SIGNED ) ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-865
SELECT MIN ( DISTINCT + + CAST ( + 46 AS INTEGER ) ) AS col1
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-866
SELECT ALL - + CAST( NULL AS SIGNED ) * + 8 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-866
SELECT ALL - + CAST ( NULL AS INTEGER ) * + 8 AS col1
----
NULL

query I rowsort
SELECT ALL + - 42 col1
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-868
SELECT DISTINCT + + ( + COUNT( * ) ), 97 * - 83 AS col2
----
1
-8051

skipif mysql # not compatible
query II rowsort label-868
SELECT DISTINCT + + ( + COUNT ( * ) ), 97 * - 83 AS col2
----
1
-8051

query I rowsort
SELECT + + 58
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-870
SELECT + SUM( - - 65 ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-870
SELECT + SUM ( - - 65 ) AS col2
----
65

query I rowsort
SELECT 47 + - 93 AS col2
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-872
SELECT COUNT( * ) col1, + COUNT( * ) * + 56 AS col0
----
1
56

skipif mysql # not compatible
query II rowsort label-872
SELECT COUNT ( * ) col1, + COUNT ( * ) * + 56 AS col0
----
1
56

query I rowsort
SELECT ALL ( - 42 )
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-874
SELECT ALL - - COUNT( * ), + COUNT( * ) AS col0
----
1
1

skipif mysql # not compatible
query II rowsort label-874
SELECT ALL - - COUNT ( * ), + COUNT ( * ) AS col0
----
1
1

query I rowsort
SELECT ALL 77 + 81 AS col0
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-876
SELECT DISTINCT + COUNT( * ) * - 83 col1
----
-83

skipif mysql # not compatible
query I rowsort label-876
SELECT DISTINCT + COUNT ( * ) * - 83 col1
----
-83

query I rowsort
SELECT ALL 63 col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-878
SELECT COUNT( DISTINCT + + ( + 42 ) )
----
1

skipif mysql # not compatible
query I rowsort label-878
SELECT COUNT ( DISTINCT + + ( + 42 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-879
SELECT + 57 - COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-879
SELECT + 57 - COUNT ( * )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-880
SELECT - + COUNT( * ) + - 80 AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-880
SELECT - + COUNT ( * ) + - 80 AS col2
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-881
SELECT - SUM( ALL - 26 ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-881
SELECT - SUM ( ALL - 26 ) AS col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-882
SELECT DISTINCT + ( + NULLIF ( + - 75, + 65 * - COUNT( * ) ) ) col2
----
-75

skipif mysql # not compatible
query I rowsort label-882
SELECT DISTINCT + ( + NULLIF ( + - 75, + 65 * - COUNT ( * ) ) ) col2
----
-75

query I rowsort
SELECT ( + 97 )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-884
SELECT ( - + COUNT( * ) ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-884
SELECT ( - + COUNT ( * ) ) col1
----
-1

query I rowsort
SELECT - ( - 26 ) + + - 42 AS col1
----
-16

query I rowsort
SELECT DISTINCT 26 AS col1
----
26

query I rowsort
SELECT DISTINCT + 42 + + 6
----
48

query I rowsort
SELECT ALL 70 + + ( - 91 ) AS col2
----
-21

query I rowsort
SELECT + 90 * 80 AS col0
----
7200

onlyif mysql # aggregate syntax: 
query I rowsort label-890
SELECT - 30 + COUNT( * ) - - + 1 * + 81 AS col2
----
52

skipif mysql # not compatible
query I rowsort label-890
SELECT - 30 + COUNT ( * ) - - + 1 * + 81 AS col2
----
52

query I rowsort
SELECT 74 + + ( 35 ) AS col1
----
109

query I rowsort
SELECT ALL 6 * + - 9 col2
----
-54

query I rowsort
SELECT ALL - 9 + 66 col0
----
57

query I rowsort
SELECT DISTINCT ( - ( + + 98 ) )
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-895
SELECT + CAST( + 24 AS SIGNED )
----
24

skipif mysql # not compatible
query I rowsort label-895
SELECT + CAST ( + 24 AS INTEGER )
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-896
SELECT - 63 * - COUNT( * ) DIV - + 88 - 76
----
-76

skipif mysql # not compatible
query I rowsort label-896
SELECT - 63 * - COUNT ( * ) / - + 88 - 76
----
-76

query I rowsort
SELECT + + 23 AS col2
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-898
SELECT DISTINCT - 37 DIV COUNT( * )
----
-37

skipif mysql # not compatible
query I rowsort label-898
SELECT DISTINCT - 37 / COUNT ( * )
----
-37

query I rowsort
SELECT ALL ( - ( - 20 ) ) col2
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-900
SELECT + ( - CAST( COUNT( + 60 ) AS SIGNED ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-900
SELECT + ( - CAST ( COUNT ( + 60 ) AS INTEGER ) ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-901
SELECT DISTINCT 8 DIV 91 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-901
SELECT DISTINCT 8 / 91 AS col1
----
0

query I rowsort
SELECT DISTINCT - - 75 AS col1
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-903
SELECT 34 - COUNT( * ), - NULLIF ( + - 81, - ( - + 1 ) ) AS col1
----
33
81

skipif mysql # not compatible
query II rowsort label-903
SELECT 34 - COUNT ( * ), - NULLIF ( + - 81, - ( - + 1 ) ) AS col1
----
33
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-904
SELECT ALL - CAST( - - 37 AS SIGNED ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-904
SELECT ALL - CAST ( - - 37 AS INTEGER ) AS col1
----
-37

query I rowsort
SELECT ALL + 53 + - - 73
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-906
SELECT + MAX( ALL - 55 )
----
-55

skipif mysql # not compatible
query I rowsort label-906
SELECT + MAX ( ALL - 55 )
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-907
SELECT NULLIF ( COUNT( * ), + 84 - - - ( + 24 ) ) * - 41 col0
----
-41

skipif mysql # not compatible
query I rowsort label-907
SELECT NULLIF ( COUNT ( * ), + 84 - - - ( + 24 ) ) * - 41 col0
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-908
SELECT + CAST( 13 AS SIGNED )
----
13

skipif mysql # not compatible
query I rowsort label-908
SELECT + CAST ( 13 AS INTEGER )
----
13

query I rowsort
SELECT DISTINCT + 48 AS col2
----
48

query I rowsort
SELECT ALL 82 - 63 AS col2
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-911
SELECT - COUNT( * ), - 86 AS col2
----
-1
-86

skipif mysql # not compatible
query II rowsort label-911
SELECT - COUNT ( * ), - 86 AS col2
----
-1
-86

query I rowsort
SELECT ALL ( 23 ) AS col1
----
23

query II rowsort
SELECT ALL 88, - 39 AS col0
----
88
-39

query II rowsort
SELECT - 39, 33 AS col1
----
-39
33

query II rowsort
SELECT - 65 AS col1, 19 AS col1
----
-65
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-916
SELECT DISTINCT + CAST( - ( + 64 ) AS SIGNED )
----
-64

skipif mysql # not compatible
query I rowsort label-916
SELECT DISTINCT + CAST ( - ( + 64 ) AS INTEGER )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-917
SELECT - 81 + - MIN( + ( 89 ) )
----
-170

skipif mysql # not compatible
query I rowsort label-917
SELECT - 81 + - MIN ( + ( 89 ) )
----
-170

query I rowsort
SELECT + ( - - 52 )
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-919
SELECT DISTINCT - - ( + - 73 ) AS col1, COUNT( * ) AS col2
----
-73
1

skipif mysql # not compatible
query II rowsort label-919
SELECT DISTINCT - - ( + - 73 ) AS col1, COUNT ( * ) AS col2
----
-73
1

onlyif mysql # aggregate syntax: 
query I rowsort label-920
SELECT ALL - SUM( 79 ) AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-920
SELECT ALL - SUM ( 79 ) AS col0
----
-79

query I rowsort
SELECT DISTINCT - ( 53 ) col2
----
-53

query I rowsort
SELECT DISTINCT - 16 + 38
----
22

query I rowsort
SELECT - 82 col2
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-924
SELECT ALL - 99 * - COUNT( * ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-924
SELECT ALL - 99 * - COUNT ( * ) AS col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-925
SELECT SUM( 82 )
----
82

skipif mysql # not compatible
query I rowsort label-925
SELECT SUM ( 82 )
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-926
SELECT ALL 6 DIV + 24 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-926
SELECT ALL 6 / + 24 AS col0
----
0

query I rowsort
SELECT ALL 70 * - 91
----
-6370

onlyif mysql # aggregate syntax: 
query I rowsort label-928
SELECT + MIN( DISTINCT 50 ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-928
SELECT + MIN ( DISTINCT 50 ) AS col2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-929
SELECT + COUNT( * ) + 76
----
77

skipif mysql # not compatible
query I rowsort label-929
SELECT + COUNT ( * ) + 76
----
77

query I rowsort
SELECT - ( 2 ) * 72
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-931
SELECT COUNT( ( 35 ) )
----
1

skipif mysql # not compatible
query I rowsort label-931
SELECT COUNT ( ( 35 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-932
SELECT DISTINCT + 20 * COUNT( * ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-932
SELECT DISTINCT + 20 * COUNT ( * ) AS col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-933
SELECT ( SUM( - 54 ) )
----
-54

skipif mysql # not compatible
query I rowsort label-933
SELECT ( SUM ( - 54 ) )
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-934
SELECT ALL COUNT( * ) * + 67 + - COUNT( * )
----
66

skipif mysql # not compatible
query I rowsort label-934
SELECT ALL COUNT ( * ) * + 67 + - COUNT ( * )
----
66

query I rowsort
SELECT - 40 * + - 47
----
1880

query I rowsort
SELECT ALL 4 * - + 77
----
-308

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-937
SELECT ALL + + 39 * - - CAST( NULL AS SIGNED ) - 35 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-937
SELECT ALL + + 39 * - - CAST ( NULL AS INTEGER ) - 35 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-938
SELECT + + 3 DIV 13
----
0

skipif mysql # not compatible
query I rowsort label-938
SELECT + + 3 / 13
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-939
SELECT ALL - ( - + COUNT( * ) ) + + - COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-939
SELECT ALL - ( - + COUNT ( * ) ) + + - COUNT ( * ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-940
SELECT 84 * + + COUNT( * ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-940
SELECT 84 * + + COUNT ( * ) AS col0
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-941
SELECT + CAST( NULL AS SIGNED ) * ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-941
SELECT + CAST ( NULL AS INTEGER ) * ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-942
SELECT ALL + ( + NULLIF ( + - 58, + ( + ( 69 ) ) ) ) + - ( CAST( NULL AS SIGNED ) ) / - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-942
SELECT ALL + ( + NULLIF ( + - 58, + ( + ( 69 ) ) ) ) + - ( CAST ( NULL AS INTEGER ) ) / - COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-943
SELECT ALL + 16 * - CAST( NULL AS DECIMAL ) * COUNT( DISTINCT + 86 )
----
NULL

skipif mysql # not compatible
query I rowsort label-943
SELECT ALL + 16 * - CAST ( NULL AS REAL ) * COUNT ( DISTINCT + 86 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-944
SELECT ALL + 26 DIV - 69 * ( COUNT( * ) ) + - 22 AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-944
SELECT ALL + 26 / - 69 * ( COUNT ( * ) ) + - 22 AS col2
----
-22

query I rowsort
SELECT + + ( + 20 )
----
20

query I rowsort
SELECT ( + ( + 10 ) ) AS col1
----
10

query I rowsort
SELECT + 53 + - 76 AS col0
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-948
SELECT DISTINCT 46 DIV - COUNT( * ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-948
SELECT DISTINCT 46 / - COUNT ( * ) AS col2
----
-46

query I rowsort
SELECT + ( 44 ) AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-950
SELECT DISTINCT - COUNT( * ) * + MAX( + + 87 )
----
-87

skipif mysql # not compatible
query I rowsort label-950
SELECT DISTINCT - COUNT ( * ) * + MAX ( + + 87 )
----
-87

query I rowsort
SELECT - 47 + + - 64
----
-111

query II rowsort
SELECT 26 AS col0, - 38 * - - 79
----
26
-3002

onlyif mysql # aggregate syntax: 
query I rowsort label-953
SELECT + COUNT( * ) * + MIN( 94 ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-953
SELECT + COUNT ( * ) * + MIN ( 94 ) AS col2
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-954
SELECT DISTINCT CAST( + ( + - 90 ) AS SIGNED ) AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-954
SELECT DISTINCT CAST ( + ( + - 90 ) AS INTEGER ) AS col1
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-955
SELECT - SUM( + 0 )
----
0

skipif mysql # not compatible
query I rowsort label-955
SELECT - SUM ( + 0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-956
SELECT ALL - 74 + - + ( + + COUNT( * ) )
----
-75

skipif mysql # not compatible
query I rowsort label-956
SELECT ALL - 74 + - + ( + + COUNT ( * ) )
----
-75

query I rowsort
SELECT DISTINCT - - 65 - - 14 * 88 AS col1
----
1297

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-958
SELECT DISTINCT + + CAST( - + 38 AS SIGNED ) DIV - 61
----
0

skipif mysql # not compatible
query I rowsort label-958
SELECT DISTINCT + + CAST ( - + 38 AS INTEGER ) / - 61
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-959
SELECT ALL + - 23 DIV - COUNT( * ) + - 1
----
22

skipif mysql # not compatible
query I rowsort label-959
SELECT ALL + - 23 / - COUNT ( * ) + - 1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-960
SELECT 79 + + + COUNT( * ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-960
SELECT 79 + + + COUNT ( * ) AS col2
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-961
SELECT 13 DIV + - 11 * + + COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-961
SELECT 13 / + - 11 * + + COUNT ( * ) AS col2
----
-1

query I rowsort
SELECT + - ( - + 97 )
----
97

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-963
SELECT ALL CAST( + 27 AS SIGNED ) DIV + 18 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-963
SELECT ALL CAST ( + 27 AS INTEGER ) / + 18 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-964
SELECT ALL + COUNT( * ) + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-964
SELECT ALL + COUNT ( * ) + - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-965
SELECT DISTINCT - COUNT( * ) * - 90
----
90

skipif mysql # not compatible
query I rowsort label-965
SELECT DISTINCT - COUNT ( * ) * - 90
----
90

query I rowsort
SELECT + + 11 + - + 73 AS col0
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-967
SELECT DISTINCT - 39 DIV ( + - 4 )
----
9

skipif mysql # not compatible
query I rowsort label-967
SELECT DISTINCT - 39 / ( + - 4 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-968
SELECT - SUM( + 75 ) AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-968
SELECT - SUM ( + 75 ) AS col1
----
-75

query I rowsort
SELECT DISTINCT 53 col0
----
53

query I rowsort
SELECT - + 57 * ( + 0 ) col0
----
0

query I rowsort
SELECT ALL + + 90 AS col0
----
90

query I rowsort
SELECT ( 75 )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-973
SELECT DISTINCT SUM( ALL - 60 ) * 80 AS col1
----
-4800

skipif mysql # not compatible
query I rowsort label-973
SELECT DISTINCT SUM ( ALL - 60 ) * 80 AS col1
----
-4800

query I rowsort
SELECT + 24 col2
----
24

query I rowsort
SELECT 32 * + 19
----
608

onlyif mysql # DIV for integer division: 
query I rowsort label-976
SELECT + 28 DIV - 26
----
-1

skipif mysql # not compatible
query I rowsort label-976
SELECT + 28 / - 26
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-977
SELECT COUNT( ALL 47 )
----
1

skipif mysql # not compatible
query I rowsort label-977
SELECT COUNT ( ALL 47 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-978
SELECT - - 70 + + MIN( 57 )
----
127

skipif mysql # not compatible
query I rowsort label-978
SELECT - - 70 + + MIN ( 57 )
----
127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-979
SELECT DISTINCT CAST( + + COUNT( * ) AS SIGNED ) col0
----
1

skipif mysql # not compatible
query I rowsort label-979
SELECT DISTINCT CAST ( + + COUNT ( * ) AS INTEGER ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-980
SELECT ( COUNT( DISTINCT 85 ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-980
SELECT ( COUNT ( DISTINCT 85 ) ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-981
SELECT DISTINCT + COUNT( * ) * - 4 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-981
SELECT DISTINCT + COUNT ( * ) * - 4 AS col1
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-982
SELECT + COUNT( * ), + COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-982
SELECT + COUNT ( * ), + COUNT ( * )
----
1
1

query I rowsort
SELECT DISTINCT + 48 col1
----
48

query I rowsort
SELECT ( 10 ) AS col2
----
10

query I rowsort
SELECT + 44 * 14
----
616

query I rowsort
SELECT ALL 27 * + - 72
----
-1944

query II rowsort
SELECT - + 72 AS col1, + 73 * + ( + 67 )
----
-72
4891

onlyif mysql # aggregate syntax: 
query I rowsort label-988
SELECT ( - COUNT( * ) ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-988
SELECT ( - COUNT ( * ) ) col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-989
SELECT 48 / CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-989
SELECT 48 / CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-990
SELECT DISTINCT - - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-990
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT ALL 0 + + 38 AS col0
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-992
SELECT CAST( NULL AS SIGNED ) + - ( - ( - 34 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-992
SELECT CAST ( NULL AS INTEGER ) + - ( - ( - 34 ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-993
SELECT ALL ( + 89 ) AS col2, CAST( - - 74 AS SIGNED ) * - 36
----
89
-2664

skipif mysql # not compatible
query II rowsort label-993
SELECT ALL ( + 89 ) AS col2, CAST ( - - 74 AS INTEGER ) * - 36
----
89
-2664

query I rowsort
SELECT 16 * - + 72 AS col1
----
-1152

onlyif mysql # aggregate syntax: 
query I rowsort label-995
SELECT ALL - MIN( - 39 )
----
39

skipif mysql # not compatible
query I rowsort label-995
SELECT ALL - MIN ( - 39 )
----
39

query I rowsort
SELECT DISTINCT 98 + - 48
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-997
SELECT + ( MIN( + 2 ) )
----
2

skipif mysql # not compatible
query I rowsort label-997
SELECT + ( MIN ( + 2 ) )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-998
SELECT - ( COUNT( * ) ) * - - 80 AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-998
SELECT - ( COUNT ( * ) ) * - - 80 AS col2
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-999
SELECT + 11 * + COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-999
SELECT + 11 * + COUNT ( * )
----
11

query I rowsort
SELECT + 75 - - 48 AS col0
----
123

query I rowsort
SELECT NULLIF ( + 83, + 79 )
----
83

query I rowsort
SELECT + - ( - - 5 ) * + 54 AS col2
----
-270

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1003
SELECT ALL + CAST( NULL AS SIGNED ) + + + MAX( ALL + ( - 56 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1003
SELECT ALL + CAST ( NULL AS INTEGER ) + + + MAX ( ALL + ( - 56 ) )
----
NULL

query I rowsort
SELECT ALL ( - - 44 ) AS col2
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1005
SELECT + CAST( - COUNT( * ) AS SIGNED ) * + COUNT( * ) + - - 96 * 23
----
2207

skipif mysql # not compatible
query I rowsort label-1005
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) * + COUNT ( * ) + - - 96 * 23
----
2207

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1006
SELECT + + 63 * CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1006
SELECT + + 63 * CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT ALL + + 71 col2
----
71

query I rowsort
SELECT ALL + ( - 22 )
----
-22

query I rowsort
SELECT + 70 + - 60
----
10

query I rowsort
SELECT 63 * + 14
----
882

query I rowsort
SELECT + - 12
----
-12

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1012
SELECT CAST( NULL AS DECIMAL ) + - 22 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1012
SELECT CAST ( NULL AS REAL ) + - 22 AS col0
----
NULL

query I rowsort
SELECT ALL + 79 - + - 34 AS col1
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-1014
SELECT ALL MIN( DISTINCT - + 54 ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-1014
SELECT ALL MIN ( DISTINCT - + 54 ) AS col2
----
-54

query I rowsort
SELECT - ( - 85 ) col1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1016
SELECT MAX( DISTINCT 74 ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-1016
SELECT MAX ( DISTINCT 74 ) AS col1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1017
SELECT - 69 * COUNT( * ) AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-1017
SELECT - 69 * COUNT ( * ) AS col2
----
-69

query I rowsort
SELECT ALL + ( + + 25 )
----
25

query I rowsort
SELECT DISTINCT 9 * 7 col1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-1020
SELECT MIN( ALL - + 34 )
----
-34

skipif mysql # not compatible
query I rowsort label-1020
SELECT MIN ( ALL - + 34 )
----
-34

query I rowsort
SELECT + 27 + - 82
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-1022
SELECT ALL 73 + + COUNT( * ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-1022
SELECT ALL 73 + + COUNT ( * ) AS col1
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1023
SELECT DISTINCT - ( - CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1023
SELECT DISTINCT - ( - CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT - 76 + + 9
----
-67

query I rowsort
SELECT ALL + 3 - - 13
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1026
SELECT + SUM( ALL + - 79 )
----
-79

skipif mysql # not compatible
query I rowsort label-1026
SELECT + SUM ( ALL + - 79 )
----
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-1027
SELECT 70 + + - 3 DIV - 82 AS col1
----
70

skipif mysql # not compatible
query I rowsort label-1027
SELECT 70 + + - 3 / - 82 AS col1
----
70

query II rowsort
SELECT ALL - 21 AS col1, 27
----
-21
27

onlyif mysql # aggregate syntax: 
query I rowsort label-1029
SELECT 59 * + COUNT( * )
----
59

skipif mysql # not compatible
query I rowsort label-1029
SELECT 59 * + COUNT ( * )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1030
SELECT COUNT( DISTINCT 5 )
----
1

skipif mysql # not compatible
query I rowsort label-1030
SELECT COUNT ( DISTINCT 5 )
----
1

query I rowsort
SELECT DISTINCT + 90 + + 0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1032
SELECT - + COUNT( - 25 )
----
-1

skipif mysql # not compatible
query I rowsort label-1032
SELECT - + COUNT ( - 25 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1033
SELECT DISTINCT - COUNT( * ) * - 32 + + - COUNT( DISTINCT + 98 )
----
31

skipif mysql # not compatible
query I rowsort label-1033
SELECT DISTINCT - COUNT ( * ) * - 32 + + - COUNT ( DISTINCT + 98 )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1034
SELECT ALL + MIN( 55 ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-1034
SELECT ALL + MIN ( 55 ) AS col2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1035
SELECT + COALESCE ( - - COUNT( * ), - + 69 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1035
SELECT + COALESCE ( - - COUNT ( * ), - + 69 ) AS col1
----
1

query I rowsort
SELECT ( + - 1 )
----
-1

query I rowsort
SELECT ( - - 54 ) col1
----
54

query I rowsort
SELECT + ( + 4 ) col1
----
4

query I rowsort
SELECT ALL 13 * 33 * + 88 AS col0
----
37752

onlyif mysql # aggregate syntax: 
query I rowsort label-1040
SELECT - COUNT( * ) * + 74 * + + COUNT( * ) AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-1040
SELECT - COUNT ( * ) * + 74 * + + COUNT ( * ) AS col1
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-1041
SELECT + + COUNT( * ) + 44 col0
----
45

skipif mysql # not compatible
query I rowsort label-1041
SELECT + + COUNT ( * ) + 44 col0
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1042
SELECT ALL - 43 + + COUNT( * ) * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1042
SELECT ALL - 43 + + COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 78 AS col2
----
-78

query I rowsort
SELECT ALL - + ( + + 53 )
----
-53

query I rowsort
SELECT ALL 39 * 66
----
2574

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1046
SELECT COUNT( * ) DIV + 49 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1046
SELECT COUNT ( * ) / + 49 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1047
SELECT ALL + COUNT( * ) DIV 40
----
0

skipif mysql # not compatible
query I rowsort label-1047
SELECT ALL + COUNT ( * ) / 40
----
0

query I rowsort
SELECT 12 - 48 AS col0
----
-36

query I rowsort
SELECT ALL 98 * - 2 AS col0
----
-196

onlyif mysql # aggregate syntax: 
query I rowsort label-1050
SELECT - 89 * - COUNT( * ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-1050
SELECT - 89 * - COUNT ( * ) AS col1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-1051
SELECT ALL + SUM( + 1 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1051
SELECT ALL + SUM ( + 1 ) AS col2
----
1

query I rowsort
SELECT + + 51 + - 61
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-1053
SELECT ALL ( SUM( DISTINCT + 1 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1053
SELECT ALL ( SUM ( DISTINCT + 1 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1054
SELECT + COUNT( * ) * - - 49 AS col2
----
49

skipif mysql # not compatible
query I rowsort label-1054
SELECT + COUNT ( * ) * - - 49 AS col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-1055
SELECT SUM( ALL + - 69 )
----
-69

skipif mysql # not compatible
query I rowsort label-1055
SELECT SUM ( ALL + - 69 )
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1056
SELECT ALL - CAST( NULL AS SIGNED ) * + 74 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1056
SELECT ALL - CAST ( NULL AS INTEGER ) * + 74 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1057
SELECT + ( - 64 ) * 7 + ( COUNT( * ) )
----
-447

skipif mysql # not compatible
query I rowsort label-1057
SELECT + ( - 64 ) * 7 + ( COUNT ( * ) )
----
-447

query I rowsort
SELECT DISTINCT 80 - + 94 AS col0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-1059
SELECT ALL - - ( + COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1059
SELECT ALL - - ( + COUNT ( * ) ) AS col2
----
1

query I rowsort
SELECT ALL - - 20 col2
----
20

query I rowsort
SELECT DISTINCT 10 * + 47
----
470

query I rowsort
SELECT DISTINCT 25 AS col2
----
25

query I rowsort
SELECT DISTINCT 84 col1
----
84

query I rowsort
SELECT + ( + 79 ) AS col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1065
SELECT - 44 - - COUNT( * ) + - - COUNT( * )
----
-42

skipif mysql # not compatible
query I rowsort label-1065
SELECT - 44 - - COUNT ( * ) + - - COUNT ( * )
----
-42

query I rowsort
SELECT ALL ( - + 80 )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-1067
SELECT ALL + COUNT( - ( + 34 ) )
----
1

skipif mysql # not compatible
query I rowsort label-1067
SELECT ALL + COUNT ( - ( + 34 ) )
----
1

query II rowsort
SELECT + 86 AS col1, 60 AS col0
----
86
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1069
SELECT ALL - 65 * - 85 + 40 + + - COUNT( * ) AS col2
----
5564

skipif mysql # not compatible
query I rowsort label-1069
SELECT ALL - 65 * - 85 + 40 + + - COUNT ( * ) AS col2
----
5564

onlyif mysql # aggregate syntax: 
query I rowsort label-1070
SELECT ALL - COUNT( ALL - 83 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-1070
SELECT ALL - COUNT ( ALL - 83 ) col0
----
-1

query I rowsort
SELECT 92 * 85 AS col1
----
7820

query I rowsort
SELECT DISTINCT + 84 + - 57 AS col1
----
27

query I rowsort
SELECT 38 * - 95 AS col2
----
-3610

query I rowsort
SELECT DISTINCT - ( + - 80 )
----
80

query I rowsort
SELECT ALL ( + 42 )
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1076
SELECT - - ( CAST( NULL AS SIGNED ) ) - 69 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1076
SELECT - - ( CAST ( NULL AS INTEGER ) ) - 69 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1077
SELECT + 15 * COUNT( * ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-1077
SELECT + 15 * COUNT ( * ) AS col0
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1078
SELECT ALL 79 DIV + COUNT( * ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-1078
SELECT ALL 79 / + COUNT ( * ) AS col1
----
79

query I rowsort
SELECT + ( + ( + - 31 ) )
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1080
SELECT + CAST( + 13 AS SIGNED )
----
13

skipif mysql # not compatible
query I rowsort label-1080
SELECT + CAST ( + 13 AS INTEGER )
----
13

query I rowsort
SELECT - 36 - - - 88 AS col2
----
-124

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1082
SELECT - - CAST( NULL AS SIGNED ) * + 8 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1082
SELECT - - CAST ( NULL AS INTEGER ) * + 8 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1083
SELECT ALL CAST( NULL AS SIGNED ), + 76 AS col0
----
NULL
76

skipif mysql # not compatible
query II rowsort label-1083
SELECT ALL CAST ( NULL AS INTEGER ), + 76 AS col0
----
NULL
76

query I rowsort
SELECT - 39 * 39 AS col0
----
-1521

query I rowsort
SELECT DISTINCT ( 46 ) AS col2
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1086
SELECT + - ( - - MAX( + CAST( NULL AS SIGNED ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1086
SELECT + - ( - - MAX ( + CAST ( NULL AS INTEGER ) ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1087
SELECT + + ( + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-1087
SELECT + + ( + COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1088
SELECT + COUNT( * ) + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-1088
SELECT + COUNT ( * ) + COUNT ( * )
----
2

query I rowsort
SELECT - + 11 AS col2
----
-11

query II rowsort
SELECT ALL 45 AS col0, - ( + 68 )
----
45
-68

query I rowsort
SELECT DISTINCT + 29 + - 84
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1092
SELECT - MIN( + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1092
SELECT - MIN ( + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1093
SELECT + 20 + - COUNT( * ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-1093
SELECT + 20 + - COUNT ( * ) AS col2
----
19

query I rowsort
SELECT DISTINCT + - 48 AS col0
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1095
SELECT - + CAST( NULL AS SIGNED ) * - + 95 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1095
SELECT - + CAST ( NULL AS INTEGER ) * - + 95 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1096
SELECT ALL - COUNT( * ) * - + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1096
SELECT ALL - COUNT ( * ) * - + COUNT ( * ) AS col2
----
1

query I rowsort
SELECT DISTINCT ( 2 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1098
SELECT + 79 - COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-1098
SELECT + 79 - COUNT ( * )
----
78

query I rowsort
SELECT - ( + 59 )
----
-59

query I rowsort
SELECT DISTINCT - 10 + - 37 AS col2
----
-47

query I rowsort
SELECT DISTINCT + 1 + 44 + - + 63
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-1102
SELECT DISTINCT + COUNT( * ) * 94 col0
----
94

skipif mysql # not compatible
query I rowsort label-1102
SELECT DISTINCT + COUNT ( * ) * 94 col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1103
SELECT MIN( ALL - 82 )
----
-82

skipif mysql # not compatible
query I rowsort label-1103
SELECT MIN ( ALL - 82 )
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-1104
SELECT ALL - COUNT( * ) * COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1104
SELECT ALL - COUNT ( * ) * COUNT ( * ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1105
SELECT + 38 * - COUNT( * )
----
-38

skipif mysql # not compatible
query I rowsort label-1105
SELECT + 38 * - COUNT ( * )
----
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-1106
SELECT - ( + + COUNT( * ) ) AS col2, 22
----
-1
22

skipif mysql # not compatible
query II rowsort label-1106
SELECT - ( + + COUNT ( * ) ) AS col2, 22
----
-1
22

onlyif mysql # aggregate syntax: 
query I rowsort label-1107
SELECT ALL + - ( - - COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1107
SELECT ALL + - ( - - COUNT ( * ) ) AS col1
----
-1

query I rowsort
SELECT + - 94 col2
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-1109
SELECT + COUNT( + - 40 )
----
1

skipif mysql # not compatible
query I rowsort label-1109
SELECT + COUNT ( + - 40 )
----
1

query I rowsort
SELECT + 97 * - 17
----
-1649

query I rowsort
SELECT DISTINCT + ( + 40 ) AS col0
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1112
SELECT ALL CAST( - - 63 AS SIGNED ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-1112
SELECT ALL CAST ( - - 63 AS INTEGER ) AS col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-1113
SELECT MAX( - - 0 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1113
SELECT MAX ( - - 0 ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1114
SELECT - CAST( 83 AS SIGNED ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-1114
SELECT - CAST ( 83 AS INTEGER ) AS col0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-1115
SELECT DISTINCT 76 + ( COUNT( ALL - 47 ) ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-1115
SELECT DISTINCT 76 + ( COUNT ( ALL - 47 ) ) AS col2
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-1116
SELECT DISTINCT COUNT( * ) col1, + 24 * - MIN( 74 )
----
1
-1776

skipif mysql # not compatible
query II rowsort label-1116
SELECT DISTINCT COUNT ( * ) col1, + 24 * - MIN ( 74 )
----
1
-1776

query II rowsort
SELECT 3, - 16 col2
----
3
-16

query I rowsort
SELECT - 61 - 7
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-1119
SELECT MIN( DISTINCT + + 61 )
----
61

skipif mysql # not compatible
query I rowsort label-1119
SELECT MIN ( DISTINCT + + 61 )
----
61

query II rowsort
SELECT + 0 AS col0, 1
----
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1121
SELECT ( - + CAST( + NULLIF ( COUNT( * ), + + 47 ) AS SIGNED ) ) * - COUNT( 58 )
----
1

skipif mysql # not compatible
query I rowsort label-1121
SELECT ( - + CAST ( + NULLIF ( COUNT ( * ), + + 47 ) AS INTEGER ) ) * - COUNT ( 58 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1122
SELECT ALL 79 + - + COUNT( * ) - + 14
----
64

skipif mysql # not compatible
query I rowsort label-1122
SELECT ALL 79 + - + COUNT ( * ) - + 14
----
64

query I rowsort
SELECT ALL - 31 + - - 32
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1124
SELECT ALL - - COUNT( * ) DIV + 23 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1124
SELECT ALL - - COUNT ( * ) / + 23 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1125
SELECT ALL - CAST( SUM( DISTINCT - 99 ) AS SIGNED )
----
99

skipif mysql # not compatible
query I rowsort label-1125
SELECT ALL - CAST ( SUM ( DISTINCT - 99 ) AS INTEGER )
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-1126
SELECT ALL + 25 DIV - - ( + - 24 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-1126
SELECT ALL + 25 / - - ( + - 24 ) col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1127
SELECT DISTINCT + + ( - - COUNT( * ) ) * - ( + COUNT( * ) ) + - 88
----
-89

skipif mysql # not compatible
query I rowsort label-1127
SELECT DISTINCT + + ( - - COUNT ( * ) ) * - ( + COUNT ( * ) ) + - 88
----
-89

query II rowsort
SELECT - 40 col0, 82
----
-40
82

query II rowsort
SELECT - - 47 AS col1, + 23
----
47
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1130
SELECT ALL + MIN( - 36 ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-1130
SELECT ALL + MIN ( - 36 ) AS col0
----
-36

query I rowsort
SELECT ALL - - 81 col0
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-1132
SELECT DISTINCT + SUM( DISTINCT 53 ) AS col2, - 4
----
53
-4

skipif mysql # not compatible
query II rowsort label-1132
SELECT DISTINCT + SUM ( DISTINCT 53 ) AS col2, - 4
----
53
-4

query I rowsort
SELECT 18 + - 98 AS col2
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-1134
SELECT - + 70 + + + COUNT( * ) col1
----
-69

skipif mysql # not compatible
query I rowsort label-1134
SELECT - + 70 + + + COUNT ( * ) col1
----
-69

query I rowsort
SELECT + - ( - - ( 63 ) )
----
-63

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1136
SELECT DISTINCT - ( + CAST( NULL AS DECIMAL ) ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1136
SELECT DISTINCT - ( + CAST ( NULL AS REAL ) ) * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 85 * 47
----
3995

query I rowsort
SELECT ALL ( + 62 )
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1139
SELECT + COUNT( * ) * - 67 DIV 83
----
0

skipif mysql # not compatible
query I rowsort label-1139
SELECT + COUNT ( * ) * - 67 / 83
----
0

query I rowsort
SELECT + 95 + + 83
----
178

query I rowsort
SELECT + ( + 16 ) AS col2
----
16

query I rowsort
SELECT ( - 98 ) AS col0
----
-98

query I rowsort
SELECT ALL 5 * 68 AS col1
----
340

query I rowsort
SELECT ALL + ( + 57 )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1145
SELECT ALL + MIN( + 1 )
----
1

skipif mysql # not compatible
query I rowsort label-1145
SELECT ALL + MIN ( + 1 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1146
SELECT ALL - CAST( NULL AS SIGNED ) * + 42 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1146
SELECT ALL - CAST ( NULL AS INTEGER ) * + 42 AS col1
----
NULL

query I rowsort
SELECT ALL ( 97 ) col2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1148
SELECT ALL - COUNT( * ) * - 6
----
6

skipif mysql # not compatible
query I rowsort label-1148
SELECT ALL - COUNT ( * ) * - 6
----
6

query I rowsort
SELECT ALL + 87 + - 20 AS col1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1150
SELECT ALL 98 + COUNT( * )
----
99

skipif mysql # not compatible
query I rowsort label-1150
SELECT ALL 98 + COUNT ( * )
----
99

query I rowsort
SELECT + - 62 col0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-1152
SELECT ALL + 72 - + COUNT( * ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-1152
SELECT ALL + 72 - + COUNT ( * ) AS col1
----
71

query I rowsort
SELECT DISTINCT - + 56 AS col0
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1154
SELECT DISTINCT + MAX( DISTINCT 41 ) - + 5 DIV + 14 AS col1
----
41

skipif mysql # not compatible
query I rowsort label-1154
SELECT DISTINCT + MAX ( DISTINCT 41 ) - + 5 / + 14 AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-1155
SELECT COUNT( * ) - - 16 col0
----
17

skipif mysql # not compatible
query I rowsort label-1155
SELECT COUNT ( * ) - - 16 col0
----
17

query I rowsort
SELECT 46 * + - 14 * 32 AS col1
----
-20608

onlyif mysql # aggregate syntax: 
query I rowsort label-1157
SELECT ALL - COUNT( DISTINCT - - 16 )
----
-1

skipif mysql # not compatible
query I rowsort label-1157
SELECT ALL - COUNT ( DISTINCT - - 16 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1158
SELECT DISTINCT + COUNT( * ) * 17
----
17

skipif mysql # not compatible
query I rowsort label-1158
SELECT DISTINCT + COUNT ( * ) * 17
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1159
SELECT DISTINCT - COUNT( DISTINCT 28 )
----
-1

skipif mysql # not compatible
query I rowsort label-1159
SELECT DISTINCT - COUNT ( DISTINCT 28 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1160
SELECT ALL - COUNT( * ) + + 81 AS col1
----
80

skipif mysql # not compatible
query I rowsort label-1160
SELECT ALL - COUNT ( * ) + + 81 AS col1
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1161
SELECT ALL + 10 + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1161
SELECT ALL + 10 + - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1162
SELECT DISTINCT - 0 * + + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-1162
SELECT DISTINCT - 0 * + + COUNT ( * )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1163
SELECT ALL - CAST( + 72 AS SIGNED ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-1163
SELECT ALL - CAST ( + 72 AS INTEGER ) AS col0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-1164
SELECT ALL - - ( + + COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1164
SELECT ALL - - ( + + COUNT ( * ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1165
SELECT - 52 * - + ( + SUM( + ( 10 ) ) ) * - COUNT( + 0 ) + 66 AS col2
----
-454

skipif mysql # not compatible
query I rowsort label-1165
SELECT - 52 * - + ( + SUM ( + ( 10 ) ) ) * - COUNT ( + 0 ) + 66 AS col2
----
-454

onlyif mysql # aggregate syntax: 
query I rowsort label-1166
SELECT + MAX( + 59 ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-1166
SELECT + MAX ( + 59 ) AS col1
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1167
SELECT ALL 61 + + ( CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1167
SELECT ALL 61 + + ( CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT - 25 * - 29
----
725

query I rowsort
SELECT - - 10 + - 75 * 59
----
-4415

query I rowsort
SELECT - + ( 41 )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-1171
SELECT DISTINCT - 77 - - COUNT( * ) AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-1171
SELECT DISTINCT - 77 - - COUNT ( * ) AS col0
----
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-1172
SELECT DISTINCT + - 75 DIV + - 82
----
0

skipif mysql # not compatible
query I rowsort label-1172
SELECT DISTINCT + - 75 / + - 82
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1173
SELECT ALL + - CAST( NULL AS DECIMAL ) * + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1173
SELECT ALL + - CAST ( NULL AS REAL ) * + - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ( + + 24 )
----
24

query I rowsort
SELECT ( - - ( 15 ) ) AS col2
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1176
SELECT ALL COUNT( * ) * - 43 + - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1176
SELECT ALL COUNT ( * ) * - 43 + - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1177
SELECT COUNT( ALL + 12 )
----
1

skipif mysql # not compatible
query I rowsort label-1177
SELECT COUNT ( ALL + 12 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1178
SELECT MAX( ALL 6 ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-1178
SELECT MAX ( ALL 6 ) AS col2
----
6

query I rowsort
SELECT ALL + 95 + + + 24 AS col2
----
119

query I rowsort
SELECT + 12 * - 40 + - 55 col2
----
-535

onlyif mysql # aggregate syntax: 
query I rowsort label-1181
SELECT - COUNT( * ) * - - 20
----
-20

skipif mysql # not compatible
query I rowsort label-1181
SELECT - COUNT ( * ) * - - 20
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-1182
SELECT - 58 DIV - + ( - - 58 )
----
1

skipif mysql # not compatible
query I rowsort label-1182
SELECT - 58 / - + ( - - 58 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1183
SELECT + 68 + - COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-1183
SELECT + 68 + - COUNT ( * )
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1184
SELECT ALL COUNT( * ) * + CAST( + + ( 71 ) AS SIGNED )
----
71

skipif mysql # not compatible
query I rowsort label-1184
SELECT ALL COUNT ( * ) * + CAST ( + + ( 71 ) AS INTEGER )
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1185
SELECT - CAST( - NULLIF ( - - 61, + CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-1185
SELECT - CAST ( - NULLIF ( - - 61, + CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1186
SELECT ALL + ( COUNT( * ) ) + + COUNT( * ) col2
----
2

skipif mysql # not compatible
query I rowsort label-1186
SELECT ALL + ( COUNT ( * ) ) + + COUNT ( * ) col2
----
2

query I rowsort
SELECT ALL + 92 - ( 80 )
----
12

query I rowsort
SELECT ALL - 19 * + 46 AS col2
----
-874

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1189
SELECT 61 DIV + COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-1189
SELECT 61 / + COUNT ( * )
----
61

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1190
SELECT DISTINCT - - ( + + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1190
SELECT DISTINCT - - ( + + CAST ( NULL AS REAL ) )
----
NULL

query II rowsort
SELECT - 54, 20 AS col1
----
-54
20

query I rowsort
SELECT ALL - + 14 + 37
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1193
SELECT - COUNT( * ) + - - 52 AS col0
----
51

skipif mysql # not compatible
query I rowsort label-1193
SELECT - COUNT ( * ) + - - 52 AS col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1194
SELECT + SUM( 79 ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-1194
SELECT + SUM ( 79 ) AS col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1195
SELECT ALL COUNT( * ) * - SUM( - 48 ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-1195
SELECT ALL COUNT ( * ) * - SUM ( - 48 ) AS col1
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1196
SELECT DISTINCT + CAST( - - AVG ( - 54 ) AS SIGNED )
----
-54

skipif mysql # not compatible
query I rowsort label-1196
SELECT DISTINCT + CAST ( - - AVG ( - 54 ) AS INTEGER )
----
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-1197
SELECT DISTINCT + MIN( ALL - - 20 ) AS col0, - 75 AS col1
----
20
-75

skipif mysql # not compatible
query II rowsort label-1197
SELECT DISTINCT + MIN ( ALL - - 20 ) AS col0, - 75 AS col1
----
20
-75

query I rowsort
SELECT - - 54 * + 98 AS col1
----
5292

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1199
SELECT - 38 DIV + - COUNT( * )
----
38

skipif mysql # not compatible
query I rowsort label-1199
SELECT - 38 / + - COUNT ( * )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-1200
SELECT - COALESCE ( 71, - COUNT( * ) )
----
-71

skipif mysql # not compatible
query I rowsort label-1200
SELECT - COALESCE ( 71, - COUNT ( * ) )
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1201
SELECT CAST( 43 AS SIGNED ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-1201
SELECT CAST ( 43 AS INTEGER ) AS col0
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1202
SELECT ALL - CAST( NULL AS SIGNED ) + 61
----
NULL

skipif mysql # not compatible
query I rowsort label-1202
SELECT ALL - CAST ( NULL AS INTEGER ) + 61
----
NULL

query I rowsort
SELECT + 77 * + + 32
----
2464

onlyif mysql # aggregate syntax: 
query I rowsort label-1204
SELECT - COUNT( * ) + + 94 col2
----
93

skipif mysql # not compatible
query I rowsort label-1204
SELECT - COUNT ( * ) + + 94 col2
----
93

query I rowsort
SELECT ( + 14 ) AS col0
----
14

query I rowsort
SELECT ALL 9 * 19 AS col1
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-1207
SELECT ALL + COUNT( * ) + + + 81
----
82

skipif mysql # not compatible
query I rowsort label-1207
SELECT ALL + COUNT ( * ) + + + 81
----
82

query I rowsort
SELECT 41 * 8
----
328

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1209
SELECT DISTINCT - + COUNT( * ) DIV - MIN( DISTINCT + - 71 )
----
0

skipif mysql # not compatible
query I rowsort label-1209
SELECT DISTINCT - + COUNT ( * ) / - MIN ( DISTINCT + - 71 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1210
SELECT ALL - COALESCE ( + 50, + 17 ) * - COUNT( * ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-1210
SELECT ALL - COALESCE ( + 50, + 17 ) * - COUNT ( * ) AS col1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-1211
SELECT COUNT( ALL 1 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1211
SELECT COUNT ( ALL 1 ) AS col0
----
1

query I rowsort
SELECT DISTINCT ( ( - 39 ) )
----
-39

query I rowsort
SELECT - ( - 87 )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1214
SELECT ALL SUM( + 25 ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-1214
SELECT ALL SUM ( + 25 ) AS col1
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1215
SELECT + - COUNT( * ) + + + 80 + COUNT( * ) + + CAST( NULL AS SIGNED ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1215
SELECT + - COUNT ( * ) + + + 80 + COUNT ( * ) + + CAST ( NULL AS INTEGER ) + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1216
SELECT MIN( DISTINCT + 78 ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-1216
SELECT MIN ( DISTINCT + 78 ) AS col2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-1217
SELECT ALL 55 * - 12 + + COUNT( * ) + + 20
----
-639

skipif mysql # not compatible
query I rowsort label-1217
SELECT ALL 55 * - 12 + + COUNT ( * ) + + 20
----
-639

query I rowsort
SELECT ALL - ( - + 80 ) AS col2
----
80

onlyif mysql # aggregate syntax: 
query II rowsort label-1219
SELECT ALL - COUNT( * ) AS col1, 5 + + + COUNT( * ) AS col2
----
-1
6

skipif mysql # not compatible
query II rowsort label-1219
SELECT ALL - COUNT ( * ) AS col1, 5 + + + COUNT ( * ) AS col2
----
-1
6

query I rowsort
SELECT ALL - 31 col2
----
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-1221
SELECT ALL + COUNT( * ), 20 col1
----
1
20

skipif mysql # not compatible
query II rowsort label-1221
SELECT ALL + COUNT ( * ), 20 col1
----
1
20

onlyif mysql # aggregate syntax: 
query I rowsort label-1222
SELECT MAX( ALL - ( 82 ) ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-1222
SELECT MAX ( ALL - ( 82 ) ) AS col0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-1223
SELECT + 31 * - COUNT( * ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-1223
SELECT + 31 * - COUNT ( * ) AS col1
----
-31

query I rowsort
SELECT DISTINCT 17 col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1225
SELECT - 26 * COUNT( * )
----
-26

skipif mysql # not compatible
query I rowsort label-1225
SELECT - 26 * COUNT ( * )
----
-26

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1226
SELECT - + CAST( - + 83 AS SIGNED ) DIV + ( + + 9 )
----
9

skipif mysql # not compatible
query I rowsort label-1226
SELECT - + CAST ( - + 83 AS INTEGER ) / + ( + + 9 )
----
9

query I rowsort
SELECT - ( - - 41 )
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1228
SELECT + 13 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1228
SELECT + 13 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - - 26 + - 94
----
-68

query I rowsort
SELECT + 9 * - 42
----
-378

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1231
SELECT ALL - ( + COUNT( * ) ) DIV - COUNT( * ) col2
----
1

skipif mysql # not compatible
query I rowsort label-1231
SELECT ALL - ( + COUNT ( * ) ) / - COUNT ( * ) col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1232
SELECT + 11 DIV + 6 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1232
SELECT + 11 / + 6 AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1233
SELECT ALL 50 / - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1233
SELECT ALL 50 / - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1234
SELECT - - CAST( + 16 AS SIGNED ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-1234
SELECT - - CAST ( + 16 AS INTEGER ) AS col0
----
16

query I rowsort
SELECT DISTINCT - ( + - ( - 47 ) )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-1236
SELECT ALL 72 + COUNT( * ) AS col1
----
73

skipif mysql # not compatible
query I rowsort label-1236
SELECT ALL 72 + COUNT ( * ) AS col1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-1237
SELECT - MIN( - ( 0 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1237
SELECT - MIN ( - ( 0 ) ) AS col0
----
0

query I rowsort
SELECT ( - 49 ) AS col1
----
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-1239
SELECT NULLIF ( 25, COUNT( * ) ), - SUM( DISTINCT 3 ) AS col0
----
25
-3

skipif mysql # not compatible
query II rowsort label-1239
SELECT NULLIF ( 25, COUNT ( * ) ), - SUM ( DISTINCT 3 ) AS col0
----
25
-3

query I rowsort
SELECT DISTINCT + 81 col2
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1241
SELECT + ( CAST( 64 AS SIGNED ) ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-1241
SELECT + ( CAST ( 64 AS INTEGER ) ) AS col1
----
64

query I rowsort
SELECT + - 90 AS col0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-1243
SELECT - + SUM( 78 ) col0
----
-78

skipif mysql # not compatible
query I rowsort label-1243
SELECT - + SUM ( 78 ) col0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-1244
SELECT DISTINCT + NULLIF ( - ( COUNT( * ) ), - 52 )
----
-1

skipif mysql # not compatible
query I rowsort label-1244
SELECT DISTINCT + NULLIF ( - ( COUNT ( * ) ), - 52 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1245
SELECT - MAX( - 14 ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-1245
SELECT - MAX ( - 14 ) AS col1
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1246
SELECT ALL CAST( NULL AS SIGNED ) * + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-1246
SELECT ALL CAST ( NULL AS INTEGER ) * + 68
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1247
SELECT ALL + 90 * + COUNT( * ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-1247
SELECT ALL + 90 * + COUNT ( * ) AS col2
----
90

query I rowsort
SELECT - ( - - 93 )
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1249
SELECT CAST( + + 79 AS SIGNED )
----
79

skipif mysql # not compatible
query I rowsort label-1249
SELECT CAST ( + + 79 AS INTEGER )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1250
SELECT + 55 * + COUNT( * )
----
55

skipif mysql # not compatible
query I rowsort label-1250
SELECT + 55 * + COUNT ( * )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1251
SELECT ALL + MAX( 44 ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-1251
SELECT ALL + MAX ( 44 ) AS col1
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1252
SELECT DISTINCT + + 42 DIV - COUNT( * ) + - 5 AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-1252
SELECT DISTINCT + + 42 / - COUNT ( * ) + - 5 AS col1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-1253
SELECT - COUNT( * ) * 44 + + + 44 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1253
SELECT - COUNT ( * ) * 44 + + + 44 AS col2
----
0

query I rowsort
SELECT + - 76 AS col0
----
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1255
SELECT 66 DIV + + COUNT( * ), 95 + MAX( + 26 ) DIV + + 28 AS col1
----
66
95

skipif mysql # not compatible
query II rowsort label-1255
SELECT 66 / + + COUNT ( * ), 95 + MAX ( + 26 ) / + + 28 AS col1
----
66
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1256
SELECT ALL - CAST( NULL AS SIGNED ) + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1256
SELECT ALL - CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1257
SELECT ALL - CAST( NULL AS DECIMAL ) * - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1257
SELECT ALL - CAST ( NULL AS REAL ) * - COUNT ( * ) AS col0
----
NULL

query II rowsort
SELECT 58 col2, 17 AS col0
----
58
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1259
SELECT - MAX( + 40 ) col1
----
-40

skipif mysql # not compatible
query I rowsort label-1259
SELECT - MAX ( + 40 ) col1
----
-40

query I rowsort
SELECT ALL - 1 * 97
----
-97

query I rowsort
SELECT ALL - + 12 AS col2
----
-12

query I rowsort
SELECT ( + 27 )
----
27

query I rowsort
SELECT DISTINCT + + 68 AS col0
----
68

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1264
SELECT DISTINCT 9 * - CAST( NULL AS DECIMAL ) AS col2, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-1264
SELECT DISTINCT 9 * - CAST ( NULL AS REAL ) AS col2, COUNT ( * )
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1265
SELECT ALL ( 45 ) + + COUNT( * ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-1265
SELECT ALL ( 45 ) + + COUNT ( * ) AS col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1266
SELECT COUNT( DISTINCT 59 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1266
SELECT COUNT ( DISTINCT 59 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1267
SELECT ALL + COUNT( 29 )
----
1

skipif mysql # not compatible
query I rowsort label-1267
SELECT ALL + COUNT ( 29 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1268
SELECT SUM( + 93 ) + + COUNT( * ) + - - 96 col1
----
190

skipif mysql # not compatible
query I rowsort label-1268
SELECT SUM ( + 93 ) + + COUNT ( * ) + - - 96 col1
----
190

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1269
SELECT DISTINCT CAST( NULL AS SIGNED ) + 74 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1269
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 74 AS col2
----
NULL

query I rowsort
SELECT ALL - 15 * + + ( + 49 )
----
-735

query I rowsort
SELECT + ( - ( - - NULLIF ( 59, + 4 ) ) )
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1272
SELECT - CAST( + ( COUNT( * ) ) AS SIGNED ) * + CAST( NULL AS SIGNED ) * - ( + 39 ) + - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1272
SELECT - CAST ( + ( COUNT ( * ) ) AS INTEGER ) * + CAST ( NULL AS INTEGER ) * - ( + 39 ) + - CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1273
SELECT DISTINCT - MIN( 50 ) AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-1273
SELECT DISTINCT - MIN ( 50 ) AS col1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-1274
SELECT 62 * + - COUNT( * )
----
-62

skipif mysql # not compatible
query I rowsort label-1274
SELECT 62 * + - COUNT ( * )
----
-62

query I rowsort
SELECT - - 9 AS col2
----
9

query I rowsort
SELECT DISTINCT - - 56 AS col1
----
56

query I rowsort
SELECT ALL - - 97 AS col1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1278
SELECT 33 * - SUM( DISTINCT ( + 93 ) ) AS col1
----
-3069

skipif mysql # not compatible
query I rowsort label-1278
SELECT 33 * - SUM ( DISTINCT ( + 93 ) ) AS col1
----
-3069

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1279
SELECT + SUM( DISTINCT + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1279
SELECT + SUM ( DISTINCT + + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1280
SELECT DISTINCT - 40 DIV 44
----
0

skipif mysql # not compatible
query I rowsort label-1280
SELECT DISTINCT - 40 / 44
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1281
SELECT ALL + 7 col2, CAST( NULL AS SIGNED )
----
7
NULL

skipif mysql # not compatible
query II rowsort label-1281
SELECT ALL + 7 col2, CAST ( NULL AS INTEGER )
----
7
NULL

query I rowsort
SELECT + CASE - + 29 WHEN 98 THEN 91 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1283
SELECT + 37 + COUNT( * )
----
38

skipif mysql # not compatible
query I rowsort label-1283
SELECT + 37 + COUNT ( * )
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1284
SELECT - COUNT( * ) DIV + 53
----
0

skipif mysql # not compatible
query I rowsort label-1284
SELECT - COUNT ( * ) / + 53
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1285
SELECT AVG ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1285
SELECT AVG ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1286
SELECT CAST( 96 AS SIGNED ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-1286
SELECT CAST ( 96 AS INTEGER ) AS col1
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-1287
SELECT ALL - 31, - COUNT( * ) AS col1
----
-31
-1

skipif mysql # not compatible
query II rowsort label-1287
SELECT ALL - 31, - COUNT ( * ) AS col1
----
-31
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1288
SELECT ALL + COUNT( * ) * + - 17 col1
----
-17

skipif mysql # not compatible
query I rowsort label-1288
SELECT ALL + COUNT ( * ) * + - 17 col1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-1289
SELECT + MIN( - + 11 )
----
-11

skipif mysql # not compatible
query I rowsort label-1289
SELECT + MIN ( - + 11 )
----
-11

query I rowsort
SELECT DISTINCT - ( 30 )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-1291
SELECT MIN( - - 91 )
----
91

skipif mysql # not compatible
query I rowsort label-1291
SELECT MIN ( - - 91 )
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1292
SELECT ALL + + 44 * + ( + - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1292
SELECT ALL + + 44 * + ( + - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1293
SELECT - 91 * - - COUNT( * )
----
-91

skipif mysql # not compatible
query I rowsort label-1293
SELECT - 91 * - - COUNT ( * )
----
-91

query I rowsort
SELECT - ( 83 ) AS col0
----
-83

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1295
SELECT DISTINCT ( + CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1295
SELECT DISTINCT ( + CAST ( NULL AS REAL ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1296
SELECT ALL 45 AS col0, - COUNT( * )
----
45
-1

skipif mysql # not compatible
query II rowsort label-1296
SELECT ALL 45 AS col0, - COUNT ( * )
----
45
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1297
SELECT ALL COUNT( ALL + 93 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-1297
SELECT ALL COUNT ( ALL + 93 ) col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1298
SELECT ALL CAST( NULL AS SIGNED ) * + - 22 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1298
SELECT ALL CAST ( NULL AS INTEGER ) * + - 22 col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1299
SELECT + - 18 DIV 22 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1299
SELECT + - 18 / 22 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1300
SELECT 27 * COUNT( * ) col0
----
27

skipif mysql # not compatible
query I rowsort label-1300
SELECT 27 * COUNT ( * ) col0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-1301
SELECT + + COUNT( * ) * + - 98 + 53 col0
----
-45

skipif mysql # not compatible
query I rowsort label-1301
SELECT + + COUNT ( * ) * + - 98 + 53 col0
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-1302
SELECT DISTINCT 55 DIV + - 54
----
-1

skipif mysql # not compatible
query I rowsort label-1302
SELECT DISTINCT 55 / + - 54
----
-1

query I rowsort
SELECT - - 1
----
1

query I rowsort
SELECT + 5 col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1305
SELECT + COUNT( * ) + - + 84
----
-83

skipif mysql # not compatible
query I rowsort label-1305
SELECT + COUNT ( * ) + - + 84
----
-83

query I rowsort
SELECT + 36 + + 21 AS col2
----
57

query II rowsort
SELECT DISTINCT + - 24, 67 AS col2
----
-24
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1308
SELECT + SUM( - 13 ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-1308
SELECT + SUM ( - 13 ) AS col1
----
-13

query I rowsort
SELECT - ( - + 30 ) AS col0
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-1310
SELECT ALL - 90 DIV 92 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1310
SELECT ALL - 90 / 92 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1311
SELECT MAX( DISTINCT + + 16 ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-1311
SELECT MAX ( DISTINCT + + 16 ) AS col1
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1312
SELECT + 6 DIV + COUNT( * ) + 87
----
93

skipif mysql # not compatible
query I rowsort label-1312
SELECT + 6 / + COUNT ( * ) + 87
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1313
SELECT ALL - 48 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1313
SELECT ALL - 48 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 96 * 59
----
5664

query I rowsort
SELECT ALL 25 * - 42 AS col2
----
-1050

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1316
SELECT CAST( NULL AS SIGNED ) / - + 64 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1316
SELECT CAST ( NULL AS INTEGER ) / - + 64 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1317
SELECT - 68 + + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1317
SELECT - 68 + + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1318
SELECT COUNT( + 14 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-1318
SELECT COUNT ( + 14 ) col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1319
SELECT COUNT( * ) DIV + 42 * - - 48 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1319
SELECT COUNT ( * ) / + 42 * - - 48 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1320
SELECT ( - COUNT( * ) ) DIV 69
----
0

skipif mysql # not compatible
query I rowsort label-1320
SELECT ( - COUNT ( * ) ) / 69
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1321
SELECT ALL + 63 * + ( - COUNT( * ) ) AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-1321
SELECT ALL + 63 * + ( - COUNT ( * ) ) AS col2
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-1322
SELECT DISTINCT COUNT( ALL + 30 )
----
1

skipif mysql # not compatible
query I rowsort label-1322
SELECT DISTINCT COUNT ( ALL + 30 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1323
SELECT ALL - - COUNT( * ) + 45 AS col1
----
46

skipif mysql # not compatible
query I rowsort label-1323
SELECT ALL - - COUNT ( * ) + 45 AS col1
----
46

query I rowsort
SELECT DISTINCT + 98 col2
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1325
SELECT + 54 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1325
SELECT + 54 * + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1326
SELECT ALL - 76 + + - CAST( - + CAST( - COUNT( * ) AS SIGNED ) AS SIGNED ) AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-1326
SELECT ALL - 76 + + - CAST ( - + CAST ( - COUNT ( * ) AS INTEGER ) AS INTEGER ) AS col0
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1327
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1327
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - - COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT + ( - 46 ) AS col1
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1329
SELECT ALL - CAST( - 62 AS SIGNED ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-1329
SELECT ALL - CAST ( - 62 AS INTEGER ) AS col0
----
62

query II rowsort
SELECT 97 AS col2, - 22 AS col1
----
97
-22

query I rowsort
SELECT - 94 col2
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-1332
SELECT ( + COUNT( * ) ) + COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-1332
SELECT ( + COUNT ( * ) ) + COUNT ( * ) AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1333
SELECT + 39 * + COUNT( * ) + + COUNT( * ) + + + COUNT( * ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-1333
SELECT + 39 * + COUNT ( * ) + + COUNT ( * ) + + + COUNT ( * ) AS col1
----
41

query I rowsort
SELECT DISTINCT + 93 + - 22 AS col0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-1335
SELECT DISTINCT + 1 + COUNT( DISTINCT 52 )
----
2

skipif mysql # not compatible
query I rowsort label-1335
SELECT DISTINCT + 1 + COUNT ( DISTINCT 52 )
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1336
SELECT ALL - + 24 DIV + - COUNT( * ) + + ( + - 46 ) col0
----
-22

skipif mysql # not compatible
query I rowsort label-1336
SELECT ALL - + 24 / + - COUNT ( * ) + + ( + - 46 ) col0
----
-22

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1337
SELECT ALL 91 * CAST( + CAST( NULL AS DECIMAL ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1337
SELECT ALL 91 * CAST ( + CAST ( NULL AS REAL ) AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT ( + 2 ) AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1339
SELECT + - ( + MIN( DISTINCT - 40 ) )
----
40

skipif mysql # not compatible
query I rowsort label-1339
SELECT + - ( + MIN ( DISTINCT - 40 ) )
----
40

query I rowsort
SELECT DISTINCT + - 26 AS col2
----
-26

query I rowsort
SELECT DISTINCT - 62 col0
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1342
SELECT + CAST( NULL AS SIGNED ) AS col1, + COUNT( * ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-1342
SELECT + CAST ( NULL AS INTEGER ) AS col1, + COUNT ( * ) AS col1
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1343
SELECT ALL + SUM( - 60 ) AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-1343
SELECT ALL + SUM ( - 60 ) AS col1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-1344
SELECT DISTINCT + + SUM( ALL + - 58 )
----
-58

skipif mysql # not compatible
query I rowsort label-1344
SELECT DISTINCT + + SUM ( ALL + - 58 )
----
-58

query I rowsort
SELECT ALL + + ( - - 5 ) * 95
----
475

query I rowsort
SELECT ALL 12 * 75 AS col0
----
900

onlyif mysql # aggregate syntax: 
query I rowsort label-1347
SELECT DISTINCT COUNT( * ) * 43 AS col0
----
43

skipif mysql # not compatible
query I rowsort label-1347
SELECT DISTINCT COUNT ( * ) * 43 AS col0
----
43

query I rowsort
SELECT DISTINCT - - 90
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1349
SELECT ALL + COUNT( * ) * + - 82 col1
----
-82

skipif mysql # not compatible
query I rowsort label-1349
SELECT ALL + COUNT ( * ) * + - 82 col1
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1350
SELECT DISTINCT - CAST( NULL AS SIGNED ) / + 34 * + - CAST( + 57 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1350
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / + 34 * + - CAST ( + 57 AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - - 71 AS col2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-1352
SELECT ALL COUNT( * ) * + - 12
----
-12

skipif mysql # not compatible
query I rowsort label-1352
SELECT ALL COUNT ( * ) * + - 12
----
-12

query I rowsort
SELECT DISTINCT 14 + + 67
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1354
SELECT DISTINCT + COUNT( * ) + - 66
----
-65

skipif mysql # not compatible
query I rowsort label-1354
SELECT DISTINCT + COUNT ( * ) + - 66
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-1355
SELECT ALL MIN( ALL - + 79 )
----
-79

skipif mysql # not compatible
query I rowsort label-1355
SELECT ALL MIN ( ALL - + 79 )
----
-79

onlyif mysql # DIV for integer division: 
query II rowsort label-1356
SELECT ALL 6, - 66 DIV + - 66 AS col1
----
6
1

skipif mysql # not compatible
query II rowsort label-1356
SELECT ALL 6, - 66 / + - 66 AS col1
----
6
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1357
SELECT CAST( NULL AS SIGNED ) + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1357
SELECT CAST ( NULL AS INTEGER ) + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1358
SELECT ALL + - 31 * + 2 + + - 60 AS col1, COUNT( * )
----
-122
1

skipif mysql # not compatible
query II rowsort label-1358
SELECT ALL + - 31 * + 2 + + - 60 AS col1, COUNT ( * )
----
-122
1

query I rowsort
SELECT ALL - + 69
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-1360
SELECT ALL - MAX( DISTINCT 59 ) * + COUNT( * ) * - COUNT( * ) + + + 30
----
89

skipif mysql # not compatible
query I rowsort label-1360
SELECT ALL - MAX ( DISTINCT 59 ) * + COUNT ( * ) * - COUNT ( * ) + + + 30
----
89

query I rowsort
SELECT DISTINCT + 83 * 39 col1
----
3237

onlyif mysql # aggregate syntax: 
query II rowsort label-1362
SELECT - 41 + + - 91 AS col0, + SUM( ALL 50 )
----
-132
50

skipif mysql # not compatible
query II rowsort label-1362
SELECT - 41 + + - 91 AS col0, + SUM ( ALL 50 )
----
-132
50

query I rowsort
SELECT ALL + + 60 AS col0
----
60

query I rowsort
SELECT ALL + ( 28 ) AS col0
----
28

query I rowsort
SELECT DISTINCT + ( - 35 ) col1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-1366
SELECT + 0 + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-1366
SELECT + 0 + COUNT ( * )
----
1

query I rowsort
SELECT ALL ( + ( + 86 ) ) AS col1
----
86

query I rowsort
SELECT - 21 - - 58 * ( + 41 ) AS col0
----
2357

query I rowsort
SELECT ( + - 38 ) AS col2
----
-38

query I rowsort
SELECT DISTINCT - - 93 AS col2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1371
SELECT ALL - SUM( ALL + - ( 21 ) )
----
21

skipif mysql # not compatible
query I rowsort label-1371
SELECT ALL - SUM ( ALL + - ( 21 ) )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-1372
SELECT ALL - COUNT( * ) + + - 79
----
-80

skipif mysql # not compatible
query I rowsort label-1372
SELECT ALL - COUNT ( * ) + + - 79
----
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-1373
SELECT ALL + 7 AS col2, + COUNT( * )
----
7
1

skipif mysql # not compatible
query II rowsort label-1373
SELECT ALL + 7 AS col2, + COUNT ( * )
----
7
1

query I rowsort
SELECT 40 * + 10 AS col2
----
400

query I rowsort
SELECT 25 * - 50 AS col2
----
-1250

query I rowsort
SELECT 61 col1
----
61

query I rowsort
SELECT ALL ( - - 94 ) AS col0
----
94

query I rowsort
SELECT + 32 + - 61 + 25 AS col0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-1379
SELECT + SUM( - 75 ) AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-1379
SELECT + SUM ( - 75 ) AS col1
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1380
SELECT - 58 DIV + COUNT( * ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-1380
SELECT - 58 / + COUNT ( * ) AS col2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1381
SELECT ALL - MIN( DISTINCT - 45 ) * + 99 AS col1
----
4455

skipif mysql # not compatible
query I rowsort label-1381
SELECT ALL - MIN ( DISTINCT - 45 ) * + 99 AS col1
----
4455

query I rowsort
SELECT ALL ( - + 25 ) AS col1
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-1383
SELECT DISTINCT - ( COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1383
SELECT DISTINCT - ( COUNT ( * ) ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1384
SELECT DISTINCT CAST( - 51 AS SIGNED ) AS col0, - 92 AS col2
----
-51
-92

skipif mysql # not compatible
query II rowsort label-1384
SELECT DISTINCT CAST ( - 51 AS INTEGER ) AS col0, - 92 AS col2
----
-51
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-1385
SELECT - 23 * - 63 + + + COUNT( * )
----
1450

skipif mysql # not compatible
query I rowsort label-1385
SELECT - 23 * - 63 + + + COUNT ( * )
----
1450

query I rowsort
SELECT + 17 + + ( - 42 )
----
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1387
SELECT DISTINCT - 23 * + + MIN( - 20 ) DIV COUNT( * )
----
460

skipif mysql # not compatible
query I rowsort label-1387
SELECT DISTINCT - 23 * + + MIN ( - 20 ) / COUNT ( * )
----
460

onlyif mysql # aggregate syntax: 
query I rowsort label-1388
SELECT + COUNT( * ) + + ( + 18 )
----
19

skipif mysql # not compatible
query I rowsort label-1388
SELECT + COUNT ( * ) + + ( + 18 )
----
19

query I rowsort
SELECT DISTINCT - + ( 89 ) AS col2
----
-89

query I rowsort
SELECT DISTINCT 20 * - 7 * 38
----
-5320

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1391
SELECT 44 DIV - COUNT( * )
----
-44

skipif mysql # not compatible
query I rowsort label-1391
SELECT 44 / - COUNT ( * )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-1392
SELECT DISTINCT - COUNT( * ) * + ( 26 ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-1392
SELECT DISTINCT - COUNT ( * ) * + ( 26 ) AS col1
----
-26

query I rowsort
SELECT ALL 85 + 15 col0
----
100

query I rowsort
SELECT DISTINCT 79 * 61
----
4819

onlyif mysql # aggregate syntax: 
query I rowsort label-1395
SELECT ALL 71 - COUNT( * )
----
70

skipif mysql # not compatible
query I rowsort label-1395
SELECT ALL 71 - COUNT ( * )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-1396
SELECT ALL COUNT( DISTINCT 47 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-1396
SELECT ALL COUNT ( DISTINCT 47 ) col1
----
1

query I rowsort
SELECT + 0 * - 83
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1398
SELECT ALL + - SUM( ALL + 65 ) AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-1398
SELECT ALL + - SUM ( ALL + 65 ) AS col1
----
-65

query I rowsort
SELECT - ( + 48 ) AS col0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-1400
SELECT ALL + + 75 * COUNT( * ) col1
----
75

skipif mysql # not compatible
query I rowsort label-1400
SELECT ALL + + 75 * COUNT ( * ) col1
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1401
SELECT + COUNT( * ) DIV 28
----
0

skipif mysql # not compatible
query I rowsort label-1401
SELECT + COUNT ( * ) / 28
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1402
SELECT + MAX( DISTINCT + 19 ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-1402
SELECT + MAX ( DISTINCT + 19 ) AS col0
----
19

query I rowsort
SELECT + + 1 AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1404
SELECT ALL CAST( + + ( + - CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1404
SELECT ALL CAST ( + + ( + - CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1405
SELECT COUNT( * ) - - + 95
----
96

skipif mysql # not compatible
query I rowsort label-1405
SELECT COUNT ( * ) - - + 95
----
96

query I rowsort
SELECT ALL - 79 col2
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-1407
SELECT + - MIN( + + 12 )
----
-12

skipif mysql # not compatible
query I rowsort label-1407
SELECT + - MIN ( + + 12 )
----
-12

query I rowsort
SELECT ALL + 30 + ( + + 51 )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1409
SELECT ALL - 38 * - COUNT( * ) * - COUNT( * )
----
-38

skipif mysql # not compatible
query I rowsort label-1409
SELECT ALL - 38 * - COUNT ( * ) * - COUNT ( * )
----
-38

query I rowsort
SELECT ALL - 48 col1
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-1411
SELECT DISTINCT 48 DIV - + 5 AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-1411
SELECT DISTINCT 48 / - + 5 AS col1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1412
SELECT 53 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1412
SELECT 53 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1413
SELECT ALL - COUNT( * ) + - CAST( NULL AS SIGNED ) + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1413
SELECT ALL - COUNT ( * ) + - CAST ( NULL AS INTEGER ) + + COUNT ( * )
----
NULL

query I rowsort
SELECT - - 84 AS col2
----
84

query I rowsort
SELECT - 93 * + + 67 AS col2
----
-6231

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1416
SELECT ALL CAST( + 81 AS SIGNED ) * - 22 - 10 AS col0
----
-1792

skipif mysql # not compatible
query I rowsort label-1416
SELECT ALL CAST ( + 81 AS INTEGER ) * - 22 - 10 AS col0
----
-1792

onlyif mysql # aggregate syntax: 
query I rowsort label-1417
SELECT DISTINCT 7 * - + MIN( - + 44 )
----
308

skipif mysql # not compatible
query I rowsort label-1417
SELECT DISTINCT 7 * - + MIN ( - + 44 )
----
308

onlyif mysql # aggregate syntax: 
query I rowsort label-1418
SELECT ALL MAX( - 26 ) col1
----
-26

skipif mysql # not compatible
query I rowsort label-1418
SELECT ALL MAX ( - 26 ) col1
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1419
SELECT + 17 - + - MAX( ALL - 53 ) AS col2, + MAX( ALL 3 ) DIV + COUNT( * ) AS col0
----
-36
3

skipif mysql # not compatible
query II rowsort label-1419
SELECT + 17 - + - MAX ( ALL - 53 ) AS col2, + MAX ( ALL 3 ) / + COUNT ( * ) AS col0
----
-36
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1420
SELECT 93 AS col2, - 11 DIV + + COUNT( * )
----
93
-11

skipif mysql # not compatible
query II rowsort label-1420
SELECT 93 AS col2, - 11 / + + COUNT ( * )
----
93
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-1421
SELECT ALL 47 - - + ( COUNT( * ) )
----
48

skipif mysql # not compatible
query I rowsort label-1421
SELECT ALL 47 - - + ( COUNT ( * ) )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1422
SELECT ALL - + 37 - COUNT( * )
----
-38

skipif mysql # not compatible
query I rowsort label-1422
SELECT ALL - + 37 - COUNT ( * )
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-1423
SELECT 67 * ( + ( - + COUNT( * ) ) ) - + COUNT( * )
----
-68

skipif mysql # not compatible
query I rowsort label-1423
SELECT 67 * ( + ( - + COUNT ( * ) ) ) - + COUNT ( * )
----
-68

query II rowsort
SELECT DISTINCT + + 72 AS col1, 78
----
72
78

query I rowsort
SELECT - ( - ( + 14 ) )
----
14

query I rowsort
SELECT - 11 + - + 93
----
-104

query I rowsort
SELECT - + 70 AS col1
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-1428
SELECT ALL 38 * MIN( 90 ) AS col0
----
3420

skipif mysql # not compatible
query I rowsort label-1428
SELECT ALL 38 * MIN ( 90 ) AS col0
----
3420

query I rowsort
SELECT DISTINCT - 17 + + 32 + 76 + 55 AS col0
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-1430
SELECT ALL - NULLIF ( - - COUNT( * ), + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1430
SELECT ALL - NULLIF ( - - COUNT ( * ), + COUNT ( * ) )
----
NULL

query I rowsort
SELECT ALL ( + 70 )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-1432
SELECT SUM( DISTINCT + + 4 ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-1432
SELECT SUM ( DISTINCT + + 4 ) AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1433
SELECT ALL - SUM( + 13 ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-1433
SELECT ALL - SUM ( + 13 ) AS col0
----
-13

query II rowsort
SELECT 9, 71 AS col2
----
9
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1435
SELECT 97 * - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1435
SELECT 97 * - CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT ALL - ( + + 97 ) AS col0
----
-97

query II rowsort
SELECT 65 AS col0, + 55
----
65
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1438
SELECT ALL + COUNT( * ) + - ( - + 60 )
----
61

skipif mysql # not compatible
query I rowsort label-1438
SELECT ALL + COUNT ( * ) + - ( - + 60 )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1439
SELECT DISTINCT MAX( ALL 3 ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-1439
SELECT DISTINCT MAX ( ALL 3 ) AS col1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1440
SELECT ALL - + 10 + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1440
SELECT ALL - + 10 + - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - 11 col1
----
-11

query I rowsort
SELECT - 18 col0
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1443
SELECT CAST( + - 3 AS SIGNED )
----
-3

skipif mysql # not compatible
query I rowsort label-1443
SELECT CAST ( + - 3 AS INTEGER )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1444
SELECT + COUNT( * ) * - 38
----
-38

skipif mysql # not compatible
query I rowsort label-1444
SELECT + COUNT ( * ) * - 38
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-1445
SELECT + SUM( DISTINCT + - 50 ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-1445
SELECT + SUM ( DISTINCT + - 50 ) AS col0
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1446
SELECT CAST( 16 AS SIGNED ) col1
----
16

skipif mysql # not compatible
query I rowsort label-1446
SELECT CAST ( 16 AS INTEGER ) col1
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-1447
SELECT ALL + 83 * - 94 + - 1 AS col0, COUNT( * ) + 96 AS col2
----
-7803
97

skipif mysql # not compatible
query II rowsort label-1447
SELECT ALL + 83 * - 94 + - 1 AS col0, COUNT ( * ) + 96 AS col2
----
-7803
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1448
SELECT ALL SUM( DISTINCT - - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1448
SELECT ALL SUM ( DISTINCT - - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1449
SELECT ALL - 95 - - - SUM( 79 ) AS col0
----
-174

skipif mysql # not compatible
query I rowsort label-1449
SELECT ALL - 95 - - - SUM ( 79 ) AS col0
----
-174

query I rowsort
SELECT 82 + + 29
----
111

query I rowsort
SELECT - + 2 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1452
SELECT DISTINCT 47 + + SUM( DISTINCT - 76 ) AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-1452
SELECT DISTINCT 47 + + SUM ( DISTINCT - 76 ) AS col1
----
-29

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1453
SELECT CAST( NULL AS DECIMAL ) * + 42 + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1453
SELECT CAST ( NULL AS REAL ) * + 42 + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1454
SELECT ALL - - 2 * + COUNT( * ) - + 61 - - COUNT( * )
----
-58

skipif mysql # not compatible
query I rowsort label-1454
SELECT ALL - - 2 * + COUNT ( * ) - + 61 - - COUNT ( * )
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1455
SELECT + COUNT( * ) * - COUNT( * ) * + CAST( NULL AS SIGNED ) + 38 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1455
SELECT + COUNT ( * ) * - COUNT ( * ) * + CAST ( NULL AS INTEGER ) + 38 AS col2
----
NULL

query I rowsort
SELECT ALL 6 + + 45
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1457
SELECT + 38 - + - COUNT( * ) col2
----
39

skipif mysql # not compatible
query I rowsort label-1457
SELECT + 38 - + - COUNT ( * ) col2
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1458
SELECT AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1458
SELECT AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1459
SELECT DISTINCT CAST( - 76 AS SIGNED ) AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-1459
SELECT DISTINCT CAST ( - 76 AS INTEGER ) AS col2
----
-76

query I rowsort
SELECT DISTINCT ( 53 ) AS col0
----
53

query I rowsort
SELECT 26 + 10 col1
----
36

query I rowsort
SELECT + 25 * 3 AS col2
----
75

query I rowsort
SELECT 77 * - 16 AS col1
----
-1232

onlyif mysql # aggregate syntax: 
query I rowsort label-1464
SELECT 17 + - MIN( 8 )
----
9

skipif mysql # not compatible
query I rowsort label-1464
SELECT 17 + - MIN ( 8 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1465
SELECT ALL + 65 - + COUNT( * )
----
64

skipif mysql # not compatible
query I rowsort label-1465
SELECT ALL + 65 - + COUNT ( * )
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-1466
SELECT ALL + + 17 DIV - ( 2 )
----
-8

skipif mysql # not compatible
query I rowsort label-1466
SELECT ALL + + 17 / - ( 2 )
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-1467
SELECT + + MAX( ALL 87 ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-1467
SELECT + + MAX ( ALL 87 ) AS col1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1468
SELECT ALL - + MIN( + - ( + 87 ) )
----
87

skipif mysql # not compatible
query I rowsort label-1468
SELECT ALL - + MIN ( + - ( + 87 ) )
----
87

query I rowsort
SELECT + 28 + + - 49 col1
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-1470
SELECT - 63 DIV + 60
----
-1

skipif mysql # not compatible
query I rowsort label-1470
SELECT - 63 / + 60
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1471
SELECT DISTINCT ( - + COUNT( DISTINCT + - 93 ) ) * + COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1471
SELECT DISTINCT ( - + COUNT ( DISTINCT + - 93 ) ) * + COUNT ( * ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1472
SELECT COUNT( - ( + + ( + 20 ) ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-1472
SELECT COUNT ( - ( + + ( + 20 ) ) ) col1
----
1

query I rowsort
SELECT DISTINCT + - 69
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-1474
SELECT ALL - COUNT( * ) * - - 83
----
-83

skipif mysql # not compatible
query I rowsort label-1474
SELECT ALL - COUNT ( * ) * - - 83
----
-83

query I rowsort
SELECT ALL - ( - 20 ) AS col1
----
20

query I rowsort
SELECT - + 59 col0
----
-59

query I rowsort
SELECT ALL - 68 * - ( - + 76 ) AS col0
----
-5168

query I rowsort
SELECT 6 + 41 AS col0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1479
SELECT DISTINCT - SUM( - ( - 84 ) ) AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-1479
SELECT DISTINCT - SUM ( - ( - 84 ) ) AS col0
----
-84

query I rowsort
SELECT DISTINCT - ( + 24 ) AS col2
----
-24

query I rowsort
SELECT - 73 * 12
----
-876

onlyif mysql # aggregate syntax: 
query I rowsort label-1482
SELECT DISTINCT COUNT( * ) * - - 41
----
41

skipif mysql # not compatible
query I rowsort label-1482
SELECT DISTINCT COUNT ( * ) * - - 41
----
41

query I rowsort
SELECT + NULLIF ( + + 47, + - 85 ) AS col2
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1484
SELECT - CAST( MIN( + + 95 ) AS SIGNED ) * 59
----
-5605

skipif mysql # not compatible
query I rowsort label-1484
SELECT - CAST ( MIN ( + + 95 ) AS INTEGER ) * 59
----
-5605

query I rowsort
SELECT + ( - ( + 96 ) ) AS col0
----
-96

query I rowsort
SELECT DISTINCT + 40 col2
----
40

query II rowsort
SELECT DISTINCT - 55 AS col2, 6
----
-55
6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1488
SELECT - 46 * ( - CAST( NULL AS DECIMAL ) ) + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-1488
SELECT - 46 * ( - CAST ( NULL AS REAL ) ) + 25
----
NULL

query I rowsort
SELECT ( - 74 ) AS col0
----
-74

query II rowsort
SELECT - 95 AS col2, 35
----
-95
35

query I rowsort
SELECT - - 31 AS col2
----
31

query I rowsort
SELECT ALL 10 * + + 22 * - - 54
----
11880

onlyif mysql # aggregate syntax: 
query I rowsort label-1493
SELECT + SUM( DISTINCT 5 ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-1493
SELECT + SUM ( DISTINCT 5 ) AS col0
----
5

query I rowsort
SELECT 35 * 92
----
3220

query I rowsort
SELECT 41 + 15 col1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-1496
SELECT - MIN( + 51 ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-1496
SELECT - MIN ( + 51 ) AS col1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-1497
SELECT DISTINCT MAX( ALL - - 56 ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-1497
SELECT DISTINCT MAX ( ALL - - 56 ) AS col1
----
56

query I rowsort
SELECT + - 33 AS col0
----
-33

query I rowsort
SELECT ALL + - 84 AS col1
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-1500
SELECT + 83 * ( + COUNT( * ) ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-1500
SELECT + 83 * ( + COUNT ( * ) ) AS col1
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1501
SELECT + COUNT( * ) + + 60 AS col1, + ( - CAST( NULL AS SIGNED ) ) col0
----
61
NULL

skipif mysql # not compatible
query II rowsort label-1501
SELECT + COUNT ( * ) + + 60 AS col1, + ( - CAST ( NULL AS INTEGER ) ) col0
----
61
NULL

query I rowsort
SELECT - ( 51 )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-1503
SELECT DISTINCT + COALESCE ( - - 74, 16 * + 57 + + COUNT( * ) * - 83 )
----
74

skipif mysql # not compatible
query I rowsort label-1503
SELECT DISTINCT + COALESCE ( - - 74, 16 * + 57 + + COUNT ( * ) * - 83 )
----
74

query II rowsort
SELECT ( + 19 ) AS col2, 82 AS col1
----
19
82

query I rowsort
SELECT - 59 + 30
----
-29

query II rowsort
SELECT - 10, + 58 * + 33 col2
----
-10
1914

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1507
SELECT DISTINCT CAST( - 44 AS SIGNED ) AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-1507
SELECT DISTINCT CAST ( - 44 AS INTEGER ) AS col1
----
-44

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1508
SELECT - ( - + CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1508
SELECT - ( - + CAST ( NULL AS REAL ) ) AS col0
----
NULL

query I rowsort
SELECT ALL 52 * 17 AS col1
----
884

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1510
SELECT DISTINCT - 8 * - + CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1510
SELECT DISTINCT - 8 * - + CAST ( NULL AS REAL ) col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1511
SELECT ALL - CAST( NULL AS SIGNED ) / - 90
----
NULL

skipif mysql # not compatible
query I rowsort label-1511
SELECT ALL - CAST ( NULL AS INTEGER ) / - 90
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1512
SELECT 69 - - 58 + + COUNT( * ) AS col0
----
128

skipif mysql # not compatible
query I rowsort label-1512
SELECT 69 - - 58 + + COUNT ( * ) AS col0
----
128

query II rowsort
SELECT - 83, + 49 + 22 AS col0
----
-83
71

onlyif mysql # aggregate syntax: 
query I rowsort label-1514
SELECT DISTINCT - COALESCE ( - - COUNT( * ), + 84 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-1514
SELECT DISTINCT - COALESCE ( - - COUNT ( * ), + 84 ) col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1515
SELECT ALL - 98 AS col2, CAST( NULL AS SIGNED ) / MAX( DISTINCT - + 87 ) AS col2
----
-98
NULL

skipif mysql # not compatible
query II rowsort label-1515
SELECT ALL - 98 AS col2, CAST ( NULL AS INTEGER ) / MAX ( DISTINCT - + 87 ) AS col2
----
-98
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1516
SELECT + COUNT( DISTINCT - ( 88 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1516
SELECT + COUNT ( DISTINCT - ( 88 ) ) AS col2
----
1

query I rowsort
SELECT 14 col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1518
SELECT ALL MIN( - 97 )
----
-97

skipif mysql # not compatible
query I rowsort label-1518
SELECT ALL MIN ( - 97 )
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1519
SELECT + + COUNT( * ) + - 82
----
-81

skipif mysql # not compatible
query I rowsort label-1519
SELECT + + COUNT ( * ) + - 82
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1520
SELECT + + CAST( NULL AS SIGNED ) + + + CAST( - - 25 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1520
SELECT + + CAST ( NULL AS INTEGER ) + + + CAST ( - - 25 AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1521
SELECT DISTINCT + CAST( + 16 AS SIGNED ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-1521
SELECT DISTINCT + CAST ( + 16 AS INTEGER ) AS col0
----
16

query I rowsort
SELECT + ( 53 )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1523
SELECT MAX( DISTINCT + - 75 ) AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-1523
SELECT MAX ( DISTINCT + - 75 ) AS col2
----
-75

query II rowsort
SELECT DISTINCT + 32 AS col2, 42 AS col1
----
32
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1525
SELECT DISTINCT + CASE - - 10 WHEN + COUNT( * ) THEN NULL ELSE NULLIF ( - 10, + - COUNT( * ) ) END
----
-10

skipif mysql # not compatible
query I rowsort label-1525
SELECT DISTINCT + CASE - - 10 WHEN + COUNT ( * ) THEN NULL ELSE NULLIF ( - 10, + - COUNT ( * ) ) END
----
-10

query I rowsort
SELECT 89 * - 18
----
-1602

onlyif mysql # aggregate syntax: 
query I rowsort label-1527
SELECT DISTINCT COUNT( * ) * 74 AS col0
----
74

skipif mysql # not compatible
query I rowsort label-1527
SELECT DISTINCT COUNT ( * ) * 74 AS col0
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1528
SELECT CAST( NULL AS SIGNED ) + + 79 / 43
----
NULL

skipif mysql # not compatible
query I rowsort label-1528
SELECT CAST ( NULL AS INTEGER ) + + 79 / 43
----
NULL

query I rowsort
SELECT DISTINCT 42 col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1530
SELECT + SUM( ALL 37 ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-1530
SELECT + SUM ( ALL 37 ) AS col2
----
37

query I rowsort
SELECT - 45 + + 60
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1532
SELECT - 51 * + 68 DIV - COUNT( + ( + + 43 ) )
----
3468

skipif mysql # not compatible
query I rowsort label-1532
SELECT - 51 * + 68 / - COUNT ( + ( + + 43 ) )
----
3468

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1533
SELECT ALL + CAST( - 42 AS SIGNED ) * - + 41
----
1722

skipif mysql # not compatible
query I rowsort label-1533
SELECT ALL + CAST ( - 42 AS INTEGER ) * - + 41
----
1722

query I rowsort
SELECT - 16 * 64 AS col2
----
-1024

onlyif mysql # aggregate syntax: 
query II rowsort label-1535
SELECT DISTINCT + + COUNT( * ), + COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-1535
SELECT DISTINCT + + COUNT ( * ), + COUNT ( * )
----
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1536
SELECT - CAST( MIN( ALL 60 ) AS SIGNED )
----
-60

skipif mysql # not compatible
query I rowsort label-1536
SELECT - CAST ( MIN ( ALL 60 ) AS INTEGER )
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-1537
SELECT DISTINCT ( + MIN( + 4 ) ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-1537
SELECT DISTINCT ( + MIN ( + 4 ) ) AS col1
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-1538
SELECT ALL - 15 DIV + - 40
----
0

skipif mysql # not compatible
query I rowsort label-1538
SELECT ALL - 15 / + - 40
----
0

query I rowsort
SELECT ALL - ( 61 )
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-1540
SELECT ALL + COUNT( * ) * + 36 AS col2
----
36

skipif mysql # not compatible
query I rowsort label-1540
SELECT ALL + COUNT ( * ) * + 36 AS col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-1541
SELECT ALL - 87 * - COUNT( * )
----
87

skipif mysql # not compatible
query I rowsort label-1541
SELECT ALL - 87 * - COUNT ( * )
----
87

query I rowsort
SELECT DISTINCT - ( + 74 ) AS col0
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1543
SELECT ALL - CAST( + 87 AS SIGNED ) AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-1543
SELECT ALL - CAST ( + 87 AS INTEGER ) AS col0
----
-87

query I rowsort
SELECT DISTINCT - - 90 AS col0
----
90

query I rowsort
SELECT 33 * 52 AS col0
----
1716

query I rowsort
SELECT ALL - + ( 51 )
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1547
SELECT CAST( + - COUNT( * ) AS SIGNED ) DIV - 2 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1547
SELECT CAST ( + - COUNT ( * ) AS INTEGER ) / - 2 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1548
SELECT - SUM( + ( + ( + 35 ) ) )
----
-35

skipif mysql # not compatible
query I rowsort label-1548
SELECT - SUM ( + ( + ( + 35 ) ) )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-1549
SELECT ALL + MIN( DISTINCT - 36 ) col0
----
-36

skipif mysql # not compatible
query I rowsort label-1549
SELECT ALL + MIN ( DISTINCT - 36 ) col0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-1550
SELECT COUNT( * ) + - 23
----
-22

skipif mysql # not compatible
query I rowsort label-1550
SELECT COUNT ( * ) + - 23
----
-22

query I rowsort
SELECT - + ( - 67 ) AS col0
----
67

query I rowsort
SELECT ALL - - 41 AS col2
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1553
SELECT ALL COUNT( * ) DIV + 96 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1553
SELECT ALL COUNT ( * ) / + 96 AS col1
----
0

query I rowsort
SELECT ALL - + 7
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1555
SELECT MIN( DISTINCT - 0 )
----
0

skipif mysql # not compatible
query I rowsort label-1555
SELECT MIN ( DISTINCT - 0 )
----
0

query I rowsort
SELECT - 72 - + 4 AS col2
----
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-1557
SELECT ALL + 49 DIV + 24 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-1557
SELECT ALL + 49 / + 24 AS col1
----
2

query I rowsort
SELECT + + 90 col0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1559
SELECT DISTINCT COUNT( * ) + - 41 AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-1559
SELECT DISTINCT COUNT ( * ) + - 41 AS col2
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-1560
SELECT ALL 82 DIV - 85 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1560
SELECT ALL 82 / - 85 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1561
SELECT + 77 * - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1561
SELECT + 77 * - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1562
SELECT DISTINCT + COUNT( DISTINCT + + 74 )
----
1

skipif mysql # not compatible
query I rowsort label-1562
SELECT DISTINCT + COUNT ( DISTINCT + + 74 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1563
SELECT + NULLIF ( + + 50, + CAST( NULL AS SIGNED ) )
----
50

skipif mysql # not compatible
query I rowsort label-1563
SELECT + NULLIF ( + + 50, + CAST ( NULL AS INTEGER ) )
----
50

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1564
SELECT ALL - CAST( NULL AS DECIMAL ) / - - 80 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1564
SELECT ALL - CAST ( NULL AS REAL ) / - - 80 AS col1
----
NULL

query II rowsort
SELECT - + 42, + 98 AS col2
----
-42
98

query II rowsort
SELECT 29 AS col0, 41
----
29
41

onlyif mysql # aggregate syntax: 
query I rowsort label-1567
SELECT DISTINCT - 81 + + - COUNT( * ) - - + COUNT( * )
----
-81

skipif mysql # not compatible
query I rowsort label-1567
SELECT DISTINCT - 81 + + - COUNT ( * ) - - + COUNT ( * )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-1568
SELECT + + ( + COUNT( * ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-1568
SELECT + + ( + COUNT ( * ) ) col0
----
1

query II rowsort
SELECT 28 AS col1, + 66
----
28
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1570
SELECT - - COUNT( + - 90 )
----
1

skipif mysql # not compatible
query I rowsort label-1570
SELECT - - COUNT ( + - 90 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1571
SELECT ALL + 8 * - - ( ( + COUNT( - 91 ) ) ) + + 80 col0
----
88

skipif mysql # not compatible
query I rowsort label-1571
SELECT ALL + 8 * - - ( ( + COUNT ( - 91 ) ) ) + + 80 col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1572
SELECT - COUNT( * ) * 12 + + + 77 AS col0
----
65

skipif mysql # not compatible
query I rowsort label-1572
SELECT - COUNT ( * ) * 12 + + + 77 AS col0
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1573
SELECT - MIN( + CAST( NULL AS SIGNED ) ) + 38 + + 21 * - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-1573
SELECT - MIN ( + CAST ( NULL AS INTEGER ) ) + 38 + + 21 * - 19
----
NULL

query I rowsort
SELECT - 71 * + + 37 * + 23 AS col1
----
-60421

onlyif mysql # aggregate syntax: 
query I rowsort label-1575
SELECT ALL 16 * - + COUNT( * )
----
-16

skipif mysql # not compatible
query I rowsort label-1575
SELECT ALL 16 * - + COUNT ( * )
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1576
SELECT CAST( + + CAST( 50 AS SIGNED ) AS SIGNED ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-1576
SELECT CAST ( + + CAST ( 50 AS INTEGER ) AS INTEGER ) AS col2
----
50

query I rowsort
SELECT DISTINCT + - 47 AS col0
----
-47

query I rowsort
SELECT ALL + + 87 AS col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1579
SELECT + - ( + - COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1579
SELECT + - ( + - COUNT ( * ) ) AS col2
----
1

query I rowsort
SELECT + - 42 * 83 AS col2
----
-3486

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1581
SELECT DISTINCT + CAST( NULL AS SIGNED ) / - 45
----
NULL

skipif mysql # not compatible
query I rowsort label-1581
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / - 45
----
NULL

query I rowsort
SELECT 77 * 37
----
2849

onlyif mysql # aggregate syntax: 
query I rowsort label-1583
SELECT ALL + + COUNT( * ) * - MAX( DISTINCT - 85 )
----
85

skipif mysql # not compatible
query I rowsort label-1583
SELECT ALL + + COUNT ( * ) * - MAX ( DISTINCT - 85 )
----
85

query I rowsort
SELECT 2 * 60
----
120

query I rowsort
SELECT ALL - NULLIF ( 40, - + 20 ) AS col1
----
-40

query I rowsort
SELECT DISTINCT - - ( 30 ) AS col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1587
SELECT DISTINCT MIN( + 26 ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-1587
SELECT DISTINCT MIN ( + 26 ) AS col0
----
26

query I rowsort
SELECT - ( 49 ) + + - ( - ( + 86 ) ) AS col1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-1589
SELECT ALL + + MIN( + 99 )
----
99

skipif mysql # not compatible
query I rowsort label-1589
SELECT ALL + + MIN ( + 99 )
----
99

query I rowsort
SELECT - 6 + + - 95
----
-101

query I rowsort
SELECT ALL + ( ( + 60 ) ) AS col0
----
60

query I rowsort
SELECT DISTINCT + 81 AS col0
----
81

query I rowsort
SELECT 11 * + 91
----
1001

onlyif mysql # aggregate syntax: 
query I rowsort label-1594
SELECT MAX( DISTINCT + ( - + 35 ) )
----
-35

skipif mysql # not compatible
query I rowsort label-1594
SELECT MAX ( DISTINCT + ( - + 35 ) )
----
-35

query I rowsort
SELECT DISTINCT 68 AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1596
SELECT ALL SUM( 9 )
----
9

skipif mysql # not compatible
query I rowsort label-1596
SELECT ALL SUM ( 9 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1597
SELECT - - MIN( - ( + 44 ) ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-1597
SELECT - - MIN ( - ( + 44 ) ) AS col0
----
-44

query I rowsort
SELECT ALL - 55 * ( + + 87 )
----
-4785

query I rowsort
SELECT ( 12 )
----
12

query I rowsort
SELECT DISTINCT ( - 73 ) * ( - - COALESCE ( - 90, NULLIF ( + - 25, + - 4 ) ) ) AS col0
----
6570

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1601
SELECT - ( - COUNT( * ) ) - CAST( NULL AS SIGNED ) / 3
----
NULL

skipif mysql # not compatible
query I rowsort label-1601
SELECT - ( - COUNT ( * ) ) - CAST ( NULL AS INTEGER ) / 3
----
NULL

query I rowsort
SELECT + 96 + 61
----
157

query I rowsort
SELECT ALL ( - 1 ) AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1604
SELECT - 23 DIV - 50
----
0

skipif mysql # not compatible
query I rowsort label-1604
SELECT - 23 / - 50
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1605
SELECT CAST( 52 AS SIGNED )
----
52

skipif mysql # not compatible
query I rowsort label-1605
SELECT CAST ( 52 AS INTEGER )
----
52

query I rowsort
SELECT DISTINCT - 84 * 81 col1
----
-6804

query I rowsort
SELECT + ( - 61 )
----
-61

query I rowsort
SELECT + 21 * 90 AS col1
----
1890

query I rowsort
SELECT 73 - - 98 AS col2
----
171

query I rowsort
SELECT ALL - COALESCE ( + + 15, 86 ) col0
----
-15

query I rowsort
SELECT + 97 col1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1612
SELECT DISTINCT - 15 - - ( + COUNT( * ) ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-1612
SELECT DISTINCT - 15 - - ( + COUNT ( * ) ) AS col0
----
-14

query I rowsort
SELECT - ( - 87 ) col1
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1614
SELECT - 99 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1614
SELECT - 99 + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1615
SELECT DISTINCT - 5 * - - COUNT( * ) - + 53
----
-58

skipif mysql # not compatible
query I rowsort label-1615
SELECT DISTINCT - 5 * - - COUNT ( * ) - + 53
----
-58

query I rowsort
SELECT - + 53 * + - 13 + - 79
----
610

onlyif mysql # aggregate syntax: 
query I rowsort label-1617
SELECT ALL + 78 + - COUNT( * )
----
77

skipif mysql # not compatible
query I rowsort label-1617
SELECT ALL + 78 + - COUNT ( * )
----
77

query I rowsort
SELECT ALL + + 72 * 16 AS col1
----
1152

query II rowsort
SELECT + ( - 58 ) col2, + 33
----
-58
33

query I rowsort
SELECT - 23 * - 46 * + - 31
----
-32798

query I rowsort
SELECT DISTINCT + 56 * 44
----
2464

query I rowsort
SELECT ALL - + 73 AS col0
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-1623
SELECT 4 * + + COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-1623
SELECT 4 * + + COUNT ( * )
----
4

query I rowsort
SELECT DISTINCT 51 col2
----
51

query I rowsort
SELECT ALL - + 63
----
-63

query I rowsort
SELECT - ( - 81 ) AS col0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1627
SELECT CAST( - 48 AS SIGNED ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-1627
SELECT CAST ( - 48 AS INTEGER ) AS col2
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-1628
SELECT + + COUNT( * ) AS col0, 42
----
1
42

skipif mysql # not compatible
query II rowsort label-1628
SELECT + + COUNT ( * ) AS col0, 42
----
1
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1629
SELECT DISTINCT - + NULLIF ( + 76, 56 + - COUNT( * ) )
----
-76

skipif mysql # not compatible
query I rowsort label-1629
SELECT DISTINCT - + NULLIF ( + 76, 56 + - COUNT ( * ) )
----
-76

query I rowsort
SELECT + 16 + 43
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1631
SELECT + 4 + + ( - + COUNT( * ) ) + - 61
----
-58

skipif mysql # not compatible
query I rowsort label-1631
SELECT + 4 + + ( - + COUNT ( * ) ) + - 61
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1632
SELECT DISTINCT - 76 + + ( COUNT( * ) ) DIV 62 AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-1632
SELECT DISTINCT - 76 + + ( COUNT ( * ) ) / 62 AS col2
----
-76

query I rowsort
SELECT - - 98 * 17
----
1666

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1634
SELECT + ( - - CAST( COUNT( * ) AS SIGNED ) ) * - + 89 AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-1634
SELECT + ( - - CAST ( COUNT ( * ) AS INTEGER ) ) * - + 89 AS col2
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-1635
SELECT ALL - - COUNT( + 87 )
----
1

skipif mysql # not compatible
query I rowsort label-1635
SELECT ALL - - COUNT ( + 87 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1636
SELECT DISTINCT - SUM( ALL - - 23 ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-1636
SELECT DISTINCT - SUM ( ALL - - 23 ) AS col2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-1637
SELECT + - COUNT( ALL - - 28 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1637
SELECT + - COUNT ( ALL - - 28 ) AS col1
----
-1

query I rowsort
SELECT 74 + - + COALESCE ( - - 3, + 37 ) AS col0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-1639
SELECT + COUNT( * ) + - + 91 AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-1639
SELECT + COUNT ( * ) + - + 91 AS col2
----
-90

query I rowsort
SELECT - ( - 92 ) col0
----
92

query I rowsort
SELECT DISTINCT 21 * + 71
----
1491

onlyif mysql # aggregate syntax: 
query I rowsort label-1642
SELECT SUM( 15 ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-1642
SELECT SUM ( 15 ) AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1643
SELECT ALL - SUM( ALL - + 61 )
----
61

skipif mysql # not compatible
query I rowsort label-1643
SELECT ALL - SUM ( ALL - + 61 )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1644
SELECT + MAX( DISTINCT 57 ) col2
----
57

skipif mysql # not compatible
query I rowsort label-1644
SELECT + MAX ( DISTINCT 57 ) col2
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1645
SELECT COUNT( * ) * + 21 DIV - + COUNT( * )
----
-21

skipif mysql # not compatible
query I rowsort label-1645
SELECT COUNT ( * ) * + 21 / - + COUNT ( * )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-1646
SELECT DISTINCT ( COUNT( + 9 ) )
----
1

skipif mysql # not compatible
query I rowsort label-1646
SELECT DISTINCT ( COUNT ( + 9 ) )
----
1

query I rowsort
SELECT + - 69 + - + 20 AS col0
----
-89

query I rowsort
SELECT ALL - 30 + - ( + 47 ) * 24 AS col0
----
-1158

onlyif mysql # aggregate syntax: 
query I rowsort label-1649
SELECT ALL + COUNT( * ) + ( + COUNT( * ) ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-1649
SELECT ALL + COUNT ( * ) + ( + COUNT ( * ) ) AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1650
SELECT + MAX( DISTINCT - 49 )
----
-49

skipif mysql # not compatible
query I rowsort label-1650
SELECT + MAX ( DISTINCT - 49 )
----
-49

query I rowsort
SELECT - 96 col1
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1652
SELECT + CAST( NULL AS SIGNED ) + + 78
----
NULL

skipif mysql # not compatible
query I rowsort label-1652
SELECT + CAST ( NULL AS INTEGER ) + + 78
----
NULL

query I rowsort
SELECT DISTINCT 38 AS col2
----
38

query I rowsort
SELECT 93 * + + 79
----
7347

query I rowsort
SELECT ALL - ( - 32 )
----
32

query I rowsort
SELECT DISTINCT + ( + - 70 )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-1657
SELECT MAX( 77 ) * 68
----
5236

skipif mysql # not compatible
query I rowsort label-1657
SELECT MAX ( 77 ) * 68
----
5236

onlyif mysql # DIV for integer division: 
query I rowsort label-1658
SELECT ALL 17 DIV - 11 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1658
SELECT ALL 17 / - 11 AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1659
SELECT COUNT( * ) * 2 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1659
SELECT COUNT ( * ) * 2 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1660
SELECT DISTINCT - CAST( NULL AS SIGNED ) * COUNT( * ) + - 99 + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-1660
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * COUNT ( * ) + - 99 + 84
----
NULL

query I rowsort
SELECT ALL + + 83 AS col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1662
SELECT ALL NULLIF ( - COUNT( * ), + + 42 )
----
-1

skipif mysql # not compatible
query I rowsort label-1662
SELECT ALL NULLIF ( - COUNT ( * ), + + 42 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1663
SELECT - ( + CAST( 47 AS SIGNED ) ) col1
----
-47

skipif mysql # not compatible
query I rowsort label-1663
SELECT - ( + CAST ( 47 AS INTEGER ) ) col1
----
-47

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1664
SELECT + CAST( + + CAST( NULL AS SIGNED ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1664
SELECT + CAST ( + + CAST ( NULL AS INTEGER ) AS REAL )
----
NULL

query I rowsort
SELECT DISTINCT + - 49
----
-49

query I rowsort
SELECT + - 59
----
-59

query I rowsort
SELECT + 64 * 25 * + 36 AS col1
----
57600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1668
SELECT ALL CAST( - - 80 AS SIGNED ) col2
----
80

skipif mysql # not compatible
query I rowsort label-1668
SELECT ALL CAST ( - - 80 AS INTEGER ) col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-1669
SELECT 93 * - COUNT( * ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-1669
SELECT 93 * - COUNT ( * ) AS col0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-1670
SELECT COUNT( * ) + - 95 + + 99 * 86
----
8420

skipif mysql # not compatible
query I rowsort label-1670
SELECT COUNT ( * ) + - 95 + + 99 * 86
----
8420

query I rowsort
SELECT DISTINCT - ( - 79 )
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1672
SELECT + MAX( ALL CAST( NULL AS SIGNED ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1672
SELECT + MAX ( ALL CAST ( NULL AS INTEGER ) ) col2
----
NULL

query I rowsort
SELECT + 21 col1
----
21

query I rowsort
SELECT DISTINCT 14 col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1675
SELECT + COUNT( * ) * COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1675
SELECT + COUNT ( * ) * COUNT ( * ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1676
SELECT 30 DIV + + 12 * - + COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-1676
SELECT 30 / + + 12 * - + COUNT ( * )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1677
SELECT ALL - SUM( + 10 ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-1677
SELECT ALL - SUM ( + 10 ) AS col1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-1678
SELECT ALL + MAX( - + 66 )
----
-66

skipif mysql # not compatible
query I rowsort label-1678
SELECT ALL + MAX ( - + 66 )
----
-66

query I rowsort
SELECT DISTINCT 46 + - 38 + - 19 col0
----
-11

query I rowsort
SELECT ALL + 55 - - 91
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-1681
SELECT DISTINCT SUM( ALL 29 ) * - ( + - 54 ) AS col0
----
1566

skipif mysql # not compatible
query I rowsort label-1681
SELECT DISTINCT SUM ( ALL 29 ) * - ( + - 54 ) AS col0
----
1566

query I rowsort
SELECT - 3 + - + 84 AS col1
----
-87

query I rowsort
SELECT ALL - ( 42 ) AS col0
----
-42

query I rowsort
SELECT ALL + - 68 AS col0
----
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-1685
SELECT - COUNT( * ), + 93 AS col2
----
-1
93

skipif mysql # not compatible
query II rowsort label-1685
SELECT - COUNT ( * ), + 93 AS col2
----
-1
93

query I rowsort
SELECT ALL + + 34
----
34

query I rowsort
SELECT DISTINCT 45 col1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1688
SELECT ALL COUNT( * ) * - - 61 AS col2
----
61

skipif mysql # not compatible
query I rowsort label-1688
SELECT ALL COUNT ( * ) * - - 61 AS col2
----
61

query I rowsort
SELECT - - 39 col0
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1690
SELECT - CAST( + COALESCE ( + 82, + COUNT( * ) ) AS SIGNED ) DIV - + 84
----
0

skipif mysql # not compatible
query I rowsort label-1690
SELECT - CAST ( + COALESCE ( + 82, + COUNT ( * ) ) AS INTEGER ) / - + 84
----
0

query I rowsort
SELECT - - ( ( + + 10 ) )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1692
SELECT - SUM( ALL - 88 ) col2
----
88

skipif mysql # not compatible
query I rowsort label-1692
SELECT - SUM ( ALL - 88 ) col2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1693
SELECT + NULLIF ( + 59, - NULLIF ( - + ( - 76 ), COUNT( * ) ) ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-1693
SELECT + NULLIF ( + 59, - NULLIF ( - + ( - 76 ), COUNT ( * ) ) ) AS col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1694
SELECT ALL - 27 * - + COUNT( * ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-1694
SELECT ALL - 27 * - + COUNT ( * ) AS col1
----
27

query I rowsort
SELECT - + 7 col1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1696
SELECT DISTINCT + ( COUNT( * ) ) * - MIN( ALL - 43 ) * 63
----
2709

skipif mysql # not compatible
query I rowsort label-1696
SELECT DISTINCT + ( COUNT ( * ) ) * - MIN ( ALL - 43 ) * 63
----
2709

query I rowsort
SELECT ALL - + 86 AS col0
----
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1698
SELECT CAST( - 66 AS SIGNED ) col2
----
-66

skipif mysql # not compatible
query I rowsort label-1698
SELECT CAST ( - 66 AS INTEGER ) col2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-1699
SELECT ALL - COUNT( * ) - - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1699
SELECT ALL - COUNT ( * ) - - COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1700
SELECT DISTINCT - MIN( ALL - 80 ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-1700
SELECT DISTINCT - MIN ( ALL - 80 ) AS col1
----
80

query II rowsort
SELECT 34, 23 AS col1
----
34
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1702
SELECT - COALESCE ( + CAST( + - 75 AS SIGNED ), - 92 ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-1702
SELECT - COALESCE ( + CAST ( + - 75 AS INTEGER ), - 92 ) AS col2
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1703
SELECT - CAST( - 66 AS SIGNED )
----
66

skipif mysql # not compatible
query I rowsort label-1703
SELECT - CAST ( - 66 AS INTEGER )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1704
SELECT - 79 + COUNT( * ) AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-1704
SELECT - 79 + COUNT ( * ) AS col1
----
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1705
SELECT DISTINCT + COUNT( * ) DIV + 74
----
0

skipif mysql # not compatible
query I rowsort label-1705
SELECT DISTINCT + COUNT ( * ) / + 74
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-1706
SELECT + 10 + + 6 AS col2, - 48 DIV 34 + + - 51 AS col2
----
16
-52

skipif mysql # not compatible
query II rowsort label-1706
SELECT + 10 + + 6 AS col2, - 48 / 34 + + - 51 AS col2
----
16
-52

query I rowsort
SELECT - + 90 col1
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1708
SELECT DISTINCT + COUNT( * ) / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1708
SELECT DISTINCT + COUNT ( * ) / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1709
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2, CAST( NULL AS SIGNED ) - - 35 AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1709
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2, CAST ( NULL AS INTEGER ) - - 35 AS col0
----
NULL
NULL

query I rowsort
SELECT ALL + 96 * - 99 AS col1
----
-9504

query I rowsort
SELECT + ( 76 )
----
76

query II rowsort
SELECT 69 AS col1, 61
----
69
61

query I rowsort
SELECT ( + 86 ) col1
----
86

query I rowsort
SELECT ALL + 74 * - - 22 AS col0
----
1628

query I rowsort
SELECT DISTINCT - + 22
----
-22

query I rowsort
SELECT DISTINCT - ( 83 )
----
-83

query I rowsort
SELECT DISTINCT 87 * - 1 AS col1
----
-87

query I rowsort
SELECT DISTINCT + + 36 AS col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-1719
SELECT DISTINCT - + 34 + - COUNT( * )
----
-35

skipif mysql # not compatible
query I rowsort label-1719
SELECT DISTINCT - + 34 + - COUNT ( * )
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1720
SELECT - + ( - - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1720
SELECT - + ( - - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1721
SELECT ALL CAST( NULL AS SIGNED ) - + - NULLIF ( 13, 84 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1721
SELECT ALL CAST ( NULL AS INTEGER ) - + - NULLIF ( 13, 84 ) AS col2
----
NULL

query I rowsort
SELECT - ( 33 ) AS col0
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-1723
SELECT DISTINCT 44, COUNT( + - 17 ) AS col1
----
44
1

skipif mysql # not compatible
query II rowsort label-1723
SELECT DISTINCT 44, COUNT ( + - 17 ) AS col1
----
44
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1724
SELECT - - 1 + + CAST( NULL AS SIGNED ) * - + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-1724
SELECT - - 1 + + CAST ( NULL AS INTEGER ) * - + 60
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1725
SELECT - 68 * - COUNT( DISTINCT - ( + ( - 22 ) ) )
----
68

skipif mysql # not compatible
query I rowsort label-1725
SELECT - 68 * - COUNT ( DISTINCT - ( + ( - 22 ) ) )
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1726
SELECT ( - + CAST( NULL AS SIGNED ) ) / - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1726
SELECT ( - + CAST ( NULL AS INTEGER ) ) / - COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1727
SELECT DISTINCT + ( + 7 ) * - - COUNT( * ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-1727
SELECT DISTINCT + ( + 7 ) * - - COUNT ( * ) AS col0
----
7

query I rowsort
SELECT ALL 33 + + 25 AS col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1729
SELECT + CASE COUNT( * ) WHEN - COUNT( * ) THEN 27 WHEN + COUNT( * ) THEN 28 END AS col0
----
28

skipif mysql # not compatible
query I rowsort label-1729
SELECT + CASE COUNT ( * ) WHEN - COUNT ( * ) THEN 27 WHEN + COUNT ( * ) THEN 28 END AS col0
----
28

query I rowsort
SELECT 72 * - + 26 AS col0
----
-1872

query I rowsort
SELECT ALL - + 95 + + 79 + 83
----
67

query I rowsort
SELECT + 1 + - + 75
----
-74

query II rowsort
SELECT 24 AS col2, 76 + - ( 80 )
----
24
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-1734
SELECT + - COUNT( DISTINCT 43 )
----
-1

skipif mysql # not compatible
query I rowsort label-1734
SELECT + - COUNT ( DISTINCT 43 )
----
-1

query I rowsort
SELECT - 39 * - 92
----
3588

onlyif mysql # aggregate syntax: 
query I rowsort label-1736
SELECT - 68 - - - COUNT( * )
----
-69

skipif mysql # not compatible
query I rowsort label-1736
SELECT - 68 - - - COUNT ( * )
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1737
SELECT + 15 DIV COUNT( * ) * - + CAST( + MAX( DISTINCT 88 ) AS SIGNED ) AS col1
----
-1320

skipif mysql # not compatible
query I rowsort label-1737
SELECT + 15 / COUNT ( * ) * - + CAST ( + MAX ( DISTINCT 88 ) AS INTEGER ) AS col1
----
-1320

query I rowsort
SELECT - 43 col2
----
-43

query I rowsort
SELECT DISTINCT + - 45 AS col2
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-1740
SELECT MAX( DISTINCT - 92 )
----
-92

skipif mysql # not compatible
query I rowsort label-1740
SELECT MAX ( DISTINCT - 92 )
----
-92

query I rowsort
SELECT - ( + 17 ) AS col1
----
-17

query I rowsort
SELECT ( - 92 ) AS col1
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-1743
SELECT - - COUNT( * ) + + 51
----
52

skipif mysql # not compatible
query I rowsort label-1743
SELECT - - COUNT ( * ) + + 51
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-1744
SELECT ALL + COUNT( * ) + 13
----
14

skipif mysql # not compatible
query I rowsort label-1744
SELECT ALL + COUNT ( * ) + 13
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1745
SELECT ALL COUNT( * ) * ( + + COUNT( * ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-1745
SELECT ALL COUNT ( * ) * ( + + COUNT ( * ) ) col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1746
SELECT ALL COALESCE ( CAST( NULL AS SIGNED ), + - 82, + - COUNT( * ) ) col1
----
-82

skipif mysql # not compatible
query I rowsort label-1746
SELECT ALL COALESCE ( CAST ( NULL AS INTEGER ), + - 82, + - COUNT ( * ) ) col1
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-1747
SELECT ALL 36 * + COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-1747
SELECT ALL 36 * + COUNT ( * )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-1748
SELECT ALL ( - CASE + 72 WHEN + COUNT( * ) THEN 81 END ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1748
SELECT ALL ( - CASE + 72 WHEN + COUNT ( * ) THEN 81 END ) + - COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1749
SELECT 6 * 0 DIV 29
----
0

skipif mysql # not compatible
query I rowsort label-1749
SELECT 6 * 0 / 29
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1750
SELECT ALL - CAST( + ( 12 ) AS SIGNED ) AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-1750
SELECT ALL - CAST ( + ( 12 ) AS INTEGER ) AS col2
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1751
SELECT + CAST( NULL AS SIGNED ) * 52 - 17 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1751
SELECT + CAST ( NULL AS INTEGER ) * 52 - 17 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1752
SELECT ALL - 96 + ( + + SUM( + + CAST( NULL AS SIGNED ) ) ) * - - 39
----
NULL

skipif mysql # not compatible
query I rowsort label-1752
SELECT ALL - 96 + ( + + SUM ( + + CAST ( NULL AS INTEGER ) ) ) * - - 39
----
NULL

query I rowsort
SELECT - + 68 col0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-1754
SELECT DISTINCT 96 + + 13 * COUNT( * ) AS col0
----
109

skipif mysql # not compatible
query I rowsort label-1754
SELECT DISTINCT 96 + + 13 * COUNT ( * ) AS col0
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-1755
SELECT + SUM( ALL - 83 )
----
-83

skipif mysql # not compatible
query I rowsort label-1755
SELECT + SUM ( ALL - 83 )
----
-83

query I rowsort
SELECT ALL 68 * - + 57
----
-3876

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1757
SELECT + CAST( NULL AS SIGNED ) + 32 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1757
SELECT + CAST ( NULL AS INTEGER ) + 32 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1758
SELECT DISTINCT + COUNT( + - CAST( NULL AS DECIMAL ) )
----
0

skipif mysql # not compatible
query I rowsort label-1758
SELECT DISTINCT + COUNT ( + - CAST ( NULL AS REAL ) )
----
0

query I rowsort
SELECT - 94 + + 45
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-1760
SELECT DISTINCT - 50 * - SUM( DISTINCT 94 )
----
4700

skipif mysql # not compatible
query I rowsort label-1760
SELECT DISTINCT - 50 * - SUM ( DISTINCT 94 )
----
4700

query I rowsort
SELECT ALL - 0 + - 11
----
-11

query II rowsort
SELECT + ( 44 ) + + 38 col2, 55
----
82
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1763
SELECT ALL ( - - COALESCE ( - + COUNT( * ), - 57 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1763
SELECT ALL ( - - COALESCE ( - + COUNT ( * ), - 57 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1764
SELECT + 63 * - + COUNT( * )
----
-63

skipif mysql # not compatible
query I rowsort label-1764
SELECT + 63 * - + COUNT ( * )
----
-63

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1765
SELECT DISTINCT + ( + + CASE + + ( ( - + 61 ) ) WHEN 31 THEN NULL ELSE - NULLIF ( + - CAST( NULL AS DECIMAL ), - 22 * - 52 ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1765
SELECT DISTINCT + ( + + CASE + + ( ( - + 61 ) ) WHEN 31 THEN NULL ELSE - NULLIF ( + - CAST ( NULL AS REAL ), - 22 * - 52 ) END )
----
NULL

query I rowsort
SELECT DISTINCT + - 28
----
-28

query I rowsort
SELECT ALL ( 41 ) AS col1
----
41

query I rowsort
SELECT - + 90 AS col2
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-1769
SELECT + 88 + - COUNT( * )
----
87

skipif mysql # not compatible
query I rowsort label-1769
SELECT + 88 + - COUNT ( * )
----
87

query I rowsort
SELECT - 1 + 46
----
45

query I rowsort
SELECT 97 * - - 32
----
3104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1772
SELECT ALL + 90 DIV - + COUNT( * )
----
-90

skipif mysql # not compatible
query I rowsort label-1772
SELECT ALL + 90 / - + COUNT ( * )
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1773
SELECT ALL - CAST( COUNT( * ) AS SIGNED ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1773
SELECT ALL - CAST ( COUNT ( * ) AS INTEGER ) AS col2
----
-1

query I rowsort
SELECT ALL - ( + 69 )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-1775
SELECT COUNT( * ) * - COUNT( * ) * - - SUM( ALL + 52 )
----
-52

skipif mysql # not compatible
query I rowsort label-1775
SELECT COUNT ( * ) * - COUNT ( * ) * - - SUM ( ALL + 52 )
----
-52

query I rowsort
SELECT DISTINCT + 90 - + - 8
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1777
SELECT - - CAST( - + 22 AS SIGNED )
----
-22

skipif mysql # not compatible
query I rowsort label-1777
SELECT - - CAST ( - + 22 AS INTEGER )
----
-22

query I rowsort
SELECT - + 36 col1
----
-36

query I rowsort
SELECT ALL 28 * - 86 * 27
----
-65016

onlyif mysql # aggregate syntax: 
query II rowsort label-1780
SELECT - COUNT( * ) AS col2, 79
----
-1
79

skipif mysql # not compatible
query II rowsort label-1780
SELECT - COUNT ( * ) AS col2, 79
----
-1
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1781
SELECT ALL + 33 DIV + + COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-1781
SELECT ALL + 33 / + + COUNT ( * )
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1782
SELECT ALL - CAST( - 57 AS SIGNED )
----
57

skipif mysql # not compatible
query I rowsort label-1782
SELECT ALL - CAST ( - 57 AS INTEGER )
----
57

query I rowsort
SELECT + 32 + - 54 AS col1
----
-22

query I rowsort
SELECT - ( ( + 33 ) ) AS col1
----
-33

query I rowsort
SELECT 82 col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1786
SELECT ALL + - ( + COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1786
SELECT ALL + - ( + COUNT ( * ) )
----
-1

query I rowsort
SELECT DISTINCT + + 85 * 17
----
1445

query I rowsort
SELECT DISTINCT ( - 0 ) AS col0
----
0

query I rowsort
SELECT + 73 * + 71 AS col1
----
5183

onlyif mysql # aggregate syntax: 
query I rowsort label-1790
SELECT + SUM( ALL 3 ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-1790
SELECT + SUM ( ALL 3 ) AS col2
----
3

query I rowsort
SELECT DISTINCT - + 90
----
-90

query I rowsort
SELECT + ( - + 78 ) AS col2
----
-78

query I rowsort
SELECT 41 * - 29 col2
----
-1189

onlyif mysql # aggregate syntax: 
query I rowsort label-1794
SELECT - MIN( - + 1 )
----
1

skipif mysql # not compatible
query I rowsort label-1794
SELECT - MIN ( - + 1 )
----
1

query I rowsort
SELECT ALL - 99 * - 54 col1
----
5346

query I rowsort
SELECT 12 + 4 AS col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1797
SELECT + COUNT( + COALESCE ( - 2, - + 50 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1797
SELECT + COUNT ( + COALESCE ( - 2, - + 50 ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1798
SELECT ALL + COUNT( ALL 7 )
----
1

skipif mysql # not compatible
query I rowsort label-1798
SELECT ALL + COUNT ( ALL 7 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1799
SELECT + 14 * + + COUNT( + - ( - 16 ) ) AS col0
----
14

skipif mysql # not compatible
query I rowsort label-1799
SELECT + 14 * + + COUNT ( + - ( - 16 ) ) AS col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1800
SELECT MIN( DISTINCT - 51 )
----
-51

skipif mysql # not compatible
query I rowsort label-1800
SELECT MIN ( DISTINCT - 51 )
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1801
SELECT ALL + COUNT( * ) + - 21 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1801
SELECT ALL + COUNT ( * ) + - 21 + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1802
SELECT DISTINCT + ( - - CAST( NULL AS SIGNED ) ) + - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1802
SELECT DISTINCT + ( - - CAST ( NULL AS INTEGER ) ) + - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL - ( - 71 )
----
71

query I rowsort
SELECT ALL + 24 * - - 33 AS col2
----
792

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1805
SELECT + 93 * + CAST( NULL AS SIGNED ) + + - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-1805
SELECT + 93 * + CAST ( NULL AS INTEGER ) + + - 86
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1806
SELECT 21 * + + COUNT( * )
----
21

skipif mysql # not compatible
query I rowsort label-1806
SELECT 21 * + + COUNT ( * )
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1807
SELECT - CAST( + COUNT( * ) AS SIGNED ) DIV + 19 + - 63
----
-63

skipif mysql # not compatible
query I rowsort label-1807
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) / + 19 + - 63
----
-63

query I rowsort
SELECT ALL - ( - + 22 )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-1809
SELECT ALL - 72 * COUNT( * ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-1809
SELECT ALL - 72 * COUNT ( * ) AS col2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-1810
SELECT + MAX( DISTINCT + + 40 )
----
40

skipif mysql # not compatible
query I rowsort label-1810
SELECT + MAX ( DISTINCT + + 40 )
----
40

query I rowsort
SELECT ( - - 36 )
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1812
SELECT - - COUNT( * ) - 2 DIV + 88
----
1

skipif mysql # not compatible
query I rowsort label-1812
SELECT - - COUNT ( * ) - 2 / + 88
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1813
SELECT + COUNT( * ) - + 93 AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-1813
SELECT + COUNT ( * ) - + 93 AS col0
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1814
SELECT DISTINCT + CAST( - - MAX( DISTINCT - 49 ) AS SIGNED ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-1814
SELECT DISTINCT + CAST ( - - MAX ( DISTINCT - 49 ) AS INTEGER ) AS col2
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-1815
SELECT 21 * + + 61 - - COUNT( * ) AS col0
----
1282

skipif mysql # not compatible
query I rowsort label-1815
SELECT 21 * + + 61 - - COUNT ( * ) AS col0
----
1282

onlyif mysql # aggregate syntax: 
query I rowsort label-1816
SELECT - 71 * + COUNT( * ) AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-1816
SELECT - 71 * + COUNT ( * ) AS col1
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1817
SELECT CAST( NULL AS SIGNED ) + - ( - + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1817
SELECT CAST ( NULL AS INTEGER ) + - ( - + COUNT ( * ) )
----
NULL

query I rowsort
SELECT + 18 * + 45 * - + 46
----
-37260

query I rowsort
SELECT ALL - 24 + + ( - + 40 ) col2
----
-64

query I rowsort
SELECT ALL 3 - - 72 * - 76
----
-5469

onlyif mysql # aggregate syntax: 
query I rowsort label-1821
SELECT ALL 30 * - COUNT( * ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-1821
SELECT ALL 30 * - COUNT ( * ) AS col1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-1822
SELECT DISTINCT COUNT( * ) * + 79 - - + 21
----
100

skipif mysql # not compatible
query I rowsort label-1822
SELECT DISTINCT COUNT ( * ) * + 79 - - + 21
----
100

query I rowsort
SELECT 15 * 78 AS col2
----
1170

onlyif mysql # aggregate syntax: 
query I rowsort label-1824
SELECT + COUNT( * ) * 36
----
36

skipif mysql # not compatible
query I rowsort label-1824
SELECT + COUNT ( * ) * 36
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-1825
SELECT - - 57 DIV + 27
----
2

skipif mysql # not compatible
query I rowsort label-1825
SELECT - - 57 / + 27
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1826
SELECT - COUNT( * ) * 28 AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-1826
SELECT - COUNT ( * ) * 28 AS col0
----
-28

query I rowsort
SELECT - 79 - 67 * 36 AS col0
----
-2491

query I rowsort
SELECT ALL - 4 * + 15 AS col0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-1829
SELECT + - COUNT( * ) + - - COUNT( * ) - 85 AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-1829
SELECT + - COUNT ( * ) + - - COUNT ( * ) - 85 AS col1
----
-85

query I rowsort
SELECT DISTINCT - + 70 col0
----
-70

query I rowsort
SELECT DISTINCT 24 col2
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1832
SELECT 84 DIV ( - COUNT( * ) ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-1832
SELECT 84 / ( - COUNT ( * ) ) AS col2
----
-84

query I rowsort
SELECT ALL 41 col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-1834
SELECT ALL - COUNT( * ) + - 84
----
-85

skipif mysql # not compatible
query I rowsort label-1834
SELECT ALL - COUNT ( * ) + - 84
----
-85

query I rowsort
SELECT ALL + 82 + 97
----
179

onlyif mysql # aggregate syntax: 
query I rowsort label-1836
SELECT 54 + COUNT( * )
----
55

skipif mysql # not compatible
query I rowsort label-1836
SELECT 54 + COUNT ( * )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1837
SELECT COUNT( - 85 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1837
SELECT COUNT ( - 85 ) AS col1
----
1

query I rowsort
SELECT 1 col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1839
SELECT DISTINCT - + 82 + COUNT( * )
----
-81

skipif mysql # not compatible
query I rowsort label-1839
SELECT DISTINCT - + 82 + COUNT ( * )
----
-81

query I rowsort
SELECT - 41 * + 17
----
-697

onlyif mysql # aggregate syntax: 
query I rowsort label-1841
SELECT + COALESCE ( + COUNT( * ), COUNT( * ) + 77 ) * 96 col2
----
96

skipif mysql # not compatible
query I rowsort label-1841
SELECT + COALESCE ( + COUNT ( * ), COUNT ( * ) + 77 ) * 96 col2
----
96

query I rowsort
SELECT - + 17 col1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-1843
SELECT ALL + COUNT( * ) * + 19
----
19

skipif mysql # not compatible
query I rowsort label-1843
SELECT ALL + COUNT ( * ) * + 19
----
19

query I rowsort
SELECT DISTINCT + - 88 AS col0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-1845
SELECT + + 50 * + COUNT( * )
----
50

skipif mysql # not compatible
query I rowsort label-1845
SELECT + + 50 * + COUNT ( * )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-1846
SELECT + 77 * ( - COUNT( * ) ) + + 68 * + COUNT( * ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-1846
SELECT + 77 * ( - COUNT ( * ) ) + + 68 * + COUNT ( * ) AS col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1847
SELECT SUM( - 0 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1847
SELECT SUM ( - 0 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1848
SELECT - 73 + + - 70 * COUNT( * )
----
-143

skipif mysql # not compatible
query I rowsort label-1848
SELECT - 73 + + - 70 * COUNT ( * )
----
-143

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1849
SELECT - CAST( NULL AS SIGNED ) + + 63 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1849
SELECT - CAST ( NULL AS INTEGER ) + + 63 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1850
SELECT DISTINCT - - ( COUNT( * ) ) * - 29
----
-29

skipif mysql # not compatible
query I rowsort label-1850
SELECT DISTINCT - - ( COUNT ( * ) ) * - 29
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-1851
SELECT + COUNT( + 37 )
----
1

skipif mysql # not compatible
query I rowsort label-1851
SELECT + COUNT ( + 37 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1852
SELECT + 64 AS col2, - COUNT( * ) AS col1
----
64
-1

skipif mysql # not compatible
query II rowsort label-1852
SELECT + 64 AS col2, - COUNT ( * ) AS col1
----
64
-1

query I rowsort
SELECT DISTINCT + ( - 55 ) AS col2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-1854
SELECT ALL 61 + COUNT( * )
----
62

skipif mysql # not compatible
query I rowsort label-1854
SELECT ALL 61 + COUNT ( * )
----
62

query I rowsort
SELECT DISTINCT - ( + + 64 )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-1856
SELECT COUNT( * ) + - 63 AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-1856
SELECT COUNT ( * ) + - 63 AS col1
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-1857
SELECT DISTINCT SUM( ALL + 67 )
----
67

skipif mysql # not compatible
query I rowsort label-1857
SELECT DISTINCT SUM ( ALL + 67 )
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1858
SELECT DISTINCT + COUNT( * ) DIV - - COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1858
SELECT DISTINCT + COUNT ( * ) / - - COUNT ( * ) AS col1
----
1

query I rowsort
SELECT ALL - 19 * + 14 AS col0
----
-266

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1860
SELECT + ( + CAST( 41 AS SIGNED ) )
----
41

skipif mysql # not compatible
query I rowsort label-1860
SELECT + ( + CAST ( 41 AS INTEGER ) )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-1861
SELECT ALL COUNT( * ) * + 68 col0
----
68

skipif mysql # not compatible
query I rowsort label-1861
SELECT ALL COUNT ( * ) * + 68 col0
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1862
SELECT ALL + ( - - 36 ) DIV + COUNT( + 98 ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-1862
SELECT ALL + ( - - 36 ) / + COUNT ( + 98 ) AS col2
----
36

query I rowsort
SELECT ALL + + 31
----
31

query I rowsort
SELECT DISTINCT + ( ( - COALESCE ( - 23, 77 ) ) ) AS col2
----
23

query I rowsort
SELECT ALL + - 98
----
-98

query I rowsort
SELECT ALL - ( - 7 ) AS col1
----
7

query I rowsort
SELECT DISTINCT + + 1 * + 36 * + 48 * + 79 col0
----
136512

query I rowsort
SELECT - NULLIF ( - 87, 65 * 27 - + 65 ) AS col1
----
87

query II rowsort
SELECT ALL + 50 AS col0, 56
----
50
56

query I rowsort
SELECT + + 32 AS col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-1871
SELECT ALL - COUNT( * ) * 0
----
0

skipif mysql # not compatible
query I rowsort label-1871
SELECT ALL - COUNT ( * ) * 0
----
0

query I rowsort
SELECT + + 78 AS col0
----
78

query I rowsort
SELECT ALL 2 col1
----
2

query I rowsort
SELECT ALL - 92 * - 75 AS col1
----
6900

onlyif mysql # aggregate syntax: 
query I rowsort label-1875
SELECT ( - + COUNT( * ) ) - ( 84 )
----
-85

skipif mysql # not compatible
query I rowsort label-1875
SELECT ( - + COUNT ( * ) ) - ( 84 )
----
-85

query I rowsort
SELECT 22 * - - 65 col2
----
1430

query I rowsort
SELECT 39 * - - 40
----
1560

onlyif mysql # aggregate syntax: 
query II rowsort label-1878
SELECT DISTINCT + 38 AS col2, COUNT( * )
----
38
1

skipif mysql # not compatible
query II rowsort label-1878
SELECT DISTINCT + 38 AS col2, COUNT ( * )
----
38
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1879
SELECT + COUNT( * ) DIV + + 37 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1879
SELECT + COUNT ( * ) / + + 37 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1880
SELECT ALL + - COUNT( ALL + - 46 )
----
-1

skipif mysql # not compatible
query I rowsort label-1880
SELECT ALL + - COUNT ( ALL + - 46 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1881
SELECT + COUNT( * ) * - ( - + 38 ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-1881
SELECT + COUNT ( * ) * - ( - + 38 ) AS col1
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1882
SELECT ALL CAST( 36 AS SIGNED )
----
36

skipif mysql # not compatible
query I rowsort label-1882
SELECT ALL CAST ( 36 AS INTEGER )
----
36

query I rowsort
SELECT + 91 * 84 AS col0
----
7644

query I rowsort
SELECT - 38 + + - 89 AS col0
----
-127

query I rowsort
SELECT - 19 + + 8 - 4
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1886
SELECT DISTINCT CAST( NULL AS SIGNED ) + 65 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1886
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 65 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1887
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1887
SELECT DISTINCT + CAST ( NULL AS REAL ) * + COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT - 57 * - 76
----
4332

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1889
SELECT ALL + - CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) * + CAST( NULL AS SIGNED ) * - + 65 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1889
SELECT ALL + - CAST ( CAST ( NULL AS INTEGER ) AS REAL ) * + CAST ( NULL AS INTEGER ) * - + 65 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - + 74 AS col2
----
-74

query I rowsort
SELECT + ( - 77 )
----
-77

query I rowsort
SELECT DISTINCT - + 78 col1
----
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1893
SELECT ALL + COUNT( * ) DIV 65 + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1893
SELECT ALL + COUNT ( * ) / 65 + COUNT ( * ) AS col2
----
1

query I rowsort
SELECT + 42 + + 70
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-1895
SELECT - COUNT( * ) + - - 47 AS col0
----
46

skipif mysql # not compatible
query I rowsort label-1895
SELECT - COUNT ( * ) + - - 47 AS col0
----
46

query I rowsort
SELECT - + 95 * - + 13 AS col0
----
1235

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1897
SELECT - + ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1897
SELECT - + ( - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ( - - 16 ) AS col1
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-1899
SELECT ALL - - 78 + 19 DIV - 98
----
78

skipif mysql # not compatible
query I rowsort label-1899
SELECT ALL - - 78 + 19 / - 98
----
78

query I rowsort
SELECT + + 79 col0
----
79

query I rowsort
SELECT + ( + 65 )
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1902
SELECT CAST( NULL AS SIGNED ) / - + 85 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1902
SELECT CAST ( NULL AS INTEGER ) / - + 85 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1903
SELECT ALL COUNT( * ) + - - MAX( ALL 4 ) - 66
----
-61

skipif mysql # not compatible
query I rowsort label-1903
SELECT ALL COUNT ( * ) + - - MAX ( ALL 4 ) - 66
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-1904
SELECT ALL - COUNT( * ) - + - 60
----
59

skipif mysql # not compatible
query I rowsort label-1904
SELECT ALL - COUNT ( * ) - + - 60
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1905
SELECT ALL COUNT( * ) * + - ( - ( + COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-1905
SELECT ALL COUNT ( * ) * + - ( - ( + COUNT ( * ) ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1906
SELECT - ( + + CAST( + 3 AS SIGNED ) ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-1906
SELECT - ( + + CAST ( + 3 AS INTEGER ) ) AS col0
----
-3

query I rowsort
SELECT DISTINCT - 99 - - 55
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1908
SELECT DISTINCT - 51 - COUNT( * ) * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1908
SELECT DISTINCT - 51 - COUNT ( * ) * + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1909
SELECT + MIN( + 74 )
----
74

skipif mysql # not compatible
query I rowsort label-1909
SELECT + MIN ( + 74 )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1910
SELECT - - ( + COUNT( * ) ) + - + COUNT( * ) col0
----
0

skipif mysql # not compatible
query I rowsort label-1910
SELECT - - ( + COUNT ( * ) ) + - + COUNT ( * ) col0
----
0

query I rowsort
SELECT - + 71 + - 50 col1
----
-121

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1912
SELECT - 32 DIV + COUNT( * ) AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-1912
SELECT - 32 / + COUNT ( * ) AS col0
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1913
SELECT ALL CAST( - 22 AS SIGNED ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-1913
SELECT ALL CAST ( - 22 AS INTEGER ) AS col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-1914
SELECT - SUM( DISTINCT 9 ) col1
----
-9

skipif mysql # not compatible
query I rowsort label-1914
SELECT - SUM ( DISTINCT 9 ) col1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1915
SELECT CAST( + 45 AS SIGNED )
----
45

skipif mysql # not compatible
query I rowsort label-1915
SELECT CAST ( + 45 AS INTEGER )
----
45

query I rowsort
SELECT ( - 98 )
----
-98

query I rowsort
SELECT - - ( - 32 ) * - 47 * - + 75 col1
----
-112800

onlyif mysql # aggregate syntax: 
query II rowsort label-1918
SELECT ALL + COUNT( ALL + + 89 ), COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-1918
SELECT ALL + COUNT ( ALL + + 89 ), COUNT ( * )
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1919
SELECT ALL COUNT( * ) * + COUNT( * ) + + - 91
----
-90

skipif mysql # not compatible
query I rowsort label-1919
SELECT ALL COUNT ( * ) * + COUNT ( * ) + + - 91
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1920
SELECT - 14 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1920
SELECT - 14 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1921
SELECT DISTINCT - 12 + + CAST( + 47 AS SIGNED )
----
35

skipif mysql # not compatible
query I rowsort label-1921
SELECT DISTINCT - 12 + + CAST ( + 47 AS INTEGER )
----
35

query I rowsort
SELECT ALL - 67 + - - 13
----
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-1923
SELECT - COUNT( * ), + 47 AS col1
----
-1
47

skipif mysql # not compatible
query II rowsort label-1923
SELECT - COUNT ( * ), + 47 AS col1
----
-1
47

query I rowsort
SELECT ALL - - 73
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-1925
SELECT COUNT( * ) + 31 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-1925
SELECT COUNT ( * ) + 31 AS col2
----
32

query I rowsort
SELECT - 93 col2
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-1927
SELECT ( + 63 ) * + COUNT( * ) * - 71 AS col0
----
-4473

skipif mysql # not compatible
query I rowsort label-1927
SELECT ( + 63 ) * + COUNT ( * ) * - 71 AS col0
----
-4473

query I rowsort
SELECT ALL - 39 col0
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1929
SELECT ALL - COALESCE ( - CAST( NULL AS SIGNED ), - + COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1929
SELECT ALL - COALESCE ( - CAST ( NULL AS INTEGER ), - + COUNT ( * ) ) AS col1
----
1

query I rowsort
SELECT ( - 47 ) * - 72 AS col2
----
3384

onlyif mysql # aggregate syntax: 
query I rowsort label-1931
SELECT ALL - + COUNT( ALL + + 37 ) + - COUNT( * ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-1931
SELECT ALL - + COUNT ( ALL + + 37 ) + - COUNT ( * ) AS col0
----
-2

query I rowsort
SELECT - 83 * - 40
----
3320

onlyif mysql # aggregate syntax: 
query I rowsort label-1933
SELECT - + 3 + + COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-1933
SELECT - + 3 + + COUNT ( * )
----
-2

query I rowsort
SELECT DISTINCT + + 44 AS col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-1935
SELECT + COUNT( * ) * - - 52 AS col2
----
52

skipif mysql # not compatible
query I rowsort label-1935
SELECT + COUNT ( * ) * - - 52 AS col2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-1936
SELECT + COUNT( * ) - - 33 AS col1
----
34

skipif mysql # not compatible
query I rowsort label-1936
SELECT + COUNT ( * ) - - 33 AS col1
----
34

query I rowsort
SELECT DISTINCT - 35 col0
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-1938
SELECT 20 DIV + ( 20 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1938
SELECT 20 / + ( 20 ) AS col0
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1939
SELECT ALL - CAST( + CAST( NULL AS DECIMAL ) AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1939
SELECT ALL - CAST ( + CAST ( NULL AS REAL ) AS REAL ) col2
----
NULL

query I rowsort
SELECT + - 29 AS col2
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1941
SELECT ALL 96 * - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1941
SELECT ALL 96 * - CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT + 0 col2
----
0

query I rowsort
SELECT ALL 21 col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-1944
SELECT ALL + - MAX( DISTINCT 67 ) AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-1944
SELECT ALL + - MAX ( DISTINCT 67 ) AS col0
----
-67

query I rowsort
SELECT + 43 + - 44 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1946
SELECT ALL - 30 * - - COUNT( * ) + + COUNT( * )
----
-29

skipif mysql # not compatible
query I rowsort label-1946
SELECT ALL - 30 * - - COUNT ( * ) + + COUNT ( * )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-1947
SELECT ALL ( - 63 ) * + + COUNT( * )
----
-63

skipif mysql # not compatible
query I rowsort label-1947
SELECT ALL ( - 63 ) * + + COUNT ( * )
----
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-1948
SELECT + MIN( 5 ) * - COUNT( * ) + - 85 AS col0, 21 * - 76
----
-90
-1596

skipif mysql # not compatible
query II rowsort label-1948
SELECT + MIN ( 5 ) * - COUNT ( * ) + - 85 AS col0, 21 * - 76
----
-90
-1596

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1949
SELECT MAX( - CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1949
SELECT MAX ( - CAST ( NULL AS REAL ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1950
SELECT + 75 * - COUNT( * )
----
-75

skipif mysql # not compatible
query I rowsort label-1950
SELECT + 75 * - COUNT ( * )
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1951
SELECT + + ( + 76 ) + + + 37 + CAST( NULL AS SIGNED ) * + - 7 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1951
SELECT + + ( + 76 ) + + + 37 + CAST ( NULL AS INTEGER ) * + - 7 AS col0
----
NULL

query I rowsort
SELECT - - 2 * - 13 AS col1
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1953
SELECT ALL + CAST( - 39 AS SIGNED )
----
-39

skipif mysql # not compatible
query I rowsort label-1953
SELECT ALL + CAST ( - 39 AS INTEGER )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-1954
SELECT + 85 * - COUNT( * ) * + 44 AS col0
----
-3740

skipif mysql # not compatible
query I rowsort label-1954
SELECT + 85 * - COUNT ( * ) * + 44 AS col0
----
-3740

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1955
SELECT ( - CAST( + - COUNT( * ) AS SIGNED ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-1955
SELECT ( - CAST ( + - COUNT ( * ) AS INTEGER ) ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1956
SELECT ALL + MAX( ALL + 86 ) col2
----
86

skipif mysql # not compatible
query I rowsort label-1956
SELECT ALL + MAX ( ALL + 86 ) col2
----
86

query I rowsort
SELECT 51 + + 84 AS col1
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-1958
SELECT DISTINCT - COUNT( - - 1 )
----
-1

skipif mysql # not compatible
query I rowsort label-1958
SELECT DISTINCT - COUNT ( - - 1 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1959
SELECT ALL + SUM( - CAST( NULL AS SIGNED ) ) - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1959
SELECT ALL + SUM ( - CAST ( NULL AS INTEGER ) ) - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - ( 85 ) AS col2
----
-85

query I rowsort
SELECT + ( 65 ) AS col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-1962
SELECT - MAX( DISTINCT + 93 ) + - 8
----
-101

skipif mysql # not compatible
query I rowsort label-1962
SELECT - MAX ( DISTINCT + 93 ) + - 8
----
-101

query I rowsort
SELECT ALL - 86 + - + 17
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-1964
SELECT DISTINCT - SUM( DISTINCT + - 91 ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-1964
SELECT DISTINCT - SUM ( DISTINCT + - 91 ) AS col0
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1965
SELECT ALL - CAST( + + 75 AS SIGNED )
----
-75

skipif mysql # not compatible
query I rowsort label-1965
SELECT ALL - CAST ( + + 75 AS INTEGER )
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-1966
SELECT DISTINCT - MAX( ALL 77 ) AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-1966
SELECT DISTINCT - MAX ( ALL 77 ) AS col1
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1967
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1967
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - COUNT ( * )
----
NULL

query I rowsort
SELECT - + ( 95 )
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-1969
SELECT ALL 96 + + + COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-1969
SELECT ALL 96 + + + COUNT ( * )
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1970
SELECT ALL - 82 DIV - - COUNT( - 85 ) AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-1970
SELECT ALL - 82 / - - COUNT ( - 85 ) AS col1
----
-82

query I rowsort
SELECT ALL + 35 * - 77
----
-2695

onlyif mysql # aggregate syntax: 
query I rowsort label-1972
SELECT - COUNT( * ) + ( + 76 )
----
75

skipif mysql # not compatible
query I rowsort label-1972
SELECT - COUNT ( * ) + ( + 76 )
----
75

query I rowsort
SELECT DISTINCT ( 99 ) col0
----
99

query I rowsort
SELECT + 55 * 64
----
3520

onlyif mysql # aggregate syntax: 
query I rowsort label-1975
SELECT - NULLIF ( - - COUNT( * ), + + 39 )
----
-1

skipif mysql # not compatible
query I rowsort label-1975
SELECT - NULLIF ( - - COUNT ( * ), + + 39 )
----
-1

query I rowsort
SELECT + ( + 64 ) AS col2
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-1977
SELECT - 85 DIV - 13
----
6

skipif mysql # not compatible
query I rowsort label-1977
SELECT - 85 / - 13
----
6

query I rowsort
SELECT - 72 col1
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-1979
SELECT COUNT( * ) * + 95
----
95

skipif mysql # not compatible
query I rowsort label-1979
SELECT COUNT ( * ) * + 95
----
95

query I rowsort
SELECT DISTINCT - + 96
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-1981
SELECT 21 DIV 93 * + 81
----
0

skipif mysql # not compatible
query I rowsort label-1981
SELECT 21 / 93 * + 81
----
0

query I rowsort
SELECT ALL - + 37 AS col1
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-1983
SELECT DISTINCT ( 25 ) DIV - 76
----
0

skipif mysql # not compatible
query I rowsort label-1983
SELECT DISTINCT ( 25 ) / - 76
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1984
SELECT - MAX( + - 10 ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-1984
SELECT - MAX ( + - 10 ) AS col1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1985
SELECT + COUNT( * ) - 3 + - 42
----
-44

skipif mysql # not compatible
query I rowsort label-1985
SELECT + COUNT ( * ) - 3 + - 42
----
-44

query II rowsort
SELECT 0 AS col1, 26 AS col1
----
0
26

onlyif mysql # aggregate syntax: 
query I rowsort label-1987
SELECT DISTINCT + + MAX( DISTINCT + 93 ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-1987
SELECT DISTINCT + + MAX ( DISTINCT + 93 ) AS col1
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-1988
SELECT DISTINCT + COUNT( * ) AS col2, 83 + + COUNT( * )
----
1
84

skipif mysql # not compatible
query II rowsort label-1988
SELECT DISTINCT + COUNT ( * ) AS col2, 83 + + COUNT ( * )
----
1
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1989
SELECT DISTINCT CAST( - - 0 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-1989
SELECT DISTINCT CAST ( - - 0 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1990
SELECT MIN( DISTINCT - + 56 )
----
-56

skipif mysql # not compatible
query I rowsort label-1990
SELECT MIN ( DISTINCT - + 56 )
----
-56

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1991
SELECT ALL 64 + + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1991
SELECT ALL 64 + + - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT - - 2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1993
SELECT ALL + + 71 * COUNT( * ) * + COUNT( * ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-1993
SELECT ALL + + 71 * COUNT ( * ) * + COUNT ( * ) AS col0
----
71

query I rowsort
SELECT ALL - 38 + + 44 AS col2
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1995
SELECT ALL + CAST( NULL AS SIGNED ) + + - MAX( - 68 ) AS col2, 60
----
NULL
60

skipif mysql # not compatible
query II rowsort label-1995
SELECT ALL + CAST ( NULL AS INTEGER ) + + - MAX ( - 68 ) AS col2, 60
----
NULL
60

query I rowsort
SELECT ALL 67 * - + 46 AS col0
----
-3082

onlyif mysql # aggregate syntax: 
query I rowsort label-1997
SELECT + COUNT( * ) * - + 4 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-1997
SELECT + COUNT ( * ) * - + 4 AS col0
----
-4

query I rowsort
SELECT DISTINCT - + 8 col1
----
-8

query I rowsort
SELECT DISTINCT + 89 - + 51 AS col1
----
38

query I rowsort
SELECT + 34 * + - 39 + - 22 col2
----
-1348

onlyif mysql # aggregate syntax: 
query I rowsort label-2001
SELECT SUM( 87 )
----
87

skipif mysql # not compatible
query I rowsort label-2001
SELECT SUM ( 87 )
----
87

query I rowsort
SELECT - + 64 * + 80 AS col2
----
-5120

onlyif mysql # aggregate syntax: 
query II rowsort label-2003
SELECT + 30 AS col1, + COUNT( * )
----
30
1

skipif mysql # not compatible
query II rowsort label-2003
SELECT + 30 AS col1, + COUNT ( * )
----
30
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2004
SELECT + 43 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2004
SELECT + 43 / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2005
SELECT ALL + CAST( NULL AS SIGNED ), 24 col1
----
NULL
24

skipif mysql # not compatible
query II rowsort label-2005
SELECT ALL + CAST ( NULL AS INTEGER ), 24 col1
----
NULL
24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2006
SELECT ( 67 ), CAST( NULL AS SIGNED ) AS col2
----
67
NULL

skipif mysql # not compatible
query II rowsort label-2006
SELECT ( 67 ), CAST ( NULL AS INTEGER ) AS col2
----
67
NULL

query I rowsort
SELECT ALL + - 33 AS col0
----
-33

query I rowsort
SELECT DISTINCT - + 58 AS col1
----
-58

query I rowsort
SELECT DISTINCT + ( - 1 ) * 36 col0
----
-36

query I rowsort
SELECT ALL 21 col0
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2011
SELECT DISTINCT - CASE 22 WHEN - + CAST( - 16 AS SIGNED ) THEN 52 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2011
SELECT DISTINCT - CASE 22 WHEN - + CAST ( - 16 AS INTEGER ) THEN 52 END AS col0
----
NULL

query I rowsort
SELECT 18 * + + ( + 91 ) + - 87 AS col0
----
1551

onlyif mysql # aggregate syntax: 
query II rowsort label-2013
SELECT ALL + + COUNT( * ) AS col2, + 99 AS col2
----
1
99

skipif mysql # not compatible
query II rowsort label-2013
SELECT ALL + + COUNT ( * ) AS col2, + 99 AS col2
----
1
99

query I rowsort
SELECT DISTINCT + + ( - - 68 ) AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2015
SELECT + + ( + NULLIF ( - COUNT( * ), + + 85 + 66 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-2015
SELECT + + ( + NULLIF ( - COUNT ( * ), + + 85 + 66 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2016
SELECT + MAX( ALL + 91 ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-2016
SELECT + MAX ( ALL + 91 ) AS col1
----
91

query II rowsort
SELECT DISTINCT ( 37 ) AS col0, - 59 AS col1
----
37
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2018
SELECT DISTINCT - ( + COUNT( * ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-2018
SELECT DISTINCT - ( + COUNT ( * ) ) col0
----
-1

query I rowsort
SELECT ALL - + 33 AS col2
----
-33

query I rowsort
SELECT - 70 + 23
----
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-2021
SELECT ALL - + 36 AS col1, COUNT( * )
----
-36
1

skipif mysql # not compatible
query II rowsort label-2021
SELECT ALL - + 36 AS col1, COUNT ( * )
----
-36
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2022
SELECT + CAST( NULL AS SIGNED ) * 65 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2022
SELECT + CAST ( NULL AS INTEGER ) * 65 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2023
SELECT ALL + 92 DIV COUNT( * ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-2023
SELECT ALL + 92 / COUNT ( * ) AS col0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2024
SELECT 17 + + ( - COUNT( * ) ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-2024
SELECT 17 + + ( - COUNT ( * ) ) AS col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2025
SELECT ALL + ( - 59 ) + COUNT( * ) AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-2025
SELECT ALL + ( - 59 ) + COUNT ( * ) AS col0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2026
SELECT ( MAX( ALL - - 82 ) )
----
82

skipif mysql # not compatible
query I rowsort label-2026
SELECT ( MAX ( ALL - - 82 ) )
----
82

query I rowsort
SELECT ALL - + ( ( 81 ) ) col0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2028
SELECT + - COUNT( 1 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2028
SELECT + - COUNT ( 1 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2029
SELECT - COUNT( - 4 )
----
-1

skipif mysql # not compatible
query I rowsort label-2029
SELECT - COUNT ( - 4 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2030
SELECT ALL + COUNT( * ) + + 38 AS col2
----
39

skipif mysql # not compatible
query I rowsort label-2030
SELECT ALL + COUNT ( * ) + + 38 AS col2
----
39

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2031
SELECT - CASE - 75 WHEN + - 37 * CAST( NULL AS DECIMAL ) THEN NULL ELSE + 24 + COUNT( * ) END
----
-25

skipif mysql # not compatible
query I rowsort label-2031
SELECT - CASE - 75 WHEN + - 37 * CAST ( NULL AS REAL ) THEN NULL ELSE + 24 + COUNT ( * ) END
----
-25

query I rowsort
SELECT - 64 * 26 * + + ( ( - + 58 ) )
----
96512

query I rowsort
SELECT DISTINCT + 85 col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2034
SELECT MAX( 90 )
----
90

skipif mysql # not compatible
query I rowsort label-2034
SELECT MAX ( 90 )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2035
SELECT DISTINCT + SUM( - 59 )
----
-59

skipif mysql # not compatible
query I rowsort label-2035
SELECT DISTINCT + SUM ( - 59 )
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2036
SELECT DISTINCT - 50 DIV + - ( + COUNT( * ) )
----
50

skipif mysql # not compatible
query I rowsort label-2036
SELECT DISTINCT - 50 / + - ( + COUNT ( * ) )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2037
SELECT COUNT( * ) * + 16 col1
----
16

skipif mysql # not compatible
query I rowsort label-2037
SELECT COUNT ( * ) * + 16 col1
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2038
SELECT ALL - CAST( 20 AS SIGNED )
----
-20

skipif mysql # not compatible
query I rowsort label-2038
SELECT ALL - CAST ( 20 AS INTEGER )
----
-20

query I rowsort
SELECT 26 + - 32
----
-6

query I rowsort
SELECT 83 * + 36
----
2988

onlyif mysql # aggregate syntax: 
query I rowsort label-2041
SELECT ALL 24 * COUNT( * ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-2041
SELECT ALL 24 * COUNT ( * ) AS col1
----
24

query I rowsort
SELECT DISTINCT - 63 col2
----
-63

query I rowsort
SELECT 52 + - - 54 AS col1
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-2044
SELECT + MAX( DISTINCT ( 44 ) )
----
44

skipif mysql # not compatible
query I rowsort label-2044
SELECT + MAX ( DISTINCT ( 44 ) )
----
44

query I rowsort
SELECT - - ( 89 )
----
89

query I rowsort
SELECT DISTINCT 19 * - 19
----
-361

onlyif mysql # aggregate syntax: 
query I rowsort label-2047
SELECT DISTINCT + NULLIF ( COUNT( * ), + 48 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2047
SELECT DISTINCT + NULLIF ( COUNT ( * ), + 48 ) AS col2
----
1

query I rowsort
SELECT - 56 + + - 50
----
-106

query I rowsort
SELECT DISTINCT + 74 - 47 col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2050
SELECT - MAX( 8 ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-2050
SELECT - MAX ( 8 ) AS col1
----
-8

query I rowsort
SELECT ALL ( 98 ) AS col2
----
98

query I rowsort
SELECT DISTINCT ( + + 7 )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2053
SELECT DISTINCT + COUNT( * ) * - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-2053
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2054
SELECT ( + + MAX( ALL + 96 ) )
----
96

skipif mysql # not compatible
query I rowsort label-2054
SELECT ( + + MAX ( ALL + 96 ) )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2055
SELECT DISTINCT COUNT( * ) - - 82
----
83

skipif mysql # not compatible
query I rowsort label-2055
SELECT DISTINCT COUNT ( * ) - - 82
----
83

query I rowsort
SELECT ALL - COALESCE ( - + 5, + 75 ) AS col2
----
5

query I rowsort
SELECT ALL 31 * + + 84
----
2604

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2058
SELECT 52 DIV + COUNT( * ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-2058
SELECT 52 / + COUNT ( * ) AS col2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2059
SELECT - MIN( + 77 )
----
-77

skipif mysql # not compatible
query I rowsort label-2059
SELECT - MIN ( + 77 )
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2060
SELECT ALL - + COUNT( * ) * - 59
----
59

skipif mysql # not compatible
query I rowsort label-2060
SELECT ALL - + COUNT ( * ) * - 59
----
59

query I rowsort
SELECT ALL + ( + + 17 )
----
17

query I rowsort
SELECT ALL + 63 AS col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2063
SELECT ALL - COUNT( * ) * 13
----
-13

skipif mysql # not compatible
query I rowsort label-2063
SELECT ALL - COUNT ( * ) * 13
----
-13

query I rowsort
SELECT DISTINCT 4 * 75 AS col1
----
300

query I rowsort
SELECT ( - 52 ) AS col0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-2066
SELECT COALESCE ( 83, - COUNT( * ) ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-2066
SELECT COALESCE ( 83, - COUNT ( * ) ) AS col2
----
83

query I rowsort
SELECT + 13 * 65 col1
----
845

query I rowsort
SELECT - 77 col0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2069
SELECT - COUNT( DISTINCT 52 ) * + 7 AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-2069
SELECT - COUNT ( DISTINCT 52 ) * + 7 AS col0
----
-7

query I rowsort
SELECT 72 * 69
----
4968

onlyif mysql # aggregate syntax: 
query I rowsort label-2071
SELECT + COUNT( * ) * + 7
----
7

skipif mysql # not compatible
query I rowsort label-2071
SELECT + COUNT ( * ) * + 7
----
7

query I rowsort
SELECT - 74 * + 21 AS col2
----
-1554

query I rowsort
SELECT ALL - + 66 AS col0
----
-66

query I rowsort
SELECT DISTINCT - 83 - + 52 * - 43
----
2153

query I rowsort
SELECT 76 * + 13
----
988

onlyif mysql # aggregate syntax: 
query I rowsort label-2076
SELECT ALL - 16 + - - COUNT( * ) + 41 AS col2
----
26

skipif mysql # not compatible
query I rowsort label-2076
SELECT ALL - 16 + - - COUNT ( * ) + 41 AS col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2077
SELECT DISTINCT - MIN( ALL - 37 ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-2077
SELECT DISTINCT - MIN ( ALL - 37 ) AS col2
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2078
SELECT DISTINCT - CAST( - 97 AS SIGNED )
----
97

skipif mysql # not compatible
query I rowsort label-2078
SELECT DISTINCT - CAST ( - 97 AS INTEGER )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2079
SELECT ALL + 24 * COUNT( * ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-2079
SELECT ALL + 24 * COUNT ( * ) AS col0
----
24

query I rowsort
SELECT ALL 12 * 46
----
552

onlyif mysql # aggregate syntax: 
query I rowsort label-2081
SELECT ALL 59 * ( + + COUNT( DISTINCT ( + 63 ) ) ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-2081
SELECT ALL 59 * ( + + COUNT ( DISTINCT ( + 63 ) ) ) AS col2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2082
SELECT - - COUNT( * ) + + 41 col0
----
42

skipif mysql # not compatible
query I rowsort label-2082
SELECT - - COUNT ( * ) + + 41 col0
----
42

query I rowsort
SELECT ALL + + 70 AS col0
----
70

query I rowsort
SELECT ALL + - 37 col2
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-2085
SELECT + 54 + + COUNT( * ) col0
----
55

skipif mysql # not compatible
query I rowsort label-2085
SELECT + 54 + + COUNT ( * ) col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2086
SELECT - ( - + 25 ) - - - COUNT( * ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-2086
SELECT - ( - + 25 ) - - - COUNT ( * ) AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2087
SELECT COUNT( DISTINCT - - 23 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2087
SELECT COUNT ( DISTINCT - - 23 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2088
SELECT ALL 17 * SUM( + 31 ) + COUNT( 82 )
----
528

skipif mysql # not compatible
query I rowsort label-2088
SELECT ALL 17 * SUM ( + 31 ) + COUNT ( 82 )
----
528

onlyif mysql # aggregate syntax: 
query I rowsort label-2089
SELECT DISTINCT + SUM( + 40 )
----
40

skipif mysql # not compatible
query I rowsort label-2089
SELECT DISTINCT + SUM ( + 40 )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2090
SELECT - MAX( ALL + + ( 32 ) ) AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-2090
SELECT - MAX ( ALL + + ( 32 ) ) AS col0
----
-32

query I rowsort
SELECT - - 77 AS col2
----
77

query I rowsort
SELECT ALL + - 9 AS col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2093
SELECT - - 91 * - + ( - COUNT( * ) )
----
91

skipif mysql # not compatible
query I rowsort label-2093
SELECT - - 91 * - + ( - COUNT ( * ) )
----
91

query I rowsort
SELECT - 95 * - + ( 38 ) col1
----
3610

onlyif mysql # aggregate syntax: 
query I rowsort label-2095
SELECT DISTINCT MIN( DISTINCT + 75 ) + + 1 AS col0
----
76

skipif mysql # not compatible
query I rowsort label-2095
SELECT DISTINCT MIN ( DISTINCT + 75 ) + + 1 AS col0
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2096
SELECT CAST( - 24 AS SIGNED )
----
-24

skipif mysql # not compatible
query I rowsort label-2096
SELECT CAST ( - 24 AS INTEGER )
----
-24

query I rowsort
SELECT + ( 32 ) AS col2
----
32

query I rowsort
SELECT ALL 10 * - - 80
----
800

onlyif mysql # aggregate syntax: 
query II rowsort label-2099
SELECT DISTINCT - COUNT( * ) col0, - COUNT( * ) AS col0
----
-1
-1

skipif mysql # not compatible
query II rowsort label-2099
SELECT DISTINCT - COUNT ( * ) col0, - COUNT ( * ) AS col0
----
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2100
SELECT COUNT( * ) + + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-2100
SELECT COUNT ( * ) + + - COUNT ( * )
----
0

query I rowsort
SELECT ALL + 75 + + - 90 * + - 1
----
165

query I rowsort
SELECT ALL 36 + + 72 AS col0
----
108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2103
SELECT DISTINCT - CAST( + 78 AS SIGNED )
----
-78

skipif mysql # not compatible
query I rowsort label-2103
SELECT DISTINCT - CAST ( + 78 AS INTEGER )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-2104
SELECT + COUNT( + 9 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2104
SELECT + COUNT ( + 9 ) AS col1
----
1

query II rowsort
SELECT 47, + ( 29 ) * 86 AS col0
----
47
2494

query II rowsort
SELECT DISTINCT 62 AS col0, 75 AS col2
----
62
75

query I rowsort
SELECT ALL ( - 13 )
----
-13

query I rowsort
SELECT - 77 + 86
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2109
SELECT + 41 + - + 22 + ( - COUNT( * ) ) * 41 AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-2109
SELECT + 41 + - + 22 + ( - COUNT ( * ) ) * 41 AS col1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-2110
SELECT ALL - MAX( 8 ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-2110
SELECT ALL - MAX ( 8 ) AS col0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-2111
SELECT ALL COALESCE ( + 19, + COUNT( * ) * - 60 ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-2111
SELECT ALL COALESCE ( + 19, + COUNT ( * ) * - 60 ) AS col2
----
19

query I rowsort
SELECT - + 55
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2113
SELECT ALL - 9 + - CAST( NULL AS SIGNED ) AS col2, + MAX( + CAST( NULL AS SIGNED ) )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2113
SELECT ALL - 9 + - CAST ( NULL AS INTEGER ) AS col2, + MAX ( + CAST ( NULL AS INTEGER ) )
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2114
SELECT - MIN( - 5 )
----
5

skipif mysql # not compatible
query I rowsort label-2114
SELECT - MIN ( - 5 )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2115
SELECT ALL ( SUM( ( - 90 ) ) )
----
-90

skipif mysql # not compatible
query I rowsort label-2115
SELECT ALL ( SUM ( ( - 90 ) ) )
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2116
SELECT CAST( - 86 AS SIGNED ) col2
----
-86

skipif mysql # not compatible
query I rowsort label-2116
SELECT CAST ( - 86 AS INTEGER ) col2
----
-86

query I rowsort
SELECT + NULLIF ( + 19, + AVG ( + + 99 ) )
----
19

query I rowsort
SELECT ( - 98 ) AS col1
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-2119
SELECT ALL + 63 + - COUNT( * ) * + + 41 col2
----
22

skipif mysql # not compatible
query I rowsort label-2119
SELECT ALL + 63 + - COUNT ( * ) * + + 41 col2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2120
SELECT COUNT( * ) * + + 80 AS col1
----
80

skipif mysql # not compatible
query I rowsort label-2120
SELECT COUNT ( * ) * + + 80 AS col1
----
80

query I rowsort
SELECT DISTINCT - 62 - 84 AS col1
----
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-2122
SELECT 79 + + COUNT( ALL + + 40 )
----
80

skipif mysql # not compatible
query I rowsort label-2122
SELECT 79 + + COUNT ( ALL + + 40 )
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2123
SELECT ALL - CAST( - - 30 AS SIGNED )
----
-30

skipif mysql # not compatible
query I rowsort label-2123
SELECT ALL - CAST ( - - 30 AS INTEGER )
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2124
SELECT ALL COUNT( * ) DIV - + COUNT( * ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-2124
SELECT ALL COUNT ( * ) / - + COUNT ( * ) col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2125
SELECT 30 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2125
SELECT 30 / - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + - 54 col2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-2127
SELECT ALL COUNT( * ) * + 57
----
57

skipif mysql # not compatible
query I rowsort label-2127
SELECT ALL COUNT ( * ) * + 57
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2128
SELECT - AVG ( ALL + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2128
SELECT - AVG ( ALL + CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT + 54 AS col0, 21
----
54
21

query I rowsort
SELECT ALL + - 38 AS col2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-2131
SELECT - NULLIF ( + COUNT( 4 ), - ( + 2 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-2131
SELECT - NULLIF ( + COUNT ( 4 ), - ( + 2 ) )
----
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2132
SELECT + 59 DIV CAST( + - 96 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2132
SELECT + 59 / CAST ( + - 96 AS INTEGER ) AS col1
----
0

query I rowsort
SELECT - ( + 18 ) col0
----
-18

query I rowsort
SELECT ( - - 71 ) AS col2
----
71

query I rowsort
SELECT ALL + ( - + 60 ) * - 33
----
1980

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2136
SELECT - 4, 62 DIV COUNT( * ) col2
----
-4
62

skipif mysql # not compatible
query II rowsort label-2136
SELECT - 4, 62 / COUNT ( * ) col2
----
-4
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2137
SELECT + 39 * + COUNT( * )
----
39

skipif mysql # not compatible
query I rowsort label-2137
SELECT + 39 * + COUNT ( * )
----
39

query I rowsort
SELECT - 18 * + - 54
----
972

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2139
SELECT DISTINCT CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2139
SELECT DISTINCT CAST ( NULL AS REAL ) col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2140
SELECT ALL + ( + COUNT( * ) ) * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2140
SELECT ALL + ( + COUNT ( * ) ) * CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2141
SELECT ALL CAST( - 48 AS SIGNED ) col1
----
-48

skipif mysql # not compatible
query I rowsort label-2141
SELECT ALL CAST ( - 48 AS INTEGER ) col1
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-2142
SELECT - SUM( ALL - 17 )
----
17

skipif mysql # not compatible
query I rowsort label-2142
SELECT - SUM ( ALL - 17 )
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2143
SELECT CAST( NULL AS SIGNED ) * + 93 + - 39 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2143
SELECT CAST ( NULL AS INTEGER ) * + 93 + - 39 col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2144
SELECT DISTINCT 86, COUNT( * ) AS col0
----
86
1

skipif mysql # not compatible
query II rowsort label-2144
SELECT DISTINCT 86, COUNT ( * ) AS col0
----
86
1

query I rowsort
SELECT 49 * 32
----
1568

onlyif mysql # aggregate syntax: 
query I rowsort label-2146
SELECT 65 - COUNT( * ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-2146
SELECT 65 - COUNT ( * ) AS col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2147
SELECT - + SUM( + 76 )
----
-76

skipif mysql # not compatible
query I rowsort label-2147
SELECT - + SUM ( + 76 )
----
-76

query I rowsort
SELECT ALL - 72 col2
----
-72

query I rowsort
SELECT ALL ( - 43 ) + + - 45
----
-88

query I rowsort
SELECT 30 + + 41 AS col0
----
71

query I rowsort
SELECT ALL ( + 12 ) + - - 53 AS col2
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-2152
SELECT DISTINCT - 6 DIV - 52 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2152
SELECT DISTINCT - 6 / - 52 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2153
SELECT ALL - 61 - + COUNT( * )
----
-62

skipif mysql # not compatible
query I rowsort label-2153
SELECT ALL - 61 - + COUNT ( * )
----
-62

query I rowsort
SELECT - 5 col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2155
SELECT ALL MAX( DISTINCT + 11 )
----
11

skipif mysql # not compatible
query I rowsort label-2155
SELECT ALL MAX ( DISTINCT + 11 )
----
11

query I rowsort
SELECT DISTINCT - ( ( - + 10 ) ) AS col2
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2157
SELECT ALL CAST( 50 AS SIGNED ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-2157
SELECT ALL CAST ( 50 AS INTEGER ) AS col1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2158
SELECT ALL + - ( + - MIN( ALL + 55 ) ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-2158
SELECT ALL + - ( + - MIN ( ALL + 55 ) ) AS col0
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2159
SELECT + 77 DIV - - COUNT( * ) col1
----
77

skipif mysql # not compatible
query I rowsort label-2159
SELECT + 77 / - - COUNT ( * ) col1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2160
SELECT ALL MIN( ALL + - 9 ) * + + 84 - + 78 AS col2
----
-834

skipif mysql # not compatible
query I rowsort label-2160
SELECT ALL MIN ( ALL + - 9 ) * + + 84 - + 78 AS col2
----
-834

onlyif mysql # aggregate syntax: 
query I rowsort label-2161
SELECT COUNT( DISTINCT - + 38 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2161
SELECT COUNT ( DISTINCT - + 38 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2162
SELECT COUNT( 89 )
----
1

skipif mysql # not compatible
query I rowsort label-2162
SELECT COUNT ( 89 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2163
SELECT - COUNT( * ) - 54 AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-2163
SELECT - COUNT ( * ) - 54 AS col0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-2164
SELECT ALL + - COUNT( * ) * 11 col1
----
-11

skipif mysql # not compatible
query I rowsort label-2164
SELECT ALL + - COUNT ( * ) * 11 col1
----
-11

query I rowsort
SELECT ALL 0 * + 92
----
0

query I rowsort
SELECT 48 * + + 2
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2167
SELECT 64 + + CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2167
SELECT 64 + + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT DISTINCT - 49 AS col1, + ( - 83 )
----
-49
-83

query I rowsort
SELECT DISTINCT + 19 * - 33 AS col2
----
-627

query I rowsort
SELECT 74 + + 43 AS col0
----
117

query I rowsort
SELECT ALL - 13 AS col0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-2172
SELECT 41 + - + COUNT( * ) - + 62
----
-22

skipif mysql # not compatible
query I rowsort label-2172
SELECT 41 + - + COUNT ( * ) - + 62
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-2173
SELECT - - MIN( 10 )
----
10

skipif mysql # not compatible
query I rowsort label-2173
SELECT - - MIN ( 10 )
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-2174
SELECT ALL ( + COUNT( * ) ) AS col1, MIN( ALL - 95 )
----
1
-95

skipif mysql # not compatible
query II rowsort label-2174
SELECT ALL ( + COUNT ( * ) ) AS col1, MIN ( ALL - 95 )
----
1
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-2175
SELECT + 47 DIV + 63 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2175
SELECT + 47 / + 63 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2176
SELECT MIN( DISTINCT - 0 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-2176
SELECT MIN ( DISTINCT - 0 ) col1
----
0

query I rowsort
SELECT DISTINCT - 76 + - 47 AS col1
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-2178
SELECT + COUNT( * ) * - - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-2178
SELECT + COUNT ( * ) * - - COUNT ( * )
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2179
SELECT ALL CAST( - 53 AS SIGNED ) DIV 83 + - + 69
----
-69

skipif mysql # not compatible
query I rowsort label-2179
SELECT ALL CAST ( - 53 AS INTEGER ) / 83 + - + 69
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-2180
SELECT ( + SUM( - + 92 ) ) AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-2180
SELECT ( + SUM ( - + 92 ) ) AS col0
----
-92

query I rowsort
SELECT + - 91 col1
----
-91

query I rowsort
SELECT ALL - 8 - + 44
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2183
SELECT - COUNT( * ) * + 62 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2183
SELECT - COUNT ( * ) * + 62 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2184
SELECT DISTINCT - ( + COUNT( * ) ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-2184
SELECT DISTINCT - ( + COUNT ( * ) ) col1
----
-1

query I rowsort
SELECT DISTINCT + 57 + + - 4
----
53

query I rowsort
SELECT 3 * + + 16 AS col1
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-2187
SELECT + 82 DIV + 46 col1
----
1

skipif mysql # not compatible
query I rowsort label-2187
SELECT + 82 / + 46 col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2188
SELECT DISTINCT SUM( 61 ) col2
----
61

skipif mysql # not compatible
query I rowsort label-2188
SELECT DISTINCT SUM ( 61 ) col2
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2189
SELECT + + CAST( - 31 AS SIGNED )
----
-31

skipif mysql # not compatible
query I rowsort label-2189
SELECT + + CAST ( - 31 AS INTEGER )
----
-31

query I rowsort
SELECT + + 91 AS col1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2191
SELECT DISTINCT + - COUNT( ALL 19 )
----
-1

skipif mysql # not compatible
query I rowsort label-2191
SELECT DISTINCT + - COUNT ( ALL 19 )
----
-1

query I rowsort
SELECT - 8 col0
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2193
SELECT ALL CAST( + 7 AS SIGNED )
----
7

skipif mysql # not compatible
query I rowsort label-2193
SELECT ALL CAST ( + 7 AS INTEGER )
----
7

query I rowsort
SELECT - 58 * - 12
----
696

query I rowsort
SELECT - ( + - 66 ) col2
----
66

query I rowsort
SELECT - + 88 AS col1
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2197
SELECT ALL + + AVG ( DISTINCT - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2197
SELECT ALL + + AVG ( DISTINCT - + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT + 95 + 46 col0
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-2199
SELECT DISTINCT - NULLIF ( - + COUNT( * ), + COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2199
SELECT DISTINCT - NULLIF ( - + COUNT ( * ), + COUNT ( * ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2200
SELECT 2 + + + ( - COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2200
SELECT 2 + + + ( - COUNT ( * ) ) AS col0
----
1

query I rowsort
SELECT + + 64 AS col0
----
64

query II rowsort
SELECT 87 AS col1, + 52 col0
----
87
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2203
SELECT ALL - 21 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2203
SELECT ALL - 21 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2204
SELECT 43 DIV + - 92 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2204
SELECT 43 / + - 92 AS col1
----
0

query I rowsort
SELECT 53 * - 49 AS col2
----
-2597

onlyif mysql # aggregate syntax: 
query I rowsort label-2206
SELECT DISTINCT COUNT( DISTINCT 77 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2206
SELECT DISTINCT COUNT ( DISTINCT 77 ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2207
SELECT - - ( + 36 ) * + AVG ( ALL + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2207
SELECT - - ( + 36 ) * + AVG ( ALL + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2208
SELECT + SUM( ALL 50 )
----
50

skipif mysql # not compatible
query I rowsort label-2208
SELECT + SUM ( ALL 50 )
----
50

query I rowsort
SELECT + ( + 94 ) AS col2
----
94

query I rowsort
SELECT ALL 18 * - 22 AS col2
----
-396

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2211
SELECT + 64 * 35 AS col0, CAST( NULL AS SIGNED ) AS col2
----
2240
NULL

skipif mysql # not compatible
query II rowsort label-2211
SELECT + 64 * 35 AS col0, CAST ( NULL AS INTEGER ) AS col2
----
2240
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2212
SELECT MAX( - + 97 ) AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-2212
SELECT MAX ( - + 97 ) AS col0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2213
SELECT MAX( 11 ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-2213
SELECT MAX ( 11 ) AS col2
----
11

query I rowsort
SELECT ALL + 64 + - + 60
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-2215
SELECT ALL + 63 AS col2, COUNT( * ) * - - 99
----
63
99

skipif mysql # not compatible
query II rowsort label-2215
SELECT ALL + 63 AS col2, COUNT ( * ) * - - 99
----
63
99

query I rowsort
SELECT - + 72 + - - 62 AS col0
----
-10

query II rowsort
SELECT DISTINCT + 42 * - 79 AS col2, + 6 AS col0
----
-3318
6

onlyif mysql # aggregate syntax: 
query II rowsort label-2218
SELECT ALL - ( - 32 ) AS col0, COUNT( * ) AS col1
----
32
1

skipif mysql # not compatible
query II rowsort label-2218
SELECT ALL - ( - 32 ) AS col0, COUNT ( * ) AS col1
----
32
1

query I rowsort
SELECT + + ( + 53 ) AS col1
----
53

query I rowsort
SELECT + 17 * - ( ( + 73 ) )
----
-1241

query I rowsort
SELECT DISTINCT - 81 + 56
----
-25

query I rowsort
SELECT ALL - 63 + + 49
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2223
SELECT ALL - COUNT( + - CAST( NULL AS SIGNED ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2223
SELECT ALL - COUNT ( + - CAST ( NULL AS INTEGER ) ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2224
SELECT ALL - CAST( 72 AS SIGNED ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-2224
SELECT ALL - CAST ( 72 AS INTEGER ) AS col0
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2225
SELECT - - CAST( NULL AS SIGNED ), ( + NULLIF ( + COUNT( * ), + 50 ) ) col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-2225
SELECT - - CAST ( NULL AS INTEGER ), ( + NULLIF ( + COUNT ( * ), + 50 ) ) col0
----
NULL
1

query I rowsort
SELECT DISTINCT + ( 87 ) AS col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2227
SELECT COUNT( + 33 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2227
SELECT COUNT ( + 33 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2228
SELECT ALL - CAST( NULL AS SIGNED ) * 28
----
NULL

skipif mysql # not compatible
query I rowsort label-2228
SELECT ALL - CAST ( NULL AS INTEGER ) * 28
----
NULL

query I rowsort
SELECT + 97 col2
----
97

query I rowsort
SELECT DISTINCT + - 71
----
-71

query I rowsort
SELECT ALL + - 89 AS col2
----
-89

query I rowsort
SELECT - + 38 AS col2
----
-38

query I rowsort
SELECT ALL - - 2 + 88 AS col2
----
90

query I rowsort
SELECT + ( + 76 ) AS col1
----
76

query I rowsort
SELECT + ( 43 ) AS col1
----
43

query I rowsort
SELECT ( - 14 ) AS col0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-2237
SELECT + COUNT( * ) * - - 73 AS col0
----
73

skipif mysql # not compatible
query I rowsort label-2237
SELECT + COUNT ( * ) * - - 73 AS col0
----
73

query I rowsort
SELECT - 50 + - 34 + + 14 AS col2
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-2239
SELECT - + COUNT( ALL + 55 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2239
SELECT - + COUNT ( ALL + 55 ) AS col0
----
-1

query I rowsort
SELECT + + 49 + 26 AS col0
----
75

query I rowsort
SELECT ALL ( - - 99 )
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2242
SELECT ALL - CAST( 73 AS SIGNED ) - + COUNT( * ) AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-2242
SELECT ALL - CAST ( 73 AS INTEGER ) - + COUNT ( * ) AS col2
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-2243
SELECT COUNT( * ) * + - 56 col1
----
-56

skipif mysql # not compatible
query I rowsort label-2243
SELECT COUNT ( * ) * + - 56 col1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-2244
SELECT ALL COUNT( * ) * + - 95 AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-2244
SELECT ALL COUNT ( * ) * + - 95 AS col2
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-2245
SELECT + COUNT( DISTINCT - 12 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2245
SELECT + COUNT ( DISTINCT - 12 ) AS col2
----
1

query I rowsort
SELECT ALL 95 + + ( - - 70 )
----
165

query I rowsort
SELECT ( 34 ) + 94
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-2248
SELECT DISTINCT + 21 * - COUNT( * ) * 90 col1
----
-1890

skipif mysql # not compatible
query I rowsort label-2248
SELECT DISTINCT + 21 * - COUNT ( * ) * 90 col1
----
-1890

query I rowsort
SELECT ALL ( ( + - 21 ) ) AS col2
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2250
SELECT DISTINCT 64 AS col2, CAST( 40 AS SIGNED )
----
64
40

skipif mysql # not compatible
query II rowsort label-2250
SELECT DISTINCT 64 AS col2, CAST ( 40 AS INTEGER )
----
64
40

onlyif mysql # aggregate syntax: 
query II rowsort label-2251
SELECT ALL COUNT( * ), - COUNT( * ) AS col1
----
1
-1

skipif mysql # not compatible
query II rowsort label-2251
SELECT ALL COUNT ( * ), - COUNT ( * ) AS col1
----
1
-1

query I rowsort
SELECT - 65 * - 85 AS col2
----
5525

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2253
SELECT ALL CAST( - - COUNT( * ) AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2253
SELECT ALL CAST ( - - COUNT ( * ) AS INTEGER ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2254
SELECT - 75 * + COUNT( * )
----
-75

skipif mysql # not compatible
query I rowsort label-2254
SELECT - 75 * + COUNT ( * )
----
-75

query I rowsort
SELECT DISTINCT 56 * - 86 AS col1
----
-4816

onlyif mysql # aggregate syntax: 
query I rowsort label-2256
SELECT MAX( - ( + 14 ) ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-2256
SELECT MAX ( - ( + 14 ) ) AS col0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-2257
SELECT 9 + ( + COUNT( * ) )
----
10

skipif mysql # not compatible
query I rowsort label-2257
SELECT 9 + ( + COUNT ( * ) )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2258
SELECT DISTINCT - COUNT( * ) + 51 col0
----
50

skipif mysql # not compatible
query I rowsort label-2258
SELECT DISTINCT - COUNT ( * ) + 51 col0
----
50

query I rowsort
SELECT ALL - ( ( 99 ) ) AS col0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2260
SELECT + CAST( 68 AS SIGNED ) col1
----
68

skipif mysql # not compatible
query I rowsort label-2260
SELECT + CAST ( 68 AS INTEGER ) col1
----
68

query I rowsort
SELECT 10 * + 12
----
120

query I rowsort
SELECT ALL + - 91 AS col0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2263
SELECT ALL + SUM( 37 ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-2263
SELECT ALL + SUM ( 37 ) AS col2
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2264
SELECT + CAST( NULL AS SIGNED ) * 79, MAX( DISTINCT - 39 ) AS col0
----
NULL
-39

skipif mysql # not compatible
query II rowsort label-2264
SELECT + CAST ( NULL AS INTEGER ) * 79, MAX ( DISTINCT - 39 ) AS col0
----
NULL
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2265
SELECT + CAST( + 12 AS SIGNED ) + + + 69
----
81

skipif mysql # not compatible
query I rowsort label-2265
SELECT + CAST ( + 12 AS INTEGER ) + + + 69
----
81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2266
SELECT DISTINCT CAST( NULL AS DECIMAL ) * + + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-2266
SELECT DISTINCT CAST ( NULL AS REAL ) * + + 60
----
NULL

query I rowsort
SELECT ALL + 64 * 60
----
3840

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2268
SELECT ALL - COUNT( * ) DIV + 4, - COUNT( * ) DIV + - ( + 86 )
----
0
0

skipif mysql # not compatible
query II rowsort label-2268
SELECT ALL - COUNT ( * ) / + 4, - COUNT ( * ) / + - ( + 86 )
----
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2269
SELECT - COUNT( * ) DIV - 57 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2269
SELECT - COUNT ( * ) / - 57 AS col0
----
0

query I rowsort
SELECT ( + 78 )
----
78

query I rowsort
SELECT + ( - - 58 ) AS col2
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2272
SELECT ALL ( - CAST( - ( COUNT( * ) ) AS SIGNED ) ) * - - ( COUNT( * ) ) - - 28
----
29

skipif mysql # not compatible
query I rowsort label-2272
SELECT ALL ( - CAST ( - ( COUNT ( * ) ) AS INTEGER ) ) * - - ( COUNT ( * ) ) - - 28
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-2273
SELECT + MIN( 71 ) + 30 AS col0
----
101

skipif mysql # not compatible
query I rowsort label-2273
SELECT + MIN ( 71 ) + 30 AS col0
----
101

query I rowsort
SELECT + ( - + 20 )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-2275
SELECT - COUNT( * ) - + - 17
----
16

skipif mysql # not compatible
query I rowsort label-2275
SELECT - COUNT ( * ) - + - 17
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2276
SELECT - 69 * + - COUNT( + 79 ) + - 16 DIV ( + 10 ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-2276
SELECT - 69 * + - COUNT ( + 79 ) + - 16 / ( + 10 ) AS col0
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-2277
SELECT ALL - ( + + COUNT( * ) ) AS col1, 32 AS col2
----
-1
32

skipif mysql # not compatible
query II rowsort label-2277
SELECT ALL - ( + + COUNT ( * ) ) AS col1, 32 AS col2
----
-1
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2278
SELECT MAX( ALL + 50 ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-2278
SELECT MAX ( ALL + 50 ) AS col1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2279
SELECT ALL MIN( ALL + 49 ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-2279
SELECT ALL MIN ( ALL + 49 ) AS col1
----
49

query I rowsort
SELECT - + 13 AS col2
----
-13

query I rowsort
SELECT + - 15 * - 71 col2
----
1065

onlyif mysql # aggregate syntax: 
query I rowsort label-2282
SELECT ALL + COUNT( * ) * + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2282
SELECT ALL + COUNT ( * ) * + COUNT ( * ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2283
SELECT ALL ( + COUNT( * ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-2283
SELECT ALL ( + COUNT ( * ) ) col2
----
1

query I rowsort
SELECT ( 68 ) AS col0
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2285
SELECT DISTINCT CAST( - - 63 AS SIGNED )
----
63

skipif mysql # not compatible
query I rowsort label-2285
SELECT DISTINCT CAST ( - - 63 AS INTEGER )
----
63

query I rowsort
SELECT 25 * + 62 * + 19 AS col0
----
29450

onlyif mysql # aggregate syntax: 
query I rowsort label-2287
SELECT COUNT( - 80 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2287
SELECT COUNT ( - 80 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2288
SELECT COUNT( * ) - - - 37 * + COUNT( * ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-2288
SELECT COUNT ( * ) - - - 37 * + COUNT ( * ) AS col0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-2289
SELECT ALL - COUNT( * ) + ( 18 )
----
17

skipif mysql # not compatible
query I rowsort label-2289
SELECT ALL - COUNT ( * ) + ( 18 )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-2290
SELECT 60 - + - COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-2290
SELECT 60 - + - COUNT ( * )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2291
SELECT DISTINCT - 71 * COUNT( * ) col1
----
-71

skipif mysql # not compatible
query I rowsort label-2291
SELECT DISTINCT - 71 * COUNT ( * ) col1
----
-71

query I rowsort
SELECT DISTINCT 99 + - 13 AS col1
----
86

query I rowsort
SELECT + + ( 33 )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2294
SELECT DISTINCT ( SUM( DISTINCT + - 38 ) )
----
-38

skipif mysql # not compatible
query I rowsort label-2294
SELECT DISTINCT ( SUM ( DISTINCT + - 38 ) )
----
-38

query I rowsort
SELECT - ( - 19 )
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2296
SELECT 88, CAST( NULL AS SIGNED ) + 49 * - + 25 * + 79 AS col2
----
88
NULL

skipif mysql # not compatible
query II rowsort label-2296
SELECT 88, CAST ( NULL AS INTEGER ) + 49 * - + 25 * + 79 AS col2
----
88
NULL

query I rowsort
SELECT - ( 35 ) AS col1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-2298
SELECT + + COUNT( * ) - - - 78 - 18
----
-95

skipif mysql # not compatible
query I rowsort label-2298
SELECT + + COUNT ( * ) - - - 78 - 18
----
-95

query I rowsort
SELECT - COALESCE ( + 18, - - 29 - + 50 ) AS col1
----
-18

query I rowsort
SELECT + 17 + + 3 AS col1
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2301
SELECT + 30 + - CAST( - COUNT( * ) AS SIGNED ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-2301
SELECT + 30 + - CAST ( - COUNT ( * ) AS INTEGER ) AS col0
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-2302
SELECT + - 49 DIV - 85
----
0

skipif mysql # not compatible
query I rowsort label-2302
SELECT + - 49 / - 85
----
0

query I rowsort
SELECT DISTINCT - 30 * + 74 AS col0
----
-2220

query I rowsort
SELECT 49 * - 24 + + 20 AS col2
----
-1156

query I rowsort
SELECT DISTINCT - 68 * 81
----
-5508

onlyif mysql # aggregate syntax: 
query I rowsort label-2306
SELECT DISTINCT 91 * - + MAX( - + 30 )
----
2730

skipif mysql # not compatible
query I rowsort label-2306
SELECT DISTINCT 91 * - + MAX ( - + 30 )
----
2730

query I rowsort
SELECT ALL + 83 * - 95
----
-7885

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2308
SELECT DISTINCT - - 88, ( + CAST( NULL AS SIGNED ) ) / 85 AS col2
----
88
NULL

skipif mysql # not compatible
query II rowsort label-2308
SELECT DISTINCT - - 88, ( + CAST ( NULL AS INTEGER ) ) / 85 AS col2
----
88
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2309
SELECT DISTINCT AVG ( + CAST( NULL AS SIGNED ) ), CAST( COUNT( * ) AS SIGNED ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-2309
SELECT DISTINCT AVG ( + CAST ( NULL AS INTEGER ) ), CAST ( COUNT ( * ) AS INTEGER ) AS col1
----
NULL
1

query I rowsort
SELECT ALL + - 81 col0
----
-81

query I rowsort
SELECT DISTINCT + 8 AS col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2312
SELECT + MAX( DISTINCT - 25 )
----
-25

skipif mysql # not compatible
query I rowsort label-2312
SELECT + MAX ( DISTINCT - 25 )
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-2313
SELECT DISTINCT + COUNT( - + 5 )
----
1

skipif mysql # not compatible
query I rowsort label-2313
SELECT DISTINCT + COUNT ( - + 5 )
----
1

query II rowsort
SELECT DISTINCT + 85 AS col2, ( 41 ) AS col0
----
85
41

query I rowsort
SELECT DISTINCT + 30 AS col1
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2316
SELECT + COUNT( * ) + - COUNT( * ) DIV + 6 col0
----
1

skipif mysql # not compatible
query I rowsort label-2316
SELECT + COUNT ( * ) + - COUNT ( * ) / + 6 col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2317
SELECT - NULLIF ( + CAST( NULL AS SIGNED ), - 63 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2317
SELECT - NULLIF ( + CAST ( NULL AS INTEGER ), - 63 ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2318
SELECT - COUNT( * ) - + + 19
----
-20

skipif mysql # not compatible
query I rowsort label-2318
SELECT - COUNT ( * ) - + + 19
----
-20

query II rowsort
SELECT - 90 AS col2, 95 + + 33
----
-90
128

onlyif mysql # aggregate syntax: 
query I rowsort label-2320
SELECT ALL + 68 + + - COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-2320
SELECT ALL + 68 + + - COUNT ( * )
----
67

query I rowsort
SELECT - - ( - 82 )
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-2322
SELECT ALL MIN( + 62 ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-2322
SELECT ALL MIN ( + 62 ) AS col2
----
62

query I rowsort
SELECT DISTINCT + 72 * 3 AS col0
----
216

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2324
SELECT - COUNT( * ) DIV - + 73 * + + 14 * - 8 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2324
SELECT - COUNT ( * ) / - + 73 * + + 14 * - 8 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2325
SELECT CAST( + - 22 AS SIGNED ) AS col1, + 73 AS col0
----
-22
73

skipif mysql # not compatible
query II rowsort label-2325
SELECT CAST ( + - 22 AS INTEGER ) AS col1, + 73 AS col0
----
-22
73

query I rowsort
SELECT ( - 72 )
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2327
SELECT + COUNT( * ) * - CAST( NULL AS SIGNED ) * ( + MAX( + + CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2327
SELECT + COUNT ( * ) * - CAST ( NULL AS INTEGER ) * ( + MAX ( + + CAST ( NULL AS INTEGER ) ) )
----
NULL

query I rowsort
SELECT - 53 * - + 40
----
2120

onlyif mysql # aggregate syntax: 
query I rowsort label-2329
SELECT DISTINCT COUNT( * ) * 73 AS col1
----
73

skipif mysql # not compatible
query I rowsort label-2329
SELECT DISTINCT COUNT ( * ) * 73 AS col1
----
73

query I rowsort
SELECT - 11 col0
----
-11

query I rowsort
SELECT 54 - 83
----
-29

query I rowsort
SELECT DISTINCT + ( + - 71 ) + - 50 AS col0
----
-121

query I rowsort
SELECT ALL - ( - + 65 ) + - 42
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2334
SELECT ALL - CAST( NULL AS SIGNED ) AS col1, 22 + + 55 AS col1
----
NULL
77

skipif mysql # not compatible
query II rowsort label-2334
SELECT ALL - CAST ( NULL AS INTEGER ) AS col1, 22 + + 55 AS col1
----
NULL
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2335
SELECT COUNT( * ) * 95
----
95

skipif mysql # not compatible
query I rowsort label-2335
SELECT COUNT ( * ) * 95
----
95

query I rowsort
SELECT ALL 12 + 39
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2337
SELECT ALL COUNT( * ) DIV COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-2337
SELECT ALL COUNT ( * ) / COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2338
SELECT - MIN( 26 )
----
-26

skipif mysql # not compatible
query I rowsort label-2338
SELECT - MIN ( 26 )
----
-26

query I rowsort
SELECT + - 80 AS col1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2340
SELECT DISTINCT MAX( ALL 98 ) + - COUNT( ALL 5 )
----
97

skipif mysql # not compatible
query I rowsort label-2340
SELECT DISTINCT MAX ( ALL 98 ) + - COUNT ( ALL 5 )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2341
SELECT ( - COUNT( * ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-2341
SELECT ( - COUNT ( * ) ) col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2342
SELECT + SUM( + 0 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-2342
SELECT + SUM ( + 0 ) col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2343
SELECT + MAX( ALL + - 87 )
----
-87

skipif mysql # not compatible
query I rowsort label-2343
SELECT + MAX ( ALL + - 87 )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-2344
SELECT - COUNT( * ) + - 58
----
-59

skipif mysql # not compatible
query I rowsort label-2344
SELECT - COUNT ( * ) + - 58
----
-59

query I rowsort
SELECT - 40 * + ( - 15 )
----
600

query I rowsort
SELECT ALL 69 - 90
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-2347
SELECT COUNT( * ), 96 AS col1
----
1
96

skipif mysql # not compatible
query II rowsort label-2347
SELECT COUNT ( * ), 96 AS col1
----
1
96

query I rowsort
SELECT 88 * - - 57 col1
----
5016

query I rowsort
SELECT ALL + 5 * - + 68 AS col2
----
-340

onlyif mysql # aggregate syntax: 
query I rowsort label-2350
SELECT COALESCE ( + - 71, + + COUNT( * ), 13 ) + + 57 AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-2350
SELECT COALESCE ( + - 71, + + COUNT ( * ), 13 ) + + 57 AS col0
----
-14

query I rowsort
SELECT + - 32
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-2352
SELECT COUNT( * ) + + + 70 * COUNT( * ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-2352
SELECT COUNT ( * ) + + + 70 * COUNT ( * ) AS col1
----
71

query I rowsort
SELECT DISTINCT - 64 + 14
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2354
SELECT ALL - COUNT( * ) DIV - - 41 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2354
SELECT ALL - COUNT ( * ) / - - 41 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2355
SELECT - CAST( NULL AS SIGNED ) * + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2355
SELECT - CAST ( NULL AS INTEGER ) * + - COUNT ( * )
----
NULL

query I rowsort
SELECT + + 64
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2357
SELECT DISTINCT + - 83 AS col1, - 69 * COUNT( * ) DIV - ( 6 )
----
-83
11

skipif mysql # not compatible
query II rowsort label-2357
SELECT DISTINCT + - 83 AS col1, - 69 * COUNT ( * ) / - ( 6 )
----
-83
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2358
SELECT - - ( - ( COUNT( * ) ) ) * 81 AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-2358
SELECT - - ( - ( COUNT ( * ) ) ) * 81 AS col0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2359
SELECT + SUM( DISTINCT + 77 ) col0
----
77

skipif mysql # not compatible
query I rowsort label-2359
SELECT + SUM ( DISTINCT + 77 ) col0
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2360
SELECT ALL 10 + + - ( - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2360
SELECT ALL 10 + + - ( - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2361
SELECT ALL 72 col0, SUM( DISTINCT + 13 )
----
72
13

skipif mysql # not compatible
query II rowsort label-2361
SELECT ALL 72 col0, SUM ( DISTINCT + 13 )
----
72
13

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2362
SELECT 69 col1, + CAST( NULL AS DECIMAL ) * + 49 AS col2
----
69
NULL

skipif mysql # not compatible
query II rowsort label-2362
SELECT 69 col1, + CAST ( NULL AS REAL ) * + 49 AS col2
----
69
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2363
SELECT DISTINCT 9 + - + MAX( - 99 ) DIV + - 72, SUM( ALL CAST( NULL AS SIGNED ) ) col1
----
8
NULL

skipif mysql # not compatible
query II rowsort label-2363
SELECT DISTINCT 9 + - + MAX ( - 99 ) / + - 72, SUM ( ALL CAST ( NULL AS INTEGER ) ) col1
----
8
NULL

query I rowsort
SELECT ALL + 51 col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2365
SELECT + MIN( DISTINCT 28 ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-2365
SELECT + MIN ( DISTINCT 28 ) AS col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2366
SELECT + + 49 * COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-2366
SELECT + + 49 * COUNT ( * )
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2367
SELECT ALL + 44 DIV - - COUNT( * ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-2367
SELECT ALL + 44 / - - COUNT ( * ) AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2368
SELECT 48 * + + 0 - - MIN( 16 ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-2368
SELECT 48 * + + 0 - - MIN ( 16 ) AS col0
----
16

query I rowsort
SELECT ALL 34 + 72
----
106

query II rowsort
SELECT 81, 54 AS col1
----
81
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2371
SELECT DISTINCT + COUNT( * ) * - 39
----
-39

skipif mysql # not compatible
query I rowsort label-2371
SELECT DISTINCT + COUNT ( * ) * - 39
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-2372
SELECT ALL SUM( + 49 )
----
49

skipif mysql # not compatible
query I rowsort label-2372
SELECT ALL SUM ( + 49 )
----
49

query I rowsort
SELECT ALL - 45 AS col2
----
-45

query I rowsort
SELECT - 52 + - 97 AS col0
----
-149

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2375
SELECT + CAST( + 98 AS SIGNED )
----
98

skipif mysql # not compatible
query I rowsort label-2375
SELECT + CAST ( + 98 AS INTEGER )
----
98

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2376
SELECT CAST( NULL AS DECIMAL ) * - COUNT( * ) + - 28 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2376
SELECT CAST ( NULL AS REAL ) * - COUNT ( * ) + - 28 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2377
SELECT DISTINCT - COUNT( * ) * + 10
----
-10

skipif mysql # not compatible
query I rowsort label-2377
SELECT DISTINCT - COUNT ( * ) * + 10
----
-10

query I rowsort
SELECT ( 28 )
----
28

query I rowsort
SELECT ( 31 ) AS col1
----
31

query I rowsort
SELECT ( - 41 )
----
-41

query I rowsort
SELECT - ( 4 ) AS col1
----
-4

query I rowsort
SELECT ALL - 44 * - - 8
----
-352

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2383
SELECT ALL - 66 DIV COUNT( * ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-2383
SELECT ALL - 66 / COUNT ( * ) AS col1
----
-66

query I rowsort
SELECT DISTINCT - ( + + 72 )
----
-72

query I rowsort
SELECT 41 * + 41 AS col0
----
1681

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2386
SELECT ALL - CAST( + + ( 49 ) AS SIGNED )
----
-49

skipif mysql # not compatible
query I rowsort label-2386
SELECT ALL - CAST ( + + ( 49 ) AS INTEGER )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-2387
SELECT DISTINCT - + COUNT( * ) + + + 75
----
74

skipif mysql # not compatible
query I rowsort label-2387
SELECT DISTINCT - + COUNT ( * ) + + + 75
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2388
SELECT DISTINCT + CAST( NULL AS SIGNED ) / 29 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2388
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / 29 col1
----
NULL

query I rowsort
SELECT ALL - 86 col0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-2390
SELECT 21 * - ( + COUNT( * ) )
----
-21

skipif mysql # not compatible
query I rowsort label-2390
SELECT 21 * - ( + COUNT ( * ) )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-2391
SELECT + COUNT( + - 53 )
----
1

skipif mysql # not compatible
query I rowsort label-2391
SELECT + COUNT ( + - 53 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2392
SELECT - - 8 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2392
SELECT - - 8 - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 92 col2
----
92

query I rowsort
SELECT ALL 22 * - 38 AS col2
----
-836

query I rowsort
SELECT + 33 * 86
----
2838

query I rowsort
SELECT + ( 42 )
----
42

query I rowsort
SELECT ( + 28 ) AS col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2398
SELECT - COUNT( * ) + - - 16 AS col2
----
15

skipif mysql # not compatible
query I rowsort label-2398
SELECT - COUNT ( * ) + - - 16 AS col2
----
15

query I rowsort
SELECT ( - 3 )
----
-3

query I rowsort
SELECT ALL ( 2 )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2401
SELECT DISTINCT CAST( + 17 AS SIGNED ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-2401
SELECT DISTINCT CAST ( + 17 AS INTEGER ) AS col1
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2402
SELECT ALL 9 + - COUNT( * ) DIV - + 63 AS col2
----
9

skipif mysql # not compatible
query I rowsort label-2402
SELECT ALL 9 + - COUNT ( * ) / - + 63 AS col2
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2403
SELECT + SUM( + + 0 ) DIV 71 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2403
SELECT + SUM ( + + 0 ) / 71 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2404
SELECT - - CAST( + 39 AS SIGNED )
----
39

skipif mysql # not compatible
query I rowsort label-2404
SELECT - - CAST ( + 39 AS INTEGER )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2405
SELECT 32 * - - COUNT( * )
----
32

skipif mysql # not compatible
query I rowsort label-2405
SELECT 32 * - - COUNT ( * )
----
32

query I rowsort
SELECT 47 + - 29
----
18

query I rowsort
SELECT DISTINCT 75 col2
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-2408
SELECT + + COUNT( * ) AS col2, + ( + 48 )
----
1
48

skipif mysql # not compatible
query II rowsort label-2408
SELECT + + COUNT ( * ) AS col2, + ( + 48 )
----
1
48

query I rowsort
SELECT - 81 + + 20
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-2410
SELECT ALL - SUM( ALL - - 77 )
----
-77

skipif mysql # not compatible
query I rowsort label-2410
SELECT ALL - SUM ( ALL - - 77 )
----
-77

query I rowsort
SELECT DISTINCT - ( + 12 ) AS col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-2412
SELECT DISTINCT 67 * - COUNT( * ) * - 4 AS col0
----
268

skipif mysql # not compatible
query I rowsort label-2412
SELECT DISTINCT 67 * - COUNT ( * ) * - 4 AS col0
----
268

query I rowsort
SELECT 16 * + 85
----
1360

query I rowsort
SELECT DISTINCT 63 + - 38 AS col2
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2415
SELECT DISTINCT + - CAST( + 97 AS SIGNED ), + 52 AS col1
----
-97
52

skipif mysql # not compatible
query II rowsort label-2415
SELECT DISTINCT + - CAST ( + 97 AS INTEGER ), + 52 AS col1
----
-97
52

query I rowsort
SELECT ALL + - 11 * - ( + 6 )
----
66

query II rowsort
SELECT DISTINCT + 6 AS col0, 70 + - 26 + - 99
----
6
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-2418
SELECT - ( + MIN( + 82 ) ) AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-2418
SELECT - ( + MIN ( + 82 ) ) AS col1
----
-82

query I rowsort
SELECT + 50 + + 4 AS col0
----
54

query I rowsort
SELECT - 40 * ( 83 )
----
-3320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2421
SELECT ALL - COUNT( * ) * - CAST( + - COUNT( * ) AS SIGNED ) - MAX( DISTINCT + 60 ) AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-2421
SELECT ALL - COUNT ( * ) * - CAST ( + - COUNT ( * ) AS INTEGER ) - MAX ( DISTINCT + 60 ) AS col0
----
-61

query I rowsort
SELECT ( - + 55 )
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2423
SELECT COUNT( * ) DIV - 82 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2423
SELECT COUNT ( * ) / - 82 AS col0
----
0

query I rowsort
SELECT DISTINCT + ( 67 ) - 77 + - 25 * 30
----
-760

query I rowsort
SELECT ALL 91 * - ( - 99 )
----
9009

query I rowsort
SELECT 75 - - - 25 AS col1
----
50

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2427
SELECT DISTINCT CAST( NULL AS DECIMAL ) / 69 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2427
SELECT DISTINCT CAST ( NULL AS REAL ) / 69 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2428
SELECT ALL - - COUNT( - 96 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2428
SELECT ALL - - COUNT ( - 96 ) AS col1
----
1

query I rowsort
SELECT 71 * + 65 AS col2
----
4615

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2430
SELECT ALL - COUNT( * ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2430
SELECT ALL - COUNT ( * ) * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 78 * 29 AS col0
----
2262

onlyif mysql # aggregate syntax: 
query I rowsort label-2432
SELECT ALL MIN( + 89 ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-2432
SELECT ALL MIN ( + 89 ) AS col2
----
89

query I rowsort
SELECT 82 * - + 3 AS col1
----
-246

query I rowsort
SELECT ALL - 14 - - 59
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2435
SELECT + MIN( DISTINCT 97 ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-2435
SELECT + MIN ( DISTINCT 97 ) AS col0
----
97

query I rowsort
SELECT ALL + 5 AS col1
----
5

query II rowsort
SELECT ALL + 76 col1, 46
----
76
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2438
SELECT + CAST( + - 11 AS SIGNED ) - + COUNT( 72 ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-2438
SELECT + CAST ( + - 11 AS INTEGER ) - + COUNT ( 72 ) AS col1
----
-12

query I rowsort
SELECT + ( - 80 ) col2
----
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2440
SELECT DISTINCT 15 DIV - MAX( + 26 )
----
0

skipif mysql # not compatible
query I rowsort label-2440
SELECT DISTINCT 15 / - MAX ( + 26 )
----
0

query I rowsort
SELECT ( - + 35 )
----
-35

query I rowsort
SELECT + ( - + 23 )
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2443
SELECT ALL SUM( + CAST( - + 97 AS SIGNED ) ) AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-2443
SELECT ALL SUM ( + CAST ( - + 97 AS INTEGER ) ) AS col2
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2444
SELECT 75 DIV + COUNT( * ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-2444
SELECT 75 / + COUNT ( * ) AS col2
----
75

query I rowsort
SELECT - 77 * + - 64 - 42 + + + ( - 4 )
----
4882

onlyif mysql # DIV for integer division: 
query I rowsort label-2446
SELECT ALL + 67 DIV - 8
----
-8

skipif mysql # not compatible
query I rowsort label-2446
SELECT ALL + 67 / - 8
----
-8

query I rowsort
SELECT 1 * - + 79 col2
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-2448
SELECT DISTINCT + SUM( - + NULLIF ( 98, + - 99 ) ) + - + 44
----
-142

skipif mysql # not compatible
query I rowsort label-2448
SELECT DISTINCT + SUM ( - + NULLIF ( 98, + - 99 ) ) + - + 44
----
-142

query I rowsort
SELECT DISTINCT - + 81
----
-81

query I rowsort
SELECT + + 86 col1
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2451
SELECT DISTINCT + MIN( - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2451
SELECT DISTINCT + MIN ( - + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL ( + 18 ) AS col2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2453
SELECT DISTINCT 98 * - COUNT( * )
----
-98

skipif mysql # not compatible
query I rowsort label-2453
SELECT DISTINCT 98 * - COUNT ( * )
----
-98

query I rowsort
SELECT + 93 * - 32
----
-2976

onlyif mysql # aggregate syntax: 
query I rowsort label-2455
SELECT - COUNT( * ) * - COUNT( * ) - + 10
----
-9

skipif mysql # not compatible
query I rowsort label-2455
SELECT - COUNT ( * ) * - COUNT ( * ) - + 10
----
-9

query I rowsort
SELECT ALL ( - 44 ) AS col0
----
-44

query I rowsort
SELECT DISTINCT ( - 95 ) AS col0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-2458
SELECT - COUNT( + + 57 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2458
SELECT - COUNT ( + + 57 ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2459
SELECT ALL CAST( - 56 AS SIGNED ) AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-2459
SELECT ALL CAST ( - 56 AS INTEGER ) AS col0
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2460
SELECT ALL + + CAST( + - 58 AS SIGNED )
----
-58

skipif mysql # not compatible
query I rowsort label-2460
SELECT ALL + + CAST ( + - 58 AS INTEGER )
----
-58

query I rowsort
SELECT + + 44 AS col0
----
44

query I rowsort
SELECT 59 * - - 91 AS col1
----
5369

query I rowsort
SELECT DISTINCT - + ( + 20 )
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-2464
SELECT DISTINCT + 30 DIV 84 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2464
SELECT DISTINCT + 30 / 84 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2465
SELECT ALL - ( 96 ) + + + CAST( + COUNT( * ) AS SIGNED )
----
-95

skipif mysql # not compatible
query I rowsort label-2465
SELECT ALL - ( 96 ) + + + CAST ( + COUNT ( * ) AS INTEGER )
----
-95

query I rowsort
SELECT DISTINCT + ( - 58 ) AS col2
----
-58

query I rowsort
SELECT + 62 * - 25
----
-1550

query I rowsort
SELECT DISTINCT ( - 20 ) AS col0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-2469
SELECT DISTINCT COUNT( - 90 )
----
1

skipif mysql # not compatible
query I rowsort label-2469
SELECT DISTINCT COUNT ( - 90 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2470
SELECT DISTINCT COUNT( * ) + + 28 AS col1
----
29

skipif mysql # not compatible
query I rowsort label-2470
SELECT DISTINCT COUNT ( * ) + + 28 AS col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-2471
SELECT + 57 + 93 * + COUNT( * ) AS col0
----
150

skipif mysql # not compatible
query I rowsort label-2471
SELECT + 57 + 93 * + COUNT ( * ) AS col0
----
150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2472
SELECT DISTINCT + CAST( - + 51 AS SIGNED ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-2472
SELECT DISTINCT + CAST ( - + 51 AS INTEGER ) AS col1
----
-51

query I rowsort
SELECT ( ( - 21 ) ) AS col2
----
-21

query I rowsort
SELECT ( - - 22 ) AS col2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2475
SELECT DISTINCT + MIN( ALL - 16 )
----
-16

skipif mysql # not compatible
query I rowsort label-2475
SELECT DISTINCT + MIN ( ALL - 16 )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-2476
SELECT DISTINCT + MIN( DISTINCT ( - ( - 5 ) ) ) col2
----
5

skipif mysql # not compatible
query I rowsort label-2476
SELECT DISTINCT + MIN ( DISTINCT ( - ( - 5 ) ) ) col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2477
SELECT 72 * + - MAX( - 24 )
----
1728

skipif mysql # not compatible
query I rowsort label-2477
SELECT 72 * + - MAX ( - 24 )
----
1728

query I rowsort
SELECT + 2 + + - 65
----
-63

query I rowsort
SELECT DISTINCT - 45 * + 21
----
-945

onlyif mysql # aggregate syntax: 
query I rowsort label-2480
SELECT ALL + SUM( DISTINCT + + 56 )
----
56

skipif mysql # not compatible
query I rowsort label-2480
SELECT ALL + SUM ( DISTINCT + + 56 )
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-2481
SELECT COUNT( * ), - 56 col2
----
1
-56

skipif mysql # not compatible
query II rowsort label-2481
SELECT COUNT ( * ), - 56 col2
----
1
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-2482
SELECT - - SUM( - + 20 )
----
-20

skipif mysql # not compatible
query I rowsort label-2482
SELECT - - SUM ( - + 20 )
----
-20

query II rowsort
SELECT - 46 AS col0, + 57 AS col2
----
-46
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2484
SELECT - CAST( - - 35 AS SIGNED ) AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-2484
SELECT - CAST ( - - 35 AS INTEGER ) AS col1
----
-35

query I rowsort
SELECT + 80 * 7 col2
----
560

query I rowsort
SELECT DISTINCT + 49 col1
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2487
SELECT + 26 * + + COUNT( DISTINCT - + 48 ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-2487
SELECT + 26 * + + COUNT ( DISTINCT - + 48 ) AS col0
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-2488
SELECT ALL + 52 DIV + 82 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2488
SELECT ALL + 52 / + 82 AS col1
----
0

query I rowsort
SELECT ALL 40 + - 9 + - 67
----
-36

query I rowsort
SELECT - ( + 96 )
----
-96

query I rowsort
SELECT - - ( - 18 ) AS col2
----
-18

query I rowsort
SELECT ALL - 84 + + + 95
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2493
SELECT ALL - COUNT( * ) + + 6 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-2493
SELECT ALL - COUNT ( * ) + + 6 AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2494
SELECT ( 12 ) * COUNT( * ) + - COUNT( * ) + + + 42 AS col0
----
53

skipif mysql # not compatible
query I rowsort label-2494
SELECT ( 12 ) * COUNT ( * ) + - COUNT ( * ) + + + 42 AS col0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-2495
SELECT + MAX( + + 2 )
----
2

skipif mysql # not compatible
query I rowsort label-2495
SELECT + MAX ( + + 2 )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2496
SELECT + 57 + - CAST( + 98 AS SIGNED )
----
-41

skipif mysql # not compatible
query I rowsort label-2496
SELECT + 57 + - CAST ( + 98 AS INTEGER )
----
-41

query I rowsort
SELECT ALL 3 * - 42 AS col0
----
-126

query II rowsort
SELECT 92 AS col0, 94 * - 61
----
92
-5734

query I rowsort
SELECT + + 47 col0
----
47

query I rowsort
SELECT ALL + + 25 AS col2
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2501
SELECT - CAST( + 23 AS SIGNED ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-2501
SELECT - CAST ( + 23 AS INTEGER ) AS col2
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2502
SELECT - CAST( + ( + 21 ) AS SIGNED ) AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-2502
SELECT - CAST ( + ( + 21 ) AS INTEGER ) AS col2
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-2503
SELECT 63 * COUNT( * )
----
63

skipif mysql # not compatible
query I rowsort label-2503
SELECT 63 * COUNT ( * )
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2504
SELECT ALL - CAST( NULL AS SIGNED ) + - 46
----
NULL

skipif mysql # not compatible
query I rowsort label-2504
SELECT ALL - CAST ( NULL AS INTEGER ) + - 46
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2505
SELECT ALL + COUNT( * ) + 25
----
26

skipif mysql # not compatible
query I rowsort label-2505
SELECT ALL + COUNT ( * ) + 25
----
26

query I rowsort
SELECT ALL - 69 * 47 AS col1
----
-3243

onlyif mysql # aggregate syntax: 
query I rowsort label-2507
SELECT 8 - - COUNT( * ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-2507
SELECT 8 - - COUNT ( * ) AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2508
SELECT DISTINCT MIN( DISTINCT + 6 )
----
6

skipif mysql # not compatible
query I rowsort label-2508
SELECT DISTINCT MIN ( DISTINCT + 6 )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2509
SELECT + 88 * 24 + + + COUNT( * ) AS col1
----
2113

skipif mysql # not compatible
query I rowsort label-2509
SELECT + 88 * 24 + + + COUNT ( * ) AS col1
----
2113

query I rowsort
SELECT + 67 - 75
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2511
SELECT DISTINCT - + MAX( + CAST( NULL AS SIGNED ) ) * 27 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2511
SELECT DISTINCT - + MAX ( + CAST ( NULL AS INTEGER ) ) * 27 AS col2
----
NULL

query I rowsort
SELECT ALL + 93 AS col0
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2513
SELECT ALL CAST( NULL AS SIGNED ) AS col1, 92
----
NULL
92

skipif mysql # not compatible
query II rowsort label-2513
SELECT ALL CAST ( NULL AS INTEGER ) AS col1, 92
----
NULL
92

query I rowsort
SELECT - - 6 AS col1
----
6

query I rowsort
SELECT - + ( + 88 )
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2516
SELECT + 27 * - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2516
SELECT + 27 * - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2517
SELECT ALL - COUNT( * ) AS col2, - COUNT( * )
----
-1
-1

skipif mysql # not compatible
query II rowsort label-2517
SELECT ALL - COUNT ( * ) AS col2, - COUNT ( * )
----
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2518
SELECT + SUM( ALL + + 19 )
----
19

skipif mysql # not compatible
query I rowsort label-2518
SELECT + SUM ( ALL + + 19 )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-2519
SELECT MAX( DISTINCT + + 7 )
----
7

skipif mysql # not compatible
query I rowsort label-2519
SELECT MAX ( DISTINCT + + 7 )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2520
SELECT MAX( DISTINCT + ( - 37 ) ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-2520
SELECT MAX ( DISTINCT + ( - 37 ) ) AS col2
----
-37

query I rowsort
SELECT + 66 - 31 AS col0
----
35

query I rowsort
SELECT ALL - 27 col0
----
-27

onlyif mysql # DIV for integer division: 
query II rowsort label-2523
SELECT DISTINCT - - 37 DIV + - 24 AS col1, 38 AS col2
----
-1
38

skipif mysql # not compatible
query II rowsort label-2523
SELECT DISTINCT - - 37 / + - 24 AS col1, 38 AS col2
----
-1
38

query I rowsort
SELECT ALL ( + 2 ) AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2525
SELECT ALL COUNT( * ) * - - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-2525
SELECT ALL COUNT ( * ) * - - COUNT ( * )
----
1

query I rowsort
SELECT ( + + 65 )
----
65

query I rowsort
SELECT + ( - 19 ) AS col0
----
-19

query I rowsort
SELECT ( + 20 ) col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-2529
SELECT + ( - ( - COUNT( * ) ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2529
SELECT + ( - ( - COUNT ( * ) ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2530
SELECT ALL - COUNT( * ) * MAX( + - 55 )
----
55

skipif mysql # not compatible
query I rowsort label-2530
SELECT ALL - COUNT ( * ) * MAX ( + - 55 )
----
55

query I rowsort
SELECT - + 6 AS col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2532
SELECT DISTINCT + COUNT( * ) - 26 + - 50 + + + 8 * + 77
----
541

skipif mysql # not compatible
query I rowsort label-2532
SELECT DISTINCT + COUNT ( * ) - 26 + - 50 + + + 8 * + 77
----
541

onlyif mysql # aggregate syntax: 
query I rowsort label-2533
SELECT - NULLIF ( + - 75, + COUNT( * ) )
----
75

skipif mysql # not compatible
query I rowsort label-2533
SELECT - NULLIF ( + - 75, + COUNT ( * ) )
----
75

query I rowsort
SELECT DISTINCT - 7 * + + 85
----
-595

query I rowsort
SELECT DISTINCT - 77 AS col2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2536
SELECT ALL - - MIN( DISTINCT - - 86 )
----
86

skipif mysql # not compatible
query I rowsort label-2536
SELECT ALL - - MIN ( DISTINCT - - 86 )
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2537
SELECT + MIN( - CAST( + - 80 AS SIGNED ) ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-2537
SELECT + MIN ( - CAST ( + - 80 AS INTEGER ) ) AS col0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2538
SELECT + NULLIF ( - 18, + + COUNT( * ) )
----
-18

skipif mysql # not compatible
query I rowsort label-2538
SELECT + NULLIF ( - 18, + + COUNT ( * ) )
----
-18

query I rowsort
SELECT DISTINCT - 70 AS col2
----
-70

query I rowsort
SELECT DISTINCT - 49 col1
----
-49

query I rowsort
SELECT ALL + 65 + - 72
----
-7

query I rowsort
SELECT ALL - 20 + 32 AS col2
----
12

query I rowsort
SELECT ALL 2 * 88 AS col0
----
176

onlyif mysql # aggregate syntax: 
query II rowsort label-2544
SELECT + + 20 AS col1, COUNT( * ) + 27
----
20
28

skipif mysql # not compatible
query II rowsort label-2544
SELECT + + 20 AS col1, COUNT ( * ) + 27
----
20
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2545
SELECT DISTINCT - COUNT( + + 64 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2545
SELECT DISTINCT - COUNT ( + + 64 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2546
SELECT - 35 + + COUNT( * ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-2546
SELECT - 35 + + COUNT ( * ) AS col2
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-2547
SELECT - COUNT( ALL 84 )
----
-1

skipif mysql # not compatible
query I rowsort label-2547
SELECT - COUNT ( ALL 84 )
----
-1

query I rowsort
SELECT DISTINCT + 56 * - 63 col0
----
-3528

query I rowsort
SELECT DISTINCT + - 48 AS col2
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-2550
SELECT - 36 + + + MAX( ALL 3 )
----
-33

skipif mysql # not compatible
query I rowsort label-2550
SELECT - 36 + + + MAX ( ALL 3 )
----
-33

query I rowsort
SELECT - ( + 80 ) * + 80
----
-6400

query I rowsort
SELECT DISTINCT + - 6
----
-6

query I rowsort
SELECT 17 - - - 92
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2554
SELECT - + CAST( - 77 AS SIGNED )
----
77

skipif mysql # not compatible
query I rowsort label-2554
SELECT - + CAST ( - 77 AS INTEGER )
----
77

query I rowsort
SELECT - - 72 AS col2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2556
SELECT - SUM( ALL + 18 )
----
-18

skipif mysql # not compatible
query I rowsort label-2556
SELECT - SUM ( ALL + 18 )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-2557
SELECT 10 + - COUNT( * ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-2557
SELECT 10 + - COUNT ( * ) AS col2
----
9

query I rowsort
SELECT ALL - - 34 + + - 97 AS col1
----
-63

query I rowsort
SELECT ALL + - 59 AS col2
----
-59

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2560
SELECT DISTINCT + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2560
SELECT DISTINCT + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2561
SELECT MAX( - 93 ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-2561
SELECT MAX ( - 93 ) AS col0
----
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-2562
SELECT COUNT( * ), + 39 AS col1
----
1
39

skipif mysql # not compatible
query II rowsort label-2562
SELECT COUNT ( * ), + 39 AS col1
----
1
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2563
SELECT - 0 - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2563
SELECT - 0 - COUNT ( * ) AS col2
----
-1

query I rowsort
SELECT ALL + 38 * 19
----
722

query I rowsort
SELECT DISTINCT + ( ( + 34 ) )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-2566
SELECT DISTINCT ( COUNT( - 92 ) ) * 74
----
74

skipif mysql # not compatible
query I rowsort label-2566
SELECT DISTINCT ( COUNT ( - 92 ) ) * 74
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2567
SELECT DISTINCT + COUNT( DISTINCT 94 )
----
1

skipif mysql # not compatible
query I rowsort label-2567
SELECT DISTINCT + COUNT ( DISTINCT 94 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2568
SELECT DISTINCT + COUNT( * ) * 71 col2
----
71

skipif mysql # not compatible
query I rowsort label-2568
SELECT DISTINCT + COUNT ( * ) * 71 col2
----
71

query I rowsort
SELECT + 78 + - 60 * + 45 col0
----
-2622

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2570
SELECT - CAST( 25 AS SIGNED ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-2570
SELECT - CAST ( 25 AS INTEGER ) AS col0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-2571
SELECT COUNT( * ) + + 6
----
7

skipif mysql # not compatible
query I rowsort label-2571
SELECT COUNT ( * ) + + 6
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2572
SELECT COUNT( * ) + + 80 DIV - 49
----
0

skipif mysql # not compatible
query I rowsort label-2572
SELECT COUNT ( * ) + + 80 / - 49
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2573
SELECT + ( - 88 ) * + COUNT( * )
----
-88

skipif mysql # not compatible
query I rowsort label-2573
SELECT + ( - 88 ) * + COUNT ( * )
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-2574
SELECT - - MAX( ALL - 52 ) * 55 + 34
----
-2826

skipif mysql # not compatible
query I rowsort label-2574
SELECT - - MAX ( ALL - 52 ) * 55 + 34
----
-2826

query I rowsort
SELECT 16 * 30
----
480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2576
SELECT ALL COUNT( * ) * - CAST( 48 AS SIGNED ) AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-2576
SELECT ALL COUNT ( * ) * - CAST ( 48 AS INTEGER ) AS col1
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-2577
SELECT COUNT( * ) AS col2, - COUNT( * ) AS col1
----
1
-1

skipif mysql # not compatible
query II rowsort label-2577
SELECT COUNT ( * ) AS col2, - COUNT ( * ) AS col1
----
1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2578
SELECT 26 * MAX( + 75 )
----
1950

skipif mysql # not compatible
query I rowsort label-2578
SELECT 26 * MAX ( + 75 )
----
1950

onlyif mysql # aggregate syntax: 
query I rowsort label-2579
SELECT MAX( 18 ) col2
----
18

skipif mysql # not compatible
query I rowsort label-2579
SELECT MAX ( 18 ) col2
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-2580
SELECT ALL 67 DIV - + 96
----
0

skipif mysql # not compatible
query I rowsort label-2580
SELECT ALL 67 / - + 96
----
0

query I rowsort
SELECT - ( + 87 ) AS col1
----
-87

query I rowsort
SELECT ALL - 83 + - + 6 + + 62 AS col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-2583
SELECT + CASE - COUNT( * ) WHEN - 65 THEN COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2583
SELECT + CASE - COUNT ( * ) WHEN - 65 THEN COUNT ( * ) END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2584
SELECT ALL + CAST( - - COUNT( * ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-2584
SELECT ALL + CAST ( - - COUNT ( * ) AS INTEGER )
----
1

query I rowsort
SELECT ALL 83 * 90 col2
----
7470

query I rowsort
SELECT - 14 + ( + 27 )
----
13

query I rowsort
SELECT DISTINCT - - 40 AS col1
----
40

query I rowsort
SELECT ALL - + 81 AS col1
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2589
SELECT DISTINCT ( + COUNT( * ) ) + ( - 30 )
----
-29

skipif mysql # not compatible
query I rowsort label-2589
SELECT DISTINCT ( + COUNT ( * ) ) + ( - 30 )
----
-29

query I rowsort
SELECT + 67 + - 34
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2591
SELECT - + COUNT( ALL 3 )
----
-1

skipif mysql # not compatible
query I rowsort label-2591
SELECT - + COUNT ( ALL 3 )
----
-1

query II rowsort
SELECT ALL 37, 83 AS col2
----
37
83

onlyif mysql # aggregate syntax: 
query II rowsort label-2593
SELECT ALL 39, COUNT( * ) AS col0
----
39
1

skipif mysql # not compatible
query II rowsort label-2593
SELECT ALL 39, COUNT ( * ) AS col0
----
39
1

query I rowsort
SELECT ALL - ( + 70 )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-2595
SELECT + COUNT( * ) * - 72
----
-72

skipif mysql # not compatible
query I rowsort label-2595
SELECT + COUNT ( * ) * - 72
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-2596
SELECT ALL ( - + COUNT( * ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-2596
SELECT ALL ( - + COUNT ( * ) ) col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-2597
SELECT ALL MIN( ALL ( - - 42 ) ), 22 AS col1
----
42
22

skipif mysql # not compatible
query II rowsort label-2597
SELECT ALL MIN ( ALL ( - - 42 ) ), 22 AS col1
----
42
22

query I rowsort
SELECT DISTINCT + + 86 AS col2
----
86

query I rowsort
SELECT ( + - 79 ) AS col1
----
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2600
SELECT ALL - - 56 DIV + COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-2600
SELECT ALL - - 56 / + COUNT ( * )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-2601
SELECT SUM( DISTINCT + 29 )
----
29

skipif mysql # not compatible
query I rowsort label-2601
SELECT SUM ( DISTINCT + 29 )
----
29

query I rowsort
SELECT ALL 37 * + 6
----
222

query I rowsort
SELECT + - 19 AS col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-2604
SELECT ALL - 5 * + COUNT( * ) col1
----
-5

skipif mysql # not compatible
query I rowsort label-2604
SELECT ALL - 5 * + COUNT ( * ) col1
----
-5

query I rowsort
SELECT 99 - - - 63
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2606
SELECT COUNT( * ) * + + 66 AS col0
----
66

skipif mysql # not compatible
query I rowsort label-2606
SELECT COUNT ( * ) * + + 66 AS col0
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-2607
SELECT 1 AS col1, COUNT( * ) AS col1
----
1
1

skipif mysql # not compatible
query II rowsort label-2607
SELECT 1 AS col1, COUNT ( * ) AS col1
----
1
1

query II rowsort
SELECT ALL 35 AS col1, 51
----
35
51

query I rowsort
SELECT 30 + 90 AS col2
----
120

query I rowsort
SELECT 69 col1
----
69

query I rowsort
SELECT ALL + - 98 AS col0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-2612
SELECT MAX( ALL 51 ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-2612
SELECT MAX ( ALL 51 ) AS col1
----
51

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2613
SELECT SUM( - - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2613
SELECT SUM ( - - CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2614
SELECT ALL + COUNT( * ) - + + 28
----
-27

skipif mysql # not compatible
query I rowsort label-2614
SELECT ALL + COUNT ( * ) - + + 28
----
-27

query I rowsort
SELECT DISTINCT 46 col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2616
SELECT ALL SUM( 30 )
----
30

skipif mysql # not compatible
query I rowsort label-2616
SELECT ALL SUM ( 30 )
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2617
SELECT 9 * - CAST( NULL AS SIGNED ) + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-2617
SELECT 9 * - CAST ( NULL AS INTEGER ) + 98
----
NULL

query I rowsort
SELECT + 72 + ( ( - + ( 10 ) ) ) AS col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2619
SELECT + COUNT( * ) * + MAX( DISTINCT 29 ) * SUM( ALL - 39 ) * COUNT( * )
----
-1131

skipif mysql # not compatible
query I rowsort label-2619
SELECT + COUNT ( * ) * + MAX ( DISTINCT 29 ) * SUM ( ALL - 39 ) * COUNT ( * )
----
-1131

query I rowsort
SELECT - + ( - 20 )
----
20

query I rowsort
SELECT ALL 62 col0
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2622
SELECT COUNT( * ) DIV COUNT( * ) * 37 AS col0
----
37

skipif mysql # not compatible
query I rowsort label-2622
SELECT COUNT ( * ) / COUNT ( * ) * 37 AS col0
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2623
SELECT ALL - 36 / CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2623
SELECT ALL - 36 / CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT ALL - 50, + 21 col2
----
-50
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2625
SELECT DISTINCT - CAST( + MAX( + + 40 ) AS SIGNED ) AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-2625
SELECT DISTINCT - CAST ( + MAX ( + + 40 ) AS INTEGER ) AS col2
----
-40

query I rowsort
SELECT 40 * + 39
----
1560

onlyif mysql # DIV for integer division: 
query I rowsort label-2627
SELECT 30 DIV - 84 * 40 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2627
SELECT 30 / - 84 * 40 AS col2
----
0

query I rowsort
SELECT DISTINCT 49 + + 76
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-2629
SELECT - + SUM( + 3 )
----
-3

skipif mysql # not compatible
query I rowsort label-2629
SELECT - + SUM ( + 3 )
----
-3

query I rowsort
SELECT ALL - 11 * + 29
----
-319

onlyif mysql # aggregate syntax: 
query I rowsort label-2631
SELECT DISTINCT - MAX( ALL - 20 )
----
20

skipif mysql # not compatible
query I rowsort label-2631
SELECT DISTINCT - MAX ( ALL - 20 )
----
20

query I rowsort
SELECT DISTINCT - ( - 88 ) AS col0
----
88

query I rowsort
SELECT - 53 * + 75
----
-3975

query I rowsort
SELECT DISTINCT 10 col0
----
10

query I rowsort
SELECT ( + 19 )
----
19

query I rowsort
SELECT ( - 44 ) AS col2
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2637
SELECT + MAX( 74 ) * + CAST( + COUNT( * ) AS SIGNED ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-2637
SELECT + MAX ( 74 ) * + CAST ( + COUNT ( * ) AS INTEGER ) AS col2
----
74

query I rowsort
SELECT ( - 75 )
----
-75

query I rowsort
SELECT ( - 51 ) AS col1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-2640
SELECT ALL COUNT( 85 )
----
1

skipif mysql # not compatible
query I rowsort label-2640
SELECT ALL COUNT ( 85 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2641
SELECT - - MIN( - 69 ) AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-2641
SELECT - - MIN ( - 69 ) AS col1
----
-69

query I rowsort
SELECT ( + 4 ) col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2643
SELECT DISTINCT - COUNT( * ) * + + 46
----
-46

skipif mysql # not compatible
query I rowsort label-2643
SELECT DISTINCT - COUNT ( * ) * + + 46
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-2644
SELECT DISTINCT + COUNT( * ) * - + 99 AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-2644
SELECT DISTINCT + COUNT ( * ) * - + 99 AS col1
----
-99

query I rowsort
SELECT DISTINCT - ( - + 51 ) AS col2
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2646
SELECT 1 DIV - + 55 + - COUNT( * ) * COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-2646
SELECT 1 / - + 55 + - COUNT ( * ) * COUNT ( * )
----
-1

query II rowsort
SELECT ALL + 24, + ( - 95 ) AS col2
----
24
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-2648
SELECT - 71 * - - COUNT( * ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-2648
SELECT - 71 * - - COUNT ( * ) AS col2
----
-71

query I rowsort
SELECT DISTINCT - - 77
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2650
SELECT ALL 31 * + COUNT( * ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-2650
SELECT ALL 31 * + COUNT ( * ) AS col0
----
31

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2651
SELECT - COUNT( * ), + 72 / - CAST( NULL AS DECIMAL ) AS col2
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-2651
SELECT - COUNT ( * ), + 72 / - CAST ( NULL AS REAL ) AS col2
----
-1
NULL

query I rowsort
SELECT - 1 + + ( - + 27 )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-2653
SELECT + 65 + + ( + COUNT( * ) ) * + COUNT( * ) + 26
----
92

skipif mysql # not compatible
query I rowsort label-2653
SELECT + 65 + + ( + COUNT ( * ) ) * + COUNT ( * ) + 26
----
92

query I rowsort
SELECT + 49 + 12 AS col1
----
61

query I rowsort
SELECT DISTINCT NULLIF ( 19, 3 )
----
19

query I rowsort
SELECT - - 87 AS col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2657
SELECT - COUNT( * ) * + 5 + + - 7
----
-12

skipif mysql # not compatible
query I rowsort label-2657
SELECT - COUNT ( * ) * + 5 + + - 7
----
-12

query I rowsort
SELECT + + 53 AS col2
----
53

query I rowsort
SELECT ALL + 66 col0
----
66

query I rowsort
SELECT 33 * - 94 AS col1
----
-3102

onlyif mysql # aggregate syntax: 
query I rowsort label-2661
SELECT ALL - COUNT( * ) * 81
----
-81

skipif mysql # not compatible
query I rowsort label-2661
SELECT ALL - COUNT ( * ) * 81
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2662
SELECT ALL + + MAX( - - 99 ) * + COUNT( * ) * + + 0
----
0

skipif mysql # not compatible
query I rowsort label-2662
SELECT ALL + + MAX ( - - 99 ) * + COUNT ( * ) * + + 0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2663
SELECT ALL - COUNT( * ), 76 AS col2
----
-1
76

skipif mysql # not compatible
query II rowsort label-2663
SELECT ALL - COUNT ( * ), 76 AS col2
----
-1
76

query I rowsort
SELECT ALL - ( + 32 ) - - 38
----
6

query II rowsort
SELECT DISTINCT - 10, + 14 AS col2
----
-10
14

query I rowsort
SELECT 83 + + + 47 AS col1
----
130

query I rowsort
SELECT 90 + + - ( 13 )
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2668
SELECT DISTINCT - COUNT( * ) + + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2668
SELECT DISTINCT - COUNT ( * ) + + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + - 8
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2670
SELECT ALL CAST( NULL AS SIGNED ) * - 64
----
NULL

skipif mysql # not compatible
query I rowsort label-2670
SELECT ALL CAST ( NULL AS INTEGER ) * - 64
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2671
SELECT + MAX( ALL 81 )
----
81

skipif mysql # not compatible
query I rowsort label-2671
SELECT + MAX ( ALL 81 )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2672
SELECT SUM( DISTINCT - 0 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-2672
SELECT SUM ( DISTINCT - 0 ) col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2673
SELECT + COUNT( * ) + - 41
----
-40

skipif mysql # not compatible
query I rowsort label-2673
SELECT + COUNT ( * ) + - 41
----
-40

query I rowsort
SELECT + ( + 48 ) AS col1
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2675
SELECT + 82 DIV COUNT( ALL + 65 ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-2675
SELECT + 82 / COUNT ( ALL + 65 ) AS col2
----
82

query I rowsort
SELECT ALL - 63 * - + 7 col1
----
441

query I rowsort
SELECT DISTINCT - ( + 8 )
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2678
SELECT ALL + CAST( - 35 AS SIGNED )
----
-35

skipif mysql # not compatible
query I rowsort label-2678
SELECT ALL + CAST ( - 35 AS INTEGER )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-2679
SELECT - COUNT( * ) + - 55 AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-2679
SELECT - COUNT ( * ) + - 55 AS col0
----
-56

query I rowsort
SELECT - - ( 28 )
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2681
SELECT DISTINCT - CAST( + 34 AS SIGNED ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-2681
SELECT DISTINCT - CAST ( + 34 AS INTEGER ) AS col2
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2682
SELECT + CAST( - - 29 AS SIGNED )
----
29

skipif mysql # not compatible
query I rowsort label-2682
SELECT + CAST ( - - 29 AS INTEGER )
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2683
SELECT DISTINCT - 93 + 87 * + CAST( - CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2683
SELECT DISTINCT - 93 + 87 * + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 52 AS col1
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2685
SELECT - CAST( + 52 AS SIGNED ) DIV COUNT( * ) - + COUNT( * ) AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-2685
SELECT - CAST ( + 52 AS INTEGER ) / COUNT ( * ) - + COUNT ( * ) AS col0
----
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2686
SELECT DISTINCT 47 DIV + + 13 * - COUNT( * ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-2686
SELECT DISTINCT 47 / + + 13 * - COUNT ( * ) AS col1
----
-3

query I rowsort
SELECT ALL + + 76 AS col2
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2688
SELECT - 9 + - SUM( ALL + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2688
SELECT - 9 + - SUM ( ALL + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2689
SELECT + + CAST( 64 AS SIGNED ) - + - COUNT( * ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-2689
SELECT + + CAST ( 64 AS INTEGER ) - + - COUNT ( * ) AS col0
----
65

query I rowsort
SELECT DISTINCT 6 * 74 * + 79 AS col1
----
35076

onlyif mysql # DIV for integer division: 
query I rowsort label-2691
SELECT 2 DIV 39 * + 91 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2691
SELECT 2 / 39 * + 91 AS col1
----
0

query I rowsort
SELECT DISTINCT - - 83
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2693
SELECT MIN( ALL + 26 ) + + COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-2693
SELECT MIN ( ALL + 26 ) + + COUNT ( * )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2694
SELECT ALL - COUNT( * ) * - + 36
----
36

skipif mysql # not compatible
query I rowsort label-2694
SELECT ALL - COUNT ( * ) * - + 36
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2695
SELECT 28 * + + MAX( + 17 ) AS col0
----
476

skipif mysql # not compatible
query I rowsort label-2695
SELECT 28 * + + MAX ( + 17 ) AS col0
----
476

query II rowsort
SELECT 20, + 84 AS col0
----
20
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2697
SELECT ALL COUNT( * ) + - 39 + 92
----
54

skipif mysql # not compatible
query I rowsort label-2697
SELECT ALL COUNT ( * ) + - 39 + 92
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2698
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-2698
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 84
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2699
SELECT DISTINCT COUNT( * ) * + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2699
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) AS col1
----
1

query I rowsort
SELECT ALL - 20 + - + 9
----
-29

query I rowsort
SELECT + + ( 69 )
----
69

query I rowsort
SELECT ALL 82 + + 53 AS col2
----
135

query I rowsort
SELECT ALL + 63 * 4 col1
----
252

query I rowsort
SELECT ALL + 18 col1
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-2705
SELECT ALL - 36 DIV 25
----
-1

skipif mysql # not compatible
query I rowsort label-2705
SELECT ALL - 36 / 25
----
-1

query I rowsort
SELECT ALL + + 61 AS col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2707
SELECT + 53 * - COUNT( * )
----
-53

skipif mysql # not compatible
query I rowsort label-2707
SELECT + 53 * - COUNT ( * )
----
-53

query I rowsort
SELECT ALL - 65 + + 89 AS col2
----
24

query I rowsort
SELECT DISTINCT + 20 + + 69 AS col2
----
89

query I rowsort
SELECT DISTINCT 86 col2
----
86

query I rowsort
SELECT 62 * + 12 AS col1
----
744

query I rowsort
SELECT + ( - ( + 31 ) )
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2713
SELECT CAST( NULL AS SIGNED ) / + ( + - 30 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2713
SELECT CAST ( NULL AS INTEGER ) / + ( + - 30 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2714
SELECT MIN( DISTINCT + 56 )
----
56

skipif mysql # not compatible
query I rowsort label-2714
SELECT MIN ( DISTINCT + 56 )
----
56

query I rowsort
SELECT DISTINCT + ( - - 64 ) AS col2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2716
SELECT - - 55 + + COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-2716
SELECT - - 55 + + COUNT ( * )
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2717
SELECT - + CAST( NULL AS SIGNED ) + - COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2717
SELECT - + CAST ( NULL AS INTEGER ) + - COUNT ( * ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2718
SELECT - MIN( ALL - + 63 ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-2718
SELECT - MIN ( ALL - + 63 ) AS col0
----
63

query I rowsort
SELECT - - 0 AS col2
----
0

query I rowsort
SELECT + NULLIF ( - 29, 60 )
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-2721
SELECT + - 59 DIV + 60
----
0

skipif mysql # not compatible
query I rowsort label-2721
SELECT + - 59 / + 60
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2722
SELECT + 18 - COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-2722
SELECT + 18 - COUNT ( * )
----
17

query I rowsort
SELECT + ( - 31 ) AS col0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-2724
SELECT DISTINCT - MIN( ALL + - 30 )
----
30

skipif mysql # not compatible
query I rowsort label-2724
SELECT DISTINCT - MIN ( ALL + - 30 )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2725
SELECT 66 * COUNT( * )
----
66

skipif mysql # not compatible
query I rowsort label-2725
SELECT 66 * COUNT ( * )
----
66

query I rowsort
SELECT DISTINCT - 14 + + ( - 3 )
----
-17

query I rowsort
SELECT ALL 7 * ( 0 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2728
SELECT SUM( 38 )
----
38

skipif mysql # not compatible
query I rowsort label-2728
SELECT SUM ( 38 )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2729
SELECT DISTINCT - MIN( ALL + + 89 ) * 27 AS col2
----
-2403

skipif mysql # not compatible
query I rowsort label-2729
SELECT DISTINCT - MIN ( ALL + + 89 ) * 27 AS col2
----
-2403

query I rowsort
SELECT + ( + ( 14 ) ) AS col0
----
14

query II rowsort
SELECT ALL - 11 AS col1, 24 * - - 13 AS col2
----
-11
312

onlyif mysql # aggregate syntax: 
query I rowsort label-2732
SELECT + COUNT( * ) * + ( - COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2732
SELECT + COUNT ( * ) * + ( - COUNT ( * ) ) AS col2
----
-1

query I rowsort
SELECT + 52 + - 44
----
8

query I rowsort
SELECT DISTINCT - 57 col0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-2735
SELECT + 55 + - 51 * + COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-2735
SELECT + 55 + - 51 * + COUNT ( * )
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2736
SELECT ALL CAST( NULL AS SIGNED ), + 75 AS col2
----
NULL
75

skipif mysql # not compatible
query II rowsort label-2736
SELECT ALL CAST ( NULL AS INTEGER ), + 75 AS col2
----
NULL
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2737
SELECT + COUNT( * ) * 81 * - 86 AS col2
----
-6966

skipif mysql # not compatible
query I rowsort label-2737
SELECT + COUNT ( * ) * 81 * - 86 AS col2
----
-6966

onlyif mysql # aggregate syntax: 
query I rowsort label-2738
SELECT - 36 + COUNT( * )
----
-35

skipif mysql # not compatible
query I rowsort label-2738
SELECT - 36 + COUNT ( * )
----
-35

query I rowsort
SELECT ALL 74 - + 39 AS col0
----
35

query I rowsort
SELECT DISTINCT + 36 * 16 AS col0
----
576

query I rowsort
SELECT DISTINCT - 4 * - 9 AS col1
----
36

query I rowsort
SELECT ALL - - 1 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2743
SELECT COUNT( * ) * + ( 21 )
----
21

skipif mysql # not compatible
query I rowsort label-2743
SELECT COUNT ( * ) * + ( 21 )
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2744
SELECT ALL CAST( NULL AS SIGNED ) + 63 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2744
SELECT ALL CAST ( NULL AS INTEGER ) + 63 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2745
SELECT ALL MAX( ALL - ( 63 ) ) + + 33
----
-30

skipif mysql # not compatible
query I rowsort label-2745
SELECT ALL MAX ( ALL - ( 63 ) ) + + 33
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-2746
SELECT - MIN( DISTINCT - 21 ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-2746
SELECT - MIN ( DISTINCT - 21 ) AS col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2747
SELECT - MIN( DISTINCT + + 1 )
----
-1

skipif mysql # not compatible
query I rowsort label-2747
SELECT - MIN ( DISTINCT + + 1 )
----
-1

query I rowsort
SELECT DISTINCT + + ( + + 44 )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2749
SELECT DISTINCT - 8 * - COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-2749
SELECT DISTINCT - 8 * - COUNT ( * )
----
8

query II rowsort
SELECT ALL + - 19 AS col2, - 65
----
-19
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-2751
SELECT + - COUNT( DISTINCT 37 )
----
-1

skipif mysql # not compatible
query I rowsort label-2751
SELECT + - COUNT ( DISTINCT 37 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2752
SELECT - 46 * + COUNT( * ) / + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2752
SELECT - 46 * + COUNT ( * ) / + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2753
SELECT DISTINCT - COUNT( * ) * + ( - 97 )
----
97

skipif mysql # not compatible
query I rowsort label-2753
SELECT DISTINCT - COUNT ( * ) * + ( - 97 )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2754
SELECT ALL + COUNT( * ) - - 54
----
55

skipif mysql # not compatible
query I rowsort label-2754
SELECT ALL + COUNT ( * ) - - 54
----
55

query II rowsort
SELECT ALL 82, + 21 AS col1
----
82
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2756
SELECT DISTINCT MIN( DISTINCT 33 )
----
33

skipif mysql # not compatible
query I rowsort label-2756
SELECT DISTINCT MIN ( DISTINCT 33 )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2757
SELECT + 37 * + - COUNT( * ) AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-2757
SELECT + 37 * + - COUNT ( * ) AS col0
----
-37

query I rowsort
SELECT + + 85 AS col1
----
85

query I rowsort
SELECT ALL - + 18 * - 11 AS col0
----
198

onlyif mysql # DIV for integer division: 
query I rowsort label-2760
SELECT - 36 DIV + 24
----
-1

skipif mysql # not compatible
query I rowsort label-2760
SELECT - 36 / + 24
----
-1

query I rowsort
SELECT NULLIF ( 11, 69 ) AS col0
----
11

query I rowsort
SELECT + ( - 12 ) AS col0
----
-12

query I rowsort
SELECT DISTINCT COALESCE ( - 15, 60 ) AS col1
----
-15

query I rowsort
SELECT 15 * 52
----
780

onlyif mysql # aggregate syntax: 
query I rowsort label-2765
SELECT - 37 * COUNT( * )
----
-37

skipif mysql # not compatible
query I rowsort label-2765
SELECT - 37 * COUNT ( * )
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2766
SELECT 69 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2766
SELECT 69 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT ALL + 66 AS col2, - 20
----
66
-20

query I rowsort
SELECT DISTINCT 42 * + 22
----
924

onlyif mysql # aggregate syntax: 
query I rowsort label-2769
SELECT DISTINCT + 55 + + ( + + COUNT( * ) ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-2769
SELECT DISTINCT + 55 + + ( + + COUNT ( * ) ) AS col0
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2770
SELECT ALL + COUNT( ALL CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-2770
SELECT ALL + COUNT ( ALL CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2771
SELECT COUNT( * ) + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2771
SELECT COUNT ( * ) + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2772
SELECT CAST( + - COUNT( * ) AS SIGNED ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-2772
SELECT CAST ( + - COUNT ( * ) AS INTEGER ) col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2773
SELECT + COALESCE ( - - 70, - COUNT( * ) ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-2773
SELECT + COALESCE ( - - 70, - COUNT ( * ) ) AS col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2774
SELECT ALL - COUNT( ALL 27 )
----
-1

skipif mysql # not compatible
query I rowsort label-2774
SELECT ALL - COUNT ( ALL 27 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2775
SELECT ALL COUNT( * ) * - - 24 col1
----
24

skipif mysql # not compatible
query I rowsort label-2775
SELECT ALL COUNT ( * ) * - - 24 col1
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2776
SELECT ALL + 5 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2776
SELECT ALL + 5 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2777
SELECT - COUNT( + ( + 63 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2777
SELECT - COUNT ( + ( + 63 ) ) AS col1
----
-1

query I rowsort
SELECT 19 + 47
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2779
SELECT DISTINCT - COUNT( ALL + CAST( + - 32 AS SIGNED ) ) + + NULLIF ( + 17, 50 ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-2779
SELECT DISTINCT - COUNT ( ALL + CAST ( + - 32 AS INTEGER ) ) + + NULLIF ( + 17, 50 ) AS col1
----
16

query I rowsort
SELECT ALL - + 73 AS col1
----
-73

query I rowsort
SELECT DISTINCT + 86 * 64
----
5504

query I rowsort
SELECT - + 45 col2
----
-45

query I rowsort
SELECT + 93 + - - 53
----
146

query I rowsort
SELECT 10 * + 13 * 2 - - ( 31 ) AS col1
----
291

query I rowsort
SELECT + + 42 AS col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-2786
SELECT - COUNT( + 20 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2786
SELECT - COUNT ( + 20 ) AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2787
SELECT ALL 87 DIV - + ( COUNT( * ) )
----
-87

skipif mysql # not compatible
query I rowsort label-2787
SELECT ALL 87 / - + ( COUNT ( * ) )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-2788
SELECT + 72 * + COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-2788
SELECT + 72 * + COUNT ( * )
----
72

query I rowsort
SELECT - ( - - 26 ) AS col0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-2790
SELECT ALL + COUNT( * ) + COUNT( * ) * - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-2790
SELECT ALL + COUNT ( * ) + COUNT ( * ) * - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2791
SELECT ALL COUNT( DISTINCT + 34 ) + 98
----
99

skipif mysql # not compatible
query I rowsort label-2791
SELECT ALL COUNT ( DISTINCT + 34 ) + 98
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2792
SELECT CAST( NULL AS SIGNED ) + + ( - 74 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2792
SELECT CAST ( NULL AS INTEGER ) + + ( - 74 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2793
SELECT ALL 12 DIV + 72 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2793
SELECT ALL 12 / + 72 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2794
SELECT DISTINCT COUNT( ALL + 7 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2794
SELECT DISTINCT COUNT ( ALL + 7 ) AS col1
----
1

query I rowsort
SELECT - - 32 AS col2
----
32

query I rowsort
SELECT - - 31 * ( 90 )
----
2790

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2797
SELECT + - ( 51 ) * - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2797
SELECT + - ( 51 ) * - CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2798
SELECT + 0 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2798
SELECT + 0 - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - - 85 + 34
----
119

query I rowsort
SELECT - 50 - - 72
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2801
SELECT COUNT( * ) DIV - 91 + 86
----
86

skipif mysql # not compatible
query I rowsort label-2801
SELECT COUNT ( * ) / - 91 + 86
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2802
SELECT + CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2802
SELECT + CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2803
SELECT ALL + MAX( DISTINCT + + 46 )
----
46

skipif mysql # not compatible
query I rowsort label-2803
SELECT ALL + MAX ( DISTINCT + + 46 )
----
46

query I rowsort
SELECT ( + 82 ) AS col2
----
82

query I rowsort
SELECT DISTINCT - 66 * - - 65
----
-4290

onlyif mysql # aggregate syntax: 
query I rowsort label-2806
SELECT + 49 + - + 8 - COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-2806
SELECT + 49 + - + 8 - COUNT ( * )
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2807
SELECT DISTINCT CAST( NULL AS SIGNED ) * - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2807
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - - COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT - ( + 1 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2809
SELECT ( + + SUM( ALL 0 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2809
SELECT ( + + SUM ( ALL 0 ) ) AS col1
----
0

query I rowsort
SELECT ( 56 )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-2811
SELECT + 18 * + + NULLIF ( - + 92, - COUNT( * ) )
----
-1656

skipif mysql # not compatible
query I rowsort label-2811
SELECT + 18 * + + NULLIF ( - + 92, - COUNT ( * ) )
----
-1656

onlyif mysql # aggregate syntax: 
query I rowsort label-2812
SELECT + ( COUNT( * ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-2812
SELECT + ( COUNT ( * ) ) col1
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2813
SELECT + CAST( NULL AS DECIMAL ) AS col1, 71 + 15
----
NULL
86

skipif mysql # not compatible
query II rowsort label-2813
SELECT + CAST ( NULL AS REAL ) AS col1, 71 + 15
----
NULL
86

onlyif mysql # aggregate syntax: 
query I rowsort label-2814
SELECT + MAX( DISTINCT 37 ) + + + 80 AS col1
----
117

skipif mysql # not compatible
query I rowsort label-2814
SELECT + MAX ( DISTINCT 37 ) + + + 80 AS col1
----
117

query I rowsort
SELECT ( - ( + 48 ) ) AS col1
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-2816
SELECT - NULLIF ( ( - + COUNT( * ) ), 18 ) * - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2816
SELECT - NULLIF ( ( - + COUNT ( * ) ), 18 ) * - COUNT ( * ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2817
SELECT MAX( 28 )
----
28

skipif mysql # not compatible
query I rowsort label-2817
SELECT MAX ( 28 )
----
28

query I rowsort
SELECT DISTINCT + 75 + - 15 AS col2
----
60

query II rowsort
SELECT ALL 36, 25 AS col1
----
36
25

onlyif mysql # aggregate syntax: 
query II rowsort label-2820
SELECT DISTINCT - COUNT( * ) AS col1, - 58
----
-1
-58

skipif mysql # not compatible
query II rowsort label-2820
SELECT DISTINCT - COUNT ( * ) AS col1, - 58
----
-1
-58

query I rowsort
SELECT + - 79 AS col1
----
-79

query I rowsort
SELECT 68 + - 24 AS col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2823
SELECT + 59 * + COUNT( * )
----
59

skipif mysql # not compatible
query I rowsort label-2823
SELECT + 59 * + COUNT ( * )
----
59

query I rowsort
SELECT + ( + 85 ) + 13 AS col2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2825
SELECT ( + ( COUNT( * ) ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2825
SELECT ( + ( COUNT ( * ) ) ) AS col0
----
1

query I rowsort
SELECT + - 24 col0
----
-24

query I rowsort
SELECT DISTINCT + + 75 AS col1
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2828
SELECT DISTINCT + ( + COUNT( * ) ) * + CAST( - COUNT( * ) AS SIGNED ) + + 96 / + 37 + + COUNT( * ) - - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2828
SELECT DISTINCT + ( + COUNT ( * ) ) * + CAST ( - COUNT ( * ) AS INTEGER ) + + 96 / + 37 + + COUNT ( * ) - - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2829
SELECT - MIN( DISTINCT 66 )
----
-66

skipif mysql # not compatible
query I rowsort label-2829
SELECT - MIN ( DISTINCT 66 )
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2830
SELECT DISTINCT ( CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2830
SELECT DISTINCT ( CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2831
SELECT + COUNT( * ) * + 31 AS col1
----
31

skipif mysql # not compatible
query I rowsort label-2831
SELECT + COUNT ( * ) * + 31 AS col1
----
31

query I rowsort
SELECT - ( - 74 )
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2833
SELECT ALL 45 + + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2833
SELECT ALL 45 + + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ( - ( + + ( - 82 ) ) ) * - 70 + 90
----
-5650

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2835
SELECT ALL + + AVG ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2835
SELECT ALL + + AVG ( CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT + + 32 * - 1
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2837
SELECT ALL + + CAST( + CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2837
SELECT ALL + + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - ( + + 57 )
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-2839
SELECT ALL - 82 + + ( ( - COUNT( * ) ) )
----
-83

skipif mysql # not compatible
query I rowsort label-2839
SELECT ALL - 82 + + ( ( - COUNT ( * ) ) )
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-2840
SELECT COUNT( * ) + + - 41 AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-2840
SELECT COUNT ( * ) + + - 41 AS col0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-2841
SELECT 72 * - - COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-2841
SELECT 72 * - - COUNT ( * )
----
72

query I rowsort
SELECT + + ( + 13 ) AS col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2843
SELECT ALL - MIN( ALL - + 21 ) * - + COUNT( * )
----
-21

skipif mysql # not compatible
query I rowsort label-2843
SELECT ALL - MIN ( ALL - + 21 ) * - + COUNT ( * )
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2844
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-2844
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 50
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2845
SELECT DISTINCT 71 + - COUNT( * )
----
70

skipif mysql # not compatible
query I rowsort label-2845
SELECT DISTINCT 71 + - COUNT ( * )
----
70

query I rowsort
SELECT 22 * 32
----
704

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2847
SELECT DISTINCT + + 44 - + MAX( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2847
SELECT DISTINCT + + 44 - + MAX ( CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT DISTINCT - ( 2 ), 23 AS col0
----
-2
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2849
SELECT - CAST( NULL AS SIGNED ) / - 2 + + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-2849
SELECT - CAST ( NULL AS INTEGER ) / - 2 + + 48
----
NULL

query I rowsort
SELECT DISTINCT + 56 col1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-2851
SELECT + 94 + COUNT( * ) * - ( - ( ( + 30 ) ) ) col0
----
124

skipif mysql # not compatible
query I rowsort label-2851
SELECT + 94 + COUNT ( * ) * - ( - ( ( + 30 ) ) ) col0
----
124

query I rowsort
SELECT - 87 - - 53
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-2853
SELECT DISTINCT COUNT( * ) - + - COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-2853
SELECT DISTINCT COUNT ( * ) - + - COUNT ( * ) AS col0
----
2

query I rowsort
SELECT - ( 16 ) AS col2
----
-16

query I rowsort
SELECT ALL + + 60 col1
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2856
SELECT + CAST( NULL AS SIGNED ) + + 26 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2856
SELECT + CAST ( NULL AS INTEGER ) + + 26 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2857
SELECT + COUNT( * ) + - + 99 AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-2857
SELECT + COUNT ( * ) + - + 99 AS col1
----
-98

query I rowsort
SELECT DISTINCT 74 * - + 17 AS col1
----
-1258

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2859
SELECT CAST( + 33 AS SIGNED )
----
33

skipif mysql # not compatible
query I rowsort label-2859
SELECT CAST ( + 33 AS INTEGER )
----
33

query I rowsort
SELECT 91 + - 20 AS col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2861
SELECT DISTINCT - 82 * - COUNT( * ) col1
----
82

skipif mysql # not compatible
query I rowsort label-2861
SELECT DISTINCT - 82 * - COUNT ( * ) col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2862
SELECT DISTINCT - COUNT( * ) * - - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-2862
SELECT DISTINCT - COUNT ( * ) * - - COUNT ( * )
----
-1

query II rowsort
SELECT ALL 15 AS col2, 45
----
15
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2864
SELECT COUNT( * ) + - 57 AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-2864
SELECT COUNT ( * ) + - 57 AS col1
----
-56

query I rowsort
SELECT 12 + - 17 AS col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2866
SELECT 82 * + COUNT( * ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-2866
SELECT 82 * + COUNT ( * ) AS col2
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-2867
SELECT ALL - 94 DIV 1 AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-2867
SELECT ALL - 94 / 1 AS col1
----
-94

query I rowsort
SELECT ALL - 95 * 87 AS col1
----
-8265

query I rowsort
SELECT 81 * + - 95
----
-7695

query II rowsort
SELECT DISTINCT - 54 col0, 14 AS col2
----
-54
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2871
SELECT ALL + 33 * - COUNT( * )
----
-33

skipif mysql # not compatible
query I rowsort label-2871
SELECT ALL + 33 * - COUNT ( * )
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-2872
SELECT ALL - MAX( ALL 58 )
----
-58

skipif mysql # not compatible
query I rowsort label-2872
SELECT ALL - MAX ( ALL 58 )
----
-58

query I rowsort
SELECT DISTINCT + 99 * 45
----
4455

query I rowsort
SELECT DISTINCT + 43 AS col1
----
43

query I rowsort
SELECT - + 94 col1
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2876
SELECT - + AVG ( DISTINCT - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2876
SELECT - + AVG ( DISTINCT - + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2877
SELECT - + COUNT( * ) + + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2877
SELECT - + COUNT ( * ) + + COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2878
SELECT + COUNT( * ) - - 68 * - - COUNT( * ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-2878
SELECT + COUNT ( * ) - - 68 * - - COUNT ( * ) AS col2
----
69

query I rowsort
SELECT ALL 63 col1
----
63

query I rowsort
SELECT + 71 + - - 78 AS col0
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-2881
SELECT NULLIF ( COUNT( * ), + 18 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-2881
SELECT NULLIF ( COUNT ( * ), + 18 ) col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2882
SELECT ALL 61 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2882
SELECT ALL 61 - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2883
SELECT CAST( NULL AS SIGNED ) + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2883
SELECT CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT 25 + + + 28 AS col0
----
53

query I rowsort
SELECT DISTINCT COALESCE ( + 69, - 75 ) AS col1
----
69

query I rowsort
SELECT - 22 * + 72 AS col0
----
-1584

query I rowsort
SELECT DISTINCT 35 + + + 95
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-2888
SELECT - COUNT( * ) + - - 31
----
30

skipif mysql # not compatible
query I rowsort label-2888
SELECT - COUNT ( * ) + - - 31
----
30

onlyif mysql # DIV for integer division: 
query II rowsort label-2889
SELECT ALL + 33 DIV - 40 * - 73 AS col2, - 58
----
0
-58

skipif mysql # not compatible
query II rowsort label-2889
SELECT ALL + 33 / - 40 * - 73 AS col2, - 58
----
0
-58

query I rowsort
SELECT DISTINCT + + 61
----
61

query I rowsort
SELECT DISTINCT + - 28 col2
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2892
SELECT ALL CAST( NULL AS SIGNED ) * COUNT( * ) * 73 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2892
SELECT ALL CAST ( NULL AS INTEGER ) * COUNT ( * ) * 73 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2893
SELECT ALL 94 + + MIN( ALL 48 ) col1
----
142

skipif mysql # not compatible
query I rowsort label-2893
SELECT ALL 94 + + MIN ( ALL 48 ) col1
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-2894
SELECT DISTINCT COUNT( * ) + - 90
----
-89

skipif mysql # not compatible
query I rowsort label-2894
SELECT DISTINCT COUNT ( * ) + - 90
----
-89

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2895
SELECT + 58 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2895
SELECT + 58 * + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2896
SELECT ALL NULLIF ( 88, + ( - COUNT( * ) ) ) col2
----
88

skipif mysql # not compatible
query I rowsort label-2896
SELECT ALL NULLIF ( 88, + ( - COUNT ( * ) ) ) col2
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2897
SELECT DISTINCT + 57 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2897
SELECT DISTINCT + 57 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL - 7 + + + ( 18 ) AS col1
----
11

query I rowsort
SELECT ALL + 57 * + - 56
----
-3192

query I rowsort
SELECT - 7 col0
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2901
SELECT DISTINCT MIN( DISTINCT - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2901
SELECT DISTINCT MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2902
SELECT ALL COUNT( * ) * - - 87 AS col0
----
87

skipif mysql # not compatible
query I rowsort label-2902
SELECT ALL COUNT ( * ) * - - 87 AS col0
----
87

query I rowsort
SELECT DISTINCT + 99 col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2904
SELECT + COUNT( - + 78 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2904
SELECT + COUNT ( - + 78 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2905
SELECT COALESCE ( + COUNT( * ), - + 46 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2905
SELECT COALESCE ( + COUNT ( * ), - + 46 ) AS col0
----
1

query I rowsort
SELECT DISTINCT + 91 col1
----
91

query I rowsort
SELECT DISTINCT + 67 AS col1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2908
SELECT ALL - 84 * COUNT( * ) AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-2908
SELECT ALL - 84 * COUNT ( * ) AS col1
----
-84

query I rowsort
SELECT ( 79 )
----
79

query I rowsort
SELECT + ( - 17 ) AS col1
----
-17

query I rowsort
SELECT ALL 51 * - 60
----
-3060

onlyif mysql # aggregate syntax: 
query I rowsort label-2912
SELECT - + ( - COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2912
SELECT - + ( - COUNT ( * ) ) AS col0
----
1

query I rowsort
SELECT - + ( - 66 )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2914
SELECT DISTINCT - MAX( DISTINCT - 50 )
----
50

skipif mysql # not compatible
query I rowsort label-2914
SELECT DISTINCT - MAX ( DISTINCT - 50 )
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2915
SELECT SUM( DISTINCT + - 83 ) * CAST( - 42 AS SIGNED ) AS col2
----
3486

skipif mysql # not compatible
query I rowsort label-2915
SELECT SUM ( DISTINCT + - 83 ) * CAST ( - 42 AS INTEGER ) AS col2
----
3486

query I rowsort
SELECT 60 + 4 AS col1
----
64

query I rowsort
SELECT DISTINCT - ( - - ( - 23 ) ) col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2918
SELECT - - SUM( - 69 ) AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-2918
SELECT - - SUM ( - 69 ) AS col2
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-2919
SELECT COUNT( * ) - + - 28
----
29

skipif mysql # not compatible
query I rowsort label-2919
SELECT COUNT ( * ) - + - 28
----
29

query I rowsort
SELECT ALL + 31 + - - 61 AS col2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2921
SELECT ALL MAX( + 49 ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-2921
SELECT ALL MAX ( + 49 ) AS col0
----
49

query I rowsort
SELECT + ( - 31 )
----
-31

query I rowsort
SELECT - - 63 col2
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-2924
SELECT ALL - + 69 DIV + - 26
----
2

skipif mysql # not compatible
query I rowsort label-2924
SELECT ALL - + 69 / + - 26
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2925
SELECT ALL + ( - COUNT( * ) ) + + 53
----
52

skipif mysql # not compatible
query I rowsort label-2925
SELECT ALL + ( - COUNT ( * ) ) + + 53
----
52

query I rowsort
SELECT - 93 * - 47 AS col1
----
4371

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2927
SELECT DISTINCT CAST( - 23 AS SIGNED )
----
-23

skipif mysql # not compatible
query I rowsort label-2927
SELECT DISTINCT CAST ( - 23 AS INTEGER )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-2928
SELECT + ( - MAX( ALL 29 ) )
----
-29

skipif mysql # not compatible
query I rowsort label-2928
SELECT + ( - MAX ( ALL 29 ) )
----
-29

query I rowsort
SELECT ALL - 76 * 22 AS col0
----
-1672

onlyif mysql # aggregate syntax: 
query I rowsort label-2930
SELECT + SUM( 87 ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-2930
SELECT + SUM ( 87 ) AS col1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2931
SELECT 16 - + COUNT( * ) * + - COUNT( * ) * 14
----
30

skipif mysql # not compatible
query I rowsort label-2931
SELECT 16 - + COUNT ( * ) * + - COUNT ( * ) * 14
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2932
SELECT ALL + 45 - - COUNT( * ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-2932
SELECT ALL + 45 - - COUNT ( * ) AS col0
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-2933
SELECT DISTINCT + 55 DIV + 73
----
0

skipif mysql # not compatible
query I rowsort label-2933
SELECT DISTINCT + 55 / + 73
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2934
SELECT ALL + NULLIF ( - 96, 42 * 19 + + 12 ) + 61 DIV ( COUNT( DISTINCT - 48 ) ) AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-2934
SELECT ALL + NULLIF ( - 96, 42 * 19 + + 12 ) + 61 / ( COUNT ( DISTINCT - 48 ) ) AS col1
----
-35

query II rowsort
SELECT DISTINCT 48, 78 AS col2
----
48
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2936
SELECT DISTINCT - COUNT( * ) DIV + 36 * - 34 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2936
SELECT DISTINCT - COUNT ( * ) / + 36 * - 34 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2937
SELECT + 88 * - - ( + + ( COUNT( * ) ) )
----
88

skipif mysql # not compatible
query I rowsort label-2937
SELECT + 88 * - - ( + + ( COUNT ( * ) ) )
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2938
SELECT + CAST( NULL AS SIGNED ) + MAX( 74 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2938
SELECT + CAST ( NULL AS INTEGER ) + MAX ( 74 ) AS col2
----
NULL

query I rowsort
SELECT ALL 49 col2
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2940
SELECT - NULLIF ( + ( - + CAST( NULL AS SIGNED ) ), - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2940
SELECT - NULLIF ( + ( - + CAST ( NULL AS INTEGER ) ), - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT ALL + + ( + - ( + + 55 ) ) AS col2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-2942
SELECT ALL + SUM( + 5 )
----
5

skipif mysql # not compatible
query I rowsort label-2942
SELECT ALL + SUM ( + 5 )
----
5

query I rowsort
SELECT - 47 + 28 AS col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-2944
SELECT DISTINCT - COUNT( * ) * 41
----
-41

skipif mysql # not compatible
query I rowsort label-2944
SELECT DISTINCT - COUNT ( * ) * 41
----
-41

query I rowsort
SELECT ALL - 87 + + 87
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2946
SELECT ALL - COALESCE ( COUNT( * ), - 37 + + 35 ) + - 0 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2946
SELECT ALL - COALESCE ( COUNT ( * ), - 37 + + 35 ) + - 0 AS col0
----
-1

query I rowsort
SELECT DISTINCT + 65 * + + 32
----
2080

onlyif mysql # aggregate syntax: 
query I rowsort label-2948
SELECT DISTINCT - 27 + 40 + - ( - COUNT( * ) ) AS col0
----
14

skipif mysql # not compatible
query I rowsort label-2948
SELECT DISTINCT - 27 + 40 + - ( - COUNT ( * ) ) AS col0
----
14

query I rowsort
SELECT ALL 59 col1
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-2950
SELECT COUNT( * ) * ( + + 0 ) + - - 53 AS col1, - 32 AS col1
----
53
-32

skipif mysql # not compatible
query II rowsort label-2950
SELECT COUNT ( * ) * ( + + 0 ) + - - 53 AS col1, - 32 AS col1
----
53
-32

query I rowsort
SELECT ALL - + 69 AS col2
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-2952
SELECT ALL 23 * + 67 + + COUNT( * ) AS col1
----
1542

skipif mysql # not compatible
query I rowsort label-2952
SELECT ALL 23 * + 67 + + COUNT ( * ) AS col1
----
1542

onlyif mysql # aggregate syntax: 
query I rowsort label-2953
SELECT ALL COUNT( * ) * - - 25
----
25

skipif mysql # not compatible
query I rowsort label-2953
SELECT ALL COUNT ( * ) * - - 25
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-2954
SELECT - 68 * + ( - COUNT( * ) ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-2954
SELECT - 68 * + ( - COUNT ( * ) ) AS col0
----
68

query I rowsort
SELECT ALL + 52 * + + 92 AS col2
----
4784

query I rowsort
SELECT - ( - 46 )
----
46

query I rowsort
SELECT + - 25 col0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-2958
SELECT DISTINCT + SUM( 2 ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-2958
SELECT DISTINCT + SUM ( 2 ) AS col1
----
2

query II rowsort
SELECT + 50 AS col1, 24 AS col0
----
50
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2960
SELECT + COUNT( * ) + - - COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-2960
SELECT + COUNT ( * ) + - - COUNT ( * ) AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2961
SELECT ALL + COUNT( * ) + + COUNT( - 63 )
----
2

skipif mysql # not compatible
query I rowsort label-2961
SELECT ALL + COUNT ( * ) + + COUNT ( - 63 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2962
SELECT + COUNT( * ) + + 75 * + COUNT( * ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-2962
SELECT + COUNT ( * ) + + 75 * + COUNT ( * ) AS col2
----
76

query I rowsort
SELECT - 78 col0
----
-78

query I rowsort
SELECT ALL - 72 + 3
----
-69

query I rowsort
SELECT DISTINCT 14 col2
----
14

query I rowsort
SELECT 7 * 77
----
539

onlyif mysql # aggregate syntax: 
query I rowsort label-2967
SELECT MAX( + 89 )
----
89

skipif mysql # not compatible
query I rowsort label-2967
SELECT MAX ( + 89 )
----
89

query I rowsort
SELECT ALL 81 * - 34 AS col0
----
-2754

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2969
SELECT COUNT( * ) DIV + - 12 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2969
SELECT COUNT ( * ) / + - 12 AS col1
----
0

query I rowsort
SELECT 83 - + 79 col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2971
SELECT DISTINCT + COUNT( * ) + + COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-2971
SELECT DISTINCT + COUNT ( * ) + + COUNT ( * ) AS col1
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2972
SELECT + ( + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2972
SELECT + ( + + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2973
SELECT - 95 AS col2, - ( - - COUNT( * ) )
----
-95
-1

skipif mysql # not compatible
query II rowsort label-2973
SELECT - 95 AS col2, - ( - - COUNT ( * ) )
----
-95
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2974
SELECT + 5 + + + COUNT( * ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-2974
SELECT + 5 + + + COUNT ( * ) AS col1
----
6

query I rowsort
SELECT ALL 18 col0
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-2976
SELECT - 7 DIV - 10
----
0

skipif mysql # not compatible
query I rowsort label-2976
SELECT - 7 / - 10
----
0

query I rowsort
SELECT DISTINCT + 82 AS col2
----
82

query I rowsort
SELECT - 99 * + 20 AS col1
----
-1980

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2979
SELECT COUNT( * ) + 21 * - CAST( NULL AS SIGNED ) / + + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-2979
SELECT COUNT ( * ) + 21 * - CAST ( NULL AS INTEGER ) / + + 48
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2980
SELECT DISTINCT 50 * + + COUNT( * ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-2980
SELECT DISTINCT 50 * + + COUNT ( * ) AS col0
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2981
SELECT 40 * - + COUNT( * ) DIV + COUNT( * )
----
-40

skipif mysql # not compatible
query I rowsort label-2981
SELECT 40 * - + COUNT ( * ) / + COUNT ( * )
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2982
SELECT - CAST( - ( + + COUNT( * ) ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-2982
SELECT - CAST ( - ( + + COUNT ( * ) ) AS INTEGER )
----
1

query I rowsort
SELECT ALL - 34 + + + 52
----
18

query II rowsort
SELECT DISTINCT 16 AS col1, + 7
----
16
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2985
SELECT ALL 16 + COUNT( * ) + - - 32 AS col2
----
49

skipif mysql # not compatible
query I rowsort label-2985
SELECT ALL 16 + COUNT ( * ) + - - 32 AS col2
----
49

query I rowsort
SELECT ALL + - 23 AS col0
----
-23

query I rowsort
SELECT ALL + - 30 AS col0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-2988
SELECT SUM( - 85 )
----
-85

skipif mysql # not compatible
query I rowsort label-2988
SELECT SUM ( - 85 )
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-2989
SELECT + 39 * + COUNT( * ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-2989
SELECT + 39 * + COUNT ( * ) AS col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2990
SELECT DISTINCT MAX( DISTINCT + 77 )
----
77

skipif mysql # not compatible
query I rowsort label-2990
SELECT DISTINCT MAX ( DISTINCT + 77 )
----
77

query I rowsort
SELECT ALL + - 88 * + 62
----
-5456

query II rowsort
SELECT DISTINCT + - 2 col1, - 79 col1
----
-2
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-2993
SELECT DISTINCT + - 66 DIV - + 14
----
4

skipif mysql # not compatible
query I rowsort label-2993
SELECT DISTINCT + - 66 / - + 14
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2994
SELECT ALL COUNT( * ) * + 90 AS col2
----
90

skipif mysql # not compatible
query I rowsort label-2994
SELECT ALL COUNT ( * ) * + 90 AS col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2995
SELECT COUNT( * ) - + 20 col2
----
-19

skipif mysql # not compatible
query I rowsort label-2995
SELECT COUNT ( * ) - + 20 col2
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2996
SELECT ALL 35 DIV + ( + NULLIF ( COUNT( * ), - 87 * - COUNT( * ) ) )
----
35

skipif mysql # not compatible
query I rowsort label-2996
SELECT ALL 35 / + ( + NULLIF ( COUNT ( * ), - 87 * - COUNT ( * ) ) )
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2997
SELECT 76 DIV + - COUNT( * ) AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-2997
SELECT 76 / + - COUNT ( * ) AS col2
----
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2998
SELECT COUNT( * ) DIV + 43
----
0

skipif mysql # not compatible
query I rowsort label-2998
SELECT COUNT ( * ) / + 43
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2999
SELECT - SUM( DISTINCT ( - 13 ) ) col0
----
13

skipif mysql # not compatible
query I rowsort label-2999
SELECT - SUM ( DISTINCT ( - 13 ) ) col0
----
13

query I rowsort
SELECT + + 90 AS col0
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-3001
SELECT ALL + 12, - COUNT( * ) * - + 93 AS col0
----
12
93

skipif mysql # not compatible
query II rowsort label-3001
SELECT ALL + 12, - COUNT ( * ) * - + 93 AS col0
----
12
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3002
SELECT + CAST( 0 AS SIGNED ) - - 16
----
16

skipif mysql # not compatible
query I rowsort label-3002
SELECT + CAST ( 0 AS INTEGER ) - - 16
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-3003
SELECT - + COUNT( * ) AS col1, + 95 AS col0
----
-1
95

skipif mysql # not compatible
query II rowsort label-3003
SELECT - + COUNT ( * ) AS col1, + 95 AS col0
----
-1
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3004
SELECT ( - - MIN( 46 ) ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-3004
SELECT ( - - MIN ( 46 ) ) AS col1
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3005
SELECT + MIN( + 33 ) DIV + + 23 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3005
SELECT + MIN ( + 33 ) / + + 23 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3006
SELECT ALL + MIN( - 78 )
----
-78

skipif mysql # not compatible
query I rowsort label-3006
SELECT ALL + MIN ( - 78 )
----
-78

query I rowsort
SELECT - - 83 + 92 AS col0
----
175

onlyif mysql # aggregate syntax: 
query I rowsort label-3008
SELECT COUNT( - 11 ) * + + 4
----
4

skipif mysql # not compatible
query I rowsort label-3008
SELECT COUNT ( - 11 ) * + + 4
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3009
SELECT COUNT( * ) DIV - 29
----
0

skipif mysql # not compatible
query I rowsort label-3009
SELECT COUNT ( * ) / - 29
----
0

query I rowsort
SELECT + 93 * 30 AS col0
----
2790

query I rowsort
SELECT ALL 85 - 23 AS col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-3012
SELECT - ( + NULLIF ( + COUNT( ALL 8 ), 22 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3012
SELECT - ( + NULLIF ( + COUNT ( ALL 8 ), 22 ) )
----
-1

query I rowsort
SELECT ALL - ( - 47 )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3014
SELECT - SUM( - 2 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-3014
SELECT - SUM ( - 2 ) AS col2
----
2

query II rowsort
SELECT DISTINCT - ( - 66 ), + 97 AS col0
----
66
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3016
SELECT DISTINCT SUM( ( + + 35 ) ) AS col2, - ( CAST( + + 80 AS SIGNED ) )
----
35
-80

skipif mysql # not compatible
query II rowsort label-3016
SELECT DISTINCT SUM ( ( + + 35 ) ) AS col2, - ( CAST ( + + 80 AS INTEGER ) )
----
35
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3017
SELECT + ( MAX( DISTINCT + - 83 ) )
----
-83

skipif mysql # not compatible
query I rowsort label-3017
SELECT + ( MAX ( DISTINCT + - 83 ) )
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3018
SELECT COALESCE ( + COUNT( * ), + 51 * CAST( NULL AS SIGNED ), 28 + + 45 )
----
1

skipif mysql # not compatible
query I rowsort label-3018
SELECT COALESCE ( + COUNT ( * ), + 51 * CAST ( NULL AS INTEGER ), 28 + + 45 )
----
1

query I rowsort
SELECT - 48 col0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-3020
SELECT + 4 * COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-3020
SELECT + 4 * COUNT ( * )
----
4

query I rowsort
SELECT DISTINCT + 97 col2
----
97

query I rowsort
SELECT + 14 + + 44 AS col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3023
SELECT COUNT( ALL 32 )
----
1

skipif mysql # not compatible
query I rowsort label-3023
SELECT COUNT ( ALL 32 )
----
1

query I rowsort
SELECT - ( + 9 ) AS col2
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3025
SELECT 36 DIV COUNT( * ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-3025
SELECT 36 / COUNT ( * ) AS col1
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-3026
SELECT 4 DIV + 23
----
0

skipif mysql # not compatible
query I rowsort label-3026
SELECT 4 / + 23
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3027
SELECT ALL - COUNT( * ) + - 84 AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-3027
SELECT ALL - COUNT ( * ) + - 84 AS col1
----
-85

query I rowsort
SELECT ALL - + 29 AS col2
----
-29

query I rowsort
SELECT DISTINCT - + 14 col0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3030
SELECT ALL + 11 + - COUNT( * )
----
10

skipif mysql # not compatible
query I rowsort label-3030
SELECT ALL + 11 + - COUNT ( * )
----
10

query I rowsort
SELECT DISTINCT + - 96
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3032
SELECT - - ( + 21 ) * + COUNT( * )
----
21

skipif mysql # not compatible
query I rowsort label-3032
SELECT - - ( + 21 ) * + COUNT ( * )
----
21

query I rowsort
SELECT + NULLIF ( - - 24, - 80 ) AS col0
----
24

query I rowsort
SELECT DISTINCT + - 32 AS col0
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-3035
SELECT ALL - 18 DIV - + 93 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3035
SELECT ALL - 18 / - + 93 AS col1
----
0

query I rowsort
SELECT ALL + 46 * + 19
----
874

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3037
SELECT - CAST( + 62 AS SIGNED )
----
-62

skipif mysql # not compatible
query I rowsort label-3037
SELECT - CAST ( + 62 AS INTEGER )
----
-62

query I rowsort
SELECT DISTINCT 2 * - 71
----
-142

query I rowsort
SELECT DISTINCT - + 80 AS col2
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3040
SELECT ALL COUNT( * ) - COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3040
SELECT ALL COUNT ( * ) - COUNT ( * ) AS col1
----
0

query I rowsort
SELECT - 20 - 93 AS col1
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-3042
SELECT SUM( + 18 )
----
18

skipif mysql # not compatible
query I rowsort label-3042
SELECT SUM ( + 18 )
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3043
SELECT + COUNT( * ) + ( - 37 ) DIV 38 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3043
SELECT + COUNT ( * ) + ( - 37 ) / 38 AS col2
----
1

query I rowsort
SELECT ( - 21 ) AS col1
----
-21

query I rowsort
SELECT + ( + 73 ) AS col2
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3046
SELECT - COUNT( * ) + + 48
----
47

skipif mysql # not compatible
query I rowsort label-3046
SELECT - COUNT ( * ) + + 48
----
47

query I rowsort
SELECT - ( 57 )
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-3048
SELECT + + 54 * - COUNT( * ) AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-3048
SELECT + + 54 * - COUNT ( * ) AS col0
----
-54

query I rowsort
SELECT - + 17 AS col2
----
-17

query I rowsort
SELECT - + ( 66 ) AS col0
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3051
SELECT - CAST( - ( - + COALESCE ( + - CAST( NULL AS SIGNED ), 88, - 78 ) ) AS SIGNED )
----
-88

skipif mysql # not compatible
query I rowsort label-3051
SELECT - CAST ( - ( - + COALESCE ( + - CAST ( NULL AS INTEGER ), 88, - 78 ) ) AS INTEGER )
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-3052
SELECT MAX( ALL - 87 ) + + 63
----
-24

skipif mysql # not compatible
query I rowsort label-3052
SELECT MAX ( ALL - 87 ) + + 63
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3053
SELECT + MAX( ALL - 15 ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-3053
SELECT + MAX ( ALL - 15 ) AS col2
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3054
SELECT ALL - ( - - COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3054
SELECT ALL - ( - - COUNT ( * ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3055
SELECT + COUNT( * ) * + + 30
----
30

skipif mysql # not compatible
query I rowsort label-3055
SELECT + COUNT ( * ) * + + 30
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3056
SELECT - MAX( + - 62 ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-3056
SELECT - MAX ( + - 62 ) AS col1
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3057
SELECT + 68 * + + COUNT( * ) / - ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3057
SELECT + 68 * + + COUNT ( * ) / - ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3058
SELECT DISTINCT + + COUNT( DISTINCT + + 3 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-3058
SELECT DISTINCT + + COUNT ( DISTINCT + + 3 ) col1
----
1

query I rowsort
SELECT + - 72 col1
----
-72

query I rowsort
SELECT ALL ( + 33 )
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3061
SELECT + ( - COUNT( * ) ) + CAST( COUNT( * ) AS SIGNED ) DIV + 28
----
-1

skipif mysql # not compatible
query I rowsort label-3061
SELECT + ( - COUNT ( * ) ) + CAST ( COUNT ( * ) AS INTEGER ) / + 28
----
-1

query I rowsort
SELECT DISTINCT 73 * + 78
----
5694

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3063
SELECT + 8 + CAST( NULL AS SIGNED ) AS col0, ( 4 ) AS col0
----
NULL
4

skipif mysql # not compatible
query II rowsort label-3063
SELECT + 8 + CAST ( NULL AS INTEGER ) AS col0, ( 4 ) AS col0
----
NULL
4

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3064
SELECT ( + 87 ) * CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3064
SELECT ( + 87 ) * CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT - 19 * - 5
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3066
SELECT DISTINCT - - ( + + COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3066
SELECT DISTINCT - - ( + + COUNT ( * ) ) AS col1
----
1

query I rowsort
SELECT DISTINCT - ( 25 ) AS col2
----
-25

query I rowsort
SELECT DISTINCT + 93 * 44 AS col0
----
4092

onlyif mysql # aggregate syntax: 
query I rowsort label-3069
SELECT 74 * COUNT( * ) * + - SUM( DISTINCT + - NULLIF ( + - 37, - 33 ) )
----
-2738

skipif mysql # not compatible
query I rowsort label-3069
SELECT 74 * COUNT ( * ) * + - SUM ( DISTINCT + - NULLIF ( + - 37, - 33 ) )
----
-2738

query I rowsort
SELECT ALL - + ( + - 12 ) AS col0
----
12

query I rowsort
SELECT DISTINCT - ( + 6 ) AS col1
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-3072
SELECT ALL - 78, COUNT( - 42 ) col2
----
-78
1

skipif mysql # not compatible
query II rowsort label-3072
SELECT ALL - 78, COUNT ( - 42 ) col2
----
-78
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3073
SELECT COUNT( * ) + + 60 col0
----
61

skipif mysql # not compatible
query I rowsort label-3073
SELECT COUNT ( * ) + + 60 col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3074
SELECT 64 + - + COUNT( * ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-3074
SELECT 64 + - + COUNT ( * ) AS col0
----
63

query I rowsort
SELECT ALL - + 91 AS col0
----
-91

query I rowsort
SELECT DISTINCT + - 98 col2
----
-98

query I rowsort
SELECT + 85 * 66
----
5610

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3078
SELECT + COUNT( * ) DIV - - 33 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3078
SELECT + COUNT ( * ) / - - 33 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3079
SELECT ALL COUNT( * ) AS col1, + NULLIF ( 52, COUNT( * ) )
----
1
52

skipif mysql # not compatible
query II rowsort label-3079
SELECT ALL COUNT ( * ) AS col1, + NULLIF ( 52, COUNT ( * ) )
----
1
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3080
SELECT DISTINCT MIN( DISTINCT 5 )
----
5

skipif mysql # not compatible
query I rowsort label-3080
SELECT DISTINCT MIN ( DISTINCT 5 )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3081
SELECT + + 42 + + - COUNT( * ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-3081
SELECT + + 42 + + - COUNT ( * ) AS col2
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-3082
SELECT ALL - MIN( + ( - + 22 ) ), - MIN( - 49 ) AS col1
----
22
49

skipif mysql # not compatible
query II rowsort label-3082
SELECT ALL - MIN ( + ( - + 22 ) ), - MIN ( - 49 ) AS col1
----
22
49

query I rowsort
SELECT ALL + + 64 AS col2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3084
SELECT DISTINCT - 62 * + + 90 * - 21 * - COUNT( * ) * + COUNT( * ) AS col0
----
-117180

skipif mysql # not compatible
query I rowsort label-3084
SELECT DISTINCT - 62 * + + 90 * - 21 * - COUNT ( * ) * + COUNT ( * ) AS col0
----
-117180

query I rowsort
SELECT + - 18 AS col0
----
-18

query I rowsort
SELECT ALL + ( - 4 ) col0
----
-4

query I rowsort
SELECT + ( + ( - - 81 ) ) AS col1
----
81

query I rowsort
SELECT + 90 + 94 AS col2
----
184

query II rowsort
SELECT 4 * + 39 AS col0, + 87
----
156
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3090
SELECT DISTINCT COUNT( * ) * 89 * + 33 AS col2
----
2937

skipif mysql # not compatible
query I rowsort label-3090
SELECT DISTINCT COUNT ( * ) * 89 * + 33 AS col2
----
2937

onlyif mysql # DIV for integer division: 
query I rowsort label-3091
SELECT DISTINCT 91 * 51 DIV - 69
----
-67

skipif mysql # not compatible
query I rowsort label-3091
SELECT DISTINCT 91 * 51 / - 69
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-3092
SELECT + MIN( + 42 )
----
42

skipif mysql # not compatible
query I rowsort label-3092
SELECT + MIN ( + 42 )
----
42

query I rowsort
SELECT ALL - ( + 40 ) AS col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-3094
SELECT ALL - 48 * COUNT( * )
----
-48

skipif mysql # not compatible
query I rowsort label-3094
SELECT ALL - 48 * COUNT ( * )
----
-48

query I rowsort
SELECT 18 + + 64 + + - 70 col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3096
SELECT ALL + COUNT( * ) - - 55 + - SUM( ALL - 87 ) AS col1
----
143

skipif mysql # not compatible
query I rowsort label-3096
SELECT ALL + COUNT ( * ) - - 55 + - SUM ( ALL - 87 ) AS col1
----
143

query I rowsort
SELECT ALL 80 col0
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3098
SELECT - + CAST( + - ( 95 ) AS SIGNED ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-3098
SELECT - + CAST ( + - ( 95 ) AS INTEGER ) AS col0
----
95

query I rowsort
SELECT ALL - 71 col0
----
-71

query I rowsort
SELECT + + 14 AS col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3101
SELECT COUNT( DISTINCT - ( + ( - + 96 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-3101
SELECT COUNT ( DISTINCT - ( + ( - + 96 ) ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3102
SELECT DISTINCT + MIN( + 97 ) * + 85 / + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3102
SELECT DISTINCT + MIN ( + 97 ) * + 85 / + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3103
SELECT ALL - 46 * - 16 + + - CAST( NULL AS SIGNED ) + + + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-3103
SELECT ALL - 46 * - 16 + + - CAST ( NULL AS INTEGER ) + + + 80
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3104
SELECT ALL - + ( - COUNT( * ) ) DIV - 1 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3104
SELECT ALL - + ( - COUNT ( * ) ) / - 1 AS col2
----
-1

query I rowsort
SELECT - + 64 AS col1
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3106
SELECT - 54 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3106
SELECT - 54 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3107
SELECT - 70 * - COUNT( * ) - 22 AS col1
----
48

skipif mysql # not compatible
query I rowsort label-3107
SELECT - 70 * - COUNT ( * ) - 22 AS col1
----
48

query I rowsort
SELECT DISTINCT - ( + + 83 )
----
-83

query I rowsort
SELECT ALL + 23 col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3110
SELECT - - MAX( ALL + 98 )
----
98

skipif mysql # not compatible
query I rowsort label-3110
SELECT - - MAX ( ALL + 98 )
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3111
SELECT + CAST( + - 5 AS SIGNED ) + + 20
----
15

skipif mysql # not compatible
query I rowsort label-3111
SELECT + CAST ( + - 5 AS INTEGER ) + + 20
----
15

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3112
SELECT ALL - CAST( NULL AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3112
SELECT ALL - CAST ( NULL AS REAL ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3113
SELECT 43 + + COUNT( * ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-3113
SELECT 43 + + COUNT ( * ) AS col1
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-3114
SELECT ALL - + COUNT( * ) AS col0, + 85
----
-1
85

skipif mysql # not compatible
query II rowsort label-3114
SELECT ALL - + COUNT ( * ) AS col0, + 85
----
-1
85

query I rowsort
SELECT - ( 52 )
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-3116
SELECT 1 DIV - - 71
----
0

skipif mysql # not compatible
query I rowsort label-3116
SELECT 1 / - - 71
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3117
SELECT + 79 + - - ( - COUNT( * ) ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-3117
SELECT + 79 + - - ( - COUNT ( * ) ) AS col1
----
78

query I rowsort
SELECT - 72 * + - 73 AS col2
----
5256

query I rowsort
SELECT DISTINCT + - 92 AS col1
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-3120
SELECT ALL + - SUM( ALL - + 97 ) col2
----
97

skipif mysql # not compatible
query I rowsort label-3120
SELECT ALL + - SUM ( ALL - + 97 ) col2
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3121
SELECT ALL CAST( 85 AS SIGNED ) * - - COUNT( * ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-3121
SELECT ALL CAST ( 85 AS INTEGER ) * - - COUNT ( * ) AS col0
----
85

query I rowsort
SELECT ALL NULLIF ( - 72, 18 ) col2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-3123
SELECT ALL ( + ( COUNT( * ) ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3123
SELECT ALL ( + ( COUNT ( * ) ) ) AS col2
----
1

query II rowsort
SELECT ALL 8 AS col1, - 9 AS col1
----
8
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3125
SELECT ALL CAST( NULL AS SIGNED ) * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3125
SELECT ALL CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3126
SELECT CAST( + + 64 AS SIGNED )
----
64

skipif mysql # not compatible
query I rowsort label-3126
SELECT CAST ( + + 64 AS INTEGER )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3127
SELECT + - 32 + + COUNT( * )
----
-31

skipif mysql # not compatible
query I rowsort label-3127
SELECT + - 32 + + COUNT ( * )
----
-31

query I rowsort
SELECT ALL + - 30 * 73 AS col1
----
-2190

onlyif mysql # aggregate syntax: 
query I rowsort label-3129
SELECT + 34 * - 18 + - - COUNT( * )
----
-611

skipif mysql # not compatible
query I rowsort label-3129
SELECT + 34 * - 18 + - - COUNT ( * )
----
-611

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3130
SELECT + 78 DIV - + COUNT( * ) AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-3130
SELECT + 78 / - + COUNT ( * ) AS col1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-3131
SELECT ALL + MIN( - - 90 ) AS col0
----
90

skipif mysql # not compatible
query I rowsort label-3131
SELECT ALL + MIN ( - - 90 ) AS col0
----
90

query I rowsort
SELECT 17 * 77 AS col1
----
1309

query I rowsort
SELECT + - 35 AS col0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-3134
SELECT - MAX( DISTINCT + - 17 )
----
17

skipif mysql # not compatible
query I rowsort label-3134
SELECT - MAX ( DISTINCT + - 17 )
----
17

query I rowsort
SELECT - ( - ( - - 90 ) ) AS col1
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3136
SELECT - - 2 DIV - 10 * + NULLIF ( - COUNT( * ), + + COUNT( * ) * + - 20 ) + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-3136
SELECT - - 2 / - 10 * + NULLIF ( - COUNT ( * ), + + COUNT ( * ) * + - 20 ) + + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3137
SELECT ALL - 11 * + COUNT( * ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-3137
SELECT ALL - 11 * + COUNT ( * ) AS col1
----
-11

query I rowsort
SELECT DISTINCT + - 62 AS col1
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3139
SELECT ALL + CAST( + - ( COUNT( * ) ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-3139
SELECT ALL + CAST ( + - ( COUNT ( * ) ) AS INTEGER )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3140
SELECT ALL + 6 * - COUNT( 44 ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-3140
SELECT ALL + 6 * - COUNT ( 44 ) AS col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3141
SELECT + NULLIF ( + 12, 24 ) * + + COUNT( * )
----
12

skipif mysql # not compatible
query I rowsort label-3141
SELECT + NULLIF ( + 12, 24 ) * + + COUNT ( * )
----
12

query I rowsort
SELECT - ( + 52 )
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3143
SELECT ALL 3 DIV - COUNT( * ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-3143
SELECT ALL 3 / - COUNT ( * ) AS col2
----
-3

query I rowsort
SELECT 3 + 84 AS col2
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3145
SELECT DISTINCT COUNT( + 20 )
----
1

skipif mysql # not compatible
query I rowsort label-3145
SELECT DISTINCT COUNT ( + 20 )
----
1

query I rowsort
SELECT DISTINCT - 63 - + 23 col1
----
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3147
SELECT DISTINCT 21 DIV - + COUNT( * ) AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-3147
SELECT DISTINCT 21 / - + COUNT ( * ) AS col2
----
-21

query I rowsort
SELECT ( - 14 ) + 94
----
80

query I rowsort
SELECT DISTINCT + 25 col0
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3150
SELECT + CAST( - + COUNT( * ) AS SIGNED ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-3150
SELECT + CAST ( - + COUNT ( * ) AS INTEGER ) col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3151
SELECT ALL NULLIF ( - COUNT( * ), + + 27 )
----
-1

skipif mysql # not compatible
query I rowsort label-3151
SELECT ALL NULLIF ( - COUNT ( * ), + + 27 )
----
-1

query I rowsort
SELECT - 86 + 58
----
-28

query I rowsort
SELECT DISTINCT + 98 * 32 AS col1
----
3136

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3154
SELECT 22 * + SUM( - CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3154
SELECT 22 * + SUM ( - CAST ( NULL AS REAL ) ) AS col0
----
NULL

query I rowsort
SELECT ALL - + ( + - 42 )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3156
SELECT SUM( - 88 ) * + ( - 10 )
----
880

skipif mysql # not compatible
query I rowsort label-3156
SELECT SUM ( - 88 ) * + ( - 10 )
----
880

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3157
SELECT DISTINCT + 12 * + + COUNT( * ) DIV + 53
----
0

skipif mysql # not compatible
query I rowsort label-3157
SELECT DISTINCT + 12 * + + COUNT ( * ) / + 53
----
0

query I rowsort
SELECT 5 * - 66 * - 79 * + ( + 99 )
----
2580930

onlyif mysql # aggregate syntax: 
query I rowsort label-3159
SELECT - MAX( - ( - - 19 ) )
----
19

skipif mysql # not compatible
query I rowsort label-3159
SELECT - MAX ( - ( - - 19 ) )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3160
SELECT ALL + COALESCE ( - 59, + - COUNT( * ) * 82 )
----
-59

skipif mysql # not compatible
query I rowsort label-3160
SELECT ALL + COALESCE ( - 59, + - COUNT ( * ) * 82 )
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3161
SELECT ALL - ( + + CAST( NULL AS SIGNED ) ) / + 74 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3161
SELECT ALL - ( + + CAST ( NULL AS INTEGER ) ) / + 74 AS col1
----
NULL

query I rowsort
SELECT - ( - 90 )
----
90

query I rowsort
SELECT DISTINCT + 57 AS col1
----
57

query I rowsort
SELECT + - 1 AS col2
----
-1

query I rowsort
SELECT ALL + + 1 AS col1
----
1

query I rowsort
SELECT ALL - 62 * + - 33
----
2046

onlyif mysql # aggregate syntax: 
query I rowsort label-3167
SELECT ALL + COUNT( * ) + + + 29 AS col2
----
30

skipif mysql # not compatible
query I rowsort label-3167
SELECT ALL + COUNT ( * ) + + + 29 AS col2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3168
SELECT - COUNT( ALL + 58 ) + 53 AS col2
----
52

skipif mysql # not compatible
query I rowsort label-3168
SELECT - COUNT ( ALL + 58 ) + 53 AS col2
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-3169
SELECT DISTINCT + 22 DIV + 78 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3169
SELECT DISTINCT + 22 / + 78 AS col0
----
0

query I rowsort
SELECT ALL + ( - 14 ) * + + 15 + + 86 AS col0
----
-124

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3171
SELECT ALL ( - + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3171
SELECT ALL ( - + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3172
SELECT + MAX( ALL - 35 ) AS col1, COUNT( * ) AS col1
----
-35
1

skipif mysql # not compatible
query II rowsort label-3172
SELECT + MAX ( ALL - 35 ) AS col1, COUNT ( * ) AS col1
----
-35
1

query I rowsort
SELECT ( 24 ) AS col0
----
24

query I rowsort
SELECT + 72 + 69
----
141

query I rowsort
SELECT - ( - 65 ) AS col2
----
65

query I rowsort
SELECT - 19 + - 64 + - 61
----
-144

query I rowsort
SELECT - ( + 17 )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-3178
SELECT + 19 + COUNT( * ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-3178
SELECT + 19 + COUNT ( * ) AS col0
----
20

query I rowsort
SELECT ALL ( - 38 ) col2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-3180
SELECT - + NULLIF ( MIN( + 28 ), - 69 ) AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-3180
SELECT - + NULLIF ( MIN ( + 28 ), - 69 ) AS col1
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3181
SELECT - SUM( ALL + CAST( 2 AS SIGNED ) ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-3181
SELECT - SUM ( ALL + CAST ( 2 AS INTEGER ) ) AS col0
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3182
SELECT + COUNT( * ) DIV - ( + 44 )
----
0

skipif mysql # not compatible
query I rowsort label-3182
SELECT + COUNT ( * ) / - ( + 44 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3183
SELECT DISTINCT + SUM( ALL - - 0 ) DIV - + 75
----
0

skipif mysql # not compatible
query I rowsort label-3183
SELECT DISTINCT + SUM ( ALL - - 0 ) / - + 75
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3184
SELECT 6 * COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-3184
SELECT 6 * COUNT ( * )
----
6

query I rowsort
SELECT DISTINCT - 27 col2
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3186
SELECT ALL - ( - + COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3186
SELECT ALL - ( - + COUNT ( * ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3187
SELECT ALL COUNT( ALL ( - 94 ) )
----
1

skipif mysql # not compatible
query I rowsort label-3187
SELECT ALL COUNT ( ALL ( - 94 ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3188
SELECT ALL + + CAST( NULL AS SIGNED ) - 64
----
NULL

skipif mysql # not compatible
query I rowsort label-3188
SELECT ALL + + CAST ( NULL AS INTEGER ) - 64
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3189
SELECT DISTINCT + ( + - COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3189
SELECT DISTINCT + ( + - COUNT ( * ) ) AS col1
----
-1

query I rowsort
SELECT + 14 * - 54 AS col0
----
-756

onlyif mysql # aggregate syntax: 
query I rowsort label-3191
SELECT DISTINCT COUNT( * ) * + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3191
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) AS col0
----
1

query I rowsort
SELECT + ( - + 9 )
----
-9

query I rowsort
SELECT ALL + 85 col2
----
85

query I rowsort
SELECT - + 22 col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-3195
SELECT ALL - SUM( DISTINCT 9 ) AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-3195
SELECT ALL - SUM ( DISTINCT 9 ) AS col0
----
-9

query I rowsort
SELECT ALL + + 91 * + 30
----
2730

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3197
SELECT - CAST( NULL AS DECIMAL ) * + - ( 73 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3197
SELECT - CAST ( NULL AS REAL ) * + - ( 73 ) AS col0
----
NULL

query I rowsort
SELECT + 26 * - + 1
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3199
SELECT - COUNT( * ) DIV ( - + 22 )
----
0

skipif mysql # not compatible
query I rowsort label-3199
SELECT - COUNT ( * ) / ( - + 22 )
----
0

query I rowsort
SELECT ALL - - 16 AS col1
----
16

query I rowsort
SELECT + 22 + + 32 AS col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3202
SELECT NULLIF ( - 23, COUNT( * ) ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-3202
SELECT NULLIF ( - 23, COUNT ( * ) ) AS col1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3203
SELECT 44 * COUNT( * ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-3203
SELECT 44 * COUNT ( * ) AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3204
SELECT + + SUM( 42 )
----
42

skipif mysql # not compatible
query I rowsort label-3204
SELECT + + SUM ( 42 )
----
42

query I rowsort
SELECT ALL + 45 * - - 97
----
4365

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3206
SELECT + CAST( NULL AS SIGNED ), 58 AS col0
----
NULL
58

skipif mysql # not compatible
query II rowsort label-3206
SELECT + CAST ( NULL AS INTEGER ), 58 AS col0
----
NULL
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3207
SELECT + ( - - MIN( DISTINCT 54 ) )
----
54

skipif mysql # not compatible
query I rowsort label-3207
SELECT + ( - - MIN ( DISTINCT 54 ) )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3208
SELECT - COUNT( + - 51 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3208
SELECT - COUNT ( + - 51 ) AS col1
----
-1

query I rowsort
SELECT - 48 * - 35 AS col2
----
1680

query I rowsort
SELECT ALL + + 1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3211
SELECT + 33 + + COUNT( * ) col0
----
34

skipif mysql # not compatible
query I rowsort label-3211
SELECT + 33 + + COUNT ( * ) col0
----
34

query I rowsort
SELECT + 67 * + + ( - - 53 ) AS col1
----
3551

query I rowsort
SELECT ALL 38 + 78 * - + 30
----
-2302

query I rowsort
SELECT - ( - + 88 )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3215
SELECT + COUNT( * ) * + 28 AS col0
----
28

skipif mysql # not compatible
query I rowsort label-3215
SELECT + COUNT ( * ) * + 28 AS col0
----
28

query I rowsort
SELECT - ( - 55 )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-3217
SELECT ALL - COUNT( * ) * - - COUNT( * ) * + 63
----
-63

skipif mysql # not compatible
query I rowsort label-3217
SELECT ALL - COUNT ( * ) * - - COUNT ( * ) * + 63
----
-63

query I rowsort
SELECT DISTINCT + 32 AS col1
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3219
SELECT ALL + 58, - 32 + + COUNT( * ) * + CAST( NULL AS SIGNED ) AS col1
----
58
NULL

skipif mysql # not compatible
query II rowsort label-3219
SELECT ALL + 58, - 32 + + COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col1
----
58
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3220
SELECT - + 74 * + COUNT( * )
----
-74

skipif mysql # not compatible
query I rowsort label-3220
SELECT - + 74 * + COUNT ( * )
----
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-3221
SELECT ALL + 34, + COUNT( * ) AS col2
----
34
1

skipif mysql # not compatible
query II rowsort label-3221
SELECT ALL + 34, + COUNT ( * ) AS col2
----
34
1

query I rowsort
SELECT - + 39 col0
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-3223
SELECT + COUNT( * ) AS col0, - 7 * - + 98 AS col2
----
1
686

skipif mysql # not compatible
query II rowsort label-3223
SELECT + COUNT ( * ) AS col0, - 7 * - + 98 AS col2
----
1
686

query I rowsort
SELECT + 73 * + NULLIF ( + 13, + ( + 60 ) ) AS col0
----
949

onlyif mysql # aggregate syntax: 
query I rowsort label-3225
SELECT COUNT( DISTINCT - 18 )
----
1

skipif mysql # not compatible
query I rowsort label-3225
SELECT COUNT ( DISTINCT - 18 )
----
1

query I rowsort
SELECT - - 24 * - 71 AS col2
----
-1704

onlyif mysql # aggregate syntax: 
query II rowsort label-3227
SELECT + COUNT( * ) AS col1, 32 col1
----
1
32

skipif mysql # not compatible
query II rowsort label-3227
SELECT + COUNT ( * ) AS col1, 32 col1
----
1
32

query I rowsort
SELECT + ( + - 63 )
----
-63

query I rowsort
SELECT - 85 * + 40 AS col2
----
-3400

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3230
SELECT + COUNT( * ) DIV 50
----
0

skipif mysql # not compatible
query I rowsort label-3230
SELECT + COUNT ( * ) / 50
----
0

query I rowsort
SELECT + ( 6 ) AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3232
SELECT SUM( + 37 ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-3232
SELECT SUM ( + 37 ) AS col2
----
37

query I rowsort
SELECT - - 37 AS col2
----
37

query I rowsort
SELECT ALL - ( - - 58 )
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3235
SELECT ALL COUNT( * ) * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3235
SELECT ALL COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL - 72 + + + 39
----
-33

query I rowsort
SELECT 24 * 80
----
1920

onlyif mysql # DIV for integer division: 
query I rowsort label-3238
SELECT ( ( - 1 ) ) DIV + 97 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3238
SELECT ( ( - 1 ) ) / + 97 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3239
SELECT MAX( ALL 76 )
----
76

skipif mysql # not compatible
query I rowsort label-3239
SELECT MAX ( ALL 76 )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3240
SELECT COUNT( DISTINCT 77 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3240
SELECT COUNT ( DISTINCT 77 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3241
SELECT ALL + COUNT( * ) + + 66
----
67

skipif mysql # not compatible
query I rowsort label-3241
SELECT ALL + COUNT ( * ) + + 66
----
67

query I rowsort
SELECT ALL + 40 + 14 AS col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3243
SELECT ALL + 92 - + SUM( - 3 ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-3243
SELECT ALL + 92 - + SUM ( - 3 ) AS col0
----
95

query I rowsort
SELECT - + 62 - 20
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-3245
SELECT + SUM( 44 )
----
44

skipif mysql # not compatible
query I rowsort label-3245
SELECT + SUM ( 44 )
----
44

query I rowsort
SELECT + 79 + + 4 * + 53 AS col1
----
291

onlyif mysql # DIV for integer division: 
query I rowsort label-3247
SELECT DISTINCT - 50 * - + 26 + + 5 DIV 19 AS col0
----
1300

skipif mysql # not compatible
query I rowsort label-3247
SELECT DISTINCT - 50 * - + 26 + + 5 / 19 AS col0
----
1300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3248
SELECT ALL + 51 * + - CAST( NULL AS SIGNED ) + + ( + ( - 32 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3248
SELECT ALL + 51 * + - CAST ( NULL AS INTEGER ) + + ( + ( - 32 ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3249
SELECT DISTINCT + - COUNT( * ) * 20 AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-3249
SELECT DISTINCT + - COUNT ( * ) * 20 AS col1
----
-20

query I rowsort
SELECT - + 66 + - 43
----
-109

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3251
SELECT DISTINCT + COUNT( * ) AS col2, - 71 DIV + 52 AS col0
----
1
-1

skipif mysql # not compatible
query II rowsort label-3251
SELECT DISTINCT + COUNT ( * ) AS col2, - 71 / + 52 AS col0
----
1
-1

query I rowsort
SELECT + 1 * + + 30
----
30

query I rowsort
SELECT + ( - 60 ) AS col1
----
-60

query I rowsort
SELECT ALL - - 46 AS col0
----
46

query I rowsort
SELECT + - 27 AS col1
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3256
SELECT 6 * - + COUNT( * ) col0
----
-6

skipif mysql # not compatible
query I rowsort label-3256
SELECT 6 * - + COUNT ( * ) col0
----
-6

query I rowsort
SELECT - - ( - + 42 )
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3258
SELECT ALL + CAST( 18 AS SIGNED )
----
18

skipif mysql # not compatible
query I rowsort label-3258
SELECT ALL + CAST ( 18 AS INTEGER )
----
18

query I rowsort
SELECT + 92 * - + 17
----
-1564

query I rowsort
SELECT ALL + 99 + - - 11
----
110

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3261
SELECT 12 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3261
SELECT 12 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - NULLIF ( - 77, - AVG ( ALL - 12 ) )
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3263
SELECT - COALESCE ( ( + - 3 ), - 21, - CAST( NULL AS SIGNED ) )
----
3

skipif mysql # not compatible
query I rowsort label-3263
SELECT - COALESCE ( ( + - 3 ), - 21, - CAST ( NULL AS INTEGER ) )
----
3

query I rowsort
SELECT DISTINCT 85 col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3265
SELECT ALL COUNT( DISTINCT - 81 )
----
1

skipif mysql # not compatible
query I rowsort label-3265
SELECT ALL COUNT ( DISTINCT - 81 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3266
SELECT DISTINCT + CAST( - + ( - 64 ) AS SIGNED )
----
64

skipif mysql # not compatible
query I rowsort label-3266
SELECT DISTINCT + CAST ( - + ( - 64 ) AS INTEGER )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3267
SELECT ALL COUNT( * ) * - - 56 AS col2
----
56

skipif mysql # not compatible
query I rowsort label-3267
SELECT ALL COUNT ( * ) * - - 56 AS col2
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3268
SELECT DISTINCT CAST( NULL AS SIGNED ) / 87 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3268
SELECT DISTINCT CAST ( NULL AS INTEGER ) / 87 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3269
SELECT - COUNT( * ) * + - 53
----
53

skipif mysql # not compatible
query I rowsort label-3269
SELECT - COUNT ( * ) * + - 53
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3270
SELECT + ( - COUNT( * ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-3270
SELECT + ( - COUNT ( * ) ) col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3271
SELECT ALL - ( + + 56 ) DIV - + 24
----
2

skipif mysql # not compatible
query I rowsort label-3271
SELECT ALL - ( + + 56 ) / - + 24
----
2

query I rowsort
SELECT - 25 + 90
----
65

query II rowsort
SELECT + 74, + 68 col1
----
74
68

query I rowsort
SELECT ALL + 63 * + 88 AS col2
----
5544

query I rowsort
SELECT 47 + 20 AS col0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3276
SELECT ALL - 4 * COUNT( * )
----
-4

skipif mysql # not compatible
query I rowsort label-3276
SELECT ALL - 4 * COUNT ( * )
----
-4

query I rowsort
SELECT - 83 + + 73 AS col2
----
-10

query I rowsort
SELECT 13 * + + 74 col2
----
962

onlyif mysql # aggregate syntax: 
query I rowsort label-3279
SELECT ALL - SUM( DISTINCT + 8 )
----
-8

skipif mysql # not compatible
query I rowsort label-3279
SELECT ALL - SUM ( DISTINCT + 8 )
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3280
SELECT + 19 + - COUNT( * ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-3280
SELECT + 19 + - COUNT ( * ) AS col2
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-3281
SELECT + COUNT( * ) + + - 55 AS col1, ( + 23 )
----
-54
23

skipif mysql # not compatible
query II rowsort label-3281
SELECT + COUNT ( * ) + + - 55 AS col1, ( + 23 )
----
-54
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3282
SELECT DISTINCT COUNT( * ) + + 85 AS col1
----
86

skipif mysql # not compatible
query I rowsort label-3282
SELECT DISTINCT COUNT ( * ) + + 85 AS col1
----
86

query I rowsort
SELECT ALL + ( + 56 )
----
56

query I rowsort
SELECT + NULLIF ( 36, + 1 + 2 )
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3285
SELECT - CAST( NULL AS SIGNED ) + + - 69 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3285
SELECT - CAST ( NULL AS INTEGER ) + + - 69 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3286
SELECT COUNT( ALL + 9 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3286
SELECT COUNT ( ALL + 9 ) AS col0
----
1

query II rowsort
SELECT - - 53 col2, + 31 AS col1
----
53
31

query I rowsort
SELECT ALL 48 + 32 AS col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3289
SELECT SUM( - + 85 ) * - - COUNT( * ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-3289
SELECT SUM ( - + 85 ) * - - COUNT ( * ) AS col0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-3290
SELECT ALL MIN( + 50 )
----
50

skipif mysql # not compatible
query I rowsort label-3290
SELECT ALL MIN ( + 50 )
----
50

query II rowsort
SELECT 11 AS col2, 84 AS col1
----
11
84

query I rowsort
SELECT DISTINCT - NULLIF ( + + 48, + + 86 )
----
-48

query I rowsort
SELECT DISTINCT - 49 AS col0
----
-49

query I rowsort
SELECT - ( + 23 )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3295
SELECT + - COUNT( + 76 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3295
SELECT + - COUNT ( + 76 ) AS col1
----
-1

query I rowsort
SELECT - 79 + ( + 49 ) AS col1
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3297
SELECT CAST( - COUNT( DISTINCT + 53 ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-3297
SELECT CAST ( - COUNT ( DISTINCT + 53 ) AS INTEGER )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3298
SELECT ALL COUNT( * ) * 69 * - + COUNT( * )
----
-69

skipif mysql # not compatible
query I rowsort label-3298
SELECT ALL COUNT ( * ) * 69 * - + COUNT ( * )
----
-69

query I rowsort
SELECT + + 50 AS col1
----
50

query I rowsort
SELECT - - 48 * - 30 AS col1
----
-1440

onlyif mysql # aggregate syntax: 
query I rowsort label-3301
SELECT 50 * COUNT( * ) * 81 AS col1
----
4050

skipif mysql # not compatible
query I rowsort label-3301
SELECT 50 * COUNT ( * ) * 81 AS col1
----
4050

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3302
SELECT 66 DIV - COUNT( * ) AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-3302
SELECT 66 / - COUNT ( * ) AS col0
----
-66

query I rowsort
SELECT DISTINCT - 70 col2
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-3304
SELECT - SUM( ALL + 21 ) * 41
----
-861

skipif mysql # not compatible
query I rowsort label-3304
SELECT - SUM ( ALL + 21 ) * 41
----
-861

onlyif mysql # aggregate syntax: 
query I rowsort label-3305
SELECT DISTINCT + MIN( DISTINCT + + 59 )
----
59

skipif mysql # not compatible
query I rowsort label-3305
SELECT DISTINCT + MIN ( DISTINCT + + 59 )
----
59

query II rowsort
SELECT ALL + + 44 AS col1, 72 AS col2
----
44
72

query II rowsort
SELECT - ( - - 31 ) AS col1, - 99
----
-31
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3308
SELECT + 61 * COUNT( * ) DIV - - COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-3308
SELECT + 61 * COUNT ( * ) / - - COUNT ( * )
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3309
SELECT DISTINCT MIN( - 33 ) DIV - 76 col2
----
0

skipif mysql # not compatible
query I rowsort label-3309
SELECT DISTINCT MIN ( - 33 ) / - 76 col2
----
0

query I rowsort
SELECT DISTINCT + - 76 col0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-3311
SELECT + + SUM( + 65 )
----
65

skipif mysql # not compatible
query I rowsort label-3311
SELECT + + SUM ( + 65 )
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3312
SELECT - ( + - 72 ) - - CAST( + - 46 AS SIGNED )
----
26

skipif mysql # not compatible
query I rowsort label-3312
SELECT - ( + - 72 ) - - CAST ( + - 46 AS INTEGER )
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3313
SELECT COUNT( * ) * - MAX( - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3313
SELECT COUNT ( * ) * - MAX ( - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3314
SELECT + - 4, CAST( NULL AS SIGNED ) * 91 AS col0
----
-4
NULL

skipif mysql # not compatible
query II rowsort label-3314
SELECT + - 4, CAST ( NULL AS INTEGER ) * 91 AS col0
----
-4
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3315
SELECT + - CAST( - 24 AS SIGNED ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-3315
SELECT + - CAST ( - 24 AS INTEGER ) AS col2
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3316
SELECT DISTINCT - ( COALESCE ( + 64, + + COUNT( ALL - + ( + - 72 ) ) DIV - - COUNT( * ) ) )
----
-64

skipif mysql # not compatible
query I rowsort label-3316
SELECT DISTINCT - ( COALESCE ( + 64, + + COUNT ( ALL - + ( + - 72 ) ) / - - COUNT ( * ) ) )
----
-64

query I rowsort
SELECT ALL - ( 79 ) AS col0
----
-79

query I rowsort
SELECT ( 59 ) + 95 col2
----
154

query I rowsort
SELECT - - 26 AS col2
----
26

query I rowsort
SELECT - - ( + - 20 )
----
-20

query I rowsort
SELECT ALL + ( + - 16 ) col1
----
-16

query I rowsort
SELECT + 30 * + + 73
----
2190

onlyif mysql # aggregate syntax: 
query I rowsort label-3323
SELECT ALL COUNT( DISTINCT - 72 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3323
SELECT ALL COUNT ( DISTINCT - 72 ) AS col0
----
1

query II rowsort
SELECT DISTINCT - 48 * - 82, 39 AS col2
----
3936
39

query I rowsort
SELECT DISTINCT - 30 + + 68
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3326
SELECT ALL SUM( DISTINCT + 5 )
----
5

skipif mysql # not compatible
query I rowsort label-3326
SELECT ALL SUM ( DISTINCT + 5 )
----
5

query I rowsort
SELECT + 65 * - - 35 + - 49 AS col1
----
2226

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3328
SELECT ALL - CAST( - ( 82 ) AS SIGNED ) + ( + ( - 37 ) ) col0
----
45

skipif mysql # not compatible
query I rowsort label-3328
SELECT ALL - CAST ( - ( 82 ) AS INTEGER ) + ( + ( - 37 ) ) col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3329
SELECT NULLIF ( + COUNT( * ), COUNT( * ) ) * - - COUNT( + - 23 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3329
SELECT NULLIF ( + COUNT ( * ), COUNT ( * ) ) * - - COUNT ( + - 23 ) AS col2
----
NULL

query I rowsort
SELECT - + 88 col2
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-3331
SELECT ALL - MIN( 45 )
----
-45

skipif mysql # not compatible
query I rowsort label-3331
SELECT ALL - MIN ( 45 )
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3332
SELECT CAST( NULL AS SIGNED ) + + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-3332
SELECT CAST ( NULL AS INTEGER ) + + 59
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3333
SELECT - CAST( NULL AS SIGNED ), CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3333
SELECT - CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER )
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3334
SELECT DISTINCT + COUNT( + 42 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3334
SELECT DISTINCT + COUNT ( + 42 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3335
SELECT SUM( + 85 ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-3335
SELECT SUM ( + 85 ) AS col2
----
85

query I rowsort
SELECT DISTINCT - ( NULLIF ( + - 5, - - 62 ) ) AS col1
----
5

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3337
SELECT + CAST( + CAST( NULL AS SIGNED ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3337
SELECT + CAST ( + CAST ( NULL AS INTEGER ) AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3338
SELECT + COUNT( ALL + - 49 )
----
1

skipif mysql # not compatible
query I rowsort label-3338
SELECT + COUNT ( ALL + - 49 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3339
SELECT DISTINCT + MIN( - 76 ) AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-3339
SELECT DISTINCT + MIN ( - 76 ) AS col1
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3340
SELECT ALL + SUM( DISTINCT - NULLIF ( + 30, + CAST( NULL AS SIGNED ) ) ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-3340
SELECT ALL + SUM ( DISTINCT - NULLIF ( + 30, + CAST ( NULL AS INTEGER ) ) ) AS col1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3341
SELECT 26 - + COUNT( * ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-3341
SELECT 26 - + COUNT ( * ) AS col1
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-3342
SELECT ALL - 58 DIV ( - - 82 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3342
SELECT ALL - 58 / ( - - 82 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3343
SELECT ALL + 13 - - - COUNT( * ) * + 77
----
-64

skipif mysql # not compatible
query I rowsort label-3343
SELECT ALL + 13 - - - COUNT ( * ) * + 77
----
-64

query I rowsort
SELECT DISTINCT - - 42
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3345
SELECT ALL 60 + - COUNT( * ) col2
----
59

skipif mysql # not compatible
query I rowsort label-3345
SELECT ALL 60 + - COUNT ( * ) col2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3346
SELECT ALL COUNT( * ) * + COUNT( * ) col1
----
1

skipif mysql # not compatible
query I rowsort label-3346
SELECT ALL COUNT ( * ) * + COUNT ( * ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3347
SELECT COUNT( ALL - 31 )
----
1

skipif mysql # not compatible
query I rowsort label-3347
SELECT COUNT ( ALL - 31 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3348
SELECT - MAX( DISTINCT + - 24 ) col2
----
24

skipif mysql # not compatible
query I rowsort label-3348
SELECT - MAX ( DISTINCT + - 24 ) col2
----
24

query I rowsort
SELECT ALL + - 5 col1
----
-5

query I rowsort
SELECT ALL + ( 2 )
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3351
SELECT - COUNT( * ) + + + ( + 95 ) DIV COUNT( * ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-3351
SELECT - COUNT ( * ) + + + ( + 95 ) / COUNT ( * ) AS col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3352
SELECT - 49 + + COUNT( * ) AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-3352
SELECT - 49 + + COUNT ( * ) AS col0
----
-48

query I rowsort
SELECT ALL 29 + 29 AS col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3354
SELECT ALL + COUNT( * ) * - SUM( DISTINCT - 46 )
----
46

skipif mysql # not compatible
query I rowsort label-3354
SELECT ALL + COUNT ( * ) * - SUM ( DISTINCT - 46 )
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3355
SELECT ALL + + ( CAST( NULL AS SIGNED ) ) - + 77
----
NULL

skipif mysql # not compatible
query I rowsort label-3355
SELECT ALL + + ( CAST ( NULL AS INTEGER ) ) - + 77
----
NULL

query I rowsort
SELECT ALL - + 5 col1
----
-5

query I rowsort
SELECT 54 * + 31
----
1674

onlyif mysql # DIV for integer division: 
query I rowsort label-3358
SELECT ALL - 88 DIV + 25
----
-3

skipif mysql # not compatible
query I rowsort label-3358
SELECT ALL - 88 / + 25
----
-3

query I rowsort
SELECT - + 40 col2
----
-40

query I rowsort
SELECT + 77 * + 74
----
5698

onlyif mysql # aggregate syntax: 
query II rowsort label-3361
SELECT ALL - 99 AS col2, - COUNT( * ) * + - 74
----
-99
74

skipif mysql # not compatible
query II rowsort label-3361
SELECT ALL - 99 AS col2, - COUNT ( * ) * + - 74
----
-99
74

onlyif mysql # DIV for integer division: 
query I rowsort label-3362
SELECT 44 DIV - 34
----
-1

skipif mysql # not compatible
query I rowsort label-3362
SELECT 44 / - 34
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3363
SELECT ALL COUNT( * ), COUNT( * ) DIV - COUNT( * ) - - - COUNT( * ) AS col0
----
1
-2

skipif mysql # not compatible
query II rowsort label-3363
SELECT ALL COUNT ( * ), COUNT ( * ) / - COUNT ( * ) - - - COUNT ( * ) AS col0
----
1
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-3364
SELECT 91, - 98 * + COUNT( * ) AS col2
----
91
-98

skipif mysql # not compatible
query II rowsort label-3364
SELECT 91, - 98 * + COUNT ( * ) AS col2
----
91
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-3365
SELECT ALL + 2 * + COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-3365
SELECT ALL + 2 * + COUNT ( * ) AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3366
SELECT ALL + 29 - - SUM( ALL + 25 ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-3366
SELECT ALL + 29 - - SUM ( ALL + 25 ) AS col0
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3367
SELECT ALL - - MIN( DISTINCT - 56 ) * + CAST( 10 AS SIGNED ) AS col2
----
-560

skipif mysql # not compatible
query I rowsort label-3367
SELECT ALL - - MIN ( DISTINCT - 56 ) * + CAST ( 10 AS INTEGER ) AS col2
----
-560

query I rowsort
SELECT ( - - 0 )
----
0

query I rowsort
SELECT - 85 - - + 39
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-3370
SELECT + - COUNT( * ) AS col0, - 94
----
-1
-94

skipif mysql # not compatible
query II rowsort label-3370
SELECT + - COUNT ( * ) AS col0, - 94
----
-1
-94

query II rowsort
SELECT ( - + 18 ) col1, - 76
----
-18
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-3372
SELECT + + SUM( + 82 ) + + COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-3372
SELECT + + SUM ( + 82 ) + + COUNT ( * )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3373
SELECT - COUNT( * ) * + 10
----
-10

skipif mysql # not compatible
query I rowsort label-3373
SELECT - COUNT ( * ) * + 10
----
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-3374
SELECT + COUNT( * ) col0, 76 col2
----
1
76

skipif mysql # not compatible
query II rowsort label-3374
SELECT + COUNT ( * ) col0, 76 col2
----
1
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3375
SELECT ALL - 1 * - - 94 * CAST( + - 48 AS SIGNED ) AS col0
----
4512

skipif mysql # not compatible
query I rowsort label-3375
SELECT ALL - 1 * - - 94 * CAST ( + - 48 AS INTEGER ) AS col0
----
4512

query I rowsort
SELECT DISTINCT ( - 96 )
----
-96

query I rowsort
SELECT DISTINCT - ( + 23 )
----
-23

query I rowsort
SELECT ALL + 34 * + 58
----
1972

query I rowsort
SELECT DISTINCT - 16 * + - 52 AS col0
----
832

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3380
SELECT DISTINCT CAST( + - COUNT( * ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-3380
SELECT DISTINCT CAST ( + - COUNT ( * ) AS INTEGER )
----
-1

query I rowsort
SELECT DISTINCT + + 53 + + + 41 AS col0
----
94

query I rowsort
SELECT + 65 * - 81 AS col2
----
-5265

query I rowsort
SELECT ALL 11 * + 94
----
1034

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3384
SELECT - NULLIF ( 20, + + COUNT( * ) ) * + CAST( 8 AS SIGNED ), 58 + 41 * - CAST( NULL AS SIGNED ) AS col2
----
-160
NULL

skipif mysql # not compatible
query II rowsort label-3384
SELECT - NULLIF ( 20, + + COUNT ( * ) ) * + CAST ( 8 AS INTEGER ), 58 + 41 * - CAST ( NULL AS INTEGER ) AS col2
----
-160
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3385
SELECT - + 75 * + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3385
SELECT - + 75 * + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3386
SELECT DISTINCT 76 AS col1, COUNT( * ) col2
----
76
1

skipif mysql # not compatible
query II rowsort label-3386
SELECT DISTINCT 76 AS col1, COUNT ( * ) col2
----
76
1

query I rowsort
SELECT DISTINCT + 88 * + 89 col0
----
7832

query I rowsort
SELECT DISTINCT + 26 col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3389
SELECT + 27 * + - COUNT( * ) AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-3389
SELECT + 27 * + - COUNT ( * ) AS col1
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3390
SELECT COUNT( * ) + + - 0
----
1

skipif mysql # not compatible
query I rowsort label-3390
SELECT COUNT ( * ) + + - 0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3391
SELECT COUNT( * ) + 8 + + 79
----
88

skipif mysql # not compatible
query I rowsort label-3391
SELECT COUNT ( * ) + 8 + + 79
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3392
SELECT ALL COUNT( * ) * - - ( + COUNT( DISTINCT 28 ) )
----
1

skipif mysql # not compatible
query I rowsort label-3392
SELECT ALL COUNT ( * ) * - - ( + COUNT ( DISTINCT 28 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3393
SELECT ALL 73 - - COUNT( * ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-3393
SELECT ALL 73 - - COUNT ( * ) AS col1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3394
SELECT - SUM( + 48 )
----
-48

skipif mysql # not compatible
query I rowsort label-3394
SELECT - SUM ( + 48 )
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-3395
SELECT ALL 89 DIV - 34 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-3395
SELECT ALL 89 / - 34 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3396
SELECT DISTINCT - COUNT( * ) + + 93 AS col1
----
92

skipif mysql # not compatible
query I rowsort label-3396
SELECT DISTINCT - COUNT ( * ) + + 93 AS col1
----
92

query I rowsort
SELECT 29 * 18 AS col0
----
522

onlyif mysql # aggregate syntax: 
query I rowsort label-3398
SELECT DISTINCT + - MAX( + 91 ) AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-3398
SELECT DISTINCT + - MAX ( + 91 ) AS col2
----
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3399
SELECT DISTINCT COUNT( * ) DIV - 49 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3399
SELECT DISTINCT COUNT ( * ) / - 49 AS col0
----
0

query I rowsort
SELECT ALL 48 * 93
----
4464

onlyif mysql # aggregate syntax: 
query I rowsort label-3401
SELECT - 29 + - COUNT( * )
----
-30

skipif mysql # not compatible
query I rowsort label-3401
SELECT - 29 + - COUNT ( * )
----
-30

query I rowsort
SELECT + + 75 AS col0
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3403
SELECT - CAST( + 86 AS SIGNED ) * - 39
----
3354

skipif mysql # not compatible
query I rowsort label-3403
SELECT - CAST ( + 86 AS INTEGER ) * - 39
----
3354

query I rowsort
SELECT - ( 71 ) AS col2
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-3405
SELECT DISTINCT ( - + 34 ) * - MAX( DISTINCT - 73 ) AS col1
----
-2482

skipif mysql # not compatible
query I rowsort label-3405
SELECT DISTINCT ( - + 34 ) * - MAX ( DISTINCT - 73 ) AS col1
----
-2482

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3406
SELECT ALL CAST( MAX( - 50 ) AS SIGNED ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-3406
SELECT ALL CAST ( MAX ( - 50 ) AS INTEGER ) AS col0
----
-50

query II rowsort
SELECT ALL 85 AS col1, - 92 col1
----
85
-92

query II rowsort
SELECT ALL 43 AS col0, + 30 AS col1
----
43
30

query I rowsort
SELECT - 56 + - 14 AS col0
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3410
SELECT DISTINCT - 43 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3410
SELECT DISTINCT - 43 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3411
SELECT MIN( + - 67 ) DIV + 89
----
0

skipif mysql # not compatible
query I rowsort label-3411
SELECT MIN ( + - 67 ) / + 89
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3412
SELECT ALL CAST( NULL AS SIGNED ) * - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3412
SELECT ALL CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3413
SELECT + 11 + + COUNT( * ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-3413
SELECT + 11 + + COUNT ( * ) AS col2
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3414
SELECT + COUNT( * ) DIV + - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3414
SELECT + COUNT ( * ) / + - COUNT ( * ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3415
SELECT ALL + COUNT( * ) / - ( - AVG ( - CAST( NULL AS SIGNED ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3415
SELECT ALL + COUNT ( * ) / - ( - AVG ( - CAST ( NULL AS INTEGER ) ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3416
SELECT - + CAST( 17 AS SIGNED )
----
-17

skipif mysql # not compatible
query I rowsort label-3416
SELECT - + CAST ( 17 AS INTEGER )
----
-17

query I rowsort
SELECT DISTINCT + 28 AS col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3418
SELECT + 59 * - 32 + COUNT( * ) AS col1
----
-1887

skipif mysql # not compatible
query I rowsort label-3418
SELECT + 59 * - 32 + COUNT ( * ) AS col1
----
-1887

query I rowsort
SELECT ALL ( + 50 ) * - + 63 AS col2
----
-3150

query I rowsort
SELECT 47 - - ( + 63 ) col0
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-3421
SELECT COUNT( * ) + + - COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3421
SELECT COUNT ( * ) + + - COUNT ( * ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3422
SELECT DISTINCT + + 45 * COALESCE ( + - 25, - - ( COUNT( ALL - - ( - + 14 ) ) ) ) col0
----
-1125

skipif mysql # not compatible
query I rowsort label-3422
SELECT DISTINCT + + 45 * COALESCE ( + - 25, - - ( COUNT ( ALL - - ( - + 14 ) ) ) ) col0
----
-1125

onlyif mysql # aggregate syntax: 
query I rowsort label-3423
SELECT DISTINCT - ( + + 67 ) * + MAX( ALL 41 ) AS col2
----
-2747

skipif mysql # not compatible
query I rowsort label-3423
SELECT DISTINCT - ( + + 67 ) * + MAX ( ALL 41 ) AS col2
----
-2747

onlyif mysql # aggregate syntax: 
query I rowsort label-3424
SELECT ALL + 4 + + + COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-3424
SELECT ALL + 4 + + + COUNT ( * )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3425
SELECT ALL + SUM( ALL 78 ) * 31 col0
----
2418

skipif mysql # not compatible
query I rowsort label-3425
SELECT ALL + SUM ( ALL 78 ) * 31 col0
----
2418

onlyif mysql # aggregate syntax: 
query II rowsort label-3426
SELECT ALL 67, + COUNT( * ) col2
----
67
1

skipif mysql # not compatible
query II rowsort label-3426
SELECT ALL 67, + COUNT ( * ) col2
----
67
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3427
SELECT ALL + MIN( - 12 )
----
-12

skipif mysql # not compatible
query I rowsort label-3427
SELECT ALL + MIN ( - 12 )
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3428
SELECT ALL + - COUNT( * ) AS col0, CAST( NULL AS SIGNED ) AS col0
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-3428
SELECT ALL + - COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) AS col0
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3429
SELECT DISTINCT + + SUM( DISTINCT - + 14 )
----
-14

skipif mysql # not compatible
query I rowsort label-3429
SELECT DISTINCT + + SUM ( DISTINCT - + 14 )
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3430
SELECT - CAST( - 64 AS SIGNED ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-3430
SELECT - CAST ( - 64 AS INTEGER ) AS col1
----
64

query I rowsort
SELECT ALL ( + 20 ) * 88 AS col0
----
1760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3432
SELECT CAST( 7 AS SIGNED )
----
7

skipif mysql # not compatible
query I rowsort label-3432
SELECT CAST ( 7 AS INTEGER )
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3433
SELECT DISTINCT 63 DIV + COUNT( * ) - + 40 AS col0
----
23

skipif mysql # not compatible
query I rowsort label-3433
SELECT DISTINCT 63 / + COUNT ( * ) - + 40 AS col0
----
23

query I rowsort
SELECT + ( 68 )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3435
SELECT ALL - COUNT( * ) * + - 66 * - - COUNT( * ) * - COUNT( * )
----
-66

skipif mysql # not compatible
query I rowsort label-3435
SELECT ALL - COUNT ( * ) * + - 66 * - - COUNT ( * ) * - COUNT ( * )
----
-66

query I rowsort
SELECT ALL + ( 17 )
----
17

query I rowsort
SELECT DISTINCT + - 72 AS col2
----
-72

query I rowsort
SELECT DISTINCT + - 11 AS col1
----
-11

query I rowsort
SELECT + + 54 AS col2
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-3440
SELECT + COUNT( * ), COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-3440
SELECT + COUNT ( * ), COUNT ( * )
----
1
1

query I rowsort
SELECT ALL 63 + - 76
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-3442
SELECT + 83 AS col1, 24 + + + COUNT( * ) AS col2
----
83
25

skipif mysql # not compatible
query II rowsort label-3442
SELECT + 83 AS col1, 24 + + + COUNT ( * ) AS col2
----
83
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3443
SELECT + 28 * - + CAST( + 61 AS SIGNED )
----
-1708

skipif mysql # not compatible
query I rowsort label-3443
SELECT + 28 * - + CAST ( + 61 AS INTEGER )
----
-1708

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3444
SELECT ALL - + CAST( NULL AS SIGNED ) * 79 * + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-3444
SELECT ALL - + CAST ( NULL AS INTEGER ) * 79 * + 18
----
NULL

query I rowsort
SELECT + - 22 AS col2
----
-22

query I rowsort
SELECT ALL 77 * - 57
----
-4389

query II rowsort
SELECT 77, - 64 AS col2
----
77
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-3448
SELECT + COUNT( * ) * 56
----
56

skipif mysql # not compatible
query I rowsort label-3448
SELECT + COUNT ( * ) * 56
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3449
SELECT + COUNT( * ) DIV - 67
----
0

skipif mysql # not compatible
query I rowsort label-3449
SELECT + COUNT ( * ) / - 67
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3450
SELECT - SUM( + 89 ) + 37
----
-52

skipif mysql # not compatible
query I rowsort label-3450
SELECT - SUM ( + 89 ) + 37
----
-52

query I rowsort
SELECT - ( 7 )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-3452
SELECT + 28 + - COUNT( * ) * - 68
----
96

skipif mysql # not compatible
query I rowsort label-3452
SELECT + 28 + - COUNT ( * ) * - 68
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3453
SELECT - CAST( NULLIF ( 93, + 74 ) AS SIGNED ) AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-3453
SELECT - CAST ( NULLIF ( 93, + 74 ) AS INTEGER ) AS col2
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3454
SELECT ALL COUNT( * ) + + COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-3454
SELECT ALL COUNT ( * ) + + COUNT ( * ) AS col0
----
2

query I rowsort
SELECT 64 col1
----
64

query I rowsort
SELECT ALL 12 col1
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-3457
SELECT - 66 DIV - 33 + - 78 AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-3457
SELECT - 66 / - 33 + - 78 AS col2
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3458
SELECT 86 + + + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3458
SELECT 86 + + + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3459
SELECT COUNT( * ) DIV + NULLIF ( 66, 69 )
----
0

skipif mysql # not compatible
query I rowsort label-3459
SELECT COUNT ( * ) / + NULLIF ( 66, 69 )
----
0

query I rowsort
SELECT 30 + - 36
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3461
SELECT DISTINCT + COUNT( * ) + ( 75 ) + + COUNT( * ) DIV COUNT( * )
----
77

skipif mysql # not compatible
query I rowsort label-3461
SELECT DISTINCT + COUNT ( * ) + ( 75 ) + + COUNT ( * ) / COUNT ( * )
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3462
SELECT - + ( + + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3462
SELECT - + ( + + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3463
SELECT DISTINCT - COALESCE ( COUNT( * ), 0 ) + + 48
----
47

skipif mysql # not compatible
query I rowsort label-3463
SELECT DISTINCT - COALESCE ( COUNT ( * ), 0 ) + + 48
----
47

query I rowsort
SELECT ALL - + 96 - + - 50 col0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-3465
SELECT ALL + ( + MAX( DISTINCT - + 39 ) ) col1
----
-39

skipif mysql # not compatible
query I rowsort label-3465
SELECT ALL + ( + MAX ( DISTINCT - + 39 ) ) col1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-3466
SELECT DISTINCT ( - + COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3466
SELECT DISTINCT ( - + COUNT ( * ) )
----
-1

query I rowsort
SELECT DISTINCT + 50 col0
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3468
SELECT - - COALESCE ( + CAST( NULL AS SIGNED ), + 89 + + 57 ) + - 21
----
125

skipif mysql # not compatible
query I rowsort label-3468
SELECT - - COALESCE ( + CAST ( NULL AS INTEGER ), + 89 + + 57 ) + - 21
----
125

query I rowsort
SELECT DISTINCT - 94 * - 40
----
3760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3470
SELECT CAST( - 64 AS SIGNED )
----
-64

skipif mysql # not compatible
query I rowsort label-3470
SELECT CAST ( - 64 AS INTEGER )
----
-64

query I rowsort
SELECT DISTINCT + 72 col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3472
SELECT ALL 22 - + - COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-3472
SELECT ALL 22 - + - COUNT ( * )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3473
SELECT COUNT( * ) * + ( + 87 )
----
87

skipif mysql # not compatible
query I rowsort label-3473
SELECT COUNT ( * ) * + ( + 87 )
----
87

query I rowsort
SELECT - - ( 73 ) col2
----
73

query I rowsort
SELECT ALL - ( 6 ) AS col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3476
SELECT DISTINCT - + ( + - ( - - COUNT( * ) ) ) + - 55 AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-3476
SELECT DISTINCT - + ( + - ( - - COUNT ( * ) ) ) + - 55 AS col0
----
-54

query I rowsort
SELECT ALL - 37 * - + 62
----
2294

query I rowsort
SELECT ALL - 69 col1
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3479
SELECT DISTINCT COUNT( * ) + + + CAST( NULL AS SIGNED ) / + + AVG ( + 90 ) + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3479
SELECT DISTINCT COUNT ( * ) + + + CAST ( NULL AS INTEGER ) / + + AVG ( + 90 ) + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3480
SELECT ALL COUNT( * ) - - COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-3480
SELECT ALL COUNT ( * ) - - COUNT ( * ) AS col2
----
2

query I rowsort
SELECT ALL + ( - + 74 )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-3482
SELECT ALL COUNT( * ) * - ( + 47 )
----
-47

skipif mysql # not compatible
query I rowsort label-3482
SELECT ALL COUNT ( * ) * - ( + 47 )
----
-47

query I rowsort
SELECT ALL 16 col1
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3484
SELECT DISTINCT NULLIF ( - - ( CAST( COUNT( * ) AS SIGNED ) ), - + NULLIF ( 5, + COUNT( * ) ) ) * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3484
SELECT DISTINCT NULLIF ( - - ( CAST ( COUNT ( * ) AS INTEGER ) ), - + NULLIF ( 5, + COUNT ( * ) ) ) * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3485
SELECT ALL + 9 AS col0, COUNT( * )
----
9
1

skipif mysql # not compatible
query II rowsort label-3485
SELECT ALL + 9 AS col0, COUNT ( * )
----
9
1

query I rowsort
SELECT - ( + 35 ) AS col2
----
-35

query I rowsort
SELECT ALL ( + - 60 ) AS col1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-3488
SELECT 20 + - COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-3488
SELECT 20 + - COUNT ( * )
----
19

query II rowsort
SELECT 55 + - 46 AS col2, 67
----
9
67

onlyif mysql # DIV for integer division: 
query I rowsort label-3490
SELECT ALL 93 DIV + 29 col0
----
3

skipif mysql # not compatible
query I rowsort label-3490
SELECT ALL 93 / + 29 col0
----
3

query I rowsort
SELECT ALL 20 * - - 93 AS col1
----
1860

onlyif mysql # aggregate syntax: 
query I rowsort label-3492
SELECT ALL - MIN( DISTINCT - 43 ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-3492
SELECT ALL - MIN ( DISTINCT - 43 ) AS col2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-3493
SELECT DISTINCT SUM( DISTINCT - 23 ) AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-3493
SELECT DISTINCT SUM ( DISTINCT - 23 ) AS col0
----
-23

query I rowsort
SELECT ALL - ( - + 48 )
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-3495
SELECT 82, COUNT( * ) AS col2
----
82
1

skipif mysql # not compatible
query II rowsort label-3495
SELECT 82, COUNT ( * ) AS col2
----
82
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3496
SELECT - COUNT( DISTINCT 70 ) + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-3496
SELECT - COUNT ( DISTINCT 70 ) + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3497
SELECT - 79 * - ( - MIN( DISTINCT 6 ) ) AS col2
----
-474

skipif mysql # not compatible
query I rowsort label-3497
SELECT - 79 * - ( - MIN ( DISTINCT 6 ) ) AS col2
----
-474

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3498
SELECT - 64 AS col0, CAST( + - 26 AS SIGNED ) - + 44 AS col1
----
-64
-70

skipif mysql # not compatible
query II rowsort label-3498
SELECT - 64 AS col0, CAST ( + - 26 AS INTEGER ) - + 44 AS col1
----
-64
-70

query I rowsort
SELECT ALL 38 * + 88
----
3344

query I rowsort
SELECT + ( - 3 )
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3501
SELECT - ( + - CAST( ( - 8 ) AS SIGNED ) ) * + 86 AS col1
----
-688

skipif mysql # not compatible
query I rowsort label-3501
SELECT - ( + - CAST ( ( - 8 ) AS INTEGER ) ) * + 86 AS col1
----
-688

query I rowsort
SELECT + 44 + - + 94 AS col0
----
-50

query I rowsort
SELECT - + 14 + - 68
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3504
SELECT - - CAST( NULL AS SIGNED ) + - ( - MAX( DISTINCT 88 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3504
SELECT - - CAST ( NULL AS INTEGER ) + - ( - MAX ( DISTINCT 88 ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3505
SELECT ALL + + 11 + MIN( DISTINCT - + 90 ) - - - 67
----
-146

skipif mysql # not compatible
query I rowsort label-3505
SELECT ALL + + 11 + MIN ( DISTINCT - + 90 ) - - - 67
----
-146

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3506
SELECT COUNT( * ) DIV - 73
----
0

skipif mysql # not compatible
query I rowsort label-3506
SELECT COUNT ( * ) / - 73
----
0

query I rowsort
SELECT ALL - 65 col0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-3508
SELECT ALL - NULLIF ( + 66, - - 29 ) + - COUNT( * )
----
-67

skipif mysql # not compatible
query I rowsort label-3508
SELECT ALL - NULLIF ( + 66, - - 29 ) + - COUNT ( * )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-3509
SELECT + COUNT( * ) + - 79 col0
----
-78

skipif mysql # not compatible
query I rowsort label-3509
SELECT + COUNT ( * ) + - 79 col0
----
-78

query I rowsort
SELECT + ( + + 40 )
----
40

query I rowsort
SELECT ALL + - 80 + + 70
----
-10

query I rowsort
SELECT ALL + - 5 + - - 44 AS col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3513
SELECT ALL - - SUM( + + 13 ) * - 69 AS col1
----
-897

skipif mysql # not compatible
query I rowsort label-3513
SELECT ALL - - SUM ( + + 13 ) * - 69 AS col1
----
-897

query I rowsort
SELECT - ( - + NULLIF ( - 41, + 4 * + - 38 / 66 ) ) AS col2
----
-41

query II rowsort
SELECT DISTINCT + 78 col2, - 49 AS col2
----
78
-49

query I rowsort
SELECT + 98 - + - ( 95 )
----
193

query I rowsort
SELECT ( - 96 ) AS col0
----
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-3518
SELECT + 94, COUNT( * ) * + - ( + + 67 ) AS col2
----
94
-67

skipif mysql # not compatible
query II rowsort label-3518
SELECT + 94, COUNT ( * ) * + - ( + + 67 ) AS col2
----
94
-67

query I rowsort
SELECT - + ( + 41 )
----
-41

query II rowsort
SELECT 64 * - 82 col0, - 31
----
-5248
-31

query I rowsort
SELECT DISTINCT - + 19 AS col1
----
-19

query I rowsort
SELECT + + 51 AS col2
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3523
SELECT DISTINCT CAST( NULL AS SIGNED ) * - + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-3523
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - + 8
----
NULL

query I rowsort
SELECT DISTINCT + ( - - 48 )
----
48

query I rowsort
SELECT DISTINCT + + 93 AS col1
----
93

query I rowsort
SELECT ALL - ( - 4 ) AS col0
----
4

query I rowsort
SELECT ALL ( + - 35 ) AS col0
----
-35

query I rowsort
SELECT - ( - + 17 )
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3529
SELECT ALL - 2 DIV COUNT( * ) col2
----
-2

skipif mysql # not compatible
query I rowsort label-3529
SELECT ALL - 2 / COUNT ( * ) col2
----
-2

query I rowsort
SELECT DISTINCT 26 * 28 AS col0
----
728

query I rowsort
SELECT - 46 * 0 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3532
SELECT ALL - ( MAX( - + 20 ) ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-3532
SELECT ALL - ( MAX ( - + 20 ) ) AS col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3533
SELECT ALL 59 + + COUNT( * ) + - MIN( + - 28 ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-3533
SELECT ALL 59 + + COUNT ( * ) + - MIN ( + - 28 ) AS col1
----
88

query I rowsort
SELECT DISTINCT - + 38
----
-38

query I rowsort
SELECT 9 - 12 * - 94 AS col2
----
1137

onlyif mysql # aggregate syntax: 
query I rowsort label-3536
SELECT 99 * MAX( ALL 69 )
----
6831

skipif mysql # not compatible
query I rowsort label-3536
SELECT 99 * MAX ( ALL 69 )
----
6831

onlyif mysql # aggregate syntax: 
query I rowsort label-3537
SELECT DISTINCT + COUNT( * ) * - - ( - 11 )
----
-11

skipif mysql # not compatible
query I rowsort label-3537
SELECT DISTINCT + COUNT ( * ) * - - ( - 11 )
----
-11

query II rowsort
SELECT DISTINCT 21 AS col1, 27 AS col0
----
21
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3539
SELECT MAX( DISTINCT - + 54 )
----
-54

skipif mysql # not compatible
query I rowsort label-3539
SELECT MAX ( DISTINCT - + 54 )
----
-54

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3540
SELECT DISTINCT 87 / CAST( NULL AS DECIMAL ), COUNT( * ) - - 14 AS col1
----
NULL
15

skipif mysql # not compatible
query II rowsort label-3540
SELECT DISTINCT 87 / CAST ( NULL AS REAL ), COUNT ( * ) - - 14 AS col1
----
NULL
15

query I rowsort
SELECT DISTINCT 27 col2
----
27

query I rowsort
SELECT + ( + + 91 ) col2
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-3543
SELECT + COALESCE ( - 38, - - 83 DIV + - 39 ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-3543
SELECT + COALESCE ( - 38, - - 83 / + - 39 ) AS col2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-3544
SELECT SUM( - 27 ) AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-3544
SELECT SUM ( - 27 ) AS col1
----
-27

query I rowsort
SELECT DISTINCT - ( + - 94 ) AS col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3546
SELECT ALL - 46 - + COUNT( * ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-3546
SELECT ALL - 46 - + COUNT ( * ) AS col1
----
-47

query I rowsort
SELECT - + 98
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-3548
SELECT + COUNT( DISTINCT - 56 )
----
1

skipif mysql # not compatible
query I rowsort label-3548
SELECT + COUNT ( DISTINCT - 56 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3549
SELECT ALL + AVG ( ALL - + 93 ) + + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3549
SELECT ALL + AVG ( ALL - + 93 ) + + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3550
SELECT ALL - COUNT( ALL CAST( NULL AS DECIMAL ) )
----
0

skipif mysql # not compatible
query I rowsort label-3550
SELECT ALL - COUNT ( ALL CAST ( NULL AS REAL ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3551
SELECT DISTINCT + COUNT( * ) + + 70
----
71

skipif mysql # not compatible
query I rowsort label-3551
SELECT DISTINCT + COUNT ( * ) + + 70
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3552
SELECT + - 6 + - COUNT( * )
----
-7

skipif mysql # not compatible
query I rowsort label-3552
SELECT + - 6 + - COUNT ( * )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-3553
SELECT ALL + COUNT( * ) * + - 7 AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-3553
SELECT ALL + COUNT ( * ) * + - 7 AS col1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-3554
SELECT + 62 * - MAX( 46 )
----
-2852

skipif mysql # not compatible
query I rowsort label-3554
SELECT + 62 * - MAX ( 46 )
----
-2852

query I rowsort
SELECT ALL + ( - - 50 ) AS col0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3556
SELECT - MIN( ALL 64 )
----
-64

skipif mysql # not compatible
query I rowsort label-3556
SELECT - MIN ( ALL 64 )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-3557
SELECT - ( - - COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3557
SELECT - ( - - COUNT ( * ) ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3558
SELECT CAST( 84 AS SIGNED )
----
84

skipif mysql # not compatible
query I rowsort label-3558
SELECT CAST ( 84 AS INTEGER )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3559
SELECT SUM( 76 ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-3559
SELECT SUM ( 76 ) AS col2
----
76

query I rowsort
SELECT ALL - ( - - 55 )
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-3561
SELECT ALL - ( - + ( + ( + COUNT( * ) ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-3561
SELECT ALL - ( - + ( + ( + COUNT ( * ) ) ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3562
SELECT ALL - CAST( 79 AS SIGNED )
----
-79

skipif mysql # not compatible
query I rowsort label-3562
SELECT ALL - CAST ( 79 AS INTEGER )
----
-79

query I rowsort
SELECT ALL - + ( - 62 )
----
62

query I rowsort
SELECT ( - 2 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3565
SELECT DISTINCT 76 * - COUNT( * ) col1
----
-76

skipif mysql # not compatible
query I rowsort label-3565
SELECT DISTINCT 76 * - COUNT ( * ) col1
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3566
SELECT ALL 93 - - NULLIF ( + ( - MAX( ALL - CAST( NULL AS SIGNED ) ) ), SUM( DISTINCT + 10 ) ) + - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-3566
SELECT ALL 93 - - NULLIF ( + ( - MAX ( ALL - CAST ( NULL AS INTEGER ) ) ), SUM ( DISTINCT + 10 ) ) + - 6
----
NULL

query I rowsort
SELECT ALL 93 col1
----
93

query I rowsort
SELECT + ( - 28 ) AS col1
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-3569
SELECT ALL 99 * + COUNT( * ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-3569
SELECT ALL 99 * + COUNT ( * ) AS col2
----
99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3570
SELECT ALL + CAST( NULL AS DECIMAL ) + - 34 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3570
SELECT ALL + CAST ( NULL AS REAL ) + - 34 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3571
SELECT DISTINCT MAX( + ( + ( + 32 ) ) ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-3571
SELECT DISTINCT MAX ( + ( + ( + 32 ) ) ) AS col1
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3572
SELECT CAST( - 37 AS SIGNED ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-3572
SELECT CAST ( - 37 AS INTEGER ) AS col1
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3573
SELECT - ( - - COUNT( * ) ) DIV - - MIN( 10 )
----
0

skipif mysql # not compatible
query I rowsort label-3573
SELECT - ( - - COUNT ( * ) ) / - - MIN ( 10 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3574
SELECT - + CAST( COUNT( * ) AS SIGNED ) * + 52
----
-52

skipif mysql # not compatible
query I rowsort label-3574
SELECT - + CAST ( COUNT ( * ) AS INTEGER ) * + 52
----
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-3575
SELECT ALL 98, - COUNT( * ) AS col1
----
98
-1

skipif mysql # not compatible
query II rowsort label-3575
SELECT ALL 98, - COUNT ( * ) AS col1
----
98
-1

query II rowsort
SELECT 72, - ( 99 ) AS col2
----
72
-99

query I rowsort
SELECT + + 63 AS col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3578
SELECT ALL 43 + + COUNT( * ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-3578
SELECT ALL 43 + + COUNT ( * ) AS col2
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3579
SELECT DISTINCT - MIN( + 40 ) DIV - 16 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-3579
SELECT DISTINCT - MIN ( + 40 ) / - 16 AS col1
----
2

query I rowsort
SELECT ALL - - 4 * - + 12
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-3581
SELECT ( + MAX( + + 57 ) ) + - 31
----
26

skipif mysql # not compatible
query I rowsort label-3581
SELECT ( + MAX ( + + 57 ) ) + - 31
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3582
SELECT + - CAST( + 99 AS SIGNED ) col1
----
-99

skipif mysql # not compatible
query I rowsort label-3582
SELECT + - CAST ( + 99 AS INTEGER ) col1
----
-99

query I rowsort
SELECT - - 65 AS col1
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-3584
SELECT 72 DIV - 44 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3584
SELECT 72 / - 44 AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3585
SELECT DISTINCT CAST( NULL AS SIGNED ) + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3585
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + COUNT ( * )
----
NULL

query II rowsort
SELECT 35 AS col0, ( + 49 ) AS col2
----
35
49

query I rowsort
SELECT - + 29 * 52 * 79 AS col2
----
-119132

query I rowsort
SELECT - 35 * + 56
----
-1960

query I rowsort
SELECT + - 61 * 58
----
-3538

query I rowsort
SELECT - 63 * 69
----
-4347

onlyif mysql # aggregate syntax: 
query I rowsort label-3591
SELECT + COALESCE ( + - COUNT( * ), + + 46 ) + 23 col1
----
22

skipif mysql # not compatible
query I rowsort label-3591
SELECT + COALESCE ( + - COUNT ( * ), + + 46 ) + 23 col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3592
SELECT + COUNT( * ) * - 48 * - 84 AS col2
----
4032

skipif mysql # not compatible
query I rowsort label-3592
SELECT + COUNT ( * ) * - 48 * - 84 AS col2
----
4032

onlyif mysql # DIV for integer division: 
query I rowsort label-3593
SELECT DISTINCT 9 DIV 24 * - 93 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3593
SELECT DISTINCT 9 / 24 * - 93 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3594
SELECT SUM( ALL + - 15 )
----
-15

skipif mysql # not compatible
query I rowsort label-3594
SELECT SUM ( ALL + - 15 )
----
-15

query I rowsort
SELECT ( - 24 ) AS col0
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3596
SELECT - CAST( NULL AS SIGNED ) + ( + 52 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3596
SELECT - CAST ( NULL AS INTEGER ) + ( + 52 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3597
SELECT ALL COUNT( * ) DIV + 62
----
0

skipif mysql # not compatible
query I rowsort label-3597
SELECT ALL COUNT ( * ) / + 62
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3598
SELECT DISTINCT - 36 - + COUNT( * )
----
-37

skipif mysql # not compatible
query I rowsort label-3598
SELECT DISTINCT - 36 - + COUNT ( * )
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-3599
SELECT - COUNT( * ) * + - COUNT( * ) + - 1 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3599
SELECT - COUNT ( * ) * + - COUNT ( * ) + - 1 AS col1
----
0

query I rowsort
SELECT 89 * 88 col2
----
7832

query I rowsort
SELECT ALL - ( + - 38 )
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-3602
SELECT 34 DIV - + 50
----
0

skipif mysql # not compatible
query I rowsort label-3602
SELECT 34 / - + 50
----
0

query I rowsort
SELECT DISTINCT + 17 + - + 51 AS col0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-3604
SELECT ALL + MAX( - 27 ) AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-3604
SELECT ALL + MAX ( - 27 ) AS col1
----
-27

query II rowsort
SELECT + 20 - + 75 AS col1, + 92 AS col0
----
-55
92

query I rowsort
SELECT ALL + 53 + 99 AS col0
----
152

onlyif mysql # DIV for integer division: 
query I rowsort label-3607
SELECT + 69 DIV - ( 87 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3607
SELECT + 69 / - ( 87 ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3608
SELECT CAST( - 22 AS SIGNED )
----
-22

skipif mysql # not compatible
query I rowsort label-3608
SELECT CAST ( - 22 AS INTEGER )
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3609
SELECT COUNT( * ) AS col0, COUNT( * ) DIV + 23 AS col0
----
1
0

skipif mysql # not compatible
query II rowsort label-3609
SELECT COUNT ( * ) AS col0, COUNT ( * ) / + 23 AS col0
----
1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3610
SELECT 74 - COUNT( * ) col0
----
73

skipif mysql # not compatible
query I rowsort label-3610
SELECT 74 - COUNT ( * ) col0
----
73

query I rowsort
SELECT 16 + + 2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3612
SELECT ALL 69 * - SUM( + - ( - - 68 ) ) AS col2
----
4692

skipif mysql # not compatible
query I rowsort label-3612
SELECT ALL 69 * - SUM ( + - ( - - 68 ) ) AS col2
----
4692

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3613
SELECT ALL + - CAST( + 59 AS SIGNED ) * + 95 AS col1
----
-5605

skipif mysql # not compatible
query I rowsort label-3613
SELECT ALL + - CAST ( + 59 AS INTEGER ) * + 95 AS col1
----
-5605

onlyif mysql # aggregate syntax: 
query I rowsort label-3614
SELECT + 55 * SUM( - - 10 ) - - COUNT( * )
----
551

skipif mysql # not compatible
query I rowsort label-3614
SELECT + 55 * SUM ( - - 10 ) - - COUNT ( * )
----
551

onlyif mysql # aggregate syntax: 
query I rowsort label-3615
SELECT DISTINCT + 83 * - - MIN( - 21 )
----
-1743

skipif mysql # not compatible
query I rowsort label-3615
SELECT DISTINCT + 83 * - - MIN ( - 21 )
----
-1743

onlyif mysql # aggregate syntax: 
query I rowsort label-3616
SELECT ALL + - 40 * + - COUNT( * ) * 96
----
3840

skipif mysql # not compatible
query I rowsort label-3616
SELECT ALL + - 40 * + - COUNT ( * ) * 96
----
3840

onlyif mysql # aggregate syntax: 
query I rowsort label-3617
SELECT DISTINCT - COUNT( * ) * - 16 + COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-3617
SELECT DISTINCT - COUNT ( * ) * - 16 + COUNT ( * )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3618
SELECT - COUNT( * ) + - 29
----
-30

skipif mysql # not compatible
query I rowsort label-3618
SELECT - COUNT ( * ) + - 29
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3619
SELECT ALL CAST( - 28 AS SIGNED )
----
-28

skipif mysql # not compatible
query I rowsort label-3619
SELECT ALL CAST ( - 28 AS INTEGER )
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-3620
SELECT ALL 90 DIV - 63 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3620
SELECT ALL 90 / - 63 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3621
SELECT DISTINCT - 33 + COUNT( * )
----
-32

skipif mysql # not compatible
query I rowsort label-3621
SELECT DISTINCT - 33 + COUNT ( * )
----
-32

query I rowsort
SELECT ALL + 79 + 96 AS col2
----
175

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3623
SELECT 44 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3623
SELECT 44 / CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 58 col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3625
SELECT ALL - COUNT( DISTINCT 27 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3625
SELECT ALL - COUNT ( DISTINCT 27 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3626
SELECT ALL - MIN( ALL - 7 )
----
7

skipif mysql # not compatible
query I rowsort label-3626
SELECT ALL - MIN ( ALL - 7 )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3627
SELECT DISTINCT - CASE WHEN NULL IS NULL THEN COUNT( * ) ELSE NULL END AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3627
SELECT DISTINCT - CASE WHEN NULL IS NULL THEN COUNT ( * ) ELSE NULL END AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3628
SELECT DISTINCT COUNT( * ) * 60
----
60

skipif mysql # not compatible
query I rowsort label-3628
SELECT DISTINCT COUNT ( * ) * 60
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3629
SELECT - + 10 + COUNT( * ) col1
----
-9

skipif mysql # not compatible
query I rowsort label-3629
SELECT - + 10 + COUNT ( * ) col1
----
-9

query I rowsort
SELECT + 10 * 78 AS col2
----
780

onlyif mysql # aggregate syntax: 
query II rowsort label-3631
SELECT + COUNT( * ), + 60 AS col1
----
1
60

skipif mysql # not compatible
query II rowsort label-3631
SELECT + COUNT ( * ), + 60 AS col1
----
1
60

onlyif mysql # DIV for integer division: 
query I rowsort label-3632
SELECT + 92 DIV - 25 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-3632
SELECT + 92 / - 25 AS col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3633
SELECT - MAX( - - 3 )
----
-3

skipif mysql # not compatible
query I rowsort label-3633
SELECT - MAX ( - - 3 )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3634
SELECT + MIN( DISTINCT + + ( 27 ) ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-3634
SELECT + MIN ( DISTINCT + + ( 27 ) ) AS col2
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3635
SELECT ALL + + CAST( + 95 AS SIGNED ) AS col2
----
95

skipif mysql # not compatible
query I rowsort label-3635
SELECT ALL + + CAST ( + 95 AS INTEGER ) AS col2
----
95

query I rowsort
SELECT DISTINCT - 61 * - 97 AS col2
----
5917

query I rowsort
SELECT ALL + 20 * + 76 AS col1
----
1520

query I rowsort
SELECT - 52 * 67 AS col1
----
-3484

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3639
SELECT CAST( COUNT( * ) AS SIGNED ) col2
----
1

skipif mysql # not compatible
query I rowsort label-3639
SELECT CAST ( COUNT ( * ) AS INTEGER ) col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3640
SELECT ALL + CAST( 64 AS SIGNED ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-3640
SELECT ALL + CAST ( 64 AS INTEGER ) AS col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3641
SELECT ALL - ( 65 ) + - COUNT( * )
----
-66

skipif mysql # not compatible
query I rowsort label-3641
SELECT ALL - ( 65 ) + - COUNT ( * )
----
-66

query I rowsort
SELECT DISTINCT ( - 27 ) col0
----
-27

query I rowsort
SELECT ALL NULLIF ( - 81, 98 ) col1
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3644
SELECT ALL - ( COUNT( * ) ) DIV - COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3644
SELECT ALL - ( COUNT ( * ) ) / - COUNT ( * ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3645
SELECT ALL + 79 * - + COUNT( * )
----
-79

skipif mysql # not compatible
query I rowsort label-3645
SELECT ALL + 79 * - + COUNT ( * )
----
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-3646
SELECT - 4 DIV - 42
----
0

skipif mysql # not compatible
query I rowsort label-3646
SELECT - 4 / - 42
----
0

query I rowsort
SELECT DISTINCT ( ( + 5 ) ) col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3648
SELECT ALL - 58 * - + ( - 8 ) + - COUNT( * )
----
-465

skipif mysql # not compatible
query I rowsort label-3648
SELECT ALL - 58 * - + ( - 8 ) + - COUNT ( * )
----
-465

onlyif mysql # aggregate syntax: 
query II rowsort label-3649
SELECT - - SUM( + 50 ) AS col2, + ( + COUNT( * ) ) * - 7 AS col2
----
50
-7

skipif mysql # not compatible
query II rowsort label-3649
SELECT - - SUM ( + 50 ) AS col2, + ( + COUNT ( * ) ) * - 7 AS col2
----
50
-7

query I rowsort
SELECT ALL 98 * + + 63
----
6174

onlyif mysql # aggregate syntax: 
query I rowsort label-3651
SELECT ALL + MIN( ALL + 69 ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-3651
SELECT ALL + MIN ( ALL + 69 ) AS col0
----
69

query I rowsort
SELECT ALL - 22 * - - 94 AS col1
----
-2068

onlyif mysql # aggregate syntax: 
query II rowsort label-3653
SELECT - COUNT( * ) AS col0, + MAX( ALL - 47 ) AS col0
----
-1
-47

skipif mysql # not compatible
query II rowsort label-3653
SELECT - COUNT ( * ) AS col0, + MAX ( ALL - 47 ) AS col0
----
-1
-47

query I rowsort
SELECT - 76 + - - 47
----
-29

query I rowsort
SELECT - - 67 * - 68 + + 85 + - 86 * + + 95
----
-12641

onlyif mysql # aggregate syntax: 
query II rowsort label-3656
SELECT - - COUNT( * ) AS col2, COUNT( * ) * - COUNT( * ) AS col0
----
1
-1

skipif mysql # not compatible
query II rowsort label-3656
SELECT - - COUNT ( * ) AS col2, COUNT ( * ) * - COUNT ( * ) AS col0
----
1
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3657
SELECT ALL 67 DIV ( 15 ) * + + COUNT( * ) + - 84, COUNT( * ) AS col1
----
-80
1

skipif mysql # not compatible
query II rowsort label-3657
SELECT ALL 67 / ( 15 ) * + + COUNT ( * ) + - 84, COUNT ( * ) AS col1
----
-80
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3658
SELECT + MAX( ALL CAST( - 83 AS SIGNED ) ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-3658
SELECT + MAX ( ALL CAST ( - 83 AS INTEGER ) ) AS col2
----
-83

query I rowsort
SELECT DISTINCT + ( + 9 ) AS col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3660
SELECT COUNT( * ) * - 91 col0
----
-91

skipif mysql # not compatible
query I rowsort label-3660
SELECT COUNT ( * ) * - 91 col0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3661
SELECT DISTINCT COUNT( * ) * + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3661
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) AS col2
----
1

query I rowsort
SELECT ALL - ( + ( 63 ) )
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3663
SELECT DISTINCT MAX( DISTINCT - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3663
SELECT DISTINCT MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT ALL + 67 + - 21 AS col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3665
SELECT ALL + + COUNT( ALL 19 )
----
1

skipif mysql # not compatible
query I rowsort label-3665
SELECT ALL + + COUNT ( ALL 19 )
----
1

query I rowsort
SELECT DISTINCT 26 * - 52 AS col0
----
-1352

query I rowsort
SELECT - ( + 68 )
----
-68

query I rowsort
SELECT ALL - 42 + - 99 col1
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-3669
SELECT - + 34 - + COUNT( * )
----
-35

skipif mysql # not compatible
query I rowsort label-3669
SELECT - + 34 - + COUNT ( * )
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3670
SELECT - + SUM( + 19 ) DIV - 61 + 7
----
7

skipif mysql # not compatible
query I rowsort label-3670
SELECT - + SUM ( + 19 ) / - 61 + 7
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3671
SELECT DISTINCT - CAST( + COUNT( * ) AS SIGNED ) * - 39
----
39

skipif mysql # not compatible
query I rowsort label-3671
SELECT DISTINCT - CAST ( + COUNT ( * ) AS INTEGER ) * - 39
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3672
SELECT COALESCE ( - COUNT( * ), - + 42 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-3672
SELECT COALESCE ( - COUNT ( * ), - + 42 ) col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3673
SELECT - 3 * + SUM( - - 74 ) AS col0
----
-222

skipif mysql # not compatible
query I rowsort label-3673
SELECT - 3 * + SUM ( - - 74 ) AS col0
----
-222

onlyif mysql # aggregate syntax: 
query I rowsort label-3674
SELECT - 21 + + COUNT( * )
----
-20

skipif mysql # not compatible
query I rowsort label-3674
SELECT - 21 + + COUNT ( * )
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-3675
SELECT 69, - COUNT( * ) AS col0
----
69
-1

skipif mysql # not compatible
query II rowsort label-3675
SELECT 69, - COUNT ( * ) AS col0
----
69
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3676
SELECT DISTINCT - + 49 - - - COUNT( * ) AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-3676
SELECT DISTINCT - + 49 - - - COUNT ( * ) AS col2
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3677
SELECT DISTINCT MAX( DISTINCT + 48 ) DIV - + 75
----
0

skipif mysql # not compatible
query I rowsort label-3677
SELECT DISTINCT MAX ( DISTINCT + 48 ) / - + 75
----
0

query I rowsort
SELECT 83 - - - 82 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3679
SELECT + COUNT( * ) + - + 19
----
-18

skipif mysql # not compatible
query I rowsort label-3679
SELECT + COUNT ( * ) + - + 19
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-3680
SELECT ALL - COUNT( * ), - 35 AS col2
----
-1
-35

skipif mysql # not compatible
query II rowsort label-3680
SELECT ALL - COUNT ( * ), - 35 AS col2
----
-1
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3681
SELECT ALL + COUNT( * ) DIV - + ( 55 ) * 16
----
0

skipif mysql # not compatible
query I rowsort label-3681
SELECT ALL + COUNT ( * ) / - + ( 55 ) * 16
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3682
SELECT DISTINCT SUM( ALL + + 39 )
----
39

skipif mysql # not compatible
query I rowsort label-3682
SELECT DISTINCT SUM ( ALL + + 39 )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3683
SELECT DISTINCT SUM( DISTINCT - 12 )
----
-12

skipif mysql # not compatible
query I rowsort label-3683
SELECT DISTINCT SUM ( DISTINCT - 12 )
----
-12

query I rowsort
SELECT ( 26 ) AS col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3685
SELECT DISTINCT + 89 * + 46 + COUNT( * ) col2
----
4095

skipif mysql # not compatible
query I rowsort label-3685
SELECT DISTINCT + 89 * + 46 + COUNT ( * ) col2
----
4095

query I rowsort
SELECT - 82 * + 56
----
-4592

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3687
SELECT - + CAST( - COUNT( * ) AS SIGNED ) + CAST( NULL AS SIGNED ) - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3687
SELECT - + CAST ( - COUNT ( * ) AS INTEGER ) + CAST ( NULL AS INTEGER ) - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3688
SELECT DISTINCT - COUNT( * ) * 50
----
-50

skipif mysql # not compatible
query I rowsort label-3688
SELECT DISTINCT - COUNT ( * ) * 50
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-3689
SELECT COUNT( * ) * - 6 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-3689
SELECT COUNT ( * ) * - 6 AS col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3690
SELECT - ( - COUNT( * ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-3690
SELECT - ( - COUNT ( * ) ) col1
----
1

query I rowsort
SELECT 7 + - 25
----
-18

query I rowsort
SELECT 32 * - - 81
----
2592

query II rowsort
SELECT 61 AS col1, + 3
----
61
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3694
SELECT 27 * + + COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-3694
SELECT 27 * + + COUNT ( * )
----
27

query I rowsort
SELECT ALL 75 + 79
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-3696
SELECT ALL COUNT( * ) * + - 31
----
-31

skipif mysql # not compatible
query I rowsort label-3696
SELECT ALL COUNT ( * ) * + - 31
----
-31

query I rowsort
SELECT + 94 * - + 37
----
-3478

onlyif mysql # aggregate syntax: 
query I rowsort label-3698
SELECT 97 + - COUNT( * )
----
96

skipif mysql # not compatible
query I rowsort label-3698
SELECT 97 + - COUNT ( * )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3699
SELECT DISTINCT - COUNT( * ) - - 62 * + 39
----
2417

skipif mysql # not compatible
query I rowsort label-3699
SELECT DISTINCT - COUNT ( * ) - - 62 * + 39
----
2417

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3700
SELECT DISTINCT + COUNT( * ) * + - 48 + CAST( NULL AS SIGNED ) + + 18 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3700
SELECT DISTINCT + COUNT ( * ) * + - 48 + CAST ( NULL AS INTEGER ) + + 18 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 51 * + 94 AS col0
----
4794

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3702
SELECT ALL + 43 DIV + + COUNT( * ) + 74
----
117

skipif mysql # not compatible
query I rowsort label-3702
SELECT ALL + 43 / + + COUNT ( * ) + 74
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-3703
SELECT DISTINCT + - COUNT( * ) * - 86 + - 76
----
10

skipif mysql # not compatible
query I rowsort label-3703
SELECT DISTINCT + - COUNT ( * ) * - 86 + - 76
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-3704
SELECT + COUNT( * ), - COALESCE ( - COUNT( * ), + COUNT( * ) - + 17 ) - + - 91 + + + 54 AS col0
----
1
146

skipif mysql # not compatible
query II rowsort label-3704
SELECT + COUNT ( * ), - COALESCE ( - COUNT ( * ), + COUNT ( * ) - + 17 ) - + - 91 + + + 54 AS col0
----
1
146

onlyif mysql # aggregate syntax: 
query I rowsort label-3705
SELECT ALL + - MIN( ALL - 74 ) * + COUNT( * )
----
74

skipif mysql # not compatible
query I rowsort label-3705
SELECT ALL + - MIN ( ALL - 74 ) * + COUNT ( * )
----
74

query II rowsort
SELECT + 95 AS col2, + 2 AS col0
----
95
2

query I rowsort
SELECT 96 + 5 * + 1
----
101

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3708
SELECT ALL CAST( NULL AS SIGNED ) * CAST( - 82 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3708
SELECT ALL CAST ( NULL AS INTEGER ) * CAST ( - 82 AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3709
SELECT 3 DIV 9 + 27 AS col2
----
27

skipif mysql # not compatible
query I rowsort label-3709
SELECT 3 / 9 + 27 AS col2
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3710
SELECT ALL ( + + 56 ) + + 13 DIV - 65 AS col0, - COUNT( * ) AS col1
----
56
-1

skipif mysql # not compatible
query II rowsort label-3710
SELECT ALL ( + + 56 ) + + 13 / - 65 AS col0, - COUNT ( * ) AS col1
----
56
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3711
SELECT ALL - + ( MIN( DISTINCT CAST( - - 29 AS SIGNED ) ) ) AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-3711
SELECT ALL - + ( MIN ( DISTINCT CAST ( - - 29 AS INTEGER ) ) ) AS col1
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3712
SELECT - CAST( NULL AS SIGNED ) + - MIN( 77 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3712
SELECT - CAST ( NULL AS INTEGER ) + - MIN ( 77 ) AS col1
----
NULL

query II rowsort
SELECT - 58, 49 AS col2
----
-58
49

query I rowsort
SELECT - 93 col1
----
-93

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3715
SELECT COUNT( CAST( NULL AS DECIMAL ) )
----
0

skipif mysql # not compatible
query I rowsort label-3715
SELECT COUNT ( CAST ( NULL AS REAL ) )
----
0

query I rowsort
SELECT ALL - + 19 AS col0
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3717
SELECT DISTINCT - + MAX( DISTINCT CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3717
SELECT DISTINCT - + MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT ALL - 96 col1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3719
SELECT ALL COUNT( * ) + - 17
----
-16

skipif mysql # not compatible
query I rowsort label-3719
SELECT ALL COUNT ( * ) + - 17
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-3720
SELECT - NULLIF ( COALESCE ( + COUNT( * ), - - 72 ), 90 )
----
-1

skipif mysql # not compatible
query I rowsort label-3720
SELECT - NULLIF ( COALESCE ( + COUNT ( * ), - - 72 ), 90 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3721
SELECT - COUNT( * ) + - + 82
----
-83

skipif mysql # not compatible
query I rowsort label-3721
SELECT - COUNT ( * ) + - + 82
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-3722
SELECT MAX( ALL - 58 ) AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-3722
SELECT MAX ( ALL - 58 ) AS col1
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3723
SELECT MAX( 23 )
----
23

skipif mysql # not compatible
query I rowsort label-3723
SELECT MAX ( 23 )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3724
SELECT ALL + ( MAX( 20 ) ) col0
----
20

skipif mysql # not compatible
query I rowsort label-3724
SELECT ALL + ( MAX ( 20 ) ) col0
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3725
SELECT + + CAST( - 16 AS SIGNED ) col2, + 88
----
-16
88

skipif mysql # not compatible
query II rowsort label-3725
SELECT + + CAST ( - 16 AS INTEGER ) col2, + 88
----
-16
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3726
SELECT 69 * + COUNT( * ) * - - 17 AS col2
----
1173

skipif mysql # not compatible
query I rowsort label-3726
SELECT 69 * + COUNT ( * ) * - - 17 AS col2
----
1173

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3727
SELECT 39 * - ( + COUNT( * ) ) DIV - COUNT( * ) - - 34, - 24 AS col2
----
73
-24

skipif mysql # not compatible
query II rowsort label-3727
SELECT 39 * - ( + COUNT ( * ) ) / - COUNT ( * ) - - 34, - 24 AS col2
----
73
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3728
SELECT DISTINCT + CAST( NULL AS SIGNED ) - - 54
----
NULL

skipif mysql # not compatible
query I rowsort label-3728
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - - 54
----
NULL

query I rowsort
SELECT ALL 20 * + + 96
----
1920

query I rowsort
SELECT - 88 - + + 99 * + 64
----
-6424

query I rowsort
SELECT 74 + 14 AS col0
----
88

query I rowsort
SELECT ALL - NULLIF ( + + 55, + 73 ) AS col2
----
-55

query I rowsort
SELECT ALL ( - 11 ) col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3734
SELECT DISTINCT - COUNT( - 45 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3734
SELECT DISTINCT - COUNT ( - 45 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3735
SELECT ALL - COUNT( * ) + 78
----
77

skipif mysql # not compatible
query I rowsort label-3735
SELECT ALL - COUNT ( * ) + 78
----
77

query I rowsort
SELECT - 22 * - 67
----
1474

onlyif mysql # aggregate syntax: 
query I rowsort label-3737
SELECT COUNT( DISTINCT - + 10 )
----
1

skipif mysql # not compatible
query I rowsort label-3737
SELECT COUNT ( DISTINCT - + 10 )
----
1

query I rowsort
SELECT - 53 + + + 48 AS col1
----
-5

query I rowsort
SELECT - + 36 AS col2
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3740
SELECT + + CAST( + 46 AS SIGNED ) * + + ( - 95 )
----
-4370

skipif mysql # not compatible
query I rowsort label-3740
SELECT + + CAST ( + 46 AS INTEGER ) * + + ( - 95 )
----
-4370

query I rowsort
SELECT + ( - 63 )
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-3742
SELECT ALL MIN( + - 32 ) + + ( + 4 )
----
-28

skipif mysql # not compatible
query I rowsort label-3742
SELECT ALL MIN ( + - 32 ) + + ( + 4 )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-3743
SELECT DISTINCT - MAX( ALL - + 27 ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-3743
SELECT DISTINCT - MAX ( ALL - + 27 ) AS col2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3744
SELECT DISTINCT - 68 + ( COUNT( * ) ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-3744
SELECT DISTINCT - 68 + ( COUNT ( * ) ) AS col1
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-3745
SELECT DISTINCT - NULLIF ( - COUNT( * ), COUNT( * ) * - + MIN( - 70 ) + + 40 )
----
1

skipif mysql # not compatible
query I rowsort label-3745
SELECT DISTINCT - NULLIF ( - COUNT ( * ), COUNT ( * ) * - + MIN ( - 70 ) + + 40 )
----
1

query I rowsort
SELECT ALL 60 col2
----
60

query I rowsort
SELECT ALL - 30 * 53
----
-1590

onlyif mysql # aggregate syntax: 
query I rowsort label-3748
SELECT MAX( - + 43 ) AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-3748
SELECT MAX ( - + 43 ) AS col1
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3749
SELECT ALL COUNT( * ) DIV + 38
----
0

skipif mysql # not compatible
query I rowsort label-3749
SELECT ALL COUNT ( * ) / + 38
----
0

query I rowsort
SELECT - ( - 77 ) AS col1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3751
SELECT DISTINCT 77 * - - MAX( DISTINCT + - 6 ) AS col0
----
-462

skipif mysql # not compatible
query I rowsort label-3751
SELECT DISTINCT 77 * - - MAX ( DISTINCT + - 6 ) AS col0
----
-462

onlyif mysql # aggregate syntax: 
query I rowsort label-3752
SELECT 4 + + COUNT( * ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-3752
SELECT 4 + + COUNT ( * ) AS col1
----
5

query I rowsort
SELECT ALL + 68 - - - 12
----
56

query I rowsort
SELECT 0 * 34
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3755
SELECT ALL MIN( ALL - 89 ) AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-3755
SELECT ALL MIN ( ALL - 89 ) AS col1
----
-89

query I rowsort
SELECT 74 * 62 AS col0
----
4588

onlyif mysql # aggregate syntax: 
query I rowsort label-3757
SELECT + + SUM( - 17 ) AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-3757
SELECT + + SUM ( - 17 ) AS col0
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-3758
SELECT + COUNT( - + ( + 80 ) ) col0, 52
----
1
52

skipif mysql # not compatible
query II rowsort label-3758
SELECT + COUNT ( - + ( + 80 ) ) col0, 52
----
1
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3759
SELECT ALL 15 + COUNT( * ) DIV - 54
----
15

skipif mysql # not compatible
query I rowsort label-3759
SELECT ALL 15 + COUNT ( * ) / - 54
----
15

query I rowsort
SELECT DISTINCT + 47 * - + 53 AS col2
----
-2491

onlyif mysql # aggregate syntax: 
query I rowsort label-3761
SELECT - - 25 + MAX( + - 98 ) AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-3761
SELECT - - 25 + MAX ( + - 98 ) AS col1
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-3762
SELECT + + COALESCE ( - COUNT( * ), - 1 * + 54 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3762
SELECT + + COALESCE ( - COUNT ( * ), - 1 * + 54 ) AS col1
----
-1

query I rowsort
SELECT + 75 * - 3
----
-225

onlyif mysql # aggregate syntax: 
query I rowsort label-3764
SELECT + ( COUNT( ALL 18 ) )
----
1

skipif mysql # not compatible
query I rowsort label-3764
SELECT + ( COUNT ( ALL 18 ) )
----
1

query I rowsort
SELECT + 55 * + 24
----
1320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3766
SELECT ALL CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + 90 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3766
SELECT ALL CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + 90 AS col2
----
NULL

query I rowsort
SELECT ALL + + 53 AS col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3768
SELECT COUNT( * ) - - - 49
----
-48

skipif mysql # not compatible
query I rowsort label-3768
SELECT COUNT ( * ) - - - 49
----
-48

query II rowsort
SELECT ALL - 30, + 70 * + 27 AS col2
----
-30
1890

onlyif mysql # aggregate syntax: 
query I rowsort label-3770
SELECT - - COALESCE ( + MAX( + 14 ), - 15 - - + 66 + + + ( + 50 ) )
----
14

skipif mysql # not compatible
query I rowsort label-3770
SELECT - - COALESCE ( + MAX ( + 14 ), - 15 - - + 66 + + + ( + 50 ) )
----
14

query II rowsort
SELECT DISTINCT - + 0 AS col2, 13 AS col1
----
0
13

query I rowsort
SELECT 94 * - - 28
----
2632

query I rowsort
SELECT DISTINCT 91 col2
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3774
SELECT DISTINCT NULLIF ( - COUNT( * ), CAST( NULL AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3774
SELECT DISTINCT NULLIF ( - COUNT ( * ), CAST ( NULL AS INTEGER ) )
----
-1

query I rowsort
SELECT 44 * - - ( + 34 )
----
1496

query I rowsort
SELECT DISTINCT + 58 * 26 * 56 - 87
----
84361

query I rowsort
SELECT - 61 * 55 AS col1
----
-3355

query I rowsort
SELECT ALL - 89 * + 69 + + 93
----
-6048

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3779
SELECT ALL + - ( COUNT( * ) ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3779
SELECT ALL + - ( COUNT ( * ) ) * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 65 col0
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3781
SELECT CAST( - 14 AS SIGNED )
----
-14

skipif mysql # not compatible
query I rowsort label-3781
SELECT CAST ( - 14 AS INTEGER )
----
-14

query I rowsort
SELECT ALL + 93 col2
----
93

query I rowsort
SELECT + ( + 27 ) col2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3784
SELECT + COUNT( * ) * - 1
----
-1

skipif mysql # not compatible
query I rowsort label-3784
SELECT + COUNT ( * ) * - 1
----
-1

query I rowsort
SELECT + ( - 86 )
----
-86

onlyif mysql # DIV for integer division: 
query II rowsort label-3786
SELECT ALL - 48 DIV + 80 AS col0, 65
----
0
65

skipif mysql # not compatible
query II rowsort label-3786
SELECT ALL - 48 / + 80 AS col0, 65
----
0
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3787
SELECT ALL - COUNT( * ) * + 56
----
-56

skipif mysql # not compatible
query I rowsort label-3787
SELECT ALL - COUNT ( * ) * + 56
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3788
SELECT ALL - ( - CAST( + 90 AS SIGNED ) ) col2
----
90

skipif mysql # not compatible
query I rowsort label-3788
SELECT ALL - ( - CAST ( + 90 AS INTEGER ) ) col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3789
SELECT DISTINCT - COUNT( + 44 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-3789
SELECT DISTINCT - COUNT ( + 44 ) col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3790
SELECT COUNT( * ) * - + 26
----
-26

skipif mysql # not compatible
query I rowsort label-3790
SELECT COUNT ( * ) * - + 26
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3791
SELECT - 19 * - + 80 + + - 83 + - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3791
SELECT - 19 * - + 80 + + - 83 + - CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT ALL 15 * - 97
----
-1455

query I rowsort
SELECT - ( + 16 ) AS col1
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-3794
SELECT - COUNT( * ) AS col2, + COUNT( * )
----
-1
1

skipif mysql # not compatible
query II rowsort label-3794
SELECT - COUNT ( * ) AS col2, + COUNT ( * )
----
-1
1

query I rowsort
SELECT NULLIF ( 6, + - AVG ( 73 ) ) * - - 7 AS col1
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-3796
SELECT COUNT( * ) AS col1, 90 + 60 AS col2
----
1
150

skipif mysql # not compatible
query II rowsort label-3796
SELECT COUNT ( * ) AS col1, 90 + 60 AS col2
----
1
150

query I rowsort
SELECT + + 54 * 12
----
648

query I rowsort
SELECT + 79 * + 38 AS col0
----
3002

query I rowsort
SELECT ALL 24 col0
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3800
SELECT + 60 - + CAST( - - 35 AS SIGNED ) + - 83 AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-3800
SELECT + 60 - + CAST ( - - 35 AS INTEGER ) + - 83 AS col0
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3801
SELECT + 89 * + + CAST( 90 AS SIGNED ) AS col2
----
8010

skipif mysql # not compatible
query I rowsort label-3801
SELECT + 89 * + + CAST ( 90 AS INTEGER ) AS col2
----
8010

onlyif mysql # aggregate syntax: 
query I rowsort label-3802
SELECT - COUNT( * ) + + 52 AS col1
----
51

skipif mysql # not compatible
query I rowsort label-3802
SELECT - COUNT ( * ) + + 52 AS col1
----
51

query I rowsort
SELECT - + 72
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3804
SELECT - ( + 2 ) + - 20 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3804
SELECT - ( + 2 ) + - 20 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3805
SELECT - MAX( ALL 30 ) col2
----
-30

skipif mysql # not compatible
query I rowsort label-3805
SELECT - MAX ( ALL 30 ) col2
----
-30

query I rowsort
SELECT + + 3 col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3807
SELECT + - MIN( ALL 83 ) AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-3807
SELECT + - MIN ( ALL 83 ) AS col1
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-3808
SELECT COUNT( * ) * - 79 AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-3808
SELECT COUNT ( * ) * - 79 AS col0
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-3809
SELECT 54 * + COUNT( * )
----
54

skipif mysql # not compatible
query I rowsort label-3809
SELECT 54 * + COUNT ( * )
----
54

query I rowsort
SELECT ( + 45 ) * - ( - - ( + 53 ) ) AS col1
----
-2385

query I rowsort
SELECT ALL - - 84 AS col0
----
84

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3812
SELECT CAST( NULL AS DECIMAL ) * 74 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3812
SELECT CAST ( NULL AS REAL ) * 74 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 58 col1
----
58

query II rowsort
SELECT 17 AS col2, - 43
----
17
-43

query I rowsort
SELECT DISTINCT + + 51 AS col2
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3816
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * 20
----
NULL

skipif mysql # not compatible
query I rowsort label-3816
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * 20
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3817
SELECT ALL MIN( ALL - + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3817
SELECT ALL MIN ( ALL - + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3818
SELECT MAX( DISTINCT - - 75 ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-3818
SELECT MAX ( DISTINCT - - 75 ) AS col0
----
75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3819
SELECT + CAST( NULL AS DECIMAL ) - 90
----
NULL

skipif mysql # not compatible
query I rowsort label-3819
SELECT + CAST ( NULL AS REAL ) - 90
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3820
SELECT ALL MAX( + 84 )
----
84

skipif mysql # not compatible
query I rowsort label-3820
SELECT ALL MAX ( + 84 )
----
84

query I rowsort
SELECT - ( + 26 ) AS col1
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3822
SELECT ALL + + CAST( NULL AS SIGNED ) AS col1, + 84 AS col0
----
NULL
84

skipif mysql # not compatible
query II rowsort label-3822
SELECT ALL + + CAST ( NULL AS INTEGER ) AS col1, + 84 AS col0
----
NULL
84

query II rowsort
SELECT 67 + + 91 col1, + 1
----
158
1

query I rowsort
SELECT 57 + + - 67
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-3825
SELECT 47 DIV 30
----
1

skipif mysql # not compatible
query I rowsort label-3825
SELECT 47 / 30
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3826
SELECT ALL COUNT( * ) - + ( - COUNT( * ) ) - + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-3826
SELECT ALL COUNT ( * ) - + ( - COUNT ( * ) ) - + + COUNT ( * )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3827
SELECT DISTINCT CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) / 43
----
NULL

skipif mysql # not compatible
query I rowsort label-3827
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) / 43
----
NULL

query I rowsort
SELECT DISTINCT + 58 * - 68
----
-3944

query I rowsort
SELECT 82 - - - 35 AS col2
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3830
SELECT ALL + 77 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3830
SELECT ALL + 77 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL + 41 * - ( - 30 )
----
1230

onlyif mysql # aggregate syntax: 
query I rowsort label-3832
SELECT + - 79 * + MAX( DISTINCT 63 ) - - 91 AS col1
----
-4886

skipif mysql # not compatible
query I rowsort label-3832
SELECT + - 79 * + MAX ( DISTINCT 63 ) - - 91 AS col1
----
-4886

onlyif mysql # aggregate syntax: 
query I rowsort label-3833
SELECT DISTINCT - COUNT( * ) * + - COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3833
SELECT DISTINCT - COUNT ( * ) * + - COUNT ( * ) AS col2
----
1

query I rowsort
SELECT DISTINCT + 31 AS col0
----
31

query I rowsort
SELECT COALESCE ( 86, + 10 ) AS col2
----
86

query I rowsort
SELECT DISTINCT 48 * + 66
----
3168

onlyif mysql # aggregate syntax: 
query II rowsort label-3837
SELECT COUNT( ALL + 89 ) AS col2, + 70
----
1
70

skipif mysql # not compatible
query II rowsort label-3837
SELECT COUNT ( ALL + 89 ) AS col2, + 70
----
1
70

query I rowsort
SELECT - 56 * + - 58 + 22
----
3270

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3839
SELECT - 47 * + - 41 DIV COUNT( * )
----
1927

skipif mysql # not compatible
query I rowsort label-3839
SELECT - 47 * + - 41 / COUNT ( * )
----
1927

onlyif mysql # aggregate syntax: 
query I rowsort label-3840
SELECT - + 58 + + COUNT( * ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-3840
SELECT - + 58 + + COUNT ( * ) AS col1
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-3841
SELECT - SUM( 55 )
----
-55

skipif mysql # not compatible
query I rowsort label-3841
SELECT - SUM ( 55 )
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-3842
SELECT - - ( - - MIN( DISTINCT - 63 ) )
----
-63

skipif mysql # not compatible
query I rowsort label-3842
SELECT - - ( - - MIN ( DISTINCT - 63 ) )
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3843
SELECT + SUM( ALL - - 52 ) DIV COUNT( * ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-3843
SELECT + SUM ( ALL - - 52 ) / COUNT ( * ) AS col1
----
52

query I rowsort
SELECT + ( 38 )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3845
SELECT + SUM( - 71 )
----
-71

skipif mysql # not compatible
query I rowsort label-3845
SELECT + SUM ( - 71 )
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3846
SELECT CAST( - ( + + COUNT( * ) ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-3846
SELECT CAST ( - ( + + COUNT ( * ) ) AS INTEGER )
----
-1

query I rowsort
SELECT ALL + ( COALESCE ( - 40, 81 ) ) col0
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3848
SELECT + CAST( 47 AS SIGNED ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-3848
SELECT + CAST ( 47 AS INTEGER ) AS col1
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-3849
SELECT ALL 36 DIV 5 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-3849
SELECT ALL 36 / 5 AS col2
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3850
SELECT + COUNT( * ) DIV - + 75
----
0

skipif mysql # not compatible
query I rowsort label-3850
SELECT + COUNT ( * ) / - + 75
----
0

query I rowsort
SELECT + ( + 53 )
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3852
SELECT ( - CAST( COUNT( * ) AS SIGNED ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3852
SELECT ( - CAST ( COUNT ( * ) AS INTEGER ) ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3853
SELECT + + 53 DIV + - 71 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3853
SELECT + + 53 / + - 71 AS col2
----
0

query I rowsort
SELECT - - ( - + 91 )
----
-91

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3855
SELECT ALL SUM( DISTINCT + CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3855
SELECT ALL SUM ( DISTINCT + CAST ( NULL AS REAL ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3856
SELECT 2 * + - COUNT( * ), MAX( ALL 50 ) * - COUNT( * ) AS col0
----
-2
-50

skipif mysql # not compatible
query II rowsort label-3856
SELECT 2 * + - COUNT ( * ), MAX ( ALL 50 ) * - COUNT ( * ) AS col0
----
-2
-50

onlyif mysql # DIV for integer division: 
query II rowsort label-3857
SELECT ALL + 18 DIV + + 97, 33 AS col2
----
0
33

skipif mysql # not compatible
query II rowsort label-3857
SELECT ALL + 18 / + + 97, 33 AS col2
----
0
33

onlyif mysql # aggregate syntax: 
query II rowsort label-3858
SELECT 44 col1, - COUNT( * )
----
44
-1

skipif mysql # not compatible
query II rowsort label-3858
SELECT 44 col1, - COUNT ( * )
----
44
-1

query I rowsort
SELECT ALL + 82 * 36
----
2952

query I rowsort
SELECT ALL 34 * 67
----
2278

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3861
SELECT + SUM( ALL + 63 ) AS col2, + CAST( NULL AS SIGNED ) AS col1
----
63
NULL

skipif mysql # not compatible
query II rowsort label-3861
SELECT + SUM ( ALL + 63 ) AS col2, + CAST ( NULL AS INTEGER ) AS col1
----
63
NULL

query I rowsort
SELECT + + 20 * - 36
----
-720

query I rowsort
SELECT 77 col2
----
77

query I rowsort
SELECT + 19 + + + 10 AS col1
----
29

query I rowsort
SELECT ALL 7 * + 81 AS col1
----
567

query I rowsort
SELECT - ( - + 97 )
----
97

query I rowsort
SELECT + + ( + 33 ) col2
----
33

query I rowsort
SELECT ALL - - 11 AS col1
----
11

query I rowsort
SELECT + 17 * COALESCE ( + + 93, - 95 ) AS col0
----
1581

onlyif mysql # aggregate syntax: 
query I rowsort label-3870
SELECT DISTINCT - COUNT( * ) * + 48 AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-3870
SELECT DISTINCT - COUNT ( * ) * + 48 AS col1
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3871
SELECT ALL - + ( + CAST( + - 69 AS SIGNED ) ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-3871
SELECT ALL - + ( + CAST ( + - 69 AS INTEGER ) ) AS col1
----
69

query I rowsort
SELECT - 9 col2
----
-9

query I rowsort
SELECT + - 0 AS col0
----
0

query I rowsort
SELECT DISTINCT + 87 + 56 AS col2
----
143

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3875
SELECT DISTINCT - MAX( - 81 ) DIV + 5
----
16

skipif mysql # not compatible
query I rowsort label-3875
SELECT DISTINCT - MAX ( - 81 ) / + 5
----
16

query II rowsort
SELECT ALL 15 AS col1, + 58
----
15
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3877
SELECT 16 + + COUNT( * ) + + 7 AS col2
----
24

skipif mysql # not compatible
query I rowsort label-3877
SELECT 16 + + COUNT ( * ) + + 7 AS col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3878
SELECT 32 + - + ( MIN( + - 3 ) ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-3878
SELECT 32 + - + ( MIN ( + - 3 ) ) AS col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3879
SELECT DISTINCT - COUNT( ALL - 58 )
----
-1

skipif mysql # not compatible
query I rowsort label-3879
SELECT DISTINCT - COUNT ( ALL - 58 )
----
-1

query I rowsort
SELECT ALL 96 * - + 82 AS col2
----
-7872

query I rowsort
SELECT ALL 4 col2
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-3882
SELECT ALL + 33 DIV - 74 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3882
SELECT ALL + 33 / - 74 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3883
SELECT DISTINCT - 30 * COUNT( * )
----
-30

skipif mysql # not compatible
query I rowsort label-3883
SELECT DISTINCT - 30 * COUNT ( * )
----
-30

query I rowsort
SELECT + + ( 72 ) col0
----
72

query II rowsort
SELECT + 67 AS col0, 91
----
67
91

onlyif mysql # aggregate syntax: 
query II rowsort label-3886
SELECT - COUNT( * ) AS col0, 78 AS col0
----
-1
78

skipif mysql # not compatible
query II rowsort label-3886
SELECT - COUNT ( * ) AS col0, 78 AS col0
----
-1
78

query I rowsort
SELECT + ( - + 88 ) AS col0
----
-88

query I rowsort
SELECT - ( 65 ) AS col0
----
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-3889
SELECT + 65 DIV + - 50
----
-1

skipif mysql # not compatible
query I rowsort label-3889
SELECT + 65 / + - 50
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3890
SELECT DISTINCT ( 35 ) + - MIN( ALL + - 91 )
----
126

skipif mysql # not compatible
query I rowsort label-3890
SELECT DISTINCT ( 35 ) + - MIN ( ALL + - 91 )
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-3891
SELECT - - 86 * ( COUNT( * ) ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-3891
SELECT - - 86 * ( COUNT ( * ) ) AS col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3892
SELECT ALL - COUNT( * ) * - 13 * + 74
----
962

skipif mysql # not compatible
query I rowsort label-3892
SELECT ALL - COUNT ( * ) * - 13 * + 74
----
962

query I rowsort
SELECT DISTINCT - ( 89 ) AS col0
----
-89

query I rowsort
SELECT 26 * - 62
----
-1612

query I rowsort
SELECT DISTINCT - ( - 41 ) col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3896
SELECT ALL + 90 - - - COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-3896
SELECT ALL + 90 - - - COUNT ( * )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3897
SELECT 77 * - COUNT( * )
----
-77

skipif mysql # not compatible
query I rowsort label-3897
SELECT 77 * - COUNT ( * )
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3898
SELECT DISTINCT ( - COUNT( * ) ) col1, SUM( ALL + - 23 ) DIV + COUNT( * ) AS col0
----
-1
-23

skipif mysql # not compatible
query II rowsort label-3898
SELECT DISTINCT ( - COUNT ( * ) ) col1, SUM ( ALL + - 23 ) / + COUNT ( * ) AS col0
----
-1
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3899
SELECT CASE + - 15 WHEN - COUNT( * ) THEN NULL ELSE + 99 END
----
99

skipif mysql # not compatible
query I rowsort label-3899
SELECT CASE + - 15 WHEN - COUNT ( * ) THEN NULL ELSE + 99 END
----
99

query I rowsort
SELECT - 53 + - ( - 85 ) col0
----
32

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3901
SELECT - ( - - CAST( NULL AS DECIMAL ) ) + + 13 col0, + 96 + - ( + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ) AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3901
SELECT - ( - - CAST ( NULL AS REAL ) ) + + 13 col0, + 96 + - ( + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col2
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3902
SELECT DISTINCT - COALESCE ( + 73, COUNT( * ) ) * - ( 2 )
----
146

skipif mysql # not compatible
query I rowsort label-3902
SELECT DISTINCT - COALESCE ( + 73, COUNT ( * ) ) * - ( 2 )
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-3903
SELECT ALL + MAX( 24 ) - 2 AS col2
----
22

skipif mysql # not compatible
query I rowsort label-3903
SELECT ALL + MAX ( 24 ) - 2 AS col2
----
22

query I rowsort
SELECT ALL ( 27 ) AS col1
----
27

query I rowsort
SELECT ALL ( - 79 ) AS col1
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-3906
SELECT + MAX( DISTINCT - 41 ) * + 8
----
-328

skipif mysql # not compatible
query I rowsort label-3906
SELECT + MAX ( DISTINCT - 41 ) * + 8
----
-328

onlyif mysql # aggregate syntax: 
query I rowsort label-3907
SELECT + 66 - - 32 * - COUNT( * )
----
34

skipif mysql # not compatible
query I rowsort label-3907
SELECT + 66 - - 32 * - COUNT ( * )
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3908
SELECT CAST( - COUNT( * ) AS SIGNED ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3908
SELECT CAST ( - COUNT ( * ) AS INTEGER ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3909
SELECT ALL + 12 * COUNT( * )
----
12

skipif mysql # not compatible
query I rowsort label-3909
SELECT ALL + 12 * COUNT ( * )
----
12

query I rowsort
SELECT ALL + - 72 AS col1
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-3911
SELECT ALL COUNT( 46 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3911
SELECT ALL COUNT ( 46 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3912
SELECT DISTINCT + MIN( 89 ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3912
SELECT DISTINCT + MIN ( 89 ) * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 47 + + ( 57 )
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-3914
SELECT 55 + - 23 + COUNT( * ) * + 96
----
128

skipif mysql # not compatible
query I rowsort label-3914
SELECT 55 + - 23 + COUNT ( * ) * + 96
----
128

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3915
SELECT ALL - CAST( NULL AS DECIMAL ) + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3915
SELECT ALL - CAST ( NULL AS REAL ) + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 35 + - 2 AS col1
----
33

query I rowsort
SELECT 45 + - 87
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3918
SELECT NULLIF ( - ( 36 ), 26 ) * COUNT( * ) + COUNT( * ) col0
----
-35

skipif mysql # not compatible
query I rowsort label-3918
SELECT NULLIF ( - ( 36 ), 26 ) * COUNT ( * ) + COUNT ( * ) col0
----
-35

query I rowsort
SELECT ALL - 85 col0
----
-85

query I rowsort
SELECT 0 * - 48 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3921
SELECT DISTINCT COUNT( ALL - 68 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3921
SELECT DISTINCT COUNT ( ALL - 68 ) AS col1
----
1

query I rowsort
SELECT DISTINCT 97 col2
----
97

query I rowsort
SELECT + - 38 AS col1
----
-38

query I rowsort
SELECT ALL + ( + + 3 )
----
3

query I rowsort
SELECT + 61 * - + ( - 18 ) AS col0
----
1098

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3926
SELECT DISTINCT MIN( - 97 ) * - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3926
SELECT DISTINCT MIN ( - 97 ) * - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3927
SELECT - MIN( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3927
SELECT - MIN ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3928
SELECT ( - ( + + ( COUNT( DISTINCT 5 ) ) ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3928
SELECT ( - ( + + ( COUNT ( DISTINCT 5 ) ) ) ) AS col1
----
-1

query I rowsort
SELECT + NULLIF ( - 39, + + 75 ) AS col1
----
-39

query I rowsort
SELECT - - 8 + - 33
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-3931
SELECT ( + - ( + + NULLIF ( 5, COUNT( * ) / - 66 ) ) )
----
-5

skipif mysql # not compatible
query I rowsort label-3931
SELECT ( + - ( + + NULLIF ( 5, COUNT ( * ) / - 66 ) ) )
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3932
SELECT CAST( - + 53 AS SIGNED )
----
-53

skipif mysql # not compatible
query I rowsort label-3932
SELECT CAST ( - + 53 AS INTEGER )
----
-53

query I rowsort
SELECT - 1 * + + 64 AS col1
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-3934
SELECT + ( - 46 ) * - ( COUNT( * ) ) - + 62 AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-3934
SELECT + ( - 46 ) * - ( COUNT ( * ) ) - + 62 AS col2
----
-16

query I rowsort
SELECT + 94 + + + 15 AS col1
----
109

query I rowsort
SELECT + 11 * + - 41
----
-451

query I rowsort
SELECT - ( 26 ) col1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-3938
SELECT COUNT( * ) - - 6
----
7

skipif mysql # not compatible
query I rowsort label-3938
SELECT COUNT ( * ) - - 6
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3939
SELECT ALL - - COUNT( - 33 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3939
SELECT ALL - - COUNT ( - 33 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3940
SELECT SUM( DISTINCT + 3 ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-3940
SELECT SUM ( DISTINCT + 3 ) AS col2
----
3

query II rowsort
SELECT 3 col2, + 67 AS col1
----
3
67

query I rowsort
SELECT + - 54
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3943
SELECT DISTINCT + 14 * - + CAST( NULL AS SIGNED ), MAX( ALL - + 81 ) * - 97 * + + CAST( NULL AS SIGNED ) AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3943
SELECT DISTINCT + 14 * - + CAST ( NULL AS INTEGER ), MAX ( ALL - + 81 ) * - 97 * + + CAST ( NULL AS INTEGER ) AS col0
----
NULL
NULL

query I rowsort
SELECT - + ( 3 ) * 75 AS col0
----
-225

onlyif mysql # aggregate syntax: 
query I rowsort label-3945
SELECT COUNT( ALL - + 35 ) * - 48 * 21 + COUNT( * ) + COUNT( * )
----
-1006

skipif mysql # not compatible
query I rowsort label-3945
SELECT COUNT ( ALL - + 35 ) * - 48 * 21 + COUNT ( * ) + COUNT ( * )
----
-1006

query I rowsort
SELECT + ( + + 88 ) AS col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3947
SELECT ALL COUNT( * ) * 92 + 38
----
130

skipif mysql # not compatible
query I rowsort label-3947
SELECT ALL COUNT ( * ) * 92 + 38
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-3948
SELECT ALL SUM( DISTINCT + + 44 )
----
44

skipif mysql # not compatible
query I rowsort label-3948
SELECT ALL SUM ( DISTINCT + + 44 )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3949
SELECT ALL MIN( + - 67 ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-3949
SELECT ALL MIN ( + - 67 ) AS col2
----
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-3950
SELECT + ( - 22 ) + + + 9 AS col0, ( + 51 ) + - COUNT( * )
----
-13
50

skipif mysql # not compatible
query II rowsort label-3950
SELECT + ( - 22 ) + + + 9 AS col0, ( + 51 ) + - COUNT ( * )
----
-13
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3951
SELECT - 19 * COUNT( * ) * COUNT( * ) AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-3951
SELECT - 19 * COUNT ( * ) * COUNT ( * ) AS col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-3952
SELECT + MIN( DISTINCT - 63 ) * - 96 AS col2
----
6048

skipif mysql # not compatible
query I rowsort label-3952
SELECT + MIN ( DISTINCT - 63 ) * - 96 AS col2
----
6048

query I rowsort
SELECT - + 14 AS col2
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3954
SELECT COUNT( * ) * - 44 AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-3954
SELECT COUNT ( * ) * - 44 AS col1
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3955
SELECT 10 DIV + - COUNT( * ) col2
----
-10

skipif mysql # not compatible
query I rowsort label-3955
SELECT 10 / + - COUNT ( * ) col2
----
-10

query I rowsort
SELECT ALL - ( - - 41 )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-3957
SELECT + SUM( ALL + - 60 )
----
-60

skipif mysql # not compatible
query I rowsort label-3957
SELECT + SUM ( ALL + - 60 )
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3958
SELECT + CAST( NULL AS SIGNED ) * + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3958
SELECT + CAST ( NULL AS INTEGER ) * + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3959
SELECT SUM( ALL - 93 ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-3959
SELECT SUM ( ALL - 93 ) AS col0
----
-93

query I rowsort
SELECT - 12 + 0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-3961
SELECT + NULLIF ( - + MIN( ALL - 67 ), + 60 ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-3961
SELECT + NULLIF ( - + MIN ( ALL - 67 ), + 60 ) AS col2
----
67

query I rowsort
SELECT DISTINCT + ( - 12 )
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3963
SELECT ALL ( + CAST( - COUNT( * ) AS SIGNED ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3963
SELECT ALL ( + CAST ( - COUNT ( * ) AS INTEGER ) ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3964
SELECT CAST( - - ( + 3 ) AS SIGNED )
----
3

skipif mysql # not compatible
query I rowsort label-3964
SELECT CAST ( - - ( + 3 ) AS INTEGER )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3965
SELECT ALL + AVG ( DISTINCT - 61 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3965
SELECT ALL + AVG ( DISTINCT - 61 ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3966
SELECT SUM( DISTINCT - ( - + 74 ) ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-3966
SELECT SUM ( DISTINCT - ( - + 74 ) ) AS col0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3967
SELECT ALL COUNT( * ) * 66
----
66

skipif mysql # not compatible
query I rowsort label-3967
SELECT ALL COUNT ( * ) * 66
----
66

query I rowsort
SELECT - 65 * + 90
----
-5850

query I rowsort
SELECT - 29 + - 48
----
-77

query I rowsort
SELECT + 76 * + 72
----
5472

onlyif mysql # DIV for integer division: 
query I rowsort label-3971
SELECT + 93 DIV 87 col2
----
1

skipif mysql # not compatible
query I rowsort label-3971
SELECT + 93 / 87 col2
----
1

query I rowsort
SELECT ALL + + ( - - 27 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3973
SELECT + + MIN( ALL 85 )
----
85

skipif mysql # not compatible
query I rowsort label-3973
SELECT + + MIN ( ALL 85 )
----
85

query I rowsort
SELECT DISTINCT + ( + ( - 48 ) )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-3975
SELECT ALL + 82 * 89 + + + COUNT( * )
----
7299

skipif mysql # not compatible
query I rowsort label-3975
SELECT ALL + 82 * 89 + + + COUNT ( * )
----
7299

onlyif mysql # aggregate syntax: 
query II rowsort label-3976
SELECT ALL 46 AS col2, COUNT( * )
----
46
1

skipif mysql # not compatible
query II rowsort label-3976
SELECT ALL 46 AS col2, COUNT ( * )
----
46
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3977
SELECT - 35 - ( MIN( DISTINCT + - 18 ) ) + 91 AS col0
----
74

skipif mysql # not compatible
query I rowsort label-3977
SELECT - 35 - ( MIN ( DISTINCT + - 18 ) ) + 91 AS col0
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3978
SELECT - ( - COUNT( CAST( NULL AS SIGNED ) ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3978
SELECT - ( - COUNT ( CAST ( NULL AS INTEGER ) ) ) AS col1
----
0

query II rowsort
SELECT - 68 AS col1, + 7
----
-68
7

query I rowsort
SELECT + + ( + - 42 )
----
-42

query I rowsort
SELECT 45 + - + 16 AS col2
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-3982
SELECT DISTINCT 25 DIV - 93 * - + 47 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3982
SELECT DISTINCT 25 / - 93 * - + 47 AS col0
----
0

query I rowsort
SELECT ALL - 11 col0
----
-11

onlyif mysql # DIV for integer division: 
query II rowsort label-3984
SELECT 32 AS col0, 78 DIV - - 91 + 90 AS col1
----
32
90

skipif mysql # not compatible
query II rowsort label-3984
SELECT 32 AS col0, 78 / - - 91 + 90 AS col1
----
32
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3985
SELECT ALL MAX( - 25 )
----
-25

skipif mysql # not compatible
query I rowsort label-3985
SELECT ALL MAX ( - 25 )
----
-25

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3986
SELECT MAX( CAST( NULL AS DECIMAL ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3986
SELECT MAX ( CAST ( NULL AS REAL ) ) col0
----
NULL

query I rowsort
SELECT - ( 0 )
----
0

query I rowsort
SELECT + + ( + 6 ) AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3989
SELECT ALL - - 40 * - MIN( DISTINCT - + 58 ) + - - COUNT( * ) AS col2
----
2321

skipif mysql # not compatible
query I rowsort label-3989
SELECT ALL - - 40 * - MIN ( DISTINCT - + 58 ) + - - COUNT ( * ) AS col2
----
2321

onlyif mysql # aggregate syntax: 
query I rowsort label-3990
SELECT COUNT( - - 54 )
----
1

skipif mysql # not compatible
query I rowsort label-3990
SELECT COUNT ( - - 54 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3991
SELECT + ( ( + 78 ) ) * - CAST( NULL AS DECIMAL ) + + 69 + - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3991
SELECT + ( ( + 78 ) ) * - CAST ( NULL AS REAL ) + + 69 + - + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3992
SELECT ALL MAX( DISTINCT - 21 )
----
-21

skipif mysql # not compatible
query I rowsort label-3992
SELECT ALL MAX ( DISTINCT - 21 )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-3993
SELECT DISTINCT - SUM( ALL + 74 ) AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-3993
SELECT DISTINCT - SUM ( ALL + 74 ) AS col1
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-3994
SELECT DISTINCT + + 48 * - COUNT( * ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-3994
SELECT DISTINCT + + 48 * - COUNT ( * ) AS col2
----
-48

query II rowsort
SELECT ALL + 29, - 46 AS col1
----
29
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-3996
SELECT ALL + - COUNT( * ) * - 41 * 68
----
2788

skipif mysql # not compatible
query I rowsort label-3996
SELECT ALL + - COUNT ( * ) * - 41 * 68
----
2788

query I rowsort
SELECT DISTINCT + 64 * ( + - 94 ) + + - 64 AS col1
----
-6080

onlyif mysql # aggregate syntax: 
query I rowsort label-3998
SELECT 62 * + ( + COUNT( * ) )
----
62

skipif mysql # not compatible
query I rowsort label-3998
SELECT 62 * + ( + COUNT ( * ) )
----
62

query I rowsort
SELECT 52 * 47 AS col0
----
2444

onlyif mysql # aggregate syntax: 
query I rowsort label-4000
SELECT ALL 94 + COUNT( * ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-4000
SELECT ALL 94 + COUNT ( * ) AS col0
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4001
SELECT 90 / - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4001
SELECT 90 / - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL + + 76 AS col1
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4003
SELECT - + COUNT( * ) * - COUNT( * ) + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4003
SELECT - + COUNT ( * ) * - COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL + 10 col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4005
SELECT ALL - COUNT( * ) + + 19 col1
----
18

skipif mysql # not compatible
query I rowsort label-4005
SELECT ALL - COUNT ( * ) + + 19 col1
----
18

query I rowsort
SELECT DISTINCT ( - 32 )
----
-32

query II rowsort
SELECT ALL 19 + - 52 + 63, 34 AS col1
----
30
34

query I rowsort
SELECT + ( 28 ) AS col1
----
28

query I rowsort
SELECT ( + 63 )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4010
SELECT DISTINCT + MIN( DISTINCT 34 ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-4010
SELECT DISTINCT + MIN ( DISTINCT 34 ) AS col2
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4011
SELECT DISTINCT - 77 DIV - COUNT( * ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-4011
SELECT DISTINCT - 77 / - COUNT ( * ) AS col1
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4012
SELECT DISTINCT - COUNT( * ) + + 47 + + + CAST( COUNT( DISTINCT 73 ) AS SIGNED )
----
47

skipif mysql # not compatible
query I rowsort label-4012
SELECT DISTINCT - COUNT ( * ) + + 47 + + + CAST ( COUNT ( DISTINCT 73 ) AS INTEGER )
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4013
SELECT 77 * - CAST( + 93 AS SIGNED )
----
-7161

skipif mysql # not compatible
query I rowsort label-4013
SELECT 77 * - CAST ( + 93 AS INTEGER )
----
-7161

onlyif mysql # aggregate syntax: 
query I rowsort label-4014
SELECT ALL COUNT( * ) * + 87 AS col1
----
87

skipif mysql # not compatible
query I rowsort label-4014
SELECT ALL COUNT ( * ) * + 87 AS col1
----
87

query I rowsort
SELECT 28 * + + 66 AS col2
----
1848

query I rowsort
SELECT ALL - 45 col0
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4017
SELECT - COUNT( * ) - + CAST( + 79 AS SIGNED )
----
-80

skipif mysql # not compatible
query I rowsort label-4017
SELECT - COUNT ( * ) - + CAST ( + 79 AS INTEGER )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4018
SELECT ALL + + MAX( ( + + 26 ) ) * + 38 * + + COUNT( * )
----
988

skipif mysql # not compatible
query I rowsort label-4018
SELECT ALL + + MAX ( ( + + 26 ) ) * + 38 * + + COUNT ( * )
----
988

onlyif mysql # aggregate syntax: 
query II rowsort label-4019
SELECT COUNT( * ) AS col2, - 23
----
1
-23

skipif mysql # not compatible
query II rowsort label-4019
SELECT COUNT ( * ) AS col2, - 23
----
1
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-4020
SELECT - COUNT( * ) AS col2, 38 col1
----
-1
38

skipif mysql # not compatible
query II rowsort label-4020
SELECT - COUNT ( * ) AS col2, 38 col1
----
-1
38

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4021
SELECT ALL - 86 DIV CAST( - 87 AS SIGNED ) col1
----
0

skipif mysql # not compatible
query I rowsort label-4021
SELECT ALL - 86 / CAST ( - 87 AS INTEGER ) col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4022
SELECT ALL SUM( - - 82 )
----
82

skipif mysql # not compatible
query I rowsort label-4022
SELECT ALL SUM ( - - 82 )
----
82

query II rowsort
SELECT ( 66 ) AS col1, + 73 AS col2
----
66
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4024
SELECT ALL + + ( - + 68 ) * - COUNT( * ) + - - 6
----
74

skipif mysql # not compatible
query I rowsort label-4024
SELECT ALL + + ( - + 68 ) * - COUNT ( * ) + - - 6
----
74

query I rowsort
SELECT + - 98 AS col0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4026
SELECT SUM( ALL + + 16 ) col0
----
16

skipif mysql # not compatible
query I rowsort label-4026
SELECT SUM ( ALL + + 16 ) col0
----
16

query I rowsort
SELECT DISTINCT 0 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4028
SELECT ALL + - COUNT( * ) + - 51
----
-52

skipif mysql # not compatible
query I rowsort label-4028
SELECT ALL + - COUNT ( * ) + - 51
----
-52

query I rowsort
SELECT ALL - - 57 AS col2
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4030
SELECT COUNT( * ) + - COUNT( * ) DIV + ( - + 91 )
----
1

skipif mysql # not compatible
query I rowsort label-4030
SELECT COUNT ( * ) + - COUNT ( * ) / + ( - + 91 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4031
SELECT SUM( ALL 73 )
----
73

skipif mysql # not compatible
query I rowsort label-4031
SELECT SUM ( ALL 73 )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4032
SELECT ALL COUNT( * ) + 7 AS col1
----
8

skipif mysql # not compatible
query I rowsort label-4032
SELECT ALL COUNT ( * ) + 7 AS col1
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-4033
SELECT 37 DIV + 14
----
2

skipif mysql # not compatible
query I rowsort label-4033
SELECT 37 / + 14
----
2

query I rowsort
SELECT ALL - ( + 12 ) AS col1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4035
SELECT + - COUNT( * ) + 83 AS col1
----
82

skipif mysql # not compatible
query I rowsort label-4035
SELECT + - COUNT ( * ) + 83 AS col1
----
82

query I rowsort
SELECT - ( + 95 ) AS col1
----
-95

query I rowsort
SELECT ALL - 93 * 71
----
-6603

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4038
SELECT DISTINCT - COUNT( * ) - + - ( 24 ) * - 43 / - 65 + + + MIN( + - CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4038
SELECT DISTINCT - COUNT ( * ) - + - ( 24 ) * - 43 / - 65 + + + MIN ( + - CAST ( NULL AS REAL ) ) AS col2
----
NULL

query I rowsort
SELECT - + 66 + + - 13
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-4040
SELECT - SUM( - 88 )
----
88

skipif mysql # not compatible
query I rowsort label-4040
SELECT - SUM ( - 88 )
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4041
SELECT + - 39 DIV COUNT( * ) col0
----
-39

skipif mysql # not compatible
query I rowsort label-4041
SELECT + - 39 / COUNT ( * ) col0
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4042
SELECT CAST( + 86 AS SIGNED ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-4042
SELECT CAST ( + 86 AS INTEGER ) AS col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4043
SELECT DISTINCT MIN( ALL - 30 )
----
-30

skipif mysql # not compatible
query I rowsort label-4043
SELECT DISTINCT MIN ( ALL - 30 )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4044
SELECT MIN( ( - 99 ) ) + - ( - - 14 )
----
-113

skipif mysql # not compatible
query I rowsort label-4044
SELECT MIN ( ( - 99 ) ) + - ( - - 14 )
----
-113

query I rowsort
SELECT 21 * 55 AS col1
----
1155

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4046
SELECT DISTINCT + ( CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4046
SELECT DISTINCT + ( CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT - 27 + + + 68
----
41

query I rowsort
SELECT + 86 * 80 AS col0
----
6880

onlyif mysql # aggregate syntax: 
query I rowsort label-4049
SELECT + - COUNT( * ) + + - COUNT( * ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-4049
SELECT + - COUNT ( * ) + + - COUNT ( * ) AS col0
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4050
SELECT + 59 + + CAST( - + 69 AS SIGNED )
----
-10

skipif mysql # not compatible
query I rowsort label-4050
SELECT + 59 + + CAST ( - + 69 AS INTEGER )
----
-10

query I rowsort
SELECT + ( 86 ) AS col0
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4052
SELECT + CAST( - + 83 AS SIGNED ) col1
----
-83

skipif mysql # not compatible
query I rowsort label-4052
SELECT + CAST ( - + 83 AS INTEGER ) col1
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-4053
SELECT ALL + 17 DIV 65
----
0

skipif mysql # not compatible
query I rowsort label-4053
SELECT ALL + 17 / 65
----
0

query I rowsort
SELECT ALL 64 * 45 AS col2
----
2880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4055
SELECT DISTINCT + COUNT( * ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4055
SELECT DISTINCT + COUNT ( * ) + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4056
SELECT 5 * - 21 * COUNT( * )
----
-105

skipif mysql # not compatible
query I rowsort label-4056
SELECT 5 * - 21 * COUNT ( * )
----
-105

onlyif mysql # aggregate syntax: 
query II rowsort label-4057
SELECT ALL 76 AS col0, + COUNT( * )
----
76
1

skipif mysql # not compatible
query II rowsort label-4057
SELECT ALL 76 AS col0, + COUNT ( * )
----
76
1

query II rowsort
SELECT ALL 82, + 69 AS col0
----
82
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4059
SELECT MIN( DISTINCT 86 ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-4059
SELECT MIN ( DISTINCT 86 ) AS col0
----
86

query I rowsort
SELECT - + 4 * + + 16 AS col2
----
-64

query I rowsort
SELECT + 11 * - + 49 AS col0
----
-539

onlyif mysql # aggregate syntax: 
query I rowsort label-4062
SELECT ALL + + ( - COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4062
SELECT ALL + + ( - COUNT ( * ) ) AS col0
----
-1

query I rowsort
SELECT ALL + + 56
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4064
SELECT + + 17 * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4064
SELECT + + 17 * + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 35 + - - 15 AS col1
----
50

query II rowsort
SELECT ALL 6, - 96 col2
----
6
-96

query I rowsort
SELECT ALL - CASE + - 89 WHEN 13 THEN NULL WHEN - 65 THEN - 66 + + 22 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4068
SELECT ALL + CAST( NULL AS SIGNED ) / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4068
SELECT ALL + CAST ( NULL AS INTEGER ) / COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4069
SELECT ALL + NULLIF ( + CAST( NULL AS DECIMAL ), 98 ) / - 72 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4069
SELECT ALL + NULLIF ( + CAST ( NULL AS REAL ), 98 ) / - 72 AS col0
----
NULL

query I rowsort
SELECT 63 - 85 AS col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4071
SELECT DISTINCT 77 + - COUNT( * )
----
76

skipif mysql # not compatible
query I rowsort label-4071
SELECT DISTINCT 77 + - COUNT ( * )
----
76

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4072
SELECT CAST( NULL AS DECIMAL ) * - + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-4072
SELECT CAST ( NULL AS REAL ) * - + 93
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4073
SELECT ALL MAX( - 58 )
----
-58

skipif mysql # not compatible
query I rowsort label-4073
SELECT ALL MAX ( - 58 )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4074
SELECT ALL MIN( + 95 ) AS col2
----
95

skipif mysql # not compatible
query I rowsort label-4074
SELECT ALL MIN ( + 95 ) AS col2
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4075
SELECT + 94 * + 60 + - COUNT( * ) DIV + 99 col0
----
5640

skipif mysql # not compatible
query I rowsort label-4075
SELECT + 94 * + 60 + - COUNT ( * ) / + 99 col0
----
5640

onlyif mysql # aggregate syntax: 
query I rowsort label-4076
SELECT COUNT( * ) - - ( - - 6 ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-4076
SELECT COUNT ( * ) - - ( - - 6 ) AS col1
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-4077
SELECT DISTINCT - 6 DIV - 22 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4077
SELECT DISTINCT - 6 / - 22 AS col1
----
0

query I rowsort
SELECT DISTINCT ( - 67 )
----
-67

query I rowsort
SELECT DISTINCT 54 * 70 - + + 98 AS col1
----
3682

onlyif mysql # aggregate syntax: 
query II rowsort label-4080
SELECT COUNT( * ) AS col0, + 95 AS col0
----
1
95

skipif mysql # not compatible
query II rowsort label-4080
SELECT COUNT ( * ) AS col0, + 95 AS col0
----
1
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4081
SELECT DISTINCT - - 5 * SUM( + 62 ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4081
SELECT DISTINCT - - 5 * SUM ( + 62 ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4082
SELECT - - COUNT( * ) * - 26 AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-4082
SELECT - - COUNT ( * ) * - 26 AS col0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-4083
SELECT - + SUM( - 71 ) * + ( + COUNT( * ) ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-4083
SELECT - + SUM ( - 71 ) * + ( + COUNT ( * ) ) AS col0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4084
SELECT - + COUNT( * ) + 7
----
6

skipif mysql # not compatible
query I rowsort label-4084
SELECT - + COUNT ( * ) + 7
----
6

query I rowsort
SELECT DISTINCT + ( 2 ) AS col2
----
2

query I rowsort
SELECT + ( + 7 ) col0
----
7

query I rowsort
SELECT ( 87 ) AS col2
----
87

query I rowsort
SELECT 49 + 79 AS col1
----
128

query I rowsort
SELECT - - 8 AS col1
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4090
SELECT ALL - - CAST( NULL AS SIGNED ) * + 57 / + - MAX( DISTINCT 98 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4090
SELECT ALL - - CAST ( NULL AS INTEGER ) * + 57 / + - MAX ( DISTINCT 98 )
----
NULL

query I rowsort
SELECT ALL + 66 * - - 55
----
3630

query I rowsort
SELECT 0 + - 22
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4093
SELECT ALL - CAST( NULL AS SIGNED ), 84 + + COUNT( * ) AS col0
----
NULL
85

skipif mysql # not compatible
query II rowsort label-4093
SELECT ALL - CAST ( NULL AS INTEGER ), 84 + + COUNT ( * ) AS col0
----
NULL
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4094
SELECT ALL + COUNT( * ) + 74 col2
----
75

skipif mysql # not compatible
query I rowsort label-4094
SELECT ALL + COUNT ( * ) + 74 col2
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4095
SELECT + 45 - + CAST( NULL AS SIGNED ) + 17 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4095
SELECT + 45 - + CAST ( NULL AS INTEGER ) + 17 col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4096
SELECT DISTINCT + COUNT( * ), 10 AS col2
----
1
10

skipif mysql # not compatible
query II rowsort label-4096
SELECT DISTINCT + COUNT ( * ), 10 AS col2
----
1
10

query I rowsort
SELECT 15 * + - 56
----
-840

query I rowsort
SELECT ALL + 72 * + 29 AS col2
----
2088

query I rowsort
SELECT ALL + + 44 col1
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4100
SELECT + + AVG ( 30 ) * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4100
SELECT + + AVG ( 30 ) * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4101
SELECT ALL COUNT( * ) + - COUNT( * ) + + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4101
SELECT ALL COUNT ( * ) + - COUNT ( * ) + + COUNT ( * ) AS col0
----
1

query I rowsort
SELECT + 99 + + 28 + 23
----
150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4103
SELECT ( - ( CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4103
SELECT ( - ( CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) ) )
----
NULL

query I rowsort
SELECT - 22 + + 39 AS col2
----
17

query I rowsort
SELECT ( ( - 83 ) ) AS col2
----
-83

query I rowsort
SELECT DISTINCT + + 76 AS col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4107
SELECT ALL - COUNT( * ) * + - COUNT( DISTINCT 1 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4107
SELECT ALL - COUNT ( * ) * + - COUNT ( DISTINCT 1 ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4108
SELECT + - 77 AS col0, CASE + + 7 WHEN 33 THEN CAST( NULL AS SIGNED ) END
----
-77
NULL

skipif mysql # not compatible
query II rowsort label-4108
SELECT + - 77 AS col0, CASE + + 7 WHEN 33 THEN CAST ( NULL AS INTEGER ) END
----
-77
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4109
SELECT COUNT( * ) + + 11 col2
----
12

skipif mysql # not compatible
query I rowsort label-4109
SELECT COUNT ( * ) + + 11 col2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4110
SELECT COUNT( * ) + + COUNT( 8 )
----
2

skipif mysql # not compatible
query I rowsort label-4110
SELECT COUNT ( * ) + + COUNT ( 8 )
----
2

query I rowsort
SELECT DISTINCT 98 AS col1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4112
SELECT - COUNT( * ) * - 87
----
87

skipif mysql # not compatible
query I rowsort label-4112
SELECT - COUNT ( * ) * - 87
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4113
SELECT + + CAST( + 4 AS SIGNED ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-4113
SELECT + + CAST ( + 4 AS INTEGER ) AS col1
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4114
SELECT ALL NULLIF ( + + COUNT( * ), CAST( + MAX( - 44 ) AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-4114
SELECT ALL NULLIF ( + + COUNT ( * ), CAST ( + MAX ( - 44 ) AS INTEGER ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4115
SELECT ALL - ( + 75 ) + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4115
SELECT ALL - ( + 75 ) + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 65 + 66
----
131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4117
SELECT ALL + + CAST( - 89 AS SIGNED ) AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-4117
SELECT ALL + + CAST ( - 89 AS INTEGER ) AS col2
----
-89

query I rowsort
SELECT ALL + + 39 * 53 * 25 AS col0
----
51675

onlyif mysql # aggregate syntax: 
query I rowsort label-4119
SELECT COUNT( * ) * - 61 AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-4119
SELECT COUNT ( * ) * - 61 AS col1
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-4120
SELECT COUNT( * ) + - 58 AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-4120
SELECT COUNT ( * ) + - 58 AS col0
----
-57

query I rowsort
SELECT 68 * + 56
----
3808

onlyif mysql # aggregate syntax: 
query I rowsort label-4122
SELECT SUM( - ( 47 ) ) * - 0
----
0

skipif mysql # not compatible
query I rowsort label-4122
SELECT SUM ( - ( 47 ) ) * - 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4123
SELECT - COUNT( * ) * + 59
----
-59

skipif mysql # not compatible
query I rowsort label-4123
SELECT - COUNT ( * ) * + 59
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4124
SELECT COUNT( - 29 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4124
SELECT COUNT ( - 29 ) AS col1
----
1

query I rowsort
SELECT ALL + ( 81 ) col1
----
81

query I rowsort
SELECT DISTINCT - 47 + 84 AS col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4127
SELECT ALL NULLIF ( + 6, + COUNT( * ) ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-4127
SELECT ALL NULLIF ( + 6, + COUNT ( * ) ) AS col2
----
6

query I rowsort
SELECT - + 37 AS col1
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-4129
SELECT ALL 91 - - COUNT( * ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-4129
SELECT ALL 91 - - COUNT ( * ) AS col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4130
SELECT DISTINCT - + COUNT( * ) * + + 54
----
-54

skipif mysql # not compatible
query I rowsort label-4130
SELECT DISTINCT - + COUNT ( * ) * + + 54
----
-54

query I rowsort
SELECT - 49 + - 74
----
-123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4132
SELECT CAST( NULL AS SIGNED ) AS col1, + COUNT( * ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4132
SELECT CAST ( NULL AS INTEGER ) AS col1, + COUNT ( * ) AS col1
----
NULL
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4133
SELECT CAST( + 71 AS SIGNED ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-4133
SELECT CAST ( + 71 AS INTEGER ) AS col1
----
71

query I rowsort
SELECT ( + - 26 ) AS col0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-4135
SELECT + 57 + + 80 + + + COUNT( * )
----
138

skipif mysql # not compatible
query I rowsort label-4135
SELECT + 57 + + 80 + + + COUNT ( * )
----
138

query I rowsort
SELECT - + 31 col0
----
-31

query I rowsort
SELECT ALL ( + 84 ) * + 99
----
8316

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4138
SELECT DISTINCT - CAST( + 35 AS SIGNED ) AS col2, 49 DIV - + 68 AS col2
----
-35
0

skipif mysql # not compatible
query II rowsort label-4138
SELECT DISTINCT - CAST ( + 35 AS INTEGER ) AS col2, 49 / - + 68 AS col2
----
-35
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4139
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 20 + 89 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4139
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 20 + 89 AS col2
----
NULL

query I rowsort
SELECT + 42 - - 54 AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4141
SELECT - - SUM( DISTINCT - 9 ) AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-4141
SELECT - - SUM ( DISTINCT - 9 ) AS col2
----
-9

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4142
SELECT DISTINCT 96 + + + COALESCE ( - + 11, + 82 DIV CAST( NULL AS SIGNED ) )
----
85

skipif mysql # not compatible
query I rowsort label-4142
SELECT DISTINCT 96 + + + COALESCE ( - + 11, + 82 / CAST ( NULL AS INTEGER ) )
----
85

query I rowsort
SELECT ALL - ( - - 31 )
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4144
SELECT COUNT( * ) + - 2 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4144
SELECT COUNT ( * ) + - 2 AS col2
----
-1

query I rowsort
SELECT ALL - ( + 30 ) AS col2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4146
SELECT ALL + + SUM( 80 ) col1
----
80

skipif mysql # not compatible
query I rowsort label-4146
SELECT ALL + + SUM ( 80 ) col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4147
SELECT + COUNT( * ) + 2 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-4147
SELECT + COUNT ( * ) + 2 AS col1
----
3

query I rowsort
SELECT - - 94 AS col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4149
SELECT - ( + COUNT( * ) ) + 92 AS col1
----
91

skipif mysql # not compatible
query I rowsort label-4149
SELECT - ( + COUNT ( * ) ) + 92 AS col1
----
91

query I rowsort
SELECT + - 91 AS col0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4151
SELECT ALL SUM( ALL - ( 22 ) )
----
-22

skipif mysql # not compatible
query I rowsort label-4151
SELECT ALL SUM ( ALL - ( 22 ) )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4152
SELECT ALL ( COUNT( ALL - - 26 ) ) + + 15 * NULLIF ( COUNT( * ), COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4152
SELECT ALL ( COUNT ( ALL - - 26 ) ) + + 15 * NULLIF ( COUNT ( * ), COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4153
SELECT DISTINCT + 55 * - COUNT( * ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-4153
SELECT DISTINCT + 55 * - COUNT ( * ) AS col0
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4154
SELECT 62 DIV - NULLIF ( + - 36, 41 * + COUNT( * ) * - 88 )
----
1

skipif mysql # not compatible
query I rowsort label-4154
SELECT 62 / - NULLIF ( + - 36, 41 * + COUNT ( * ) * - 88 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4155
SELECT DISTINCT + 30 * - COUNT( * )
----
-30

skipif mysql # not compatible
query I rowsort label-4155
SELECT DISTINCT + 30 * - COUNT ( * )
----
-30

query II rowsort
SELECT - 53, 60 AS col0
----
-53
60

onlyif mysql # DIV for integer division: 
query I rowsort label-4157
SELECT - 91 DIV 73
----
-1

skipif mysql # not compatible
query I rowsort label-4157
SELECT - 91 / 73
----
-1

query I rowsort
SELECT ALL + + ( - 2 )
----
-2

query I rowsort
SELECT ALL + - 65 AS col1
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-4160
SELECT MAX( ALL + 0 )
----
0

skipif mysql # not compatible
query I rowsort label-4160
SELECT MAX ( ALL + 0 )
----
0

query I rowsort
SELECT ALL 80 * - 58 AS col2
----
-4640

query I rowsort
SELECT - ( - 33 )
----
33

query I rowsort
SELECT ALL 11 * - 22 AS col1
----
-242

query I rowsort
SELECT ALL + 11 col1
----
11

query I rowsort
SELECT ALL + ( + - 9 )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4166
SELECT DISTINCT + MAX( ALL + + 21 )
----
21

skipif mysql # not compatible
query I rowsort label-4166
SELECT DISTINCT + MAX ( ALL + + 21 )
----
21

query I rowsort
SELECT DISTINCT 39 * - ( - 89 )
----
3471

query I rowsort
SELECT 98 * 32
----
3136

query I rowsort
SELECT + 52 col0
----
52

query I rowsort
SELECT ALL - 57 + + + 23
----
-34

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4171
SELECT ALL 29 * - CAST( NULL AS DECIMAL ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4171
SELECT ALL 29 * - CAST ( NULL AS REAL ) + - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + 89 * 32
----
2848

query I rowsort
SELECT - + 7 AS col2
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4174
SELECT + 45 + + 54 + + MIN( 94 ) AS col0
----
193

skipif mysql # not compatible
query I rowsort label-4174
SELECT + 45 + + 54 + + MIN ( 94 ) AS col0
----
193

onlyif mysql # aggregate syntax: 
query II rowsort label-4175
SELECT + 28, + COUNT( * ) AS col0
----
28
1

skipif mysql # not compatible
query II rowsort label-4175
SELECT + 28, + COUNT ( * ) AS col0
----
28
1

query I rowsort
SELECT DISTINCT + 19 col0
----
19

query I rowsort
SELECT ( + + 97 ) AS col1
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4178
SELECT ALL 51 * CAST( - 88 AS SIGNED )
----
-4488

skipif mysql # not compatible
query I rowsort label-4178
SELECT ALL 51 * CAST ( - 88 AS INTEGER )
----
-4488

query I rowsort
SELECT + 33 * 68 AS col0
----
2244

query I rowsort
SELECT ALL NULLIF ( 37, + 92 )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4181
SELECT DISTINCT - ( + - COUNT( * ) ) * - - 89 AS col1
----
89

skipif mysql # not compatible
query I rowsort label-4181
SELECT DISTINCT - ( + - COUNT ( * ) ) * - - 89 AS col1
----
89

query I rowsort
SELECT ALL 55 col0
----
55

query I rowsort
SELECT ALL + 6 col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4184
SELECT DISTINCT - 71 * + COUNT( * )
----
-71

skipif mysql # not compatible
query I rowsort label-4184
SELECT DISTINCT - 71 * + COUNT ( * )
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-4185
SELECT DISTINCT - ( COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4185
SELECT DISTINCT - ( COUNT ( * ) ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4186
SELECT DISTINCT - 54 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4186
SELECT DISTINCT - 54 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4187
SELECT 12 DIV + 71 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4187
SELECT 12 / + 71 AS col1
----
0

query I rowsort
SELECT ALL - - 39 AS col1
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4189
SELECT DISTINCT - CAST( + SUM( ALL - + 35 ) AS SIGNED ) + + COUNT( * ) + + - 36 + - - 54 AS col0
----
54

skipif mysql # not compatible
query I rowsort label-4189
SELECT DISTINCT - CAST ( + SUM ( ALL - + 35 ) AS INTEGER ) + + COUNT ( * ) + + - 36 + - - 54 AS col0
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-4190
SELECT COUNT( * ) AS col2, - 89
----
1
-89

skipif mysql # not compatible
query II rowsort label-4190
SELECT COUNT ( * ) AS col2, - 89
----
1
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4191
SELECT MAX( DISTINCT - 91 )
----
-91

skipif mysql # not compatible
query I rowsort label-4191
SELECT MAX ( DISTINCT - 91 )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4192
SELECT 41 * - SUM( ALL + - 56 )
----
2296

skipif mysql # not compatible
query I rowsort label-4192
SELECT 41 * - SUM ( ALL + - 56 )
----
2296

query I rowsort
SELECT ALL - 32 * + 5
----
-160

onlyif mysql # aggregate syntax: 
query I rowsort label-4194
SELECT - ( + + SUM( DISTINCT - 71 ) ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-4194
SELECT - ( + + SUM ( DISTINCT - 71 ) ) AS col2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4195
SELECT + ( - + SUM( - 59 ) )
----
59

skipif mysql # not compatible
query I rowsort label-4195
SELECT + ( - + SUM ( - 59 ) )
----
59

query II rowsort
SELECT ALL - 71 AS col0, 87 AS col0
----
-71
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4197
SELECT - + MIN( DISTINCT + 57 ) col0
----
-57

skipif mysql # not compatible
query I rowsort label-4197
SELECT - + MIN ( DISTINCT + 57 ) col0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-4198
SELECT - ( + - ( COUNT( * ) ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4198
SELECT - ( + - ( COUNT ( * ) ) ) AS col2
----
1

query I rowsort
SELECT ( + - 29 ) AS col0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-4200
SELECT - COUNT( ALL - - 72 )
----
-1

skipif mysql # not compatible
query I rowsort label-4200
SELECT - COUNT ( ALL - - 72 )
----
-1

query I rowsort
SELECT + 87 - + + 27
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4202
SELECT + NULLIF ( + COUNT( * ), + 18 ) * + - 30 AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-4202
SELECT + NULLIF ( + COUNT ( * ), + 18 ) * + - 30 AS col0
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4203
SELECT 52 * - 36 * + CAST( NULL AS SIGNED ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4203
SELECT 52 * - 36 * + CAST ( NULL AS INTEGER ) * COUNT ( * )
----
NULL

query I rowsort
SELECT + + ( + 71 )
----
71

query I rowsort
SELECT DISTINCT - - 31 col1
----
31

query I rowsort
SELECT ALL - - 58
----
58

query I rowsort
SELECT 1 * 78 AS col1
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-4208
SELECT ALL - COUNT( * ) AS col2, 1 AS col2
----
-1
1

skipif mysql # not compatible
query II rowsort label-4208
SELECT ALL - COUNT ( * ) AS col2, 1 AS col2
----
-1
1

query I rowsort
SELECT DISTINCT - + 24 AS col1
----
-24

query I rowsort
SELECT - 63 * + 51 * 84 AS col0
----
-269892

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4211
SELECT DISTINCT CAST( NULL AS DECIMAL ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4211
SELECT DISTINCT CAST ( NULL AS REAL ) + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4212
SELECT 96 AS col0, + COUNT( * )
----
96
1

skipif mysql # not compatible
query II rowsort label-4212
SELECT 96 AS col0, + COUNT ( * )
----
96
1

query I rowsort
SELECT ALL 33 - + - 61 AS col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4214
SELECT ALL COUNT( + 28 )
----
1

skipif mysql # not compatible
query I rowsort label-4214
SELECT ALL COUNT ( + 28 )
----
1

query I rowsort
SELECT + - ( - 86 )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4216
SELECT COALESCE ( MIN( DISTINCT + + 58 ), 41 + 8 * - 76 )
----
58

skipif mysql # not compatible
query I rowsort label-4216
SELECT COALESCE ( MIN ( DISTINCT + + 58 ), 41 + 8 * - 76 )
----
58

query I rowsort
SELECT CASE 32 WHEN 10 THEN + 98 - + + 16 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4218
SELECT AVG ( ALL + - ( CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4218
SELECT AVG ( ALL + - ( CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4219
SELECT ALL + 19 DIV + 68
----
0

skipif mysql # not compatible
query I rowsort label-4219
SELECT ALL + 19 / + 68
----
0

query I rowsort
SELECT - 56 * ( - ( - + 3 ) )
----
-168

onlyif mysql # aggregate syntax: 
query II rowsort label-4221
SELECT ALL COUNT( * ), 3 AS col0
----
1
3

skipif mysql # not compatible
query II rowsort label-4221
SELECT ALL COUNT ( * ), 3 AS col0
----
1
3

query I rowsort
SELECT - + 53 AS col1
----
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-4223
SELECT - 93, - COUNT( * ) AS col1
----
-93
-1

skipif mysql # not compatible
query II rowsort label-4223
SELECT - 93, - COUNT ( * ) AS col1
----
-93
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4224
SELECT ALL - 59 + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4224
SELECT ALL - 59 + CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4225
SELECT - + 29 + - COUNT( * )
----
-30

skipif mysql # not compatible
query I rowsort label-4225
SELECT - + 29 + - COUNT ( * )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4226
SELECT - 14 + + MIN( DISTINCT + 97 )
----
83

skipif mysql # not compatible
query I rowsort label-4226
SELECT - 14 + + MIN ( DISTINCT + 97 )
----
83

query II rowsort
SELECT + + 91 AS col1, 34
----
91
34

query I rowsort
SELECT DISTINCT + ( + 46 )
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4229
SELECT COUNT( * ) * - CAST( NULL AS SIGNED ) + - + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-4229
SELECT COUNT ( * ) * - CAST ( NULL AS INTEGER ) + - + 23
----
NULL

query I rowsort
SELECT ALL - 14 + + 81
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4231
SELECT MAX( DISTINCT + 15 ) col2
----
15

skipif mysql # not compatible
query I rowsort label-4231
SELECT MAX ( DISTINCT + 15 ) col2
----
15

query I rowsort
SELECT + 45 col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4233
SELECT 60 * - - COUNT( * ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-4233
SELECT 60 * - - COUNT ( * ) AS col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4234
SELECT DISTINCT COUNT( * ) + - - 65 col2
----
66

skipif mysql # not compatible
query I rowsort label-4234
SELECT DISTINCT COUNT ( * ) + - - 65 col2
----
66

query I rowsort
SELECT 65 * + - 16
----
-1040

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4236
SELECT ALL + ( - 69 ) * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4236
SELECT ALL + ( - 69 ) * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 8 + + + 83
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4238
SELECT + MIN( DISTINCT + 97 ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-4238
SELECT + MIN ( DISTINCT + 97 ) AS col2
----
97

query I rowsort
SELECT DISTINCT 68 * 18
----
1224

onlyif mysql # aggregate syntax: 
query I rowsort label-4240
SELECT COUNT( ALL + 27 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4240
SELECT COUNT ( ALL + 27 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4241
SELECT ALL + MIN( - + 28 )
----
-28

skipif mysql # not compatible
query I rowsort label-4241
SELECT ALL + MIN ( - + 28 )
----
-28

query I rowsort
SELECT ( - 61 ) col1
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4243
SELECT DISTINCT 81 DIV - CAST( + 67 AS SIGNED ) + + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4243
SELECT DISTINCT 81 / - CAST ( + 67 AS INTEGER ) + + COUNT ( * ) AS col1
----
0

query I rowsort
SELECT ( - 36 )
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4245
SELECT + CAST( + 20 AS SIGNED ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-4245
SELECT + CAST ( + 20 AS INTEGER ) AS col1
----
20

query I rowsort
SELECT ( - 67 )
----
-67

query I rowsort
SELECT ( + 92 ) col0
----
92

query I rowsort
SELECT - + ( + + 85 ) AS col0
----
-85

query I rowsort
SELECT 53 + 0 AS col2
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4250
SELECT ALL + CAST( - COUNT( * ) AS SIGNED ) * - - ( + 73 ) AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-4250
SELECT ALL + CAST ( - COUNT ( * ) AS INTEGER ) * - - ( + 73 ) AS col0
----
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-4251
SELECT COUNT( * ) + - 93 AS col1, - 89 AS col1
----
-92
-89

skipif mysql # not compatible
query II rowsort label-4251
SELECT COUNT ( * ) + - 93 AS col1, - 89 AS col1
----
-92
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4252
SELECT DISTINCT 71 + + MIN( DISTINCT + 20 ) * + 45
----
971

skipif mysql # not compatible
query I rowsort label-4252
SELECT DISTINCT 71 + + MIN ( DISTINCT + 20 ) * + 45
----
971

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4253
SELECT + COALESCE ( - 3, + 99 ) + 42 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4253
SELECT + COALESCE ( - 3, + 99 ) + 42 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4254
SELECT DISTINCT + ( COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-4254
SELECT DISTINCT + ( COUNT ( * ) )
----
1

query I rowsort
SELECT - 79 * + - 69
----
5451

onlyif mysql # aggregate syntax: 
query I rowsort label-4256
SELECT NULLIF ( COUNT( * ), - CASE 91 WHEN - 11 + + 7 THEN + - 84 + - MAX( + 83 ) END ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4256
SELECT NULLIF ( COUNT ( * ), - CASE 91 WHEN - 11 + + 7 THEN + - 84 + - MAX ( + 83 ) END ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4257
SELECT + 3 DIV + + 76
----
0

skipif mysql # not compatible
query I rowsort label-4257
SELECT + 3 / + + 76
----
0

query I rowsort
SELECT 98 * - 3
----
-294

onlyif mysql # aggregate syntax: 
query I rowsort label-4259
SELECT ALL + 34 - + MAX( + ( 82 ) )
----
-48

skipif mysql # not compatible
query I rowsort label-4259
SELECT ALL + 34 - + MAX ( + ( 82 ) )
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4260
SELECT 88 * + - CAST( 95 AS SIGNED ) AS col2
----
-8360

skipif mysql # not compatible
query I rowsort label-4260
SELECT 88 * + - CAST ( 95 AS INTEGER ) AS col2
----
-8360

onlyif mysql # aggregate syntax: 
query I rowsort label-4261
SELECT COUNT( * ) + 27 AS col2
----
28

skipif mysql # not compatible
query I rowsort label-4261
SELECT COUNT ( * ) + 27 AS col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4262
SELECT DISTINCT 96 + - COUNT( * )
----
95

skipif mysql # not compatible
query I rowsort label-4262
SELECT DISTINCT 96 + - COUNT ( * )
----
95

query I rowsort
SELECT 13 + 30 AS col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4264
SELECT + MAX( 94 )
----
94

skipif mysql # not compatible
query I rowsort label-4264
SELECT + MAX ( 94 )
----
94

query I rowsort
SELECT DISTINCT 95 - + 55
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4266
SELECT ALL + CAST( NULL AS SIGNED ) * + 44
----
NULL

skipif mysql # not compatible
query I rowsort label-4266
SELECT ALL + CAST ( NULL AS INTEGER ) * + 44
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4267
SELECT DISTINCT SUM( DISTINCT 68 ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-4267
SELECT DISTINCT SUM ( DISTINCT 68 ) AS col0
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-4268
SELECT - COUNT( * ) AS col2, - 21 AS col1
----
-1
-21

skipif mysql # not compatible
query II rowsort label-4268
SELECT - COUNT ( * ) AS col2, - 21 AS col1
----
-1
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4269
SELECT DISTINCT + CAST( + COUNT( * ) AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4269
SELECT DISTINCT + CAST ( + COUNT ( * ) AS INTEGER ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4270
SELECT SUM( + 88 ) AS col2, - 64
----
88
-64

skipif mysql # not compatible
query II rowsort label-4270
SELECT SUM ( + 88 ) AS col2, - 64
----
88
-64

query II rowsort
SELECT - ( - + 80 ), 47 AS col0
----
80
47

query I rowsort
SELECT ALL - 43 col1
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-4273
SELECT DISTINCT - ( COUNT( * ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-4273
SELECT DISTINCT - ( COUNT ( * ) ) col2
----
-1

query I rowsort
SELECT DISTINCT - 99 * 17
----
-1683

onlyif mysql # aggregate syntax: 
query I rowsort label-4275
SELECT - 44 * - COUNT( + + 91 ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-4275
SELECT - 44 * - COUNT ( + + 91 ) AS col0
----
44

query I rowsort
SELECT ALL + ( - 83 ) AS col0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-4277
SELECT + CASE - + 52 WHEN - COUNT( * ) THEN - 36 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4277
SELECT + CASE - + 52 WHEN - COUNT ( * ) THEN - 36 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4278
SELECT NULLIF ( + 26, COUNT( * ) ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-4278
SELECT NULLIF ( + 26, COUNT ( * ) ) AS col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4279
SELECT ALL 45 * - COUNT( * )
----
-45

skipif mysql # not compatible
query I rowsort label-4279
SELECT ALL 45 * - COUNT ( * )
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-4280
SELECT MIN( - 17 )
----
-17

skipif mysql # not compatible
query I rowsort label-4280
SELECT MIN ( - 17 )
----
-17

query I rowsort
SELECT ALL 10 * + 91 AS col1
----
910

onlyif mysql # aggregate syntax: 
query I rowsort label-4282
SELECT ALL + 29 + - COUNT( * ) col1
----
28

skipif mysql # not compatible
query I rowsort label-4282
SELECT ALL + 29 + - COUNT ( * ) col1
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-4283
SELECT COUNT( * ) AS col2, - 75
----
1
-75

skipif mysql # not compatible
query II rowsort label-4283
SELECT COUNT ( * ) AS col2, - 75
----
1
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4284
SELECT + 34 + + MIN( + 41 ) AS col1
----
75

skipif mysql # not compatible
query I rowsort label-4284
SELECT + 34 + + MIN ( + 41 ) AS col1
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4285
SELECT - CAST( NULL AS SIGNED ) AS col1, COUNT( * ) * - 36 AS col1
----
NULL
-36

skipif mysql # not compatible
query II rowsort label-4285
SELECT - CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) * - 36 AS col1
----
NULL
-36

query I rowsort
SELECT - - 4 AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4287
SELECT ALL + ( 65 ) * + COUNT( * )
----
65

skipif mysql # not compatible
query I rowsort label-4287
SELECT ALL + ( 65 ) * + COUNT ( * )
----
65

query I rowsort
SELECT ALL 38 col0
----
38

query II rowsort
SELECT DISTINCT 46 AS col0, + 11
----
46
11

query II rowsort
SELECT DISTINCT 55 col1, + 76 col0
----
55
76

onlyif mysql # aggregate syntax: 
query II rowsort label-4291
SELECT COUNT( * ) AS col1, 3 * + 67 AS col2
----
1
201

skipif mysql # not compatible
query II rowsort label-4291
SELECT COUNT ( * ) AS col1, 3 * + 67 AS col2
----
1
201

query I rowsort
SELECT + ( - 17 ) AS col0
----
-17

query I rowsort
SELECT ALL - 77 col0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4294
SELECT ALL - - MIN( - + 94 )
----
-94

skipif mysql # not compatible
query I rowsort label-4294
SELECT ALL - - MIN ( - + 94 )
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4295
SELECT AVG ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4295
SELECT AVG ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4296
SELECT + COUNT( * ) + - 90 AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-4296
SELECT + COUNT ( * ) + - 90 AS col1
----
-89

query I rowsort
SELECT DISTINCT 44 AS col1
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4298
SELECT + 39 DIV - + CAST( - COUNT( * ) AS SIGNED ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-4298
SELECT + 39 / - + CAST ( - COUNT ( * ) AS INTEGER ) AS col1
----
39

query I rowsort
SELECT + 49 + - 11
----
38

query I rowsort
SELECT DISTINCT + 24 col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4301
SELECT ALL + NULLIF ( MAX( ALL - - 90 ), - - COUNT( * ) + 33 )
----
90

skipif mysql # not compatible
query I rowsort label-4301
SELECT ALL + NULLIF ( MAX ( ALL - - 90 ), - - COUNT ( * ) + 33 )
----
90

query I rowsort
SELECT + 47 + - 56
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4303
SELECT + MAX( 4 ) + - COUNT( * ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-4303
SELECT + MAX ( 4 ) + - COUNT ( * ) AS col0
----
3

query I rowsort
SELECT DISTINCT + + 67 AS col2
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4305
SELECT DISTINCT + - 60 * + CAST( NULL AS SIGNED ) / 16
----
NULL

skipif mysql # not compatible
query I rowsort label-4305
SELECT DISTINCT + - 60 * + CAST ( NULL AS INTEGER ) / 16
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4306
SELECT ALL + COALESCE ( - 82, - 0, - CAST( NULL AS SIGNED ) )
----
-82

skipif mysql # not compatible
query I rowsort label-4306
SELECT ALL + COALESCE ( - 82, - 0, - CAST ( NULL AS INTEGER ) )
----
-82

query I rowsort
SELECT DISTINCT - - 74 AS col2
----
74

query I rowsort
SELECT 2 - - - 17 * 71 AS col2
----
-1205

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4309
SELECT + COUNT( DISTINCT - CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-4309
SELECT + COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) )
----
0

query I rowsort
SELECT DISTINCT - - ( - 4 ) AS col2
----
-4

query I rowsort
SELECT + 97 * 37 AS col1
----
3589

onlyif mysql # aggregate syntax: 
query I rowsort label-4312
SELECT DISTINCT MIN( ALL + - 80 ) AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-4312
SELECT DISTINCT MIN ( ALL + - 80 ) AS col1
----
-80

query I rowsort
SELECT + - ( 79 )
----
-79

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4314
SELECT + COUNT( * ) * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4314
SELECT + COUNT ( * ) * + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4315
SELECT ALL COUNT( * ) / + 66 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4315
SELECT ALL COUNT ( * ) / + 66 * - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4316
SELECT DISTINCT MIN( DISTINCT + 22 ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-4316
SELECT DISTINCT MIN ( DISTINCT + 22 ) AS col1
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4317
SELECT DISTINCT - COUNT( * ) DIV + + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-4317
SELECT DISTINCT - COUNT ( * ) / + + COUNT ( * )
----
-1

query I rowsort
SELECT - 70 - ( 14 )
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-4319
SELECT DISTINCT - - COUNT( * ) + COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-4319
SELECT DISTINCT - - COUNT ( * ) + COUNT ( * ) AS col1
----
2

query I rowsort
SELECT DISTINCT + 69 col1
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4321
SELECT - 33 DIV - COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-4321
SELECT - 33 / - COUNT ( * )
----
33

query I rowsort
SELECT ALL - - 28 col1
----
28

query I rowsort
SELECT ALL - ( + 71 ) AS col0
----
-71

query I rowsort
SELECT DISTINCT - ( + 54 ) AS col2
----
-54

query II rowsort
SELECT 22 col1, 81
----
22
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4326
SELECT ALL COUNT( * ) + - + COUNT( * ) col2
----
0

skipif mysql # not compatible
query I rowsort label-4326
SELECT ALL COUNT ( * ) + - + COUNT ( * ) col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4327
SELECT ALL COUNT( ALL 5 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4327
SELECT ALL COUNT ( ALL 5 ) AS col0
----
1

query I rowsort
SELECT ALL 4 * - 81 * 91 AS col0
----
-29484

onlyif mysql # aggregate syntax: 
query I rowsort label-4329
SELECT SUM( ALL + 4 )
----
4

skipif mysql # not compatible
query I rowsort label-4329
SELECT SUM ( ALL + 4 )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4330
SELECT + MAX( - 8 ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-4330
SELECT + MAX ( - 8 ) AS col0
----
-8

query II rowsort
SELECT - + 70 AS col2, + 29 + 88
----
-70
117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4332
SELECT ALL + CAST( + CAST( + 46 AS SIGNED ) AS SIGNED )
----
46

skipif mysql # not compatible
query I rowsort label-4332
SELECT ALL + CAST ( + CAST ( + 46 AS INTEGER ) AS INTEGER )
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-4333
SELECT ALL 61 DIV + ( + - 92 )
----
0

skipif mysql # not compatible
query I rowsort label-4333
SELECT ALL 61 / + ( + - 92 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4334
SELECT ALL 74 - COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-4334
SELECT ALL 74 - COUNT ( * )
----
73

query I rowsort
SELECT - ( - + 43 )
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-4336
SELECT ALL 30, 77 * + COUNT( * ) AS col2
----
30
77

skipif mysql # not compatible
query II rowsort label-4336
SELECT ALL 30, 77 * + COUNT ( * ) AS col2
----
30
77

query II rowsort
SELECT - 41 AS col0, + 73 AS col2
----
-41
73

query I rowsort
SELECT ALL + 27 AS col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4339
SELECT + COUNT( * ) - + 98
----
-97

skipif mysql # not compatible
query I rowsort label-4339
SELECT + COUNT ( * ) - + 98
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4340
SELECT DISTINCT + - COALESCE ( COUNT( * ), COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4340
SELECT DISTINCT + - COALESCE ( COUNT ( * ), COUNT ( * ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4341
SELECT COUNT( * ) - - 72 AS col2
----
73

skipif mysql # not compatible
query I rowsort label-4341
SELECT COUNT ( * ) - - 72 AS col2
----
73

query I rowsort
SELECT ALL - 94 * + 28
----
-2632

query II rowsort
SELECT ALL - 91, 64 AS col2
----
-91
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4344
SELECT ALL + 72 - - - COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-4344
SELECT ALL + 72 - - - COUNT ( * )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4345
SELECT DISTINCT - COUNT( * ) * - + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4345
SELECT DISTINCT - COUNT ( * ) * - + COUNT ( * ) AS col2
----
1

query I rowsort
SELECT + ( - 41 ) AS col2
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-4347
SELECT ALL + COUNT( * ) + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-4347
SELECT ALL + COUNT ( * ) + + COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4348
SELECT 27 + - - COUNT( * ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-4348
SELECT 27 + - - COUNT ( * ) AS col2
----
28

query I rowsort
SELECT DISTINCT - 68 col1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4350
SELECT MAX( 68 )
----
68

skipif mysql # not compatible
query I rowsort label-4350
SELECT MAX ( 68 )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4351
SELECT + COUNT( * ) + + 59
----
60

skipif mysql # not compatible
query I rowsort label-4351
SELECT + COUNT ( * ) + + 59
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4352
SELECT - COUNT( * ) - + 77
----
-78

skipif mysql # not compatible
query I rowsort label-4352
SELECT - COUNT ( * ) - + 77
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4353
SELECT ALL + ( + - SUM( + + 13 ) )
----
-13

skipif mysql # not compatible
query I rowsort label-4353
SELECT ALL + ( + - SUM ( + + 13 ) )
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4354
SELECT ALL + ( + CAST( COUNT( * ) AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-4354
SELECT ALL + ( + CAST ( COUNT ( * ) AS INTEGER ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4355
SELECT MAX( ALL - 4 ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-4355
SELECT MAX ( ALL - 4 ) AS col1
----
-4

query I rowsort
SELECT ALL 34 col0
----
34

query I rowsort
SELECT + 3 - 22
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4358
SELECT + COUNT( * ) + + 68 * - 37 AS col2
----
-2515

skipif mysql # not compatible
query I rowsort label-4358
SELECT + COUNT ( * ) + + 68 * - 37 AS col2
----
-2515

onlyif mysql # aggregate syntax: 
query I rowsort label-4359
SELECT 43 * - MAX( 55 )
----
-2365

skipif mysql # not compatible
query I rowsort label-4359
SELECT 43 * - MAX ( 55 )
----
-2365

onlyif mysql # aggregate syntax: 
query I rowsort label-4360
SELECT DISTINCT - COUNT( * ) * + SUM( 15 ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-4360
SELECT DISTINCT - COUNT ( * ) * + SUM ( 15 ) AS col1
----
-15

query I rowsort
SELECT ALL ( - 45 ) - 30
----
-75

query I rowsort
SELECT 1 * - 4 AS col0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4363
SELECT COUNT( * ) + + ( COUNT( * ) )
----
2

skipif mysql # not compatible
query I rowsort label-4363
SELECT COUNT ( * ) + + ( COUNT ( * ) )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4364
SELECT ALL CAST( NULL AS SIGNED ) + - 9 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4364
SELECT ALL CAST ( NULL AS INTEGER ) + - 9 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4365
SELECT 30 + MIN( + 6 ) * - 85
----
-480

skipif mysql # not compatible
query I rowsort label-4365
SELECT 30 + MIN ( + 6 ) * - 85
----
-480

onlyif mysql # aggregate syntax: 
query I rowsort label-4366
SELECT NULLIF ( 17, + 36 ) + - 89 * + COUNT( * ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-4366
SELECT NULLIF ( 17, + 36 ) + - 89 * + COUNT ( * ) AS col2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4367
SELECT + 29 + COUNT( * )
----
30

skipif mysql # not compatible
query I rowsort label-4367
SELECT + 29 + COUNT ( * )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4368
SELECT DISTINCT COALESCE ( 98, 45 ) * - COUNT( * ) col1
----
-98

skipif mysql # not compatible
query I rowsort label-4368
SELECT DISTINCT COALESCE ( 98, 45 ) * - COUNT ( * ) col1
----
-98

query I rowsort
SELECT DISTINCT - CASE - 89 WHEN + + 12 THEN + 59 END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4370
SELECT ALL + ( + + COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4370
SELECT ALL + ( + + COUNT ( * ) ) AS col1
----
1

query I rowsort
SELECT DISTINCT + - 69 AS col2
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4372
SELECT ALL + SUM( + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4372
SELECT ALL + SUM ( + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + - 35
----
-35

query I rowsort
SELECT DISTINCT + 52 col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4375
SELECT COUNT( 52 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4375
SELECT COUNT ( 52 ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4376
SELECT ALL + 41 DIV - + 6
----
-6

skipif mysql # not compatible
query I rowsort label-4376
SELECT ALL + 41 / - + 6
----
-6

query I rowsort
SELECT ALL - 45 - - 58 AS col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4378
SELECT DISTINCT ( + COUNT( * ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-4378
SELECT DISTINCT ( + COUNT ( * ) ) col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4379
SELECT ALL 80 DIV + - 66 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4379
SELECT ALL 80 / + - 66 AS col2
----
-1

query I rowsort
SELECT ALL ( + - 55 )
----
-55

query I rowsort
SELECT DISTINCT 13 * + + 2
----
26

query II rowsort
SELECT DISTINCT + 4 col1, + 38
----
4
38

query I rowsort
SELECT ALL + + 57 * ( + + 29 )
----
1653

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4384
SELECT - COUNT( * ) DIV + 45 + 38
----
38

skipif mysql # not compatible
query I rowsort label-4384
SELECT - COUNT ( * ) / + 45 + 38
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4385
SELECT ALL - CAST( + - 63 AS SIGNED )
----
63

skipif mysql # not compatible
query I rowsort label-4385
SELECT ALL - CAST ( + - 63 AS INTEGER )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4386
SELECT ALL + ( + - MIN( ALL 34 ) ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-4386
SELECT ALL + ( + - MIN ( ALL 34 ) ) AS col2
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4387
SELECT DISTINCT 92 DIV - - COUNT( * ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-4387
SELECT DISTINCT 92 / - - COUNT ( * ) AS col0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4388
SELECT - COUNT( * ) * - 82 col0
----
82

skipif mysql # not compatible
query I rowsort label-4388
SELECT - COUNT ( * ) * - 82 col0
----
82

query I rowsort
SELECT ( - - 15 )
----
15

query I rowsort
SELECT ( 96 )
----
96

query I rowsort
SELECT ALL + 31 * - + 80
----
-2480

onlyif mysql # aggregate syntax: 
query I rowsort label-4392
SELECT DISTINCT + MIN( DISTINCT 46 ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-4392
SELECT DISTINCT + MIN ( DISTINCT 46 ) AS col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4393
SELECT + COUNT( * ) * + - 95 AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-4393
SELECT + COUNT ( * ) * + - 95 AS col2
----
-95

query I rowsort
SELECT ALL - 34 col2
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4395
SELECT ALL - ( - CAST( 31 AS SIGNED ) ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-4395
SELECT ALL - ( - CAST ( 31 AS INTEGER ) ) AS col0
----
31

query I rowsort
SELECT DISTINCT - ( - 39 ) col1
----
39

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4397
SELECT DISTINCT - 49 + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4397
SELECT DISTINCT - 49 + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4398
SELECT + COUNT( * ) + - 55 AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-4398
SELECT + COUNT ( * ) + - 55 AS col2
----
-54

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4399
SELECT 54 + + - CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) - 27
----
NULL

skipif mysql # not compatible
query I rowsort label-4399
SELECT 54 + + - CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) - 27
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4400
SELECT DISTINCT MIN( DISTINCT - - 66 )
----
66

skipif mysql # not compatible
query I rowsort label-4400
SELECT DISTINCT MIN ( DISTINCT - - 66 )
----
66

query II rowsort
SELECT - 55, + ( 37 ) * 87 AS col2
----
-55
3219

onlyif mysql # aggregate syntax: 
query I rowsort label-4402
SELECT DISTINCT MIN( + 25 ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-4402
SELECT DISTINCT MIN ( + 25 ) AS col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4403
SELECT ALL - 65 + COUNT( * )
----
-64

skipif mysql # not compatible
query I rowsort label-4403
SELECT ALL - 65 + COUNT ( * )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-4404
SELECT DISTINCT MAX( ALL - - 19 ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-4404
SELECT DISTINCT MAX ( ALL - - 19 ) AS col0
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-4405
SELECT - 2 DIV - + 59 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4405
SELECT - 2 / - + 59 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4406
SELECT ALL - MAX( ALL + 47 ) * + - 37
----
1739

skipif mysql # not compatible
query I rowsort label-4406
SELECT ALL - MAX ( ALL + 47 ) * + - 37
----
1739

onlyif mysql # aggregate syntax: 
query II rowsort label-4407
SELECT - COUNT( * ) * - COUNT( DISTINCT ( + 0 ) ), + 15 AS col0
----
1
15

skipif mysql # not compatible
query II rowsort label-4407
SELECT - COUNT ( * ) * - COUNT ( DISTINCT ( + 0 ) ), + 15 AS col0
----
1
15

query I rowsort
SELECT + + 22 + 39 AS col0
----
61

query I rowsort
SELECT + 32 * 87
----
2784

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4410
SELECT MAX( DISTINCT + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4410
SELECT MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + - 1
----
-1

query I rowsort
SELECT + ( - 74 )
----
-74

query I rowsort
SELECT DISTINCT - ( + - 32 ) AS col0
----
32

query I rowsort
SELECT 80 + - ( + - ( - + 46 ) ) + + + 21 col2
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-4415
SELECT 99 DIV - 81
----
-1

skipif mysql # not compatible
query I rowsort label-4415
SELECT 99 / - 81
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4416
SELECT 89 + SUM( 35 ) col2
----
124

skipif mysql # not compatible
query I rowsort label-4416
SELECT 89 + SUM ( 35 ) col2
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-4417
SELECT DISTINCT COUNT( * ) * - COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4417
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) AS col1
----
-1

query I rowsort
SELECT ALL + 37 * - 80
----
-2960

onlyif mysql # DIV for integer division: 
query I rowsort label-4419
SELECT - 93 DIV - 36
----
2

skipif mysql # not compatible
query I rowsort label-4419
SELECT - 93 / - 36
----
2

query I rowsort
SELECT DISTINCT - 4 - + 1
----
-5

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4421
SELECT ALL - + COUNT( * ), COUNT( DISTINCT CAST( NULL AS DECIMAL ) ) AS col1
----
-1
0

skipif mysql # not compatible
query II rowsort label-4421
SELECT ALL - + COUNT ( * ), COUNT ( DISTINCT CAST ( NULL AS REAL ) ) AS col1
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4422
SELECT + + MAX( - ( + 29 ) )
----
-29

skipif mysql # not compatible
query I rowsort label-4422
SELECT + + MAX ( - ( + 29 ) )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-4423
SELECT + MIN( DISTINCT 98 ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-4423
SELECT + MIN ( DISTINCT 98 ) AS col2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4424
SELECT 83 + COUNT( * ) + - + 70 AS col2
----
14

skipif mysql # not compatible
query I rowsort label-4424
SELECT 83 + COUNT ( * ) + - + 70 AS col2
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4425
SELECT 18 * + - CAST( - - 97 AS SIGNED ) AS col0
----
-1746

skipif mysql # not compatible
query I rowsort label-4425
SELECT 18 * + - CAST ( - - 97 AS INTEGER ) AS col0
----
-1746

onlyif mysql # aggregate syntax: 
query I rowsort label-4426
SELECT ALL + COUNT( * ) * + 55 AS col0
----
55

skipif mysql # not compatible
query I rowsort label-4426
SELECT ALL + COUNT ( * ) * + 55 AS col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4427
SELECT ALL - NULLIF ( + COUNT( * ), - 14 )
----
-1

skipif mysql # not compatible
query I rowsort label-4427
SELECT ALL - NULLIF ( + COUNT ( * ), - 14 )
----
-1

query I rowsort
SELECT DISTINCT + - 8 AS col0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4429
SELECT COUNT( * ) * - - 7 + - 94 AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-4429
SELECT COUNT ( * ) * - - 7 + - 94 AS col1
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4430
SELECT ALL SUM( ALL + - 36 ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-4430
SELECT ALL SUM ( ALL + - 36 ) AS col1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4431
SELECT MIN( DISTINCT - 43 )
----
-43

skipif mysql # not compatible
query I rowsort label-4431
SELECT MIN ( DISTINCT - 43 )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-4432
SELECT - MAX( DISTINCT - 75 ) * COUNT( DISTINCT - 90 ) - - 33 + 83 AS col1
----
191

skipif mysql # not compatible
query I rowsort label-4432
SELECT - MAX ( DISTINCT - 75 ) * COUNT ( DISTINCT - 90 ) - - 33 + 83 AS col1
----
191

query I rowsort
SELECT 63 col0
----
63

query I rowsort
SELECT + ( + 75 )
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4435
SELECT ALL - CAST( + ( + 12 ) AS SIGNED ) * - - 60 * - COUNT( * ) col0
----
720

skipif mysql # not compatible
query I rowsort label-4435
SELECT ALL - CAST ( + ( + 12 ) AS INTEGER ) * - - 60 * - COUNT ( * ) col0
----
720

onlyif mysql # aggregate syntax: 
query I rowsort label-4436
SELECT + 53 + - SUM( - + ( + - 91 ) )
----
-38

skipif mysql # not compatible
query I rowsort label-4436
SELECT + 53 + - SUM ( - + ( + - 91 ) )
----
-38

query II rowsort
SELECT + 42 AS col1, 95 * + + 27 AS col0
----
42
2565

onlyif mysql # aggregate syntax: 
query II rowsort label-4438
SELECT - + COUNT( * ) AS col2, 87 * - - 12 AS col1
----
-1
1044

skipif mysql # not compatible
query II rowsort label-4438
SELECT - + COUNT ( * ) AS col2, 87 * - - 12 AS col1
----
-1
1044

query I rowsort
SELECT DISTINCT - 30 * - 17
----
510

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4440
SELECT 98 DIV - - COUNT( * )
----
98

skipif mysql # not compatible
query I rowsort label-4440
SELECT 98 / - - COUNT ( * )
----
98

query I rowsort
SELECT ALL - 74 col0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4442
SELECT + ( + ( COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-4442
SELECT + ( + ( COUNT ( * ) ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4443
SELECT DISTINCT + COUNT( * ) + + 89 AS col0
----
90

skipif mysql # not compatible
query I rowsort label-4443
SELECT DISTINCT + COUNT ( * ) + + 89 AS col0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4444
SELECT - COUNT( * ) * + COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4444
SELECT - COUNT ( * ) * + COUNT ( * ) AS col1
----
-1

query I rowsort
SELECT - 64 * + 8
----
-512

query I rowsort
SELECT ALL 73 + + 30
----
103

query I rowsort
SELECT ( + 99 ) AS col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4448
SELECT + 65 + - COUNT( * )
----
64

skipif mysql # not compatible
query I rowsort label-4448
SELECT + 65 + - COUNT ( * )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4449
SELECT DISTINCT + + 25 * + - MAX( DISTINCT - + 81 ) AS col2
----
2025

skipif mysql # not compatible
query I rowsort label-4449
SELECT DISTINCT + + 25 * + - MAX ( DISTINCT - + 81 ) AS col2
----
2025

query I rowsort
SELECT NULLIF ( + 58, - 10 ) AS col0
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4451
SELECT ALL CAST( NULL AS SIGNED ) * + - 15
----
NULL

skipif mysql # not compatible
query I rowsort label-4451
SELECT ALL CAST ( NULL AS INTEGER ) * + - 15
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4452
SELECT ALL - COUNT( * ) / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4452
SELECT ALL - COUNT ( * ) / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4453
SELECT - COUNT( * ) * 23
----
-23

skipif mysql # not compatible
query I rowsort label-4453
SELECT - COUNT ( * ) * 23
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4454
SELECT - 35 + + MAX( ALL + - 98 ) * + COUNT( * )
----
-133

skipif mysql # not compatible
query I rowsort label-4454
SELECT - 35 + + MAX ( ALL + - 98 ) * + COUNT ( * )
----
-133

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4455
SELECT CAST( NULL AS DECIMAL ) * + - 76
----
NULL

skipif mysql # not compatible
query I rowsort label-4455
SELECT CAST ( NULL AS REAL ) * + - 76
----
NULL

query II rowsort
SELECT 1, + 38 AS col1
----
1
38

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4457
SELECT ALL AVG ( DISTINCT - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4457
SELECT ALL AVG ( DISTINCT - CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4458
SELECT + COUNT( * ) + 31
----
32

skipif mysql # not compatible
query I rowsort label-4458
SELECT + COUNT ( * ) + 31
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4459
SELECT ALL - 4 * COUNT( * ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-4459
SELECT ALL - 4 * COUNT ( * ) AS col2
----
-4

query I rowsort
SELECT + 1 + - 23 * 30
----
-689

onlyif mysql # aggregate syntax: 
query II rowsort label-4461
SELECT 74 AS col2, COUNT( * ) AS col0
----
74
1

skipif mysql # not compatible
query II rowsort label-4461
SELECT 74 AS col2, COUNT ( * ) AS col0
----
74
1

query I rowsort
SELECT ALL + - 32 AS col1
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-4463
SELECT + SUM( + + 42 )
----
42

skipif mysql # not compatible
query I rowsort label-4463
SELECT + SUM ( + + 42 )
----
42

query I rowsort
SELECT ( + + 54 ) AS col1
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4465
SELECT ALL + CAST( NULL AS SIGNED ) * + 41
----
NULL

skipif mysql # not compatible
query I rowsort label-4465
SELECT ALL + CAST ( NULL AS INTEGER ) * + 41
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4466
SELECT ALL 13 DIV - + 66 AS col0, COUNT( * )
----
0
1

skipif mysql # not compatible
query II rowsort label-4466
SELECT ALL 13 / - + 66 AS col0, COUNT ( * )
----
0
1

query I rowsort
SELECT DISTINCT ( - - 38 )
----
38

query I rowsort
SELECT DISTINCT - - ( - + 32 ) col0
----
-32

query II rowsort
SELECT ALL - 97, + ( 4 ) AS col1
----
-97
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4470
SELECT - 5 * 11 - - SUM( + 15 )
----
-40

skipif mysql # not compatible
query I rowsort label-4470
SELECT - 5 * 11 - - SUM ( + 15 )
----
-40

query I rowsort
SELECT ALL - ( - - 23 )
----
-23

query I rowsort
SELECT DISTINCT - 60 + + 14 AS col0
----
-46

query I rowsort
SELECT 67 + - 88 AS col0
----
-21

query I rowsort
SELECT ( + + 55 )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4475
SELECT ALL + MIN( - 8 )
----
-8

skipif mysql # not compatible
query I rowsort label-4475
SELECT ALL + MIN ( - 8 )
----
-8

query I rowsort
SELECT + 50 + + 67 col1
----
117

onlyif mysql # DIV for integer division: 
query I rowsort label-4477
SELECT + 42 DIV - 52
----
0

skipif mysql # not compatible
query I rowsort label-4477
SELECT + 42 / - 52
----
0

query I rowsort
SELECT ALL - 74 + 91
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4479
SELECT - - 64 * - 77 DIV + COUNT( * )
----
-4928

skipif mysql # not compatible
query I rowsort label-4479
SELECT - - 64 * - 77 / + COUNT ( * )
----
-4928

query I rowsort
SELECT + ( 63 )
----
63

query I rowsort
SELECT + ( - + 49 ) AS col2
----
-49

query I rowsort
SELECT ( - 83 )
----
-83

query I rowsort
SELECT + ( + 86 )
----
86

query I rowsort
SELECT DISTINCT 14 + - 79 AS col1
----
-65

query I rowsort
SELECT ALL - ( - ( + + 57 ) ) AS col1
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-4486
SELECT ALL 13 DIV + 46
----
0

skipif mysql # not compatible
query I rowsort label-4486
SELECT ALL 13 / + 46
----
0

query I rowsort
SELECT 10 * - + 39
----
-390

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4488
SELECT - CAST( NULL AS SIGNED ) - + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4488
SELECT - CAST ( NULL AS INTEGER ) - + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 32 * + 24
----
768

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4490
SELECT + ( + 39 ) DIV + + ( + - 80 ) + 51 * + COUNT( * ) + - + ( + 69 ) * COUNT( * ) * - 33
----
2328

skipif mysql # not compatible
query I rowsort label-4490
SELECT + ( + 39 ) / + + ( + - 80 ) + 51 * + COUNT ( * ) + - + ( + 69 ) * COUNT ( * ) * - 33
----
2328

query I rowsort
SELECT + 13 + - 49 AS col0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4492
SELECT ALL + MIN( - 23 )
----
-23

skipif mysql # not compatible
query I rowsort label-4492
SELECT ALL + MIN ( - 23 )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4493
SELECT + + COUNT( ALL + + 88 )
----
1

skipif mysql # not compatible
query I rowsort label-4493
SELECT + + COUNT ( ALL + + 88 )
----
1

query I rowsort
SELECT - + ( 52 )
----
-52

query I rowsort
SELECT DISTINCT 47 * - 81
----
-3807

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4496
SELECT 15 + CAST( NULL AS SIGNED ) AS col0, + 42 + - MAX( - 54 ) + + 86 * 5 AS col2
----
NULL
526

skipif mysql # not compatible
query II rowsort label-4496
SELECT 15 + CAST ( NULL AS INTEGER ) AS col0, + 42 + - MAX ( - 54 ) + + 86 * 5 AS col2
----
NULL
526

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4497
SELECT DISTINCT - + NULLIF ( CAST( - + AVG ( - - CAST( NULL AS SIGNED ) ) AS DECIMAL ), - 38 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4497
SELECT DISTINCT - + NULLIF ( CAST ( - + AVG ( - - CAST ( NULL AS INTEGER ) ) AS REAL ), - 38 ) AS col1
----
NULL

query I rowsort
SELECT ALL - + 64
----
-64

query I rowsort
SELECT ALL 55 * - + 7 col2
----
-385

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4500
SELECT ALL 73 * - + CAST( + 45 AS SIGNED ) col1
----
-3285

skipif mysql # not compatible
query I rowsort label-4500
SELECT ALL 73 * - + CAST ( + 45 AS INTEGER ) col1
----
-3285

query I rowsort
SELECT ( - - 91 ) * - + 62
----
-5642

query I rowsort
SELECT ALL + 62 * + - 34 AS col2
----
-2108

query I rowsort
SELECT + 47 * + - 4
----
-188

query II rowsort
SELECT ALL + - 31 AS col0, - 13 col0
----
-31
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-4505
SELECT + 14 + - MIN( DISTINCT + 11 )
----
3

skipif mysql # not compatible
query I rowsort label-4505
SELECT + 14 + - MIN ( DISTINCT + 11 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4506
SELECT MAX( ALL + 51 ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-4506
SELECT MAX ( ALL + 51 ) AS col0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4507
SELECT DISTINCT 7 + - - ( - ( + - CAST( NULL AS SIGNED ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4507
SELECT DISTINCT 7 + - - ( - ( + - CAST ( NULL AS INTEGER ) ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4508
SELECT + COUNT( ALL + + 82 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4508
SELECT + COUNT ( ALL + + 82 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4509
SELECT + COUNT( - - 61 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4509
SELECT + COUNT ( - - 61 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4510
SELECT + COUNT( - + 48 )
----
1

skipif mysql # not compatible
query I rowsort label-4510
SELECT + COUNT ( - + 48 )
----
1

query I rowsort
SELECT ( + 8 ) AS col0
----
8

query I rowsort
SELECT NULLIF ( - 73, - 2 ) AS col2
----
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4513
SELECT 15 DIV + COUNT( * )
----
15

skipif mysql # not compatible
query I rowsort label-4513
SELECT 15 / + COUNT ( * )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4514
SELECT ALL - COUNT( * ) + - + 30
----
-31

skipif mysql # not compatible
query I rowsort label-4514
SELECT ALL - COUNT ( * ) + - + 30
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4515
SELECT COUNT( * ) + 43 AS col2
----
44

skipif mysql # not compatible
query I rowsort label-4515
SELECT COUNT ( * ) + 43 AS col2
----
44

query I rowsort
SELECT 31 * + + 15
----
465

query I rowsort
SELECT ALL - ( - + 8 )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4518
SELECT DISTINCT 9 * COUNT( * ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-4518
SELECT DISTINCT 9 * COUNT ( * ) AS col1
----
9

query I rowsort
SELECT ALL - - 7 AS col0
----
7

query I rowsort
SELECT DISTINCT + 80 * + 70 AS col1
----
5600

query I rowsort
SELECT ALL - 35 * + 6
----
-210

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4522
SELECT DISTINCT + ( ( CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4522
SELECT DISTINCT + ( ( CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4523
SELECT ALL + 37 / - CAST( NULL AS SIGNED ) * + 88 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4523
SELECT ALL + 37 / - CAST ( NULL AS INTEGER ) * + 88 AS col0
----
NULL

query I rowsort
SELECT - + 30 * - 54
----
1620

query I rowsort
SELECT ALL + ( + 91 )
----
91

query I rowsort
SELECT ( 82 )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4527
SELECT ALL - COUNT( 59 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4527
SELECT ALL - COUNT ( 59 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4528
SELECT + 43 AS col1, COUNT( * )
----
43
1

skipif mysql # not compatible
query II rowsort label-4528
SELECT + 43 AS col1, COUNT ( * )
----
43
1

query I rowsort
SELECT ALL ( 97 ) AS col1
----
97

query I rowsort
SELECT - 54 + + 34 * + 60 col0
----
1986

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4531
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * + - 49
----
NULL

skipif mysql # not compatible
query I rowsort label-4531
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * + - 49
----
NULL

query I rowsort
SELECT ALL - ( 2 ) AS col0
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4533
SELECT DISTINCT 54 / + - MAX( - - 34 ) * MAX( ALL - CAST( NULL AS SIGNED ) ) + + CAST( NULL AS SIGNED ) + + - 29
----
NULL

skipif mysql # not compatible
query I rowsort label-4533
SELECT DISTINCT 54 / + - MAX ( - - 34 ) * MAX ( ALL - CAST ( NULL AS INTEGER ) ) + + CAST ( NULL AS INTEGER ) + + - 29
----
NULL

query I rowsort
SELECT + ( + 52 ) col2
----
52

query I rowsort
SELECT + 93 + - 32
----
61

query I rowsort
SELECT ALL - ( + - 26 )
----
26

query I rowsort
SELECT DISTINCT 11 col2
----
11

query II rowsort
SELECT DISTINCT 65 AS col2, + 77
----
65
77

query I rowsort
SELECT 77 * - ( + 0 ) - - 10 col1
----
10

query I rowsort
SELECT ALL 44 - 60
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-4541
SELECT ALL + 87 col2, + COUNT( * ) col2
----
87
1

skipif mysql # not compatible
query II rowsort label-4541
SELECT ALL + 87 col2, + COUNT ( * ) col2
----
87
1

query I rowsort
SELECT + + 93 * - 70 AS col0
----
-6510

onlyif mysql # aggregate syntax: 
query I rowsort label-4543
SELECT + COUNT( * ) + 76 AS col0
----
77

skipif mysql # not compatible
query I rowsort label-4543
SELECT + COUNT ( * ) + 76 AS col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4544
SELECT + 72 + - COUNT( * ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-4544
SELECT + 72 + - COUNT ( * ) AS col2
----
71

onlyif mysql # aggregate syntax: 
query II rowsort label-4545
SELECT ALL 71 AS col0, - COUNT( * )
----
71
-1

skipif mysql # not compatible
query II rowsort label-4545
SELECT ALL 71 AS col0, - COUNT ( * )
----
71
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4546
SELECT DISTINCT + 71 * - + ( + COUNT( * ) ) - 13, CAST( NULL AS SIGNED ) + 25 col0
----
-84
NULL

skipif mysql # not compatible
query II rowsort label-4546
SELECT DISTINCT + 71 * - + ( + COUNT ( * ) ) - 13, CAST ( NULL AS INTEGER ) + 25 col0
----
-84
NULL

query I rowsort
SELECT ALL + + CASE WHEN NOT 37 < 75 THEN - + 61 END AS col0
----
NULL

query I rowsort
SELECT - ( 44 )
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4549
SELECT ALL 77 + CAST( + 42 AS SIGNED ) - + COUNT( * ) AS col2
----
118

skipif mysql # not compatible
query I rowsort label-4549
SELECT ALL 77 + CAST ( + 42 AS INTEGER ) - + COUNT ( * ) AS col2
----
118

query I rowsort
SELECT 42 + - - 26
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4551
SELECT ALL - COUNT( * ) + - + 94 AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-4551
SELECT ALL - COUNT ( * ) + - + 94 AS col2
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4552
SELECT ALL - 28, CAST( NULL AS SIGNED ) AS col2
----
-28
NULL

skipif mysql # not compatible
query II rowsort label-4552
SELECT ALL - 28, CAST ( NULL AS INTEGER ) AS col2
----
-28
NULL

query I rowsort
SELECT ALL + 25 * 53
----
1325

onlyif mysql # aggregate syntax: 
query I rowsort label-4554
SELECT ALL - - 1 + MAX( DISTINCT - 56 ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-4554
SELECT ALL - - 1 + MAX ( DISTINCT - 56 ) AS col0
----
-55

query I rowsort
SELECT ( 81 ) + - 12 AS col1
----
69

query I rowsort
SELECT DISTINCT + + 68 AS col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4557
SELECT SUM( - 93 )
----
-93

skipif mysql # not compatible
query I rowsort label-4557
SELECT SUM ( - 93 )
----
-93

query I rowsort
SELECT + 83 + 91 AS col1
----
174

query I rowsort
SELECT - ( + 43 )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-4560
SELECT ALL MAX( ALL 10 ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-4560
SELECT ALL MAX ( ALL 10 ) AS col2
----
10

query I rowsort
SELECT - 36 + + 97 AS col1
----
61

query I rowsort
SELECT + 47 + - 98 AS col0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4563
SELECT ALL MAX( DISTINCT 95 ) col1
----
95

skipif mysql # not compatible
query I rowsort label-4563
SELECT ALL MAX ( DISTINCT 95 ) col1
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4564
SELECT CAST( + 84 AS SIGNED ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-4564
SELECT CAST ( + 84 AS INTEGER ) AS col1
----
84

query I rowsort
SELECT ALL + ( - + 27 ) AS col0
----
-27

query I rowsort
SELECT COALESCE ( + 66, + - 2 ) col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4567
SELECT + MIN( + 78 )
----
78

skipif mysql # not compatible
query I rowsort label-4567
SELECT + MIN ( + 78 )
----
78

query I rowsort
SELECT + 12 * 90
----
1080

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4569
SELECT - CAST( NULL AS SIGNED ), + COUNT( * ) * - + 27 AS col1
----
NULL
-27

skipif mysql # not compatible
query II rowsort label-4569
SELECT - CAST ( NULL AS INTEGER ), + COUNT ( * ) * - + 27 AS col1
----
NULL
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-4570
SELECT COUNT( * ) - - 8 AS col2, - 44 col1
----
9
-44

skipif mysql # not compatible
query II rowsort label-4570
SELECT COUNT ( * ) - - 8 AS col2, - 44 col1
----
9
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-4571
SELECT COUNT( * ) + - + 64
----
-63

skipif mysql # not compatible
query I rowsort label-4571
SELECT COUNT ( * ) + - + 64
----
-63

query I rowsort
SELECT + 13 + - - 79 AS col2
----
92

query I rowsort
SELECT ALL - + 73 AS col2
----
-73

query I rowsort
SELECT ALL - ( + + 46 ) AS col1
----
-46

query I rowsort
SELECT 0 + + + 16 AS col0
----
16

query I rowsort
SELECT - - 8 col1
----
8

query I rowsort
SELECT - + ( + 6 ) AS col2
----
-6

query I rowsort
SELECT ALL + 34 + + - 25
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4579
SELECT NULLIF ( - 70, + MAX( - 20 ) )
----
-70

skipif mysql # not compatible
query I rowsort label-4579
SELECT NULLIF ( - 70, + MAX ( - 20 ) )
----
-70

query I rowsort
SELECT + ( - 78 ) col0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4581
SELECT DISTINCT + 23 * COUNT( * ) * 85 AS col2
----
1955

skipif mysql # not compatible
query I rowsort label-4581
SELECT DISTINCT + 23 * COUNT ( * ) * 85 AS col2
----
1955

query I rowsort
SELECT ALL 42 * 42
----
1764

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4583
SELECT ALL - 16 - + CAST( NULL AS SIGNED ) + + 92 * - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-4583
SELECT ALL - 16 - + CAST ( NULL AS INTEGER ) + + 92 * - 6
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4584
SELECT COUNT( * ) * - - SUM( - 80 ) DIV - 81 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4584
SELECT COUNT ( * ) * - - SUM ( - 80 ) / - 81 AS col2
----
0

query I rowsort
SELECT 43 * - 42 col0
----
-1806

onlyif mysql # aggregate syntax: 
query I rowsort label-4586
SELECT 49 - COUNT( * ) AS col0
----
48

skipif mysql # not compatible
query I rowsort label-4586
SELECT 49 - COUNT ( * ) AS col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4587
SELECT ALL COUNT( * ) * - 90
----
-90

skipif mysql # not compatible
query I rowsort label-4587
SELECT ALL COUNT ( * ) * - 90
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4588
SELECT DISTINCT - CAST( + 80 AS SIGNED ) AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-4588
SELECT DISTINCT - CAST ( + 80 AS INTEGER ) AS col2
----
-80

query I rowsort
SELECT ALL - ( - 15 ) AS col2
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4590
SELECT DISTINCT - CAST( ( + COUNT( * ) ) AS SIGNED ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4590
SELECT DISTINCT - CAST ( ( + COUNT ( * ) ) AS INTEGER ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4591
SELECT ALL SUM( ALL + 50 ) * 31 col2
----
1550

skipif mysql # not compatible
query I rowsort label-4591
SELECT ALL SUM ( ALL + 50 ) * 31 col2
----
1550

query I rowsort
SELECT ALL + 80 + 16 AS col1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4593
SELECT DISTINCT COUNT( 49 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4593
SELECT DISTINCT COUNT ( 49 ) AS col0
----
1

query I rowsort
SELECT - 34 * + 36
----
-1224

onlyif mysql # aggregate syntax: 
query I rowsort label-4595
SELECT - 19 * COUNT( * ) + + COUNT( * )
----
-18

skipif mysql # not compatible
query I rowsort label-4595
SELECT - 19 * COUNT ( * ) + + COUNT ( * )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-4596
SELECT ALL - COUNT( * ) * + 29 + + 46
----
17

skipif mysql # not compatible
query I rowsort label-4596
SELECT ALL - COUNT ( * ) * + 29 + + 46
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4597
SELECT ALL + + COUNT( * ) * - - ( - 35 )
----
-35

skipif mysql # not compatible
query I rowsort label-4597
SELECT ALL + + COUNT ( * ) * - - ( - 35 )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-4598
SELECT - - ( ( - COUNT( 81 ) ) ) + 28
----
27

skipif mysql # not compatible
query I rowsort label-4598
SELECT - - ( ( - COUNT ( 81 ) ) ) + 28
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4599
SELECT DISTINCT MAX( ALL + 21 ) - - + COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-4599
SELECT DISTINCT MAX ( ALL + 21 ) - - + COUNT ( * )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4600
SELECT ALL COALESCE ( - COUNT( * ), 76 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4600
SELECT ALL COALESCE ( - COUNT ( * ), 76 ) AS col2
----
-1

query II rowsort
SELECT DISTINCT + - 94 AS col2, 96 AS col1
----
-94
96

query I rowsort
SELECT 9 * 3
----
27

query I rowsort
SELECT + ( - 70 ) AS col1
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4604
SELECT DISTINCT - MAX( DISTINCT - CAST( - + 71 AS SIGNED ) )
----
-71

skipif mysql # not compatible
query I rowsort label-4604
SELECT DISTINCT - MAX ( DISTINCT - CAST ( - + 71 AS INTEGER ) )
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-4605
SELECT DISTINCT + MIN( - - 75 ) * + - 92
----
-6900

skipif mysql # not compatible
query I rowsort label-4605
SELECT DISTINCT + MIN ( - - 75 ) * + - 92
----
-6900

query I rowsort
SELECT 13 + 99
----
112

query I rowsort
SELECT DISTINCT 77 * 83 AS col1
----
6391

query I rowsort
SELECT 37 * 24
----
888

query I rowsort
SELECT ALL - - 27 AS col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4610
SELECT DISTINCT COUNT( ALL + 58 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4610
SELECT DISTINCT COUNT ( ALL + 58 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4611
SELECT + - 46 DIV 61 * + - 35 + + - 15
----
-15

skipif mysql # not compatible
query I rowsort label-4611
SELECT + - 46 / 61 * + - 35 + + - 15
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4612
SELECT + COALESCE ( - COUNT( * ), + + 53 ) * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4612
SELECT + COALESCE ( - COUNT ( * ), + + 53 ) * + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + - 14 AS col0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4614
SELECT ALL + ( - 46 ) * + COUNT( * ) * 70 AS col2
----
-3220

skipif mysql # not compatible
query I rowsort label-4614
SELECT ALL + ( - 46 ) * + COUNT ( * ) * 70 AS col2
----
-3220

onlyif mysql # aggregate syntax: 
query I rowsort label-4615
SELECT ALL 78 * - COUNT( DISTINCT - 24 )
----
-78

skipif mysql # not compatible
query I rowsort label-4615
SELECT ALL 78 * - COUNT ( DISTINCT - 24 )
----
-78

query I rowsort
SELECT - ( + 17 ) col2
----
-17

query I rowsort
SELECT - 88 + - 17
----
-105

query II rowsort
SELECT - + 2, 93 AS col1
----
-2
93

query I rowsort
SELECT + 82 + 25
----
107

query II rowsort
SELECT - ( 96 ), + 57 AS col2
----
-96
57

query I rowsort
SELECT DISTINCT - 95 col1
----
-95

query I rowsort
SELECT DISTINCT 40 * - + 22 AS col2
----
-880

query I rowsort
SELECT ALL ( - - 43 ) AS col2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4624
SELECT 57 - - 84 * - COUNT( * ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-4624
SELECT 57 - - 84 * - COUNT ( * ) AS col2
----
-27

query I rowsort
SELECT + 17 * + 3 AS col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4626
SELECT DISTINCT - + MIN( DISTINCT 95 ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-4626
SELECT DISTINCT - + MIN ( DISTINCT 95 ) AS col0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-4627
SELECT - 76 * + ( + COUNT( * ) )
----
-76

skipif mysql # not compatible
query I rowsort label-4627
SELECT - 76 * + ( + COUNT ( * ) )
----
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-4628
SELECT - 93 + 83 AS col2, 65 * + + COUNT( * )
----
-10
65

skipif mysql # not compatible
query II rowsort label-4628
SELECT - 93 + 83 AS col2, 65 * + + COUNT ( * )
----
-10
65

onlyif mysql # aggregate syntax: 
query II rowsort label-4629
SELECT DISTINCT + MAX( DISTINCT + 40 ) AS col1, MIN( - - 91 ) AS col0
----
40
91

skipif mysql # not compatible
query II rowsort label-4629
SELECT DISTINCT + MAX ( DISTINCT + 40 ) AS col1, MIN ( - - 91 ) AS col0
----
40
91

onlyif mysql # DIV for integer division: 
query I rowsort label-4630
SELECT ALL + + 77 DIV - 31
----
-2

skipif mysql # not compatible
query I rowsort label-4630
SELECT ALL + + 77 / - 31
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4631
SELECT + CAST( NULL AS SIGNED ) + - COUNT( * ) * 84 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4631
SELECT + CAST ( NULL AS INTEGER ) + - COUNT ( * ) * 84 AS col0
----
NULL

query I rowsort
SELECT ( 73 ) AS col2
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4633
SELECT + COUNT( * ) DIV 52 * + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4633
SELECT + COUNT ( * ) / 52 * + COUNT ( * )
----
0

query I rowsort
SELECT DISTINCT 76 * + 49 AS col0
----
3724

query II rowsort
SELECT ALL + 98, + ( + COALESCE ( + 84, + 70, - ( - - 80 ) ) ) AS col0
----
98
84

query I rowsort
SELECT + ( + 92 )
----
92

query I rowsort
SELECT + ( - - 88 ) col2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4638
SELECT - COUNT( * ) * + 36
----
-36

skipif mysql # not compatible
query I rowsort label-4638
SELECT - COUNT ( * ) * + 36
----
-36

query I rowsort
SELECT - 42 + - - 16
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-4640
SELECT DISTINCT + + 99 DIV - - 14 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-4640
SELECT DISTINCT + + 99 / - - 14 AS col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4641
SELECT DISTINCT - ( + COUNT( ALL + 41 ) ) + - + 10
----
-11

skipif mysql # not compatible
query I rowsort label-4641
SELECT DISTINCT - ( + COUNT ( ALL + 41 ) ) + - + 10
----
-11

query I rowsort
SELECT + 72 * 68
----
4896

onlyif mysql # aggregate syntax: 
query I rowsort label-4643
SELECT ALL + COUNT( * ) * + COUNT( * ) * 16 AS col1
----
16

skipif mysql # not compatible
query I rowsort label-4643
SELECT ALL + COUNT ( * ) * + COUNT ( * ) * 16 AS col1
----
16

query II rowsort
SELECT ALL 56, - 37 + + 62 AS col1
----
56
25

query I rowsort
SELECT DISTINCT 46 * + 85
----
3910

query II rowsort
SELECT ALL - 42 AS col2, 11 AS col2
----
-42
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4647
SELECT COUNT( * ) * COUNT( * ) DIV + - 61 * - 43 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4647
SELECT COUNT ( * ) * COUNT ( * ) / + - 61 * - 43 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4648
SELECT 47 DIV COUNT( * ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-4648
SELECT 47 / COUNT ( * ) AS col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4649
SELECT 75 + - COUNT( * ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-4649
SELECT 75 + - COUNT ( * ) AS col2
----
74

query I rowsort
SELECT DISTINCT - 33 AS col2
----
-33

query II rowsort
SELECT ALL 34 + + 58 AS col2, - ( - 74 ) AS col0
----
92
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4652
SELECT ALL MAX( 68 )
----
68

skipif mysql # not compatible
query I rowsort label-4652
SELECT ALL MAX ( 68 )
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4653
SELECT + + CAST( NULL AS SIGNED ), + CAST( NULL AS SIGNED ) * ( 47 ) AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4653
SELECT + + CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) * ( 47 ) AS col2
----
NULL
NULL

query I rowsort
SELECT ALL + - 91 AS col2
----
-91

query I rowsort
SELECT DISTINCT + + 0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4656
SELECT ALL - CAST( NULL AS DECIMAL ) / - 28 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4656
SELECT ALL - CAST ( NULL AS REAL ) / - 28 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4657
SELECT - ( - + ( - COUNT( * ) ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4657
SELECT - ( - + ( - COUNT ( * ) ) ) AS col2
----
-1

query I rowsort
SELECT - ( + + 63 )
----
-63

query I rowsort
SELECT ALL + - 6 AS col0
----
-6

query I rowsort
SELECT - + 28 + - + 96
----
-124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4661
SELECT ALL - - CAST( NULL AS SIGNED ) * COUNT( * ) + - CAST( - COUNT( * ) AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4661
SELECT ALL - - CAST ( NULL AS INTEGER ) * COUNT ( * ) + - CAST ( - COUNT ( * ) AS INTEGER ) col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4662
SELECT ALL 18 + + ( - - CAST( NULL AS SIGNED ) ) * - - AVG ( 47 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4662
SELECT ALL 18 + + ( - - CAST ( NULL AS INTEGER ) ) * - - AVG ( 47 ) AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4663
SELECT ALL CAST( NULL AS DECIMAL ) * - - 90
----
NULL

skipif mysql # not compatible
query I rowsort label-4663
SELECT ALL CAST ( NULL AS REAL ) * - - 90
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4664
SELECT ALL COUNT( * ) + + 84
----
85

skipif mysql # not compatible
query I rowsort label-4664
SELECT ALL COUNT ( * ) + + 84
----
85

query I rowsort
SELECT 26 + - 2 AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4666
SELECT ALL COUNT( * ) * - 2 col2
----
-2

skipif mysql # not compatible
query I rowsort label-4666
SELECT ALL COUNT ( * ) * - 2 col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4667
SELECT + 30 + + SUM( DISTINCT + 80 )
----
110

skipif mysql # not compatible
query I rowsort label-4667
SELECT + 30 + + SUM ( DISTINCT + 80 )
----
110

query I rowsort
SELECT DISTINCT + + 36 AS col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4669
SELECT MIN( DISTINCT + + ( + + 40 ) ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-4669
SELECT MIN ( DISTINCT + + ( + + 40 ) ) AS col2
----
40

query I rowsort
SELECT - ( + 82 )
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-4671
SELECT DISTINCT - 16 + + COUNT( * )
----
-15

skipif mysql # not compatible
query I rowsort label-4671
SELECT DISTINCT - 16 + + COUNT ( * )
----
-15

query I rowsort
SELECT - - 41 AS col1
----
41

query I rowsort
SELECT ( + ( + - 83 ) )
----
-83

query I rowsort
SELECT ( - + 79 ) col0
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4675
SELECT + CAST( + + 27 AS SIGNED )
----
27

skipif mysql # not compatible
query I rowsort label-4675
SELECT + CAST ( + + 27 AS INTEGER )
----
27

query I rowsort
SELECT + 87 + - 44 AS col1
----
43

query I rowsort
SELECT ALL 79 col1
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-4678
SELECT - 81 DIV + + 74 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4678
SELECT - 81 / + + 74 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4679
SELECT COUNT( + 84 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-4679
SELECT COUNT ( + 84 ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4680
SELECT - MAX( ALL + + COALESCE ( + 10, + - 96 ) ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-4680
SELECT - MAX ( ALL + + COALESCE ( + 10, + - 96 ) ) AS col1
----
-10

query I rowsort
SELECT ALL + 24 + - 83 AS col1
----
-59

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4682
SELECT ALL + ( + 83 ) * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4682
SELECT ALL + ( + 83 ) * CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4683
SELECT ALL - COUNT( * ) * + 32
----
-32

skipif mysql # not compatible
query I rowsort label-4683
SELECT ALL - COUNT ( * ) * + 32
----
-32

query I rowsort
SELECT ALL - ( - - 37 )
----
-37

query I rowsort
SELECT - ( + 81 ) * - 7 AS col2
----
567

onlyif mysql # aggregate syntax: 
query I rowsort label-4686
SELECT ALL NULLIF ( SUM( ALL - - 1 ), - 8 )
----
1

skipif mysql # not compatible
query I rowsort label-4686
SELECT ALL NULLIF ( SUM ( ALL - - 1 ), - 8 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4687
SELECT DISTINCT - NULLIF ( - 12, MIN( 17 ) ) + + + 57 AS col1, + COUNT( * )
----
69
1

skipif mysql # not compatible
query II rowsort label-4687
SELECT DISTINCT - NULLIF ( - 12, MIN ( 17 ) ) + + + 57 AS col1, + COUNT ( * )
----
69
1

query I rowsort
SELECT - - ( - 87 ) AS col1
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4689
SELECT ALL + COUNT( * ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4689
SELECT ALL + COUNT ( * ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4690
SELECT - 99 - CAST( NULL AS SIGNED ) - - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4690
SELECT - 99 - CAST ( NULL AS INTEGER ) - - COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT ALL ( + + 75 )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4692
SELECT - COUNT( ALL + 2 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4692
SELECT - COUNT ( ALL + 2 ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4693
SELECT + CAST( + 77 AS SIGNED ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-4693
SELECT + CAST ( + 77 AS INTEGER ) AS col2
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-4694
SELECT ALL 23 DIV + + 46
----
0

skipif mysql # not compatible
query I rowsort label-4694
SELECT ALL 23 / + + 46
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4695
SELECT - 47 * - + COUNT( * ) - - - 43
----
4

skipif mysql # not compatible
query I rowsort label-4695
SELECT - 47 * - + COUNT ( * ) - - - 43
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4696
SELECT + NULLIF ( + + 97, ( COUNT( * ) ) ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-4696
SELECT + NULLIF ( + + 97, ( COUNT ( * ) ) ) AS col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4697
SELECT MIN( + 35 ) col1
----
35

skipif mysql # not compatible
query I rowsort label-4697
SELECT MIN ( + 35 ) col1
----
35

query I rowsort
SELECT + + 37 AS col1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4699
SELECT + COUNT( + - 90 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4699
SELECT + COUNT ( + - 90 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4700
SELECT MAX( + 79 ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-4700
SELECT MAX ( + 79 ) AS col2
----
79

query I rowsort
SELECT + 82 * + 31
----
2542

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4702
SELECT + 46 * + MIN( - - 26 ), 77 DIV + + 3 AS col2
----
1196
25

skipif mysql # not compatible
query II rowsort label-4702
SELECT + 46 * + MIN ( - - 26 ), 77 / + + 3 AS col2
----
1196
25

query I rowsort
SELECT - ( - 87 ) AS col1
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4704
SELECT ALL ( 95 ) DIV - SUM( - 90 ) * - COUNT( * ) col0, + 99 + 53 AS col0
----
-1
152

skipif mysql # not compatible
query II rowsort label-4704
SELECT ALL ( 95 ) / - SUM ( - 90 ) * - COUNT ( * ) col0, + 99 + 53 AS col0
----
-1
152

query I rowsort
SELECT DISTINCT 30 col0
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4706
SELECT ALL CAST( NULL AS SIGNED ) * + 42 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4706
SELECT ALL CAST ( NULL AS INTEGER ) * + 42 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4707
SELECT + MAX( ALL - - 14 ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-4707
SELECT + MAX ( ALL - - 14 ) AS col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4708
SELECT DISTINCT + 83 * COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-4708
SELECT DISTINCT + 83 * COUNT ( * )
----
83

query I rowsort
SELECT + - 33 col2
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4710
SELECT - AVG ( 89 ) + + CAST( NULL AS SIGNED ) * - 56
----
NULL

skipif mysql # not compatible
query I rowsort label-4710
SELECT - AVG ( 89 ) + + CAST ( NULL AS INTEGER ) * - 56
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4711
SELECT COUNT( * ) * SUM( - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4711
SELECT COUNT ( * ) * SUM ( - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4712
SELECT DISTINCT + 3 - MIN( DISTINCT - 5 )
----
8

skipif mysql # not compatible
query I rowsort label-4712
SELECT DISTINCT + 3 - MIN ( DISTINCT - 5 )
----
8

query I rowsort
SELECT - ( - 34 ) AS col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4714
SELECT DISTINCT + COUNT( * ) * - + 82 col0
----
-82

skipif mysql # not compatible
query I rowsort label-4714
SELECT DISTINCT + COUNT ( * ) * - + 82 col0
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4715
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-4715
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + - 68
----
NULL

query I rowsort
SELECT + 50 + 81 col1
----
131

query II rowsort
SELECT DISTINCT - 68 AS col2, - 19
----
-68
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4718
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - + 44 * - - CAST( - COUNT( * ) AS SIGNED ) * + + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-4718
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - + 44 * - - CAST ( - COUNT ( * ) AS INTEGER ) * + + 26
----
NULL

query I rowsort
SELECT 60 + - 90
----
-30

query I rowsort
SELECT 88 * + 55 AS col2
----
4840

onlyif mysql # aggregate syntax: 
query I rowsort label-4721
SELECT ALL COUNT( * ) * - - 68
----
68

skipif mysql # not compatible
query I rowsort label-4721
SELECT ALL COUNT ( * ) * - - 68
----
68

query I rowsort
SELECT DISTINCT + + 49 col0
----
49

query I rowsort
SELECT DISTINCT + 13 col1
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4724
SELECT ALL CAST( 65 AS SIGNED ) * 36
----
2340

skipif mysql # not compatible
query I rowsort label-4724
SELECT ALL CAST ( 65 AS INTEGER ) * 36
----
2340

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4725
SELECT - - 13 + - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4725
SELECT - - 13 + - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + ( - ( - 95 ) ) AS col0
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4727
SELECT - ( - - CAST( NULL AS SIGNED ) ) + 72 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4727
SELECT - ( - - CAST ( NULL AS INTEGER ) ) + 72 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4728
SELECT DISTINCT - 55 * + ( + + COUNT( * ) ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-4728
SELECT DISTINCT - 55 * + ( + + COUNT ( * ) ) AS col1
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-4729
SELECT ALL + + 63 * - COUNT( * ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-4729
SELECT ALL + + 63 * - COUNT ( * ) AS col0
----
-63

query II rowsort
SELECT + 33 * 70 AS col1, 59 AS col1
----
2310
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4731
SELECT DISTINCT ( CAST( + 92 AS SIGNED ) )
----
92

skipif mysql # not compatible
query I rowsort label-4731
SELECT DISTINCT ( CAST ( + 92 AS INTEGER ) )
----
92

query I rowsort
SELECT 53 + 20 AS col2
----
73

query I rowsort
SELECT ALL - ( + 91 ) col1
----
-91

query II rowsort
SELECT 69, - 28 * 49 AS col2
----
69
-1372

onlyif mysql # aggregate syntax: 
query I rowsort label-4735
SELECT - + MIN( + 30 ) AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-4735
SELECT - + MIN ( + 30 ) AS col2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4736
SELECT ALL MIN( DISTINCT - 6 )
----
-6

skipif mysql # not compatible
query I rowsort label-4736
SELECT ALL MIN ( DISTINCT - 6 )
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4737
SELECT CAST( NULL AS SIGNED ) + + 11 + + - ( - 83 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4737
SELECT CAST ( NULL AS INTEGER ) + + 11 + + - ( - 83 ) AS col2
----
NULL

query I rowsort
SELECT 69 * - 44 AS col2
----
-3036

onlyif mysql # aggregate syntax: 
query II rowsort label-4739
SELECT DISTINCT 91 col1, COUNT( * ) AS col1
----
91
1

skipif mysql # not compatible
query II rowsort label-4739
SELECT DISTINCT 91 col1, COUNT ( * ) AS col1
----
91
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4740
SELECT DISTINCT - 89 DIV + ( + 71 )
----
-1

skipif mysql # not compatible
query I rowsort label-4740
SELECT DISTINCT - 89 / + ( + 71 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4741
SELECT - - 75 AS col0, + COUNT( * ) - - CAST( NULL AS SIGNED ) AS col0
----
75
NULL

skipif mysql # not compatible
query II rowsort label-4741
SELECT - - 75 AS col0, + COUNT ( * ) - - CAST ( NULL AS INTEGER ) AS col0
----
75
NULL

query I rowsort
SELECT ALL 84 + - - 55 AS col0
----
139

query I rowsort
SELECT ( ( + - 97 ) ) AS col1
----
-97

query I rowsort
SELECT + + 72 AS col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4745
SELECT ALL + - COUNT( * ) * - 31 + - COUNT( * ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-4745
SELECT ALL + - COUNT ( * ) * - 31 + - COUNT ( * ) AS col2
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4746
SELECT ALL CAST( NULL AS SIGNED ) * - + 2 + + + 58 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4746
SELECT ALL CAST ( NULL AS INTEGER ) * - + 2 + + + 58 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4747
SELECT DISTINCT 56 + - COUNT( * )
----
55

skipif mysql # not compatible
query I rowsort label-4747
SELECT DISTINCT 56 + - COUNT ( * )
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4748
SELECT CAST( - 99 AS SIGNED ) AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-4748
SELECT CAST ( - 99 AS INTEGER ) AS col1
----
-99

query I rowsort
SELECT DISTINCT - + 98 col1
----
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4750
SELECT ALL + COUNT( * ) DIV 21
----
0

skipif mysql # not compatible
query I rowsort label-4750
SELECT ALL + COUNT ( * ) / 21
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4751
SELECT 88 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4751
SELECT 88 * CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT DISTINCT 30 + + ( 86 ) AS col2
----
116

query I rowsort
SELECT DISTINCT - + 69 AS col2
----
-69

query I rowsort
SELECT + + COALESCE ( - 37, - 33 )
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-4755
SELECT ALL - 74 + + COUNT( 24 ) col0
----
-73

skipif mysql # not compatible
query I rowsort label-4755
SELECT ALL - 74 + + COUNT ( 24 ) col0
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4756
SELECT DISTINCT SUM( ALL - + 47 )
----
-47

skipif mysql # not compatible
query I rowsort label-4756
SELECT DISTINCT SUM ( ALL - + 47 )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4757
SELECT ALL + + COALESCE ( + COUNT( * ), + COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4757
SELECT ALL + + COALESCE ( + COUNT ( * ), + COUNT ( * ) ) AS col0
----
1

query I rowsort
SELECT - 95 * + + 63 AS col1
----
-5985

query I rowsort
SELECT - ( + 63 ) AS col2
----
-63

query I rowsort
SELECT DISTINCT 11 * - 75 AS col2
----
-825

query II rowsort
SELECT 69 AS col0, + 1
----
69
1

query I rowsort
SELECT - ( 62 ) AS col2
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4763
SELECT ALL + CAST( NULL AS SIGNED ) + - - 39 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4763
SELECT ALL + CAST ( NULL AS INTEGER ) + - - 39 * - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4764
SELECT ALL COUNT( * ) AS col0, - ( - 29 ) AS col0
----
1
29

skipif mysql # not compatible
query II rowsort label-4764
SELECT ALL COUNT ( * ) AS col0, - ( - 29 ) AS col0
----
1
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4765
SELECT + - COUNT( * ) * 28 - + - 94
----
66

skipif mysql # not compatible
query I rowsort label-4765
SELECT + - COUNT ( * ) * 28 - + - 94
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4766
SELECT COUNT( * ) - + - 5 col1
----
6

skipif mysql # not compatible
query I rowsort label-4766
SELECT COUNT ( * ) - + - 5 col1
----
6

query I rowsort
SELECT DISTINCT NULLIF ( 79, + 7 ) - - + 85 AS col2
----
164

query I rowsort
SELECT ALL - 33 * 77
----
-2541

onlyif mysql # aggregate syntax: 
query II rowsort label-4769
SELECT ALL - 40, COUNT( * ) AS col2
----
-40
1

skipif mysql # not compatible
query II rowsort label-4769
SELECT ALL - 40, COUNT ( * ) AS col2
----
-40
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4770
SELECT ALL + CASE WHEN NOT SUM( + - 68 ) = NULL THEN NULL ELSE 21 END AS col1
----
21

skipif mysql # not compatible
query I rowsort label-4770
SELECT ALL + CASE WHEN NOT SUM ( + - 68 ) = NULL THEN NULL ELSE 21 END AS col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4771
SELECT DISTINCT - + 21 * + COUNT( * ) * - COUNT( * ) + + 24 AS col2
----
45

skipif mysql # not compatible
query I rowsort label-4771
SELECT DISTINCT - + 21 * + COUNT ( * ) * - COUNT ( * ) + + 24 AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4772
SELECT ALL + MAX( DISTINCT + 5 ) col1
----
5

skipif mysql # not compatible
query I rowsort label-4772
SELECT ALL + MAX ( DISTINCT + 5 ) col1
----
5

query I rowsort
SELECT DISTINCT 46 * 16 AS col0
----
736

onlyif mysql # aggregate syntax: 
query I rowsort label-4774
SELECT - 28 * - COUNT( * ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-4774
SELECT - 28 * - COUNT ( * ) AS col1
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4775
SELECT ALL CAST( - 25 AS SIGNED ) * - + 83
----
2075

skipif mysql # not compatible
query I rowsort label-4775
SELECT ALL CAST ( - 25 AS INTEGER ) * - + 83
----
2075

onlyif mysql # aggregate syntax: 
query I rowsort label-4776
SELECT + 76 + + 85 * - COUNT( * ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-4776
SELECT + 76 + + 85 * - COUNT ( * ) AS col1
----
-9

query I rowsort
SELECT ALL ( + 36 ) AS col2
----
36

query I rowsort
SELECT DISTINCT - ( - 44 )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4779
SELECT ALL - ( + + MAX( - 26 ) )
----
26

skipif mysql # not compatible
query I rowsort label-4779
SELECT ALL - ( + + MAX ( - 26 ) )
----
26

query II rowsort
SELECT + 87 AS col2, + 83 AS col2
----
87
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4781
SELECT ALL - SUM( DISTINCT + 30 )
----
-30

skipif mysql # not compatible
query I rowsort label-4781
SELECT ALL - SUM ( DISTINCT + 30 )
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4782
SELECT DISTINCT CAST( - COUNT( * ) AS SIGNED ) AS col2, 65
----
-1
65

skipif mysql # not compatible
query II rowsort label-4782
SELECT DISTINCT CAST ( - COUNT ( * ) AS INTEGER ) AS col2, 65
----
-1
65

query I rowsort
SELECT DISTINCT 23 * 85
----
1955

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4784
SELECT - 21 / - 29 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4784
SELECT - 21 / - 29 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4785
SELECT 58 DIV COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-4785
SELECT 58 / COUNT ( * )
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4786
SELECT DISTINCT + COUNT( * ) + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4786
SELECT DISTINCT + COUNT ( * ) + - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 84 col2
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4788
SELECT + 99 + - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4788
SELECT + 99 + - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - 81 * 57
----
-4617

query I rowsort
SELECT + - 65 AS col2
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-4791
SELECT - - COUNT( * ) * 93
----
93

skipif mysql # not compatible
query I rowsort label-4791
SELECT - - COUNT ( * ) * 93
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-4792
SELECT + 76 DIV + 40 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4792
SELECT + 76 / + 40 AS col0
----
1

query I rowsort
SELECT + 87 * + 49
----
4263

onlyif mysql # aggregate syntax: 
query I rowsort label-4794
SELECT DISTINCT MAX( + 63 )
----
63

skipif mysql # not compatible
query I rowsort label-4794
SELECT DISTINCT MAX ( + 63 )
----
63

query I rowsort
SELECT ALL - - 27 col2
----
27

query I rowsort
SELECT DISTINCT - - 34
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4797
SELECT ALL + CAST( NULL AS SIGNED ) * 89
----
NULL

skipif mysql # not compatible
query I rowsort label-4797
SELECT ALL + CAST ( NULL AS INTEGER ) * 89
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4798
SELECT DISTINCT + 93 + - - CAST( - 95 AS SIGNED )
----
-2

skipif mysql # not compatible
query I rowsort label-4798
SELECT DISTINCT + 93 + - - CAST ( - 95 AS INTEGER )
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4799
SELECT COUNT( * ) * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4799
SELECT COUNT ( * ) * - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4800
SELECT 41 + + + MIN( ALL - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4800
SELECT 41 + + + MIN ( ALL - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL - + 0 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4802
SELECT ALL - MIN( + - 7 )
----
7

skipif mysql # not compatible
query I rowsort label-4802
SELECT ALL - MIN ( + - 7 )
----
7

query I rowsort
SELECT - 58 col1
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4804
SELECT 61 * - COUNT( * ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-4804
SELECT 61 * - COUNT ( * ) AS col2
----
-61

query I rowsort
SELECT DISTINCT + 62 * 45 AS col1
----
2790

onlyif mysql # aggregate syntax: 
query I rowsort label-4806
SELECT ALL - COUNT( * ) * - COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4806
SELECT ALL - COUNT ( * ) * - COUNT ( * ) AS col0
----
1

query I rowsort
SELECT + - 88 AS col2
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4808
SELECT SUM( - 48 ) col2
----
-48

skipif mysql # not compatible
query I rowsort label-4808
SELECT SUM ( - 48 ) col2
----
-48

query II rowsort
SELECT + - 37 AS col1, 83 AS col2
----
-37
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4810
SELECT + - COUNT( * ) + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4810
SELECT + - COUNT ( * ) + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4811
SELECT COUNT( ALL - 29 )
----
1

skipif mysql # not compatible
query I rowsort label-4811
SELECT COUNT ( ALL - 29 )
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4812
SELECT + CAST( NULL AS DECIMAL ) + + + ( 82 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4812
SELECT + CAST ( NULL AS REAL ) + + + ( 82 ) AS col1
----
NULL

query I rowsort
SELECT 11 + - 16 AS col0
----
-5

query I rowsort
SELECT ALL + - 56 + + 92
----
36

query I rowsort
SELECT ALL 10 + + 19 AS col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4816
SELECT - MIN( ALL + - 98 ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-4816
SELECT - MIN ( ALL + - 98 ) AS col0
----
98

query I rowsort
SELECT DISTINCT - - 44 AS col0
----
44

query I rowsort
SELECT DISTINCT + 41 * - ( + 42 ) AS col1
----
-1722

onlyif mysql # aggregate syntax: 
query I rowsort label-4819
SELECT DISTINCT - 68 + COUNT( * ) * - 60
----
-128

skipif mysql # not compatible
query I rowsort label-4819
SELECT DISTINCT - 68 + COUNT ( * ) * - 60
----
-128

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4820
SELECT ALL 17 * + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4820
SELECT ALL 17 * + + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL - + 11
----
-11

query I rowsort
SELECT 14 * - ( - 61 ) AS col2
----
854

onlyif mysql # aggregate syntax: 
query I rowsort label-4823
SELECT + MIN( COALESCE ( + 29, + 89 ) ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-4823
SELECT + MIN ( COALESCE ( + 29, + 89 ) ) AS col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4824
SELECT MIN( ALL - ( - 47 ) )
----
47

skipif mysql # not compatible
query I rowsort label-4824
SELECT MIN ( ALL - ( - 47 ) )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4825
SELECT ALL MIN( ALL - 24 ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-4825
SELECT ALL MIN ( ALL - 24 ) AS col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4826
SELECT DISTINCT - COUNT( * ) + - 50
----
-51

skipif mysql # not compatible
query I rowsort label-4826
SELECT DISTINCT - COUNT ( * ) + - 50
----
-51

query I rowsort
SELECT + 90 + + 81 AS col1
----
171

query I rowsort
SELECT ALL ( 26 )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4829
SELECT ALL 28 * - COUNT( * )
----
-28

skipif mysql # not compatible
query I rowsort label-4829
SELECT ALL 28 * - COUNT ( * )
----
-28

query I rowsort
SELECT ALL + 92 * - 68 + + 4 AS col2
----
-6252

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4831
SELECT + CAST( ( - 12 ) AS SIGNED ) AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-4831
SELECT + CAST ( ( - 12 ) AS INTEGER ) AS col2
----
-12

query I rowsort
SELECT ALL ( + 50 ) AS col1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4833
SELECT ALL MIN( ALL + 70 )
----
70

skipif mysql # not compatible
query I rowsort label-4833
SELECT ALL MIN ( ALL + 70 )
----
70

query I rowsort
SELECT - 9 - + ( - 56 + - 61 ) col0
----
108

query I rowsort
SELECT ALL ( 56 ) AS col0
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4836
SELECT - CAST( NULL AS SIGNED ) + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-4836
SELECT - CAST ( NULL AS INTEGER ) + 90
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4837
SELECT COUNT( * ) DIV + ( 40 )
----
0

skipif mysql # not compatible
query I rowsort label-4837
SELECT COUNT ( * ) / + ( 40 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4838
SELECT ALL 86 + - - 52 - - COUNT( * )
----
139

skipif mysql # not compatible
query I rowsort label-4838
SELECT ALL 86 + - - 52 - - COUNT ( * )
----
139

query I rowsort
SELECT DISTINCT - 82 * - 53
----
4346

onlyif mysql # aggregate syntax: 
query I rowsort label-4840
SELECT ALL - 28 * + COUNT( * ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-4840
SELECT ALL - 28 * + COUNT ( * ) AS col0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-4841
SELECT DISTINCT MAX( + + ( 43 ) ) - + 2 AS col2
----
41

skipif mysql # not compatible
query I rowsort label-4841
SELECT DISTINCT MAX ( + + ( 43 ) ) - + 2 AS col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4842
SELECT ( - COUNT( ALL 27 ) ) - 73
----
-74

skipif mysql # not compatible
query I rowsort label-4842
SELECT ( - COUNT ( ALL 27 ) ) - 73
----
-74

query I rowsort
SELECT ALL - + 88
----
-88

query I rowsort
SELECT DISTINCT - ( - 62 ) AS col1
----
62

query I rowsort
SELECT ALL - 40 col2
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4846
SELECT ALL - 23 - - + ( - + 66 ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4846
SELECT ALL - 23 - - + ( - + 66 ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4847
SELECT COUNT( * ) * + ( - 47 )
----
-47

skipif mysql # not compatible
query I rowsort label-4847
SELECT COUNT ( * ) * + ( - 47 )
----
-47

query I rowsort
SELECT 16 * 21 * - + 1 col0
----
-336

query I rowsort
SELECT - + 9 AS col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4850
SELECT ALL 76 + - MAX( - 71 ) * + - 33 * + 0 AS col2
----
76

skipif mysql # not compatible
query I rowsort label-4850
SELECT ALL 76 + - MAX ( - 71 ) * + - 33 * + 0 AS col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4851
SELECT ALL - SUM( + 55 ) * + 14 AS col2
----
-770

skipif mysql # not compatible
query I rowsort label-4851
SELECT ALL - SUM ( + 55 ) * + 14 AS col2
----
-770

query I rowsort
SELECT ( 59 )
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4853
SELECT DISTINCT + - CAST( + COUNT( * ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-4853
SELECT DISTINCT + - CAST ( + COUNT ( * ) AS INTEGER )
----
-1

query I rowsort
SELECT + - 4 col2
----
-4

query I rowsort
SELECT - ( 49 )
----
-49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4856
SELECT ALL CAST( + - CASE - ( + COUNT( * ) ) WHEN + - COALESCE ( COUNT( * ), + 97 ) THEN NULL ELSE - COUNT( * ) END AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4856
SELECT ALL CAST ( + - CASE - ( + COUNT ( * ) ) WHEN + - COALESCE ( COUNT ( * ), + 97 ) THEN NULL ELSE - COUNT ( * ) END AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4857
SELECT + ( - SUM( DISTINCT 41 ) ) col1
----
-41

skipif mysql # not compatible
query I rowsort label-4857
SELECT + ( - SUM ( DISTINCT 41 ) ) col1
----
-41

query I rowsort
SELECT ALL 46 + - - 44
----
90

query I rowsort
SELECT DISTINCT - 55 - + - 25
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4860
SELECT COUNT( * ) + + + COUNT( * ) col1
----
2

skipif mysql # not compatible
query I rowsort label-4860
SELECT COUNT ( * ) + + + COUNT ( * ) col1
----
2

query I rowsort
SELECT DISTINCT 55 col1
----
55

query I rowsort
SELECT - ( + 57 ) col2
----
-57

query I rowsort
SELECT - ( + - 44 )
----
44

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4864
SELECT + 82, + CAST( NULL AS DECIMAL ) col1
----
82
NULL

skipif mysql # not compatible
query II rowsort label-4864
SELECT + 82, + CAST ( NULL AS REAL ) col1
----
82
NULL

query I rowsort
SELECT + + 35 AS col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4866
SELECT MAX( ALL 36 ) + + 76 AS col1
----
112

skipif mysql # not compatible
query I rowsort label-4866
SELECT MAX ( ALL 36 ) + + 76 AS col1
----
112

query I rowsort
SELECT ALL - 5 * - 1
----
5

query I rowsort
SELECT ALL 81 col1
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4869
SELECT ALL - COUNT( * ) + CAST( - - COUNT( * ) AS SIGNED ) * - 34 AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-4869
SELECT ALL - COUNT ( * ) + CAST ( - - COUNT ( * ) AS INTEGER ) * - 34 AS col0
----
-35

query I rowsort
SELECT DISTINCT + + 84 AS col1
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4871
SELECT - 33 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4871
SELECT - 33 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 52 col0
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4873
SELECT + CAST( + + 90 AS SIGNED )
----
90

skipif mysql # not compatible
query I rowsort label-4873
SELECT + CAST ( + + 90 AS INTEGER )
----
90

query II rowsort
SELECT + + 16 AS col2, ( 25 )
----
16
25

query I rowsort
SELECT DISTINCT + - 24
----
-24

query I rowsort
SELECT ALL + - 42 AS col0
----
-42

query I rowsort
SELECT NULLIF ( - - 22, + COALESCE ( - 42, + 56 ) ) AS col1
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4878
SELECT ALL + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4878
SELECT ALL + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4879
SELECT DISTINCT + 79 * - MIN( + 19 ) AS col0
----
-1501

skipif mysql # not compatible
query I rowsort label-4879
SELECT DISTINCT + 79 * - MIN ( + 19 ) AS col0
----
-1501

query I rowsort
SELECT ALL - + 90 AS col2
----
-90

query I rowsort
SELECT ALL + 20 + 38
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4882
SELECT COUNT( * ) * - 13 AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-4882
SELECT COUNT ( * ) * - 13 AS col0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-4883
SELECT 84 * - 19 + COUNT( * ) AS col2
----
-1595

skipif mysql # not compatible
query I rowsort label-4883
SELECT 84 * - 19 + COUNT ( * ) AS col2
----
-1595

query I rowsort
SELECT DISTINCT 33 col0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4885
SELECT COUNT( * ) * - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4885
SELECT COUNT ( * ) * - COUNT ( * ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4886
SELECT MAX( - 84 )
----
-84

skipif mysql # not compatible
query I rowsort label-4886
SELECT MAX ( - 84 )
----
-84

query I rowsort
SELECT DISTINCT + 81 * - 95 + - ( 96 ) * 41 AS col2
----
-11631

query II rowsort
SELECT - 64 AS col1, 58
----
-64
58

onlyif mysql # aggregate syntax: 
query II rowsort label-4889
SELECT DISTINCT - COUNT( * ), - 40 AS col2
----
-1
-40

skipif mysql # not compatible
query II rowsort label-4889
SELECT DISTINCT - COUNT ( * ), - 40 AS col2
----
-1
-40

query II rowsort
SELECT + ( + 52 ) AS col0, 96 AS col0
----
52
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4891
SELECT - + MAX( ALL - 48 )
----
48

skipif mysql # not compatible
query I rowsort label-4891
SELECT - + MAX ( ALL - 48 )
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4892
SELECT - + CAST( NULL AS SIGNED ) + 98 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4892
SELECT - + CAST ( NULL AS INTEGER ) + 98 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4893
SELECT COUNT( 27 ), COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-4893
SELECT COUNT ( 27 ), COUNT ( * )
----
1
1

query I rowsort
SELECT + 86 * - 47
----
-4042

query I rowsort
SELECT - + 96 AS col2
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4896
SELECT COUNT( * ) * SUM( DISTINCT 78 )
----
78

skipif mysql # not compatible
query I rowsort label-4896
SELECT COUNT ( * ) * SUM ( DISTINCT 78 )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4897
SELECT ALL + COUNT( * ) * + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4897
SELECT ALL + COUNT ( * ) * + + COUNT ( * )
----
1

query II rowsort
SELECT DISTINCT - 25 AS col0, 64 col1
----
-25
64

query I rowsort
SELECT 64 + + - 66
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4900
SELECT DISTINCT - MIN( DISTINCT 68 )
----
-68

skipif mysql # not compatible
query I rowsort label-4900
SELECT DISTINCT - MIN ( DISTINCT 68 )
----
-68

query I rowsort
SELECT - + ( - + 61 )
----
61

query II rowsort
SELECT 44 AS col2, - 44 * ( + 9 ) AS col1
----
44
-396

query I rowsort
SELECT DISTINCT - ( - - 41 )
----
-41

query I rowsort
SELECT ALL - 3 col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4905
SELECT DISTINCT + 12 * + - COUNT( * ) * 26
----
-312

skipif mysql # not compatible
query I rowsort label-4905
SELECT DISTINCT + 12 * + - COUNT ( * ) * 26
----
-312

query I rowsort
SELECT + - 74 + + 63 AS col2
----
-11

query I rowsort
SELECT ALL + + 79 AS col0
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4908
SELECT + AVG ( CAST( NULL AS SIGNED ) ) * + + 64 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4908
SELECT + AVG ( CAST ( NULL AS INTEGER ) ) * + + 64 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4909
SELECT DISTINCT 75 + + COUNT( * ) col2
----
76

skipif mysql # not compatible
query I rowsort label-4909
SELECT DISTINCT 75 + + COUNT ( * ) col2
----
76

query II rowsort
SELECT ALL 80, 18 AS col0
----
80
18

query I rowsort
SELECT DISTINCT 97 + + 78 * + 97
----
7663

query I rowsort
SELECT + - 83 AS col2
----
-83

query I rowsort
SELECT ALL + + ( + + 0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4914
SELECT COUNT( * ) + + 19 AS col2
----
20

skipif mysql # not compatible
query I rowsort label-4914
SELECT COUNT ( * ) + + 19 AS col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4915
SELECT DISTINCT + + COUNT( * ) * + ( + COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4915
SELECT DISTINCT + + COUNT ( * ) * + ( + COUNT ( * ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4916
SELECT DISTINCT - - COUNT( ALL - + 95 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4916
SELECT DISTINCT - - COUNT ( ALL - + 95 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4917
SELECT ALL COUNT( * ), - ( + ( 93 ) ) AS col1
----
1
-93

skipif mysql # not compatible
query II rowsort label-4917
SELECT ALL COUNT ( * ), - ( + ( 93 ) ) AS col1
----
1
-93

query I rowsort
SELECT DISTINCT - + 73
----
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4919
SELECT DISTINCT COUNT( * ) DIV + - ( - ( 3 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4919
SELECT DISTINCT COUNT ( * ) / + - ( - ( 3 ) ) AS col0
----
0

query I rowsort
SELECT - 44 * + 14 AS col1
----
-616

onlyif mysql # aggregate syntax: 
query I rowsort label-4921
SELECT ALL MIN( - 66 ) AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-4921
SELECT ALL MIN ( - 66 ) AS col0
----
-66

query I rowsort
SELECT 1 * - 96
----
-96

query I rowsort
SELECT ALL - ( - 2 ) AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4924
SELECT 8 * MIN( - 50 ) AS col1
----
-400

skipif mysql # not compatible
query I rowsort label-4924
SELECT 8 * MIN ( - 50 ) AS col1
----
-400

query I rowsort
SELECT 31 + + 38 + - 7
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4926
SELECT + SUM( DISTINCT ( + CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4926
SELECT + SUM ( DISTINCT ( + CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4927
SELECT DISTINCT + SUM( + - ( - - CAST( NULL AS SIGNED ) ) ) + + 52 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4927
SELECT DISTINCT + SUM ( + - ( - - CAST ( NULL AS INTEGER ) ) ) + + 52 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4928
SELECT DISTINCT - COUNT( * ) DIV COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4928
SELECT DISTINCT - COUNT ( * ) / COUNT ( * ) AS col1
----
-1

query I rowsort
SELECT ( 21 ) AS col1
----
21

query I rowsort
SELECT ( + - 18 )
----
-18

query I rowsort
SELECT + 27 * 46
----
1242

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4932
SELECT ALL + 59 * - CAST( - 38 AS SIGNED ) + + - 50 col2
----
2192

skipif mysql # not compatible
query I rowsort label-4932
SELECT ALL + 59 * - CAST ( - 38 AS INTEGER ) + + - 50 col2
----
2192

onlyif mysql # aggregate syntax: 
query I rowsort label-4933
SELECT ALL + SUM( DISTINCT - 10 ) col0
----
-10

skipif mysql # not compatible
query I rowsort label-4933
SELECT ALL + SUM ( DISTINCT - 10 ) col0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-4934
SELECT DISTINCT + MAX( DISTINCT + 66 )
----
66

skipif mysql # not compatible
query I rowsort label-4934
SELECT DISTINCT + MAX ( DISTINCT + 66 )
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-4935
SELECT ALL + COUNT( * ) AS col1, + 11
----
1
11

skipif mysql # not compatible
query II rowsort label-4935
SELECT ALL + COUNT ( * ) AS col1, + 11
----
1
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4936
SELECT DISTINCT - COUNT( - - 74 ) DIV 78 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4936
SELECT DISTINCT - COUNT ( - - 74 ) / 78 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4937
SELECT CAST( NULL AS SIGNED ) * + - 37 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4937
SELECT CAST ( NULL AS INTEGER ) * + - 37 AS col0
----
NULL

query I rowsort
SELECT ALL + 27 + + + 59 col0
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4939
SELECT ALL - 55 + - CAST( NULL AS SIGNED ) * - 35
----
NULL

skipif mysql # not compatible
query I rowsort label-4939
SELECT ALL - 55 + - CAST ( NULL AS INTEGER ) * - 35
----
NULL

query I rowsort
SELECT 52 * + 10
----
520

onlyif mysql # aggregate syntax: 
query I rowsort label-4941
SELECT COUNT( * ) + - 70 AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-4941
SELECT COUNT ( * ) + - 70 AS col2
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-4942
SELECT DISTINCT + COUNT( * ) - + + 96 AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-4942
SELECT DISTINCT + COUNT ( * ) - + + 96 AS col0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-4943
SELECT DISTINCT - MIN( - 31 ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-4943
SELECT DISTINCT - MIN ( - 31 ) AS col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4944
SELECT ALL - ( SUM( 11 ) )
----
-11

skipif mysql # not compatible
query I rowsort label-4944
SELECT ALL - ( SUM ( 11 ) )
----
-11

query I rowsort
SELECT - ( - - 12 ) AS col1
----
-12

query I rowsort
SELECT ALL NULLIF ( 69, - - 45 )
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4947
SELECT ALL - COUNT( * ) * + 21 AS col1, - 54 DIV COUNT( * ) AS col2
----
-21
-54

skipif mysql # not compatible
query II rowsort label-4947
SELECT ALL - COUNT ( * ) * + 21 AS col1, - 54 / COUNT ( * ) AS col2
----
-21
-54

query II rowsort
SELECT DISTINCT + 68 col2, - 49 AS col1
----
68
-49

query I rowsort
SELECT - ( + 34 )
----
-34

query I rowsort
SELECT ALL + + 6
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4951
SELECT - - CAST( NULL AS SIGNED ) + - + 23 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4951
SELECT - - CAST ( NULL AS INTEGER ) + - + 23 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 14 * + 60 AS col2
----
-840

onlyif mysql # aggregate syntax: 
query I rowsort label-4953
SELECT COUNT( * ) + - 26 AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-4953
SELECT COUNT ( * ) + - 26 AS col1
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4954
SELECT + COUNT( * ) * 94 AS col1
----
94

skipif mysql # not compatible
query I rowsort label-4954
SELECT + COUNT ( * ) * 94 AS col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4955
SELECT ALL - SUM( ALL - - 79 )
----
-79

skipif mysql # not compatible
query I rowsort label-4955
SELECT ALL - SUM ( ALL - - 79 )
----
-79

query I rowsort
SELECT DISTINCT 13 col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4957
SELECT ALL - - COUNT( ALL - 87 ) + - 26 AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-4957
SELECT ALL - - COUNT ( ALL - 87 ) + - 26 AS col1
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4958
SELECT CAST( NULL AS SIGNED ) - + COUNT( * ) + + - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-4958
SELECT CAST ( NULL AS INTEGER ) - + COUNT ( * ) + + - 19
----
NULL

query I rowsort
SELECT ALL - - 4
----
4

query I rowsort
SELECT DISTINCT + - 53 AS col1
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-4961
SELECT SUM( - 14 )
----
-14

skipif mysql # not compatible
query I rowsort label-4961
SELECT SUM ( - 14 )
----
-14

query I rowsort
SELECT ALL 86 * + 45
----
3870

query I rowsort
SELECT - 14 + + 26
----
12

query I rowsort
SELECT DISTINCT ( 19 ) AS col2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4965
SELECT ALL - COUNT( * ) + MIN( ALL 75 ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-4965
SELECT ALL - COUNT ( * ) + MIN ( ALL 75 ) AS col1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4966
SELECT ( - ( SUM( ALL - - 54 ) ) ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-4966
SELECT ( - ( SUM ( ALL - - 54 ) ) ) AS col1
----
-54

query I rowsort
SELECT - + 79 * - 23
----
1817

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4968
SELECT ALL + + CAST( ( - COUNT( * ) ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-4968
SELECT ALL + + CAST ( ( - COUNT ( * ) ) AS INTEGER )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4969
SELECT MIN( ALL - - 86 ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-4969
SELECT MIN ( ALL - - 86 ) AS col1
----
86

query I rowsort
SELECT + ( - 69 )
----
-69

query I rowsort
SELECT DISTINCT - + 51 AS col1
----
-51

query I rowsort
SELECT 77 + + + 44
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-4973
SELECT ALL - COUNT( * ) * - + 97 * - 7 AS col2
----
-679

skipif mysql # not compatible
query I rowsort label-4973
SELECT ALL - COUNT ( * ) * - + 97 * - 7 AS col2
----
-679

query I rowsort
SELECT - 56 + - 74 AS col0
----
-130

query I rowsort
SELECT DISTINCT - + 49
----
-49

query I rowsort
SELECT 45 * - 88 col1
----
-3960

query II rowsort
SELECT + 1 * - + 14 - + 39, 48 AS col0
----
-53
48

onlyif mysql # aggregate syntax: 
query II rowsort label-4978
SELECT COUNT( * ) AS col0, + COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-4978
SELECT COUNT ( * ) AS col0, + COUNT ( * )
----
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4979
SELECT 77 DIV - 6
----
-12

skipif mysql # not compatible
query I rowsort label-4979
SELECT 77 / - 6
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-4980
SELECT DISTINCT COUNT( * ) AS col2, 63
----
1
63

skipif mysql # not compatible
query II rowsort label-4980
SELECT DISTINCT COUNT ( * ) AS col2, 63
----
1
63

query I rowsort
SELECT - - ( - 16 )
----
-16

query I rowsort
SELECT ALL - 76 + - 12
----
-88

query I rowsort
SELECT ALL 21 * - 11 AS col2
----
-231

query I rowsort
SELECT ( + + 90 )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4985
SELECT + 67 * + + COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-4985
SELECT + 67 * + + COUNT ( * )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4986
SELECT + 32 * - + 81 * - - COUNT( + 56 ) * - + 29 AS col1
----
75168

skipif mysql # not compatible
query I rowsort label-4986
SELECT + 32 * - + 81 * - - COUNT ( + 56 ) * - + 29 AS col1
----
75168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4987
SELECT - 36 + - MIN( DISTINCT + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4987
SELECT - 36 + - MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4988
SELECT + 61 + + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4988
SELECT + 61 + + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4989
SELECT COUNT( * ) * 43 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4989
SELECT COUNT ( * ) * 43 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4990
SELECT ALL 66 * + - COUNT( * )
----
-66

skipif mysql # not compatible
query I rowsort label-4990
SELECT ALL 66 * + - COUNT ( * )
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4991
SELECT COUNT( * ) * - + CAST( NULL AS SIGNED ) * 16 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4991
SELECT COUNT ( * ) * - + CAST ( NULL AS INTEGER ) * 16 AS col2
----
NULL

query I rowsort
SELECT - + ( + 27 )
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4993
SELECT ALL COUNT( * ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4993
SELECT ALL COUNT ( * ) * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - ( + + 13 ) AS col2
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-4995
SELECT DISTINCT + 64 DIV - - 58
----
1

skipif mysql # not compatible
query I rowsort label-4995
SELECT DISTINCT + 64 / - - 58
----
1

query I rowsort
SELECT DISTINCT 40 * 55
----
2200

query I rowsort
SELECT ALL + - 99 AS col1
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4998
SELECT + + COUNT( + ( + - 19 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4998
SELECT + + COUNT ( + ( + - 19 ) ) AS col2
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4999
SELECT ALL + ( CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4999
SELECT ALL + ( CAST ( NULL AS REAL ) ) AS col2
----
NULL

query I rowsort
SELECT + 33 col0
----
33

query I rowsort
SELECT ALL - + 70
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5002
SELECT 34 * + CAST( 99 AS SIGNED ) col2
----
3366

skipif mysql # not compatible
query I rowsort label-5002
SELECT 34 * + CAST ( 99 AS INTEGER ) col2
----
3366

onlyif mysql # aggregate syntax: 
query I rowsort label-5003
SELECT ALL - COUNT( 53 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5003
SELECT ALL - COUNT ( 53 ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5004
SELECT - 74 * + 39 + CAST( 98 AS SIGNED ) col1
----
-2788

skipif mysql # not compatible
query I rowsort label-5004
SELECT - 74 * + 39 + CAST ( 98 AS INTEGER ) col1
----
-2788

query I rowsort
SELECT 5 - + + 42 col0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-5006
SELECT + MAX( DISTINCT - 28 )
----
-28

skipif mysql # not compatible
query I rowsort label-5006
SELECT + MAX ( DISTINCT - 28 )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-5007
SELECT ALL - SUM( ALL - 27 ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-5007
SELECT ALL - SUM ( ALL - 27 ) AS col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5008
SELECT COUNT( - 26 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5008
SELECT COUNT ( - 26 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5009
SELECT ALL - 10, + COUNT( * ) col0
----
-10
1

skipif mysql # not compatible
query II rowsort label-5009
SELECT ALL - 10, + COUNT ( * ) col0
----
-10
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5010
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - ( + ( 35 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5010
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - ( + ( 35 ) )
----
NULL

query II rowsort
SELECT ALL 46, + ( - 86 ) AS col0
----
46
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-5012
SELECT - - COUNT( * ) AS col0, COUNT( * ) AS col1
----
1
1

skipif mysql # not compatible
query II rowsort label-5012
SELECT - - COUNT ( * ) AS col0, COUNT ( * ) AS col1
----
1
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5013
SELECT - COUNT( * ) col2, - COUNT( * )
----
-1
-1

skipif mysql # not compatible
query II rowsort label-5013
SELECT - COUNT ( * ) col2, - COUNT ( * )
----
-1
-1

query I rowsort
SELECT - ( + - 80 ) AS col0
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5015
SELECT DISTINCT CAST( 17 AS SIGNED ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-5015
SELECT DISTINCT CAST ( 17 AS INTEGER ) AS col1
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-5016
SELECT DISTINCT - 87 DIV + 18
----
-4

skipif mysql # not compatible
query I rowsort label-5016
SELECT DISTINCT - 87 / + 18
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5017
SELECT 59 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5017
SELECT 59 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - + 58 col2
----
-58

query I rowsort
SELECT DISTINCT - + 35 AS col0
----
-35

query I rowsort
SELECT ALL - ( - - 69 )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-5021
SELECT DISTINCT - MIN( DISTINCT 45 )
----
-45

skipif mysql # not compatible
query I rowsort label-5021
SELECT DISTINCT - MIN ( DISTINCT 45 )
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5022
SELECT - + CAST( NULL AS SIGNED ) + - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-5022
SELECT - + CAST ( NULL AS INTEGER ) + - 30
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5023
SELECT + COUNT( * ) * + CAST( NULL AS SIGNED ) * - - MIN( DISTINCT - + 41 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5023
SELECT + COUNT ( * ) * + CAST ( NULL AS INTEGER ) * - - MIN ( DISTINCT - + 41 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5024
SELECT ALL COUNT( * ) * - + COUNT( ALL + 60 )
----
-1

skipif mysql # not compatible
query I rowsort label-5024
SELECT ALL COUNT ( * ) * - + COUNT ( ALL + 60 )
----
-1

query I rowsort
SELECT ( - + 1 )
----
-1

query I rowsort
SELECT ( ( - - 52 ) )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5027
SELECT ALL + MIN( + - 9 )
----
-9

skipif mysql # not compatible
query I rowsort label-5027
SELECT ALL + MIN ( + - 9 )
----
-9

query I rowsort
SELECT ALL - 43 * + 10 col1
----
-430

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5029
SELECT ALL + 15 DIV + COUNT( * )
----
15

skipif mysql # not compatible
query I rowsort label-5029
SELECT ALL + 15 / + COUNT ( * )
----
15

query I rowsort
SELECT + 50 * 90
----
4500

onlyif mysql # aggregate syntax: 
query II rowsort label-5031
SELECT DISTINCT + COUNT( * ) AS col0, - 63
----
1
-63

skipif mysql # not compatible
query II rowsort label-5031
SELECT DISTINCT + COUNT ( * ) AS col0, - 63
----
1
-63

query I rowsort
SELECT 66 * - 32 AS col1
----
-2112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5033
SELECT + - CAST( - 88 AS SIGNED )
----
88

skipif mysql # not compatible
query I rowsort label-5033
SELECT + - CAST ( - 88 AS INTEGER )
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-5034
SELECT ALL + SUM( ALL 95 ) AS col1, - 59
----
95
-59

skipif mysql # not compatible
query II rowsort label-5034
SELECT ALL + SUM ( ALL 95 ) AS col1, - 59
----
95
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5035
SELECT + 29 * - COUNT( * ) + - COUNT( * ) DIV COUNT( * ) col1
----
-30

skipif mysql # not compatible
query I rowsort label-5035
SELECT + 29 * - COUNT ( * ) + - COUNT ( * ) / COUNT ( * ) col1
----
-30

query I rowsort
SELECT ALL - + 5 col0
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5037
SELECT CAST( 72 AS SIGNED ) col2
----
72

skipif mysql # not compatible
query I rowsort label-5037
SELECT CAST ( 72 AS INTEGER ) col2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5038
SELECT - MAX( + 80 )
----
-80

skipif mysql # not compatible
query I rowsort label-5038
SELECT - MAX ( + 80 )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-5039
SELECT - 13 * MAX( ALL + 75 ) AS col1
----
-975

skipif mysql # not compatible
query I rowsort label-5039
SELECT - 13 * MAX ( ALL + 75 ) AS col1
----
-975

query I rowsort
SELECT DISTINCT + ( - - 77 ) AS col0
----
77

query I rowsort
SELECT - 77 * 69 AS col1
----
-5313

onlyif mysql # aggregate syntax: 
query I rowsort label-5042
SELECT + - MAX( DISTINCT - - 11 )
----
-11

skipif mysql # not compatible
query I rowsort label-5042
SELECT + - MAX ( DISTINCT - - 11 )
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-5043
SELECT DISTINCT MAX( - 51 ), 39 AS col2
----
-51
39

skipif mysql # not compatible
query II rowsort label-5043
SELECT DISTINCT MAX ( - 51 ), 39 AS col2
----
-51
39

query I rowsort
SELECT DISTINCT + + 9 AS col0
----
9

query I rowsort
SELECT - + ( - 77 ) + + ( 2 ) col0
----
79

query I rowsort
SELECT ALL + + ( - 25 )
----
-25

query I rowsort
SELECT - ( - - 83 ) AS col1
----
-83

query I rowsort
SELECT - 85 + 2 AS col1
----
-83

query I rowsort
SELECT 68 * + - 47 * + + 71 AS col1
----
-226916

onlyif mysql # DIV for integer division: 
query I rowsort label-5050
SELECT DISTINCT 95 DIV - 3 AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-5050
SELECT DISTINCT 95 / - 3 AS col2
----
-31

query I rowsort
SELECT ALL 24 + - 51
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-5052
SELECT COALESCE ( COUNT( * ), - COUNT( * ) ) * 21
----
21

skipif mysql # not compatible
query I rowsort label-5052
SELECT COALESCE ( COUNT ( * ), - COUNT ( * ) ) * 21
----
21

query I rowsort
SELECT + 15 + + 69 col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5054
SELECT ALL - + COUNT( * ) + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5054
SELECT ALL - + COUNT ( * ) + COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5055
SELECT DISTINCT + 32 DIV COUNT( * ) col0
----
32

skipif mysql # not compatible
query I rowsort label-5055
SELECT DISTINCT + 32 / COUNT ( * ) col0
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-5056
SELECT DISTINCT - - 94 DIV - 71
----
-1

skipif mysql # not compatible
query I rowsort label-5056
SELECT DISTINCT - - 94 / - 71
----
-1

query I rowsort
SELECT DISTINCT + 94 AS col0
----
94

query I rowsort
SELECT - 31 * + 91
----
-2821

onlyif mysql # aggregate syntax: 
query I rowsort label-5059
SELECT ALL NULLIF ( - 3, 52 * COUNT( * ) ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-5059
SELECT ALL NULLIF ( - 3, 52 * COUNT ( * ) ) AS col0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-5060
SELECT + 37 DIV + 11 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-5060
SELECT + 37 / + 11 AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5061
SELECT SUM( ALL - + 72 ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-5061
SELECT SUM ( ALL - + 72 ) AS col2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-5062
SELECT MAX( DISTINCT + 7 ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-5062
SELECT MAX ( DISTINCT + 7 ) AS col0
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5063
SELECT - CAST( + 16 AS SIGNED )
----
-16

skipif mysql # not compatible
query I rowsort label-5063
SELECT - CAST ( + 16 AS INTEGER )
----
-16

query II rowsort
SELECT ALL 89, 51 AS col0
----
89
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5065
SELECT ALL - NULLIF ( + - COUNT( * ), + 20 )
----
1

skipif mysql # not compatible
query I rowsort label-5065
SELECT ALL - NULLIF ( + - COUNT ( * ), + 20 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5066
SELECT DISTINCT COUNT( * ), 84 AS col1
----
1
84

skipif mysql # not compatible
query II rowsort label-5066
SELECT DISTINCT COUNT ( * ), 84 AS col1
----
1
84

query I rowsort
SELECT ALL - 41 * 68
----
-2788

onlyif mysql # aggregate syntax: 
query I rowsort label-5068
SELECT + MAX( DISTINCT - 95 ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-5068
SELECT + MAX ( DISTINCT - 95 ) AS col2
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-5069
SELECT COUNT( ALL - 82 )
----
1

skipif mysql # not compatible
query I rowsort label-5069
SELECT COUNT ( ALL - 82 )
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5070
SELECT DISTINCT + 35 * - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5070
SELECT DISTINCT + 35 * - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5071
SELECT ALL CAST( NULL AS SIGNED ) * + - 15 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5071
SELECT ALL CAST ( NULL AS INTEGER ) * + - 15 AS col1
----
NULL

query I rowsort
SELECT + - 83 + + 20
----
-63

query I rowsort
SELECT ALL 78 + + 24 AS col2
----
102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5074
SELECT + COUNT( * ) * - 23 DIV + ( - - 1 ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-5074
SELECT + COUNT ( * ) * - 23 / + ( - - 1 ) AS col2
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5075
SELECT DISTINCT + COUNT( DISTINCT - CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-5075
SELECT DISTINCT + COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) )
----
0

query I rowsort
SELECT ALL + + ( - 46 )
----
-46

query I rowsort
SELECT DISTINCT + 35 * + 26
----
910

onlyif mysql # aggregate syntax: 
query I rowsort label-5078
SELECT ALL + COUNT( DISTINCT + - 48 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-5078
SELECT ALL + COUNT ( DISTINCT + - 48 ) col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5079
SELECT ALL - SUM( - + CAST( NULL AS SIGNED ) ) * ( + - 97 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5079
SELECT ALL - SUM ( - + CAST ( NULL AS INTEGER ) ) * ( + - 97 ) AS col0
----
NULL

query II rowsort
SELECT 47 AS col1, + 42 AS col2
----
47
42

query I rowsort
SELECT ALL - - 95 AS col2
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5082
SELECT + ( + 58 ) DIV - + COUNT( * ) * - COUNT( DISTINCT + - 38 )
----
58

skipif mysql # not compatible
query I rowsort label-5082
SELECT + ( + 58 ) / - + COUNT ( * ) * - COUNT ( DISTINCT + - 38 )
----
58

query II rowsort
SELECT DISTINCT - 68 AS col2, 52 AS col2
----
-68
52

query II rowsort
SELECT + 70, + 63 AS col0
----
70
63

query I rowsort
SELECT + + 86
----
86

query I rowsort
SELECT - 68 - 27
----
-95

query I rowsort
SELECT - 3 + - 60
----
-63

query I rowsort
SELECT - NULLIF ( + 95, + + ( 87 ) ) col0
----
-95

query I rowsort
SELECT + 96 * - ( - 70 )
----
6720

query I rowsort
SELECT + 60 * - 26
----
-1560

query I rowsort
SELECT DISTINCT + - 99 AS col0
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5092
SELECT + 73 DIV COUNT( * ) AS col1
----
73

skipif mysql # not compatible
query I rowsort label-5092
SELECT + 73 / COUNT ( * ) AS col1
----
73

query I rowsort
SELECT DISTINCT + - 47 AS col2
----
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-5094
SELECT COUNT( * ), 94 AS col0
----
1
94

skipif mysql # not compatible
query II rowsort label-5094
SELECT COUNT ( * ), 94 AS col0
----
1
94

query I rowsort
SELECT 40 * - 2
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-5096
SELECT - + 76 * + 68 - COUNT( * )
----
-5169

skipif mysql # not compatible
query I rowsort label-5096
SELECT - + 76 * + 68 - COUNT ( * )
----
-5169

query I rowsort
SELECT 22 * - 41
----
-902

query I rowsort
SELECT 75 * - 96
----
-7200

query I rowsort
SELECT - ( + - 35 ) AS col0
----
35

query I rowsort
SELECT - 78 + 31
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5101
SELECT + ( - - CAST( + COUNT( * ) AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-5101
SELECT + ( - - CAST ( + COUNT ( * ) AS INTEGER ) )
----
1

query I rowsort
SELECT ALL - - 24
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-5103
SELECT + COUNT( * ), - 13 AS col0
----
1
-13

skipif mysql # not compatible
query II rowsort label-5103
SELECT + COUNT ( * ), - 13 AS col0
----
1
-13

query I rowsort
SELECT - 37 * 47 AS col0
----
-1739

query I rowsort
SELECT - 47 * 98
----
-4606

onlyif mysql # aggregate syntax: 
query I rowsort label-5106
SELECT - MAX( ALL + 21 ) + + ( - + 82 )
----
-103

skipif mysql # not compatible
query I rowsort label-5106
SELECT - MAX ( ALL + 21 ) + + ( - + 82 )
----
-103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5107
SELECT + CAST( - + COUNT( * ) AS SIGNED ) * + COALESCE ( - 16, + + 46 )
----
16

skipif mysql # not compatible
query I rowsort label-5107
SELECT + CAST ( - + COUNT ( * ) AS INTEGER ) * + COALESCE ( - 16, + + 46 )
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5108
SELECT DISTINCT + COUNT( + 38 )
----
1

skipif mysql # not compatible
query I rowsort label-5108
SELECT DISTINCT + COUNT ( + 38 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5109
SELECT ALL COUNT( * ) * + 15
----
15

skipif mysql # not compatible
query I rowsort label-5109
SELECT ALL COUNT ( * ) * + 15
----
15

query I rowsort
SELECT + ( 63 ) AS col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5111
SELECT + COUNT( * ) * - 0 col2
----
0

skipif mysql # not compatible
query I rowsort label-5111
SELECT + COUNT ( * ) * - 0 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5112
SELECT - ( + 94 ) * + COUNT( * ) AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-5112
SELECT - ( + 94 ) * + COUNT ( * ) AS col1
----
-94

query I rowsort
SELECT ALL - 65 * - + 57 AS col2
----
3705

onlyif mysql # aggregate syntax: 
query I rowsort label-5114
SELECT - 56 * COUNT( 20 ) AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-5114
SELECT - 56 * COUNT ( 20 ) AS col2
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-5115
SELECT COUNT( * ) * - + 74 AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-5115
SELECT COUNT ( * ) * - + 74 AS col2
----
-74

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5116
SELECT ( CAST( NULL AS DECIMAL ) ) + + ( - 88 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5116
SELECT ( CAST ( NULL AS REAL ) ) + + ( - 88 )
----
NULL

query II rowsort
SELECT ALL 83 AS col2, 39
----
83
39

onlyif mysql # aggregate syntax: 
query II rowsort label-5118
SELECT DISTINCT 35 AS col1, COUNT( * )
----
35
1

skipif mysql # not compatible
query II rowsort label-5118
SELECT DISTINCT 35 AS col1, COUNT ( * )
----
35
1

query I rowsort
SELECT DISTINCT - 20 + 5 AS col1
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-5120
SELECT DISTINCT 62 DIV + 49 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5120
SELECT DISTINCT 62 / + 49 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5121
SELECT - MAX( ALL - 52 )
----
52

skipif mysql # not compatible
query I rowsort label-5121
SELECT - MAX ( ALL - 52 )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5122
SELECT ALL - 12 * COUNT( * ) AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-5122
SELECT ALL - 12 * COUNT ( * ) AS col2
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5123
SELECT - 82 / - 8 * - + MIN( - - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5123
SELECT - 82 / - 8 * - + MIN ( - - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5124
SELECT ALL + SUM( - - 75 )
----
75

skipif mysql # not compatible
query I rowsort label-5124
SELECT ALL + SUM ( - - 75 )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5125
SELECT DISTINCT ( MIN( + 70 ) )
----
70

skipif mysql # not compatible
query I rowsort label-5125
SELECT DISTINCT ( MIN ( + 70 ) )
----
70

query I rowsort
SELECT + 85 - - ( ( - 90 ) )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5127
SELECT + COUNT( * ) * - + 65 col1
----
-65

skipif mysql # not compatible
query I rowsort label-5127
SELECT + COUNT ( * ) * - + 65 col1
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5128
SELECT CAST( + 5 AS SIGNED )
----
5

skipif mysql # not compatible
query I rowsort label-5128
SELECT CAST ( + 5 AS INTEGER )
----
5

query I rowsort
SELECT + 41 * - 67
----
-2747

onlyif mysql # aggregate syntax: 
query II rowsort label-5130
SELECT ALL + + 1 AS col1, MIN( ALL ( - 13 ) )
----
1
-13

skipif mysql # not compatible
query II rowsort label-5130
SELECT ALL + + 1 AS col1, MIN ( ALL ( - 13 ) )
----
1
-13

query I rowsort
SELECT - 54 * - + 48 AS col0
----
2592

query I rowsort
SELECT + + 8 AS col1
----
8

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5133
SELECT + ( - 47 ) + - COUNT( * ) AS col1, - CAST( NULL AS DECIMAL ) AS col2
----
-48
NULL

skipif mysql # not compatible
query II rowsort label-5133
SELECT + ( - 47 ) + - COUNT ( * ) AS col1, - CAST ( NULL AS REAL ) AS col2
----
-48
NULL

query I rowsort
SELECT DISTINCT 61 + + 2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5135
SELECT DISTINCT 54 + - - MIN( ALL + 92 )
----
146

skipif mysql # not compatible
query I rowsort label-5135
SELECT DISTINCT 54 + - - MIN ( ALL + 92 )
----
146

query I rowsort
SELECT DISTINCT - 40 - 21 AS col0
----
-61

query I rowsort
SELECT ALL 12 * 4 AS col2
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5138
SELECT SUM( DISTINCT - - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5138
SELECT SUM ( DISTINCT - - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT + 74 + + 39 AS col2
----
113

query I rowsort
SELECT DISTINCT - - 80 AS col2
----
80

query I rowsort
SELECT DISTINCT + 70 + - 26 AS col1
----
44

query I rowsort
SELECT DISTINCT + 8 - - 42 AS col2
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5143
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5143
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + + 19 AS col2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5145
SELECT DISTINCT + COUNT( ALL + 12 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5145
SELECT DISTINCT + COUNT ( ALL + 12 ) AS col1
----
1

query II rowsort
SELECT 66, + ( + 49 ) AS col1
----
66
49

query II rowsort
SELECT 2, + 17 + + 43 col1
----
2
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5148
SELECT DISTINCT 83 - + ( + COUNT( * ) ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-5148
SELECT DISTINCT 83 - + ( + COUNT ( * ) ) AS col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5149
SELECT ALL MIN( DISTINCT + 64 )
----
64

skipif mysql # not compatible
query I rowsort label-5149
SELECT ALL MIN ( DISTINCT + 64 )
----
64

query I rowsort
SELECT DISTINCT + + 52 AS col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5151
SELECT DISTINCT + - NULLIF ( + COUNT( * ), - + 86 )
----
-1

skipif mysql # not compatible
query I rowsort label-5151
SELECT DISTINCT + - NULLIF ( + COUNT ( * ), - + 86 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5152
SELECT - SUM( ALL 14 ) * 77
----
-1078

skipif mysql # not compatible
query I rowsort label-5152
SELECT - SUM ( ALL 14 ) * 77
----
-1078

query I rowsort
SELECT ALL + 4 col2
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-5154
SELECT COUNT( - 4 ) AS col2, + ( + 58 ) AS col2
----
1
58

skipif mysql # not compatible
query II rowsort label-5154
SELECT COUNT ( - 4 ) AS col2, + ( + 58 ) AS col2
----
1
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5155
SELECT ALL + COUNT( * ) + - ( + COUNT( DISTINCT + + CAST( NULL AS SIGNED ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-5155
SELECT ALL + COUNT ( * ) + - ( + COUNT ( DISTINCT + + CAST ( NULL AS INTEGER ) ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5156
SELECT COALESCE ( - CAST( NULL AS SIGNED ), + 14, - 93 )
----
14

skipif mysql # not compatible
query I rowsort label-5156
SELECT COALESCE ( - CAST ( NULL AS INTEGER ), + 14, - 93 )
----
14

query I rowsort
SELECT ALL - ( - - 53 ) col2
----
-53

query I rowsort
SELECT 0 + + + 83 AS col1
----
83

query II rowsort
SELECT ALL 8, + 36 AS col2
----
8
36

onlyif mysql # DIV for integer division: 
query I rowsort label-5160
SELECT DISTINCT + 40 DIV + - 87 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5160
SELECT DISTINCT + 40 / + - 87 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5161
SELECT COUNT( * ) * 19 AS col2
----
19

skipif mysql # not compatible
query I rowsort label-5161
SELECT COUNT ( * ) * 19 AS col2
----
19

query I rowsort
SELECT DISTINCT ( 88 ) AS col2
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5163
SELECT 56 - ( - 48 ) AS col1, + COUNT( * ) DIV - 96
----
104
0

skipif mysql # not compatible
query II rowsort label-5163
SELECT 56 - ( - 48 ) AS col1, + COUNT ( * ) / - 96
----
104
0

query I rowsort
SELECT ALL 97 + - 92
----
5

query I rowsort
SELECT - + 68 col2
----
-68

query I rowsort
SELECT + - 73
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-5167
SELECT + 44 + + - MIN( DISTINCT - 98 )
----
142

skipif mysql # not compatible
query I rowsort label-5167
SELECT + 44 + + - MIN ( DISTINCT - 98 )
----
142

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5168
SELECT + ( - ( + - CAST( NULL AS DECIMAL ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5168
SELECT + ( - ( + - CAST ( NULL AS REAL ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5169
SELECT ALL COUNT( * ) * - 47
----
-47

skipif mysql # not compatible
query I rowsort label-5169
SELECT ALL COUNT ( * ) * - 47
----
-47

query I rowsort
SELECT DISTINCT 23 * - - 77
----
1771

query I rowsort
SELECT 23 + - 68 col1
----
-45

query I rowsort
SELECT 48 + + + 87
----
135

query I rowsort
SELECT - 23 col1
----
-23

query I rowsort
SELECT ALL 31 + + 54 AS col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5175
SELECT - COUNT( * ) * + - 94 AS col2
----
94

skipif mysql # not compatible
query I rowsort label-5175
SELECT - COUNT ( * ) * + - 94 AS col2
----
94

onlyif mysql # aggregate syntax: 
query II rowsort label-5176
SELECT ALL + 8, 65 * + + COUNT( * ) AS col0
----
8
65

skipif mysql # not compatible
query II rowsort label-5176
SELECT ALL + 8, 65 * + + COUNT ( * ) AS col0
----
8
65

query I rowsort
SELECT ALL + - 80 AS col0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-5178
SELECT SUM( + 37 ) col2
----
37

skipif mysql # not compatible
query I rowsort label-5178
SELECT SUM ( + 37 ) col2
----
37

query I rowsort
SELECT - 97 * - 24 + + + 98
----
2426

query I rowsort
SELECT DISTINCT ( 62 ) * 78
----
4836

query I rowsort
SELECT DISTINCT - COALESCE ( - 52, - 60 )
----
52

query I rowsort
SELECT ALL - - 69 + - - 39
----
108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5183
SELECT + CAST( + - 42 AS SIGNED ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-5183
SELECT + CAST ( + - 42 AS INTEGER ) AS col2
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5184
SELECT 3 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5184
SELECT 3 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5185
SELECT COUNT( * ) * - 22 AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-5185
SELECT COUNT ( * ) * - 22 AS col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-5186
SELECT COUNT( * ) * - 51
----
-51

skipif mysql # not compatible
query I rowsort label-5186
SELECT COUNT ( * ) * - 51
----
-51

query I rowsort
SELECT DISTINCT - ( - + 7 )
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5188
SELECT DISTINCT + 77 * - - CAST( + - COUNT( * ) AS SIGNED )
----
-77

skipif mysql # not compatible
query I rowsort label-5188
SELECT DISTINCT + 77 * - - CAST ( + - COUNT ( * ) AS INTEGER )
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5189
SELECT ALL COUNT( 5 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5189
SELECT ALL COUNT ( 5 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5190
SELECT DISTINCT 53 * 1 + - MAX( ALL - 0 )
----
53

skipif mysql # not compatible
query I rowsort label-5190
SELECT DISTINCT 53 * 1 + - MAX ( ALL - 0 )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-5191
SELECT DISTINCT + 32 * - MAX( + ( 9 ) ) - - 78 AS col2
----
-210

skipif mysql # not compatible
query I rowsort label-5191
SELECT DISTINCT + 32 * - MAX ( + ( 9 ) ) - - 78 AS col2
----
-210

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5192
SELECT - ( - - CAST( - COUNT( * ) AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-5192
SELECT - ( - - CAST ( - COUNT ( * ) AS INTEGER ) )
----
1

query I rowsort
SELECT ALL 87 col2
----
87

query I rowsort
SELECT - COALESCE ( 37, - 94 )
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-5195
SELECT - COUNT( - ( + 93 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5195
SELECT - COUNT ( - ( + 93 ) ) AS col1
----
-1

query I rowsort
SELECT + 61 * - + 85 AS col0
----
-5185

query I rowsort
SELECT + ( - - 19 )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5198
SELECT DISTINCT 64 + COUNT( * ) col0
----
65

skipif mysql # not compatible
query I rowsort label-5198
SELECT DISTINCT 64 + COUNT ( * ) col0
----
65

query I rowsort
SELECT - 61 * - + 68 AS col0
----
4148

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5200
SELECT + CAST( NULL AS DECIMAL ) + + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5200
SELECT + CAST ( NULL AS REAL ) + + - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5201
SELECT - COUNT( * ) * ( 98 ) + + - 29
----
-127

skipif mysql # not compatible
query I rowsort label-5201
SELECT - COUNT ( * ) * ( 98 ) + + - 29
----
-127

onlyif mysql # aggregate syntax: 
query I rowsort label-5202
SELECT COUNT( 93 )
----
1

skipif mysql # not compatible
query I rowsort label-5202
SELECT COUNT ( 93 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5203
SELECT 63 * - COUNT( * ) AS col0, 37
----
-63
37

skipif mysql # not compatible
query II rowsort label-5203
SELECT 63 * - COUNT ( * ) AS col0, 37
----
-63
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5204
SELECT - - MIN( DISTINCT 24 )
----
24

skipif mysql # not compatible
query I rowsort label-5204
SELECT - - MIN ( DISTINCT 24 )
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-5205
SELECT ALL + 88 DIV + + 56 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5205
SELECT ALL + 88 / + + 56 AS col2
----
1

query I rowsort
SELECT DISTINCT ( - ( - - 55 ) ) + - 49 AS col1
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-5207
SELECT ALL - COUNT( * ) - - 66
----
65

skipif mysql # not compatible
query I rowsort label-5207
SELECT ALL - COUNT ( * ) - - 66
----
65

query I rowsort
SELECT ALL - 62 * + 49
----
-3038

query I rowsort
SELECT + 52 * - 22
----
-1144

query I rowsort
SELECT ALL + ( + 13 )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-5211
SELECT ALL 38 + + COUNT( * )
----
39

skipif mysql # not compatible
query I rowsort label-5211
SELECT ALL 38 + + COUNT ( * )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5212
SELECT + NULLIF ( - - 92, + COUNT( * ) + + + ( 66 ) + + 99 * - + 91 * - - COUNT( * ) ) col1
----
92

skipif mysql # not compatible
query I rowsort label-5212
SELECT + NULLIF ( - - 92, + COUNT ( * ) + + + ( 66 ) + + 99 * - + 91 * - - COUNT ( * ) ) col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5213
SELECT ALL + SUM( 14 )
----
14

skipif mysql # not compatible
query I rowsort label-5213
SELECT ALL + SUM ( 14 )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5214
SELECT - - COUNT( + + 18 ) * - 99
----
-99

skipif mysql # not compatible
query I rowsort label-5214
SELECT - - COUNT ( + + 18 ) * - 99
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5215
SELECT - COUNT( ( - 10 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5215
SELECT - COUNT ( ( - 10 ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5216
SELECT ALL - CAST( + + COUNT( * ) AS SIGNED ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-5216
SELECT ALL - CAST ( + + COUNT ( * ) AS INTEGER ) col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5217
SELECT ALL + - 45 + + + COUNT( * ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-5217
SELECT ALL + - 45 + + + COUNT ( * ) AS col0
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5218
SELECT - + MIN( ( - CAST( + - 70 AS SIGNED ) ) ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-5218
SELECT - + MIN ( ( - CAST ( + - 70 AS INTEGER ) ) ) AS col0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-5219
SELECT COUNT( * ) * + + COUNT( * ) col2
----
1

skipif mysql # not compatible
query I rowsort label-5219
SELECT COUNT ( * ) * + + COUNT ( * ) col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5220
SELECT ALL 0 DIV SUM( DISTINCT - ( - 97 ) )
----
0

skipif mysql # not compatible
query I rowsort label-5220
SELECT ALL 0 / SUM ( DISTINCT - ( - 97 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5221
SELECT 39 * - COUNT( * )
----
-39

skipif mysql # not compatible
query I rowsort label-5221
SELECT 39 * - COUNT ( * )
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-5222
SELECT 27 AS col0, - COUNT( ALL 58 )
----
27
-1

skipif mysql # not compatible
query II rowsort label-5222
SELECT 27 AS col0, - COUNT ( ALL 58 )
----
27
-1

query II rowsort
SELECT + 57, + 32 AS col2
----
57
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5224
SELECT DISTINCT + COUNT( * ) * ( CAST( - 9 AS SIGNED ) )
----
-9

skipif mysql # not compatible
query I rowsort label-5224
SELECT DISTINCT + COUNT ( * ) * ( CAST ( - 9 AS INTEGER ) )
----
-9

query I rowsort
SELECT DISTINCT - 36 col1
----
-36

query II rowsort
SELECT 88 AS col1, - 93
----
88
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-5227
SELECT - 77 + - COUNT( * )
----
-78

skipif mysql # not compatible
query I rowsort label-5227
SELECT - 77 + - COUNT ( * )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-5228
SELECT - + COUNT( * ) * - - 5 + - 61
----
-66

skipif mysql # not compatible
query I rowsort label-5228
SELECT - + COUNT ( * ) * - - 5 + - 61
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5229
SELECT ALL 42 + - COUNT( * ) AS col0
----
41

skipif mysql # not compatible
query I rowsort label-5229
SELECT ALL 42 + - COUNT ( * ) AS col0
----
41

query I rowsort
SELECT - 29 - 17 AS col1
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5231
SELECT CAST( + 95 AS SIGNED )
----
95

skipif mysql # not compatible
query I rowsort label-5231
SELECT CAST ( + 95 AS INTEGER )
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5232
SELECT + CAST( 48 AS SIGNED ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-5232
SELECT + CAST ( 48 AS INTEGER ) AS col2
----
48

query I rowsort
SELECT DISTINCT + 65 col1
----
65

query I rowsort
SELECT - 63 * 55
----
-3465

onlyif mysql # aggregate syntax: 
query I rowsort label-5235
SELECT - + 26 * + COUNT( * )
----
-26

skipif mysql # not compatible
query I rowsort label-5235
SELECT - + 26 * + COUNT ( * )
----
-26

query I rowsort
SELECT ALL 37 * + 90
----
3330

onlyif mysql # aggregate syntax: 
query I rowsort label-5237
SELECT ALL COUNT( * ) + + - 19
----
-18

skipif mysql # not compatible
query I rowsort label-5237
SELECT ALL COUNT ( * ) + + - 19
----
-18

query I rowsort
SELECT ALL 1 + - 91
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5239
SELECT ALL - 90 + + + CAST( 24 AS SIGNED )
----
-66

skipif mysql # not compatible
query I rowsort label-5239
SELECT ALL - 90 + + + CAST ( 24 AS INTEGER )
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5240
SELECT COUNT( * ) * - - 13
----
13

skipif mysql # not compatible
query I rowsort label-5240
SELECT COUNT ( * ) * - - 13
----
13

query I rowsort
SELECT DISTINCT 0 * - 80 AS col0
----
0

query II rowsort
SELECT ALL - 10, 41 AS col1
----
-10
41

query I rowsort
SELECT ALL - - 55 AS col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5244
SELECT + MIN( 73 ) AS col2
----
73

skipif mysql # not compatible
query I rowsort label-5244
SELECT + MIN ( 73 ) AS col2
----
73

query I rowsort
SELECT + 75 + + 39
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-5246
SELECT ALL + ( - COUNT( * ) ) + 37 AS col2
----
36

skipif mysql # not compatible
query I rowsort label-5246
SELECT ALL + ( - COUNT ( * ) ) + 37 AS col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5247
SELECT ALL COUNT( * ) + 93 AS col0
----
94

skipif mysql # not compatible
query I rowsort label-5247
SELECT ALL COUNT ( * ) + 93 AS col0
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5248
SELECT + 15 + + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5248
SELECT + 15 + + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5249
SELECT SUM( ALL + 96 )
----
96

skipif mysql # not compatible
query I rowsort label-5249
SELECT SUM ( ALL + 96 )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5250
SELECT ALL SUM( DISTINCT + 38 ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-5250
SELECT ALL SUM ( DISTINCT + 38 ) AS col2
----
38

query I rowsort
SELECT ALL + ( 59 ) AS col0
----
59

query II rowsort
SELECT DISTINCT 1 AS col1, + ( 93 )
----
1
93

query I rowsort
SELECT DISTINCT + ( + + 19 ) AS col1
----
19

query I rowsort
SELECT - NULLIF ( - 31, + 33 )
----
31

query I rowsort
SELECT + - 25 * - + 24 * - 49 AS col0
----
-29400

onlyif mysql # aggregate syntax: 
query I rowsort label-5256
SELECT - MIN( ALL - - 4 ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-5256
SELECT - MIN ( ALL - - 4 ) AS col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5257
SELECT + 0 * + + 9 * - COUNT( * ) * 61 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5257
SELECT + 0 * + + 9 * - COUNT ( * ) * 61 AS col0
----
0

query I rowsort
SELECT ALL - ( + - 3 )
----
3

query I rowsort
SELECT DISTINCT - NULLIF ( + - 92, - 65 )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5260
SELECT COUNT( * ) * - 54
----
-54

skipif mysql # not compatible
query I rowsort label-5260
SELECT COUNT ( * ) * - 54
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-5261
SELECT - - COUNT( 51 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5261
SELECT - - COUNT ( 51 ) AS col2
----
1

query I rowsort
SELECT ALL - ( + 81 ) AS col2
----
-81

query I rowsort
SELECT ALL - 33 * - - 36 AS col1
----
-1188

query I rowsort
SELECT + ( - 81 ) AS col2
----
-81

query I rowsort
SELECT + ( - ( + 7 ) )
----
-7

query I rowsort
SELECT - + 96 AS col1
----
-96

query I rowsort
SELECT ALL + - 50 - - 84
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5268
SELECT DISTINCT CAST( NULL AS SIGNED ) col1, - COUNT( * )
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-5268
SELECT DISTINCT CAST ( NULL AS INTEGER ) col1, - COUNT ( * )
----
NULL
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5269
SELECT ALL + ( COUNT( * ) ) + + - 14 AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-5269
SELECT ALL + ( COUNT ( * ) ) + + - 14 AS col0
----
-13

query I rowsort
SELECT ALL - 37 + + 76
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-5271
SELECT - 76 DIV - 86 * - 66
----
0

skipif mysql # not compatible
query I rowsort label-5271
SELECT - 76 / - 86 * - 66
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5272
SELECT ALL - CAST( NULL AS DECIMAL ) * 91 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5272
SELECT ALL - CAST ( NULL AS REAL ) * 91 AS col2
----
NULL

query II rowsort
SELECT ALL - 79 * 22 AS col2, 87 AS col1
----
-1738
87

query I rowsort
SELECT ALL + 5 + - - 75 AS col0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5275
SELECT DISTINCT + ( COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5275
SELECT DISTINCT + ( COUNT ( * ) ) AS col2
----
1

query I rowsort
SELECT DISTINCT - 25 * 61
----
-1525

query I rowsort
SELECT - 86 * - 49 AS col0
----
4214

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5278
SELECT ALL AVG ( - ( CAST( NULL AS SIGNED ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5278
SELECT ALL AVG ( - ( CAST ( NULL AS INTEGER ) ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5279
SELECT DISTINCT 89 + CAST( COUNT( * ) AS SIGNED ) col2
----
90

skipif mysql # not compatible
query I rowsort label-5279
SELECT DISTINCT 89 + CAST ( COUNT ( * ) AS INTEGER ) col2
----
90

query I rowsort
SELECT + 18 + - 3
----
15

query I rowsort
SELECT + 82 * 94 AS col0
----
7708

query I rowsort
SELECT - 67 * - 25
----
1675

query I rowsort
SELECT DISTINCT + - 12 col2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-5284
SELECT DISTINCT - COUNT( * ) * + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-5284
SELECT DISTINCT - COUNT ( * ) * + COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5285
SELECT - ( 25 ) * - COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-5285
SELECT - ( 25 ) * - COUNT ( * )
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5286
SELECT DISTINCT + CAST( - 27 AS SIGNED ) + - 59
----
-86

skipif mysql # not compatible
query I rowsort label-5286
SELECT DISTINCT + CAST ( - 27 AS INTEGER ) + - 59
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-5287
SELECT COUNT( * ) * + 77 AS col2
----
77

skipif mysql # not compatible
query I rowsort label-5287
SELECT COUNT ( * ) * + 77 AS col2
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-5288
SELECT ( 59 ) DIV 20 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-5288
SELECT ( 59 ) / 20 AS col2
----
2

query I rowsort
SELECT DISTINCT 94 * 22
----
2068

query I rowsort
SELECT ( - + 54 ) * + 86
----
-4644

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5291
SELECT MAX( ALL - - 29 ) - - CAST( NULL AS SIGNED ) / ( + 54 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5291
SELECT MAX ( ALL - - 29 ) - - CAST ( NULL AS INTEGER ) / ( + 54 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 67 * - - 7 AS col2
----
469

query I rowsort
SELECT ALL - ( + 20 ) AS col0
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5294
SELECT + CAST( NULL AS SIGNED ) * 65 * + 79 + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5294
SELECT + CAST ( NULL AS INTEGER ) * 65 * + 79 + + COUNT ( * )
----
NULL

query II rowsort
SELECT ALL 12 AS col0, 75
----
12
75

query I rowsort
SELECT 64 * + + 21 AS col0
----
1344

query I rowsort
SELECT DISTINCT - - 84 AS col0
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5298
SELECT + 59 * - COUNT( * ) AS col0, CAST( + + 26 AS SIGNED )
----
-59
26

skipif mysql # not compatible
query II rowsort label-5298
SELECT + 59 * - COUNT ( * ) AS col0, CAST ( + + 26 AS INTEGER )
----
-59
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5299
SELECT ALL MAX( - - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5299
SELECT ALL MAX ( - - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5300
SELECT ALL + 53 + + + COUNT( * ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-5300
SELECT ALL + 53 + + + COUNT ( * ) AS col2
----
54

query I rowsort
SELECT DISTINCT + 3 + - - 56
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5302
SELECT COUNT( - + ( + 96 ) )
----
1

skipif mysql # not compatible
query I rowsort label-5302
SELECT COUNT ( - + ( + 96 ) )
----
1

query I rowsort
SELECT ALL + - 32 AS col2
----
-32

query I rowsort
SELECT ALL + + 50 AS col0
----
50

query I rowsort
SELECT + - 15 col1
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5306
SELECT + 0 DIV + + ( - COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-5306
SELECT + 0 / + + ( - COUNT ( * ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5307
SELECT + COUNT( * ) + + COUNT( * ) - - COUNT( * ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-5307
SELECT + COUNT ( * ) + + COUNT ( * ) - - COUNT ( * ) AS col0
----
3

query I rowsort
SELECT - ( + + 62 ) AS col2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-5309
SELECT ( + CASE WHEN + COUNT( * ) >= NULL THEN - 74 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-5309
SELECT ( + CASE WHEN + COUNT ( * ) >= NULL THEN - 74 END )
----
NULL

query I rowsort
SELECT ALL - + ( - 32 ) AS col0
----
32

query I rowsort
SELECT DISTINCT - ( - 77 ) AS col1
----
77

query I rowsort
SELECT 19 * + 11 * + 34 * + 54
----
383724

onlyif mysql # aggregate syntax: 
query I rowsort label-5313
SELECT DISTINCT 13 * - + COUNT( * ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-5313
SELECT DISTINCT 13 * - + COUNT ( * ) AS col1
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5314
SELECT 70 DIV COUNT( * )
----
70

skipif mysql # not compatible
query I rowsort label-5314
SELECT 70 / COUNT ( * )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5315
SELECT DISTINCT + 70 + + COUNT( * ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-5315
SELECT DISTINCT + 70 + + COUNT ( * ) AS col2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5316
SELECT + COUNT( * ) * + 64
----
64

skipif mysql # not compatible
query I rowsort label-5316
SELECT + COUNT ( * ) * + 64
----
64

query I rowsort
SELECT ALL - 50 col2
----
-50

query I rowsort
SELECT 89 * 21
----
1869

onlyif mysql # aggregate syntax: 
query I rowsort label-5319
SELECT DISTINCT + COUNT( * ) + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-5319
SELECT DISTINCT + COUNT ( * ) + + COUNT ( * )
----
2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5320
SELECT DISTINCT ( + - 43 ) * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5320
SELECT DISTINCT ( + - 43 ) * CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT 21 col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5322
SELECT + 71 * 28 * - + SUM( DISTINCT + - 13 ) - + + 3 AS col1
----
25841

skipif mysql # not compatible
query I rowsort label-5322
SELECT + 71 * 28 * - + SUM ( DISTINCT + - 13 ) - + + 3 AS col1
----
25841

query I rowsort
SELECT ALL + ( 98 ) AS col2
----
98

query I rowsort
SELECT ALL + ( 0 ) AS col2
----
0

query I rowsort
SELECT + ( - 53 ) col2
----
-53

query I rowsort
SELECT DISTINCT - 73 * - + 46
----
3358

onlyif mysql # aggregate syntax: 
query I rowsort label-5327
SELECT - SUM( 1 ) + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-5327
SELECT - SUM ( 1 ) + COUNT ( * )
----
0

query I rowsort
SELECT ALL + 88 + 30 AS col2
----
118

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5329
SELECT - CAST( NULL AS SIGNED ) AS col2, 76
----
NULL
76

skipif mysql # not compatible
query II rowsort label-5329
SELECT - CAST ( NULL AS INTEGER ) AS col2, 76
----
NULL
76

query I rowsort
SELECT DISTINCT + ( + - 58 )
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-5331
SELECT ALL 99 DIV - 78 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5331
SELECT ALL 99 / - 78 AS col1
----
-1

query I rowsort
SELECT ( + 57 ) AS col1
----
57

query I rowsort
SELECT ALL - 4 * + 17 AS col2
----
-68

query I rowsort
SELECT DISTINCT - - ( + 51 ) AS col1
----
51

query I rowsort
SELECT ALL + 14 col2
----
14

query I rowsort
SELECT 88 + - 1
----
87

query I rowsort
SELECT ALL - + ( 36 )
----
-36

query I rowsort
SELECT - - 34 AS col0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5339
SELECT COUNT( * ) + - 54 AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-5339
SELECT COUNT ( * ) + - 54 AS col2
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5340
SELECT 95 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5340
SELECT 95 * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5341
SELECT COUNT( * ) DIV - 74 col1
----
0

skipif mysql # not compatible
query I rowsort label-5341
SELECT COUNT ( * ) / - 74 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5342
SELECT ALL + MIN( + + 62 )
----
62

skipif mysql # not compatible
query I rowsort label-5342
SELECT ALL + MIN ( + + 62 )
----
62

query I rowsort
SELECT DISTINCT + - 18 AS col1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-5344
SELECT + ( + 82 ) * - - COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-5344
SELECT + ( + 82 ) * - - COUNT ( * )
----
82

query I rowsort
SELECT - 94 * 95
----
-8930

query I rowsort
SELECT DISTINCT ( - 79 ) AS col2
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5347
SELECT - 87 - + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5347
SELECT - 87 - + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 2 col2
----
2

query I rowsort
SELECT - 51 * - + 30 AS col2
----
1530

onlyif mysql # aggregate syntax: 
query I rowsort label-5350
SELECT + - COUNT( DISTINCT - 96 )
----
-1

skipif mysql # not compatible
query I rowsort label-5350
SELECT + - COUNT ( DISTINCT - 96 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5351
SELECT ALL + 78 DIV - 26 + 95 AS col0
----
92

skipif mysql # not compatible
query I rowsort label-5351
SELECT ALL + 78 / - 26 + 95 AS col0
----
92

query I rowsort
SELECT ( + 78 ) AS col1
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-5353
SELECT - COUNT( * ) AS col2, - 20
----
-1
-20

skipif mysql # not compatible
query II rowsort label-5353
SELECT - COUNT ( * ) AS col2, - 20
----
-1
-20

query I rowsort
SELECT ALL + 17 + + 1 AS col0
----
18

query I rowsort
SELECT ALL - - 56 AS col1
----
56

query I rowsort
SELECT - ( - 77 ) AS col2
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5357
SELECT - 18 / + - CAST( NULL AS SIGNED ) * 15
----
NULL

skipif mysql # not compatible
query I rowsort label-5357
SELECT - 18 / + - CAST ( NULL AS INTEGER ) * 15
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5358
SELECT + NULLIF ( CAST( NULL AS SIGNED ), - + 46 ) * + + COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5358
SELECT + NULLIF ( CAST ( NULL AS INTEGER ), - + 46 ) * + + COUNT ( * ) col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5359
SELECT - CAST( - + 14 AS SIGNED ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-5359
SELECT - CAST ( - + 14 AS INTEGER ) AS col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5360
SELECT + 28 + + - MIN( 95 ) AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-5360
SELECT + 28 + + - MIN ( 95 ) AS col0
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5361
SELECT DISTINCT - CAST( NULL AS SIGNED ) - + 60 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5361
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - + 60 AS col0
----
NULL

query I rowsort
SELECT 48 + + 47 AS col0
----
95

query I rowsort
SELECT 8 * - 11
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-5364
SELECT + MIN( ALL - 78 )
----
-78

skipif mysql # not compatible
query I rowsort label-5364
SELECT + MIN ( ALL - 78 )
----
-78

query I rowsort
SELECT - - 77 AS col1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5366
SELECT ALL - 18 - - MAX( - 89 )
----
-107

skipif mysql # not compatible
query I rowsort label-5366
SELECT ALL - 18 - - MAX ( - 89 )
----
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-5367
SELECT - COUNT( * ) - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-5367
SELECT - COUNT ( * ) - COUNT ( * )
----
-2

query I rowsort
SELECT ALL - 69 * - - 64
----
-4416

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5369
SELECT COUNT( * ) * + COUNT( * ) - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5369
SELECT COUNT ( * ) * + COUNT ( * ) - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5370
SELECT - SUM( + + 96 ) AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-5370
SELECT - SUM ( + + 96 ) AS col2
----
-96

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5371
SELECT + 73 * + + AVG ( ALL - 22 ) * - + 43 - - SUM( DISTINCT - 63 ) - + 18 + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5371
SELECT + 73 * + + AVG ( ALL - 22 ) * - + 43 - - SUM ( DISTINCT - 63 ) - + 18 + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT DISTINCT + 69 AS col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5373
SELECT + COUNT( * ) + + 63 AS col0
----
64

skipif mysql # not compatible
query I rowsort label-5373
SELECT + COUNT ( * ) + + 63 AS col0
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5374
SELECT CAST( MAX( 15 ) AS SIGNED ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-5374
SELECT CAST ( MAX ( 15 ) AS INTEGER ) AS col1
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5375
SELECT ALL COUNT( * ) DIV + COUNT( * ) + - COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5375
SELECT ALL COUNT ( * ) / + COUNT ( * ) + - COUNT ( * ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5376
SELECT + CAST( NULL AS DECIMAL ) + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5376
SELECT + CAST ( NULL AS REAL ) + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ( 38 ) AS col2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5378
SELECT ALL - MIN( ALL - - 86 ) AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-5378
SELECT ALL - MIN ( ALL - - 86 ) AS col1
----
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5379
SELECT COUNT( * ) DIV + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5379
SELECT COUNT ( * ) / + COUNT ( * ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5380
SELECT DISTINCT + SUM( + 52 )
----
52

skipif mysql # not compatible
query I rowsort label-5380
SELECT DISTINCT + SUM ( + 52 )
----
52

query I rowsort
SELECT DISTINCT 28 + + 85
----
113

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5382
SELECT ALL + 34 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5382
SELECT ALL + 34 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 92 * + - ( 49 ) col2
----
-4508

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5384
SELECT 78 AS col1, CAST( NULL AS SIGNED ) AS col1
----
78
NULL

skipif mysql # not compatible
query II rowsort label-5384
SELECT 78 AS col1, CAST ( NULL AS INTEGER ) AS col1
----
78
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5385
SELECT ALL - COUNT( * ) AS col1, 37 AS col2
----
-1
37

skipif mysql # not compatible
query II rowsort label-5385
SELECT ALL - COUNT ( * ) AS col1, 37 AS col2
----
-1
37

query II rowsort
SELECT DISTINCT - + 84 AS col0, + 73 col0
----
-84
73

query I rowsort
SELECT ALL - 39 * - + 11 AS col1
----
429

onlyif mysql # aggregate syntax: 
query I rowsort label-5388
SELECT ALL 91 * - - COUNT( * ) * COUNT( * ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-5388
SELECT ALL 91 * - - COUNT ( * ) * COUNT ( * ) AS col0
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5389
SELECT - COUNT( * ) + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5389
SELECT - COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5390
SELECT ALL + 65 + + ( - + 91 ) + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5390
SELECT ALL + 65 + + ( - + 91 ) + + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + ( + - 59 ) AS col1
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5392
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 70 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5392
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 70 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5393
SELECT ALL 63 + CAST( + + COUNT( * ) AS SIGNED )
----
64

skipif mysql # not compatible
query I rowsort label-5393
SELECT ALL 63 + CAST ( + + COUNT ( * ) AS INTEGER )
----
64

query I rowsort
SELECT - ( - + 65 )
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-5395
SELECT DISTINCT 71, COUNT( * ) * 83 AS col0
----
71
83

skipif mysql # not compatible
query II rowsort label-5395
SELECT DISTINCT 71, COUNT ( * ) * 83 AS col0
----
71
83

query I rowsort
SELECT + ( + - 94 ) + 39 col2
----
-55

query I rowsort
SELECT DISTINCT + 40 AS col0
----
40

query I rowsort
SELECT ALL - 85 * - - 37 + + 70
----
-3075

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5399
SELECT - CAST( + 53 AS SIGNED ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-5399
SELECT - CAST ( + 53 AS INTEGER ) AS col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-5400
SELECT DISTINCT 69 * COUNT( * )
----
69

skipif mysql # not compatible
query I rowsort label-5400
SELECT DISTINCT 69 * COUNT ( * )
----
69

query I rowsort
SELECT ALL - - 95 AS col0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5402
SELECT - SUM( DISTINCT - - 5 )
----
-5

skipif mysql # not compatible
query I rowsort label-5402
SELECT - SUM ( DISTINCT - - 5 )
----
-5

query I rowsort
SELECT ALL + 15 - ( 31 ) AS col1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5404
SELECT ALL SUM( + ( - + 51 ) ) * 45
----
-2295

skipif mysql # not compatible
query I rowsort label-5404
SELECT ALL SUM ( + ( - + 51 ) ) * 45
----
-2295

query I rowsort
SELECT 93 * - 9
----
-837

query I rowsort
SELECT 83 * - - 73 AS col1
----
6059

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5407
SELECT 18 * 86 DIV COUNT( * ) AS col1
----
1548

skipif mysql # not compatible
query I rowsort label-5407
SELECT 18 * 86 / COUNT ( * ) AS col1
----
1548

query I rowsort
SELECT ALL 46 * + 64
----
2944

query I rowsort
SELECT - 22 + - 8
----
-30

query I rowsort
SELECT ALL + ( - 72 ) + - 22
----
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-5411
SELECT DISTINCT COUNT( * ) AS col0, + 39 + MIN( 36 ) AS col2
----
1
75

skipif mysql # not compatible
query II rowsort label-5411
SELECT DISTINCT COUNT ( * ) AS col0, + 39 + MIN ( 36 ) AS col2
----
1
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5412
SELECT ALL 58 AS col1, + CAST( NULL AS SIGNED )
----
58
NULL

skipif mysql # not compatible
query II rowsort label-5412
SELECT ALL 58 AS col1, + CAST ( NULL AS INTEGER )
----
58
NULL

query I rowsort
SELECT ALL + + 25 AS col1
----
25

query I rowsort
SELECT - ( 75 ) AS col0
----
-75

query I rowsort
SELECT ALL + 53 AS col0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-5416
SELECT ALL 57 + + + COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-5416
SELECT ALL 57 + + + COUNT ( * )
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5417
SELECT ALL COUNT( * ) DIV + 1 col2
----
1

skipif mysql # not compatible
query I rowsort label-5417
SELECT ALL COUNT ( * ) / + 1 col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5418
SELECT COUNT( * ) * + 12 col0
----
12

skipif mysql # not compatible
query I rowsort label-5418
SELECT COUNT ( * ) * + 12 col0
----
12

query I rowsort
SELECT ALL - 44 * - 18 AS col0
----
792

onlyif mysql # aggregate syntax: 
query II rowsort label-5420
SELECT ALL COUNT( * ) col1, COUNT( * ) AS col1
----
1
1

skipif mysql # not compatible
query II rowsort label-5420
SELECT ALL COUNT ( * ) col1, COUNT ( * ) AS col1
----
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5421
SELECT DISTINCT + COUNT( * ) + + + 40 + - CAST( + 77 AS SIGNED )
----
-36

skipif mysql # not compatible
query I rowsort label-5421
SELECT DISTINCT + COUNT ( * ) + + + 40 + - CAST ( + 77 AS INTEGER )
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5422
SELECT DISTINCT - CAST( - COUNT( * ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5422
SELECT DISTINCT - CAST ( - COUNT ( * ) AS INTEGER ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5423
SELECT DISTINCT MAX( ALL + 74 ) AS col0, ( + 80 ) - + + ( - - 96 )
----
74
-16

skipif mysql # not compatible
query II rowsort label-5423
SELECT DISTINCT MAX ( ALL + 74 ) AS col0, ( + 80 ) - + + ( - - 96 )
----
74
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5424
SELECT DISTINCT MAX( + ( 11 ) ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-5424
SELECT DISTINCT MAX ( + ( 11 ) ) AS col2
----
11

query I rowsort
SELECT + - 56 * - 66
----
3696

onlyif mysql # aggregate syntax: 
query I rowsort label-5426
SELECT - 58 - - COUNT( * ) * - 24 * COUNT( * ) + - 1 AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-5426
SELECT - 58 - - COUNT ( * ) * - 24 * COUNT ( * ) + - 1 AS col0
----
-83

query I rowsort
SELECT + ( 71 ) AS col1
----
71

query I rowsort
SELECT - + 62 AS col2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-5429
SELECT ALL + ( COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5429
SELECT ALL + ( COUNT ( * ) ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5430
SELECT DISTINCT CAST( - COUNT( * ) AS SIGNED ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5430
SELECT DISTINCT CAST ( - COUNT ( * ) AS INTEGER ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5431
SELECT 1 * - + COUNT( * ) * 31 col2
----
-31

skipif mysql # not compatible
query I rowsort label-5431
SELECT 1 * - + COUNT ( * ) * 31 col2
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-5432
SELECT 17 DIV 38 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5432
SELECT 17 / 38 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5433
SELECT ALL - COALESCE ( - COUNT( * ), + 82 ) * + ( + + 31 ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-5433
SELECT ALL - COALESCE ( - COUNT ( * ), + 82 ) * + ( + + 31 ) AS col2
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-5434
SELECT + 80 DIV + 79
----
1

skipif mysql # not compatible
query I rowsort label-5434
SELECT + 80 / + 79
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5435
SELECT + ( - - COUNT( * ) ) - + 74 * + COUNT( * )
----
-73

skipif mysql # not compatible
query I rowsort label-5435
SELECT + ( - - COUNT ( * ) ) - + 74 * + COUNT ( * )
----
-73

query I rowsort
SELECT + 39 + - 61
----
-22

query I rowsort
SELECT - 21 * + 64
----
-1344

query I rowsort
SELECT - 67 + 3
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-5439
SELECT - - COUNT( * ) * + - NULLIF ( - COUNT( * ), - - COUNT( * ) + + 25 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-5439
SELECT - - COUNT ( * ) * + - NULLIF ( - COUNT ( * ), - - COUNT ( * ) + + 25 ) col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5440
SELECT ALL + - CAST( NULL AS SIGNED ) * + 6 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5440
SELECT ALL + - CAST ( NULL AS INTEGER ) * + 6 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5441
SELECT DISTINCT CAST( + - 87 AS SIGNED ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-5441
SELECT DISTINCT CAST ( + - 87 AS INTEGER ) AS col1
----
-87

query I rowsort
SELECT + 9 + 70 AS col2
----
79

query I rowsort
SELECT ALL - ( - - 72 )
----
-72

query I rowsort
SELECT ALL - - 25 col2
----
25

query II rowsort
SELECT - 81 AS col2, 19 + - 49
----
-81
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-5446
SELECT - SUM( DISTINCT 36 )
----
-36

skipif mysql # not compatible
query I rowsort label-5446
SELECT - SUM ( DISTINCT 36 )
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5447
SELECT - COUNT( ALL 98 ) DIV - COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5447
SELECT - COUNT ( ALL 98 ) / - COUNT ( * ) AS col1
----
1

query I rowsort
SELECT ALL - - 59 AS col2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5449
SELECT ALL COUNT( * ) + 84
----
85

skipif mysql # not compatible
query I rowsort label-5449
SELECT ALL COUNT ( * ) + 84
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5450
SELECT DISTINCT ( - - 28 ) + + ( + + CAST( NULL AS SIGNED ) ) + + + 48 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5450
SELECT DISTINCT ( - - 28 ) + + ( + + CAST ( NULL AS INTEGER ) ) + + + 48 * - COUNT ( * )
----
NULL

query II rowsort
SELECT DISTINCT + + ( + 0 ) * 59, 18 col0
----
0
18

query I rowsort
SELECT - - 56 * 51 AS col2
----
2856

onlyif mysql # aggregate syntax: 
query I rowsort label-5453
SELECT + - ( + ( - 99 ) ) + - COUNT( * ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-5453
SELECT + - ( + ( - 99 ) ) + - COUNT ( * ) AS col0
----
98

query I rowsort
SELECT ALL + 91 col0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5455
SELECT - 39 * + COUNT( * ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-5455
SELECT - 39 * + COUNT ( * ) AS col2
----
-39

query I rowsort
SELECT + 86 + - 41
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5457
SELECT DISTINCT CAST( NULL AS SIGNED ) / + 32 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5457
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + 32 AS col2
----
NULL

query I rowsort
SELECT 58 * - ( + 73 )
----
-4234

query I rowsort
SELECT ALL - ( - 0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5460
SELECT 71 * COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-5460
SELECT 71 * COUNT ( * )
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5461
SELECT - 68 + CAST( NULL AS SIGNED ) * 74 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5461
SELECT - 68 + CAST ( NULL AS INTEGER ) * 74 col0
----
NULL

query I rowsort
SELECT DISTINCT - 79 * - 37
----
2923

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5463
SELECT ALL COUNT( * ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5463
SELECT ALL COUNT ( * ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5464
SELECT - 46 * + 51 + + 87 DIV - 69 AS col1
----
-2347

skipif mysql # not compatible
query I rowsort label-5464
SELECT - 46 * + 51 + + 87 / - 69 AS col1
----
-2347

query I rowsort
SELECT + + ( + - 73 ) col1
----
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-5466
SELECT ALL + + COUNT( * ) AS col2, 25 AS col1
----
1
25

skipif mysql # not compatible
query II rowsort label-5466
SELECT ALL + + COUNT ( * ) AS col2, 25 AS col1
----
1
25

query I rowsort
SELECT DISTINCT ( - 61 ) col2
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-5468
SELECT + - 39 + + 35 + COUNT( * ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-5468
SELECT + - 39 + + 35 + COUNT ( * ) AS col1
----
-3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5469
SELECT + ( + CAST( NULL AS DECIMAL ) ) AS col0, - ( + COUNT( * ) )
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-5469
SELECT + ( + CAST ( NULL AS REAL ) ) AS col0, - ( + COUNT ( * ) )
----
NULL
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5470
SELECT + ( + ( - COUNT( * ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5470
SELECT + ( + ( - COUNT ( * ) ) )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5471
SELECT ALL 32 DIV 50 * - 16 col1
----
0

skipif mysql # not compatible
query I rowsort label-5471
SELECT ALL 32 / 50 * - 16 col1
----
0

query I rowsort
SELECT DISTINCT + - 13
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-5473
SELECT + + COUNT( * ) - + + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5473
SELECT + + COUNT ( * ) - + + COUNT ( * ) AS col2
----
0

query I rowsort
SELECT - - 90 + + 4 + + 41
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-5475
SELECT ALL 91 + COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-5475
SELECT ALL 91 + COUNT ( * )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5476
SELECT 34 + - + 27 + - MAX( - - 6 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5476
SELECT 34 + - + 27 + - MAX ( - - 6 ) AS col2
----
1

query I rowsort
SELECT DISTINCT - 73 col1
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-5478
SELECT DISTINCT + COUNT( * ) * 23
----
23

skipif mysql # not compatible
query I rowsort label-5478
SELECT DISTINCT + COUNT ( * ) * 23
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5479
SELECT COUNT( * ) * - SUM( ALL + 10 ) col2
----
-10

skipif mysql # not compatible
query I rowsort label-5479
SELECT COUNT ( * ) * - SUM ( ALL + 10 ) col2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-5480
SELECT ALL + COUNT( * ) * + 1 * 78
----
78

skipif mysql # not compatible
query I rowsort label-5480
SELECT ALL + COUNT ( * ) * + 1 * 78
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5481
SELECT DISTINCT - CAST( - 51 AS SIGNED ) col0
----
51

skipif mysql # not compatible
query I rowsort label-5481
SELECT DISTINCT - CAST ( - 51 AS INTEGER ) col0
----
51

query I rowsort
SELECT - COALESCE ( - 16, + - 64 )
----
16

query I rowsort
SELECT DISTINCT ( + - 8 ) AS col0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-5484
SELECT ALL + SUM( - - 44 ) * ( 64 )
----
2816

skipif mysql # not compatible
query I rowsort label-5484
SELECT ALL + SUM ( - - 44 ) * ( 64 )
----
2816

onlyif mysql # aggregate syntax: 
query I rowsort label-5485
SELECT ALL + COUNT( * ) - + - 95
----
96

skipif mysql # not compatible
query I rowsort label-5485
SELECT ALL + COUNT ( * ) - + - 95
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-5486
SELECT + 13, COUNT( * ) AS col2
----
13
1

skipif mysql # not compatible
query II rowsort label-5486
SELECT + 13, COUNT ( * ) AS col2
----
13
1

query I rowsort
SELECT ALL + 90 * - - 50 AS col1
----
4500

query I rowsort
SELECT + - ( + 32 )
----
-32

query I rowsort
SELECT + - 24 AS col1
----
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-5490
SELECT - COUNT( * ) AS col1, - COUNT( * )
----
-1
-1

skipif mysql # not compatible
query II rowsort label-5490
SELECT - COUNT ( * ) AS col1, - COUNT ( * )
----
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5491
SELECT - CAST( - 96 AS SIGNED )
----
96

skipif mysql # not compatible
query I rowsort label-5491
SELECT - CAST ( - 96 AS INTEGER )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5492
SELECT MIN( DISTINCT + 13 ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-5492
SELECT MIN ( DISTINCT + 13 ) AS col2
----
13

query I rowsort
SELECT - ( 22 ) AS col2
----
-22

query I rowsort
SELECT ALL + - 8 + - - 16 * 14 AS col0
----
216

onlyif mysql # aggregate syntax: 
query I rowsort label-5495
SELECT ALL + ( - COUNT( * ) ) + + + 69
----
68

skipif mysql # not compatible
query I rowsort label-5495
SELECT ALL + ( - COUNT ( * ) ) + + + 69
----
68

query I rowsort
SELECT 93 * + 95
----
8835

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5497
SELECT 33 + - + 15 - + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5497
SELECT 33 + - + 15 - + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL - - ( - - 10 )
----
10

query I rowsort
SELECT ALL - ( + ( - 9 ) )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5500
SELECT ALL SUM( - 78 )
----
-78

skipif mysql # not compatible
query I rowsort label-5500
SELECT ALL SUM ( - 78 )
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5501
SELECT ALL + CAST( NULL AS SIGNED ) + - - 74 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5501
SELECT ALL + CAST ( NULL AS INTEGER ) + - - 74 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5502
SELECT ALL - COUNT( * ) * ( 70 ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-5502
SELECT ALL - COUNT ( * ) * ( 70 ) AS col2
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-5503
SELECT ALL + COUNT( - 37 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-5503
SELECT ALL + COUNT ( - 37 ) col0
----
1

query I rowsort
SELECT COALESCE ( + - 73, + - 92 )
----
-73

query I rowsort
SELECT - 55 + - 63 AS col1
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-5506
SELECT + 34 * - COUNT( * ) col1
----
-34

skipif mysql # not compatible
query I rowsort label-5506
SELECT + 34 * - COUNT ( * ) col1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-5507
SELECT - 8 + COUNT( * ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-5507
SELECT - 8 + COUNT ( * ) AS col2
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-5508
SELECT - SUM( + 63 ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-5508
SELECT - SUM ( + 63 ) AS col0
----
-63

query I rowsort
SELECT ALL - 31 - - + 2
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-5510
SELECT + COUNT( * ) * - + 19 col0
----
-19

skipif mysql # not compatible
query I rowsort label-5510
SELECT + COUNT ( * ) * - + 19 col0
----
-19

query I rowsort
SELECT ALL + ( + 26 )
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5512
SELECT CAST( - COUNT( DISTINCT 28 ) AS SIGNED ), 58 AS col1
----
-1
58

skipif mysql # not compatible
query II rowsort label-5512
SELECT CAST ( - COUNT ( DISTINCT 28 ) AS INTEGER ), 58 AS col1
----
-1
58

onlyif mysql # aggregate syntax: 
query II rowsort label-5513
SELECT COUNT( * ) * - MAX( DISTINCT - 24 ), + COUNT( * ) AS col1
----
24
1

skipif mysql # not compatible
query II rowsort label-5513
SELECT COUNT ( * ) * - MAX ( DISTINCT - 24 ), + COUNT ( * ) AS col1
----
24
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5514
SELECT DISTINCT 31 * CASE WHEN NULL < ( CAST( NULL AS SIGNED ) ) THEN 31 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5514
SELECT DISTINCT 31 * CASE WHEN NULL < ( CAST ( NULL AS INTEGER ) ) THEN 31 END col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5515
SELECT 83 - + ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5515
SELECT 83 - + ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5516
SELECT DISTINCT - SUM( 29 ) AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-5516
SELECT DISTINCT - SUM ( 29 ) AS col0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-5517
SELECT DISTINCT - COUNT( * ) * COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5517
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) AS col2
----
-1

query I rowsort
SELECT 37 + - 94
----
-57

query I rowsort
SELECT - 66 + 88
----
22

query I rowsort
SELECT - 79 + 73 AS col1
----
-6

query I rowsort
SELECT + 32 * 7
----
224

query I rowsort
SELECT - + 84 AS col2
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-5523
SELECT ALL + NULLIF ( + + COUNT( * ), COUNT( * ) / - COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5523
SELECT ALL + NULLIF ( + + COUNT ( * ), COUNT ( * ) / - COUNT ( * ) ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5524
SELECT - ( + 38 ) DIV + 36 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5524
SELECT - ( + 38 ) / + 36 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5525
SELECT DISTINCT + SUM( + + 35 ) * + 95 AS col1
----
3325

skipif mysql # not compatible
query I rowsort label-5525
SELECT DISTINCT + SUM ( + + 35 ) * + 95 AS col1
----
3325

query I rowsort
SELECT DISTINCT - 26 + - 16 AS col2
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-5527
SELECT ALL COALESCE ( + COUNT( * ), - 33, - 79 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5527
SELECT ALL COALESCE ( + COUNT ( * ), - 33, - 79 ) AS col0
----
1

query I rowsort
SELECT - ( - 34 ) * - 41 AS col0
----
-1394

query I rowsort
SELECT - 61 * ( + + 89 ) AS col1
----
-5429

query II rowsort
SELECT 57, - 64 AS col0
----
57
-64

query I rowsort
SELECT ALL + 47 col0
----
47

query I rowsort
SELECT ALL - + 35 * 79 + - 80
----
-2845

onlyif mysql # aggregate syntax: 
query I rowsort label-5533
SELECT - COUNT( + 26 )
----
-1

skipif mysql # not compatible
query I rowsort label-5533
SELECT - COUNT ( + 26 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5534
SELECT 53 * COUNT( * ) * + 64 AS col1
----
3392

skipif mysql # not compatible
query I rowsort label-5534
SELECT 53 * COUNT ( * ) * + 64 AS col1
----
3392

onlyif mysql # aggregate syntax: 
query I rowsort label-5535
SELECT ALL - COUNT( * ) * - 90 * - - 94 AS col0
----
8460

skipif mysql # not compatible
query I rowsort label-5535
SELECT ALL - COUNT ( * ) * - 90 * - - 94 AS col0
----
8460

onlyif mysql # aggregate syntax: 
query I rowsort label-5536
SELECT ALL 67 * + COUNT( * ) col2
----
67

skipif mysql # not compatible
query I rowsort label-5536
SELECT ALL 67 * + COUNT ( * ) col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5537
SELECT DISTINCT COUNT( * ) * 34 * - + 16 AS col0
----
-544

skipif mysql # not compatible
query I rowsort label-5537
SELECT DISTINCT COUNT ( * ) * 34 * - + 16 AS col0
----
-544

query I rowsort
SELECT 53 col2
----
53

query I rowsort
SELECT - - 74 col2
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-5540
SELECT ALL + COUNT( DISTINCT + + 67 ) AS col1, 39
----
1
39

skipif mysql # not compatible
query II rowsort label-5540
SELECT ALL + COUNT ( DISTINCT + + 67 ) AS col1, 39
----
1
39

onlyif mysql # aggregate syntax: 
query II rowsort label-5541
SELECT DISTINCT 83, + SUM( + - 71 ) AS col1
----
83
-71

skipif mysql # not compatible
query II rowsort label-5541
SELECT DISTINCT 83, + SUM ( + - 71 ) AS col1
----
83
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-5542
SELECT DISTINCT ( - ( - COUNT( * ) ) ) * + + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5542
SELECT DISTINCT ( - ( - COUNT ( * ) ) ) * + + COUNT ( * ) AS col1
----
1

query I rowsort
SELECT 53 - + 83 col1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-5544
SELECT ALL NULLIF ( - MIN( - + 17 ), + - 38 )
----
17

skipif mysql # not compatible
query I rowsort label-5544
SELECT ALL NULLIF ( - MIN ( - + 17 ), + - 38 )
----
17

query I rowsort
SELECT DISTINCT + - 22 AS col1
----
-22

query II rowsort
SELECT + + 98 AS col2, 6
----
98
6

query I rowsort
SELECT DISTINCT + + 2
----
2

query I rowsort
SELECT DISTINCT - 2 - - 37 AS col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5549
SELECT - + 23 * - COUNT( * ) - + COUNT( * ) col0
----
22

skipif mysql # not compatible
query I rowsort label-5549
SELECT - + 23 * - COUNT ( * ) - + COUNT ( * ) col0
----
22

query I rowsort
SELECT + - 26 col0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-5551
SELECT ALL ( + + COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5551
SELECT ALL ( + + COUNT ( * ) ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5552
SELECT ALL - ( - ( - CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5552
SELECT ALL - ( - ( - CAST ( NULL AS INTEGER ) ) )
----
NULL

query I rowsort
SELECT DISTINCT - 60 + + 69
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5554
SELECT DISTINCT + COUNT( * ) * + 41
----
41

skipif mysql # not compatible
query I rowsort label-5554
SELECT DISTINCT + COUNT ( * ) * + 41
----
41

query I rowsort
SELECT ALL ( 28 )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5556
SELECT MAX( DISTINCT 84 )
----
84

skipif mysql # not compatible
query I rowsort label-5556
SELECT MAX ( DISTINCT 84 )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5557
SELECT ALL - COUNT( * ) + 0
----
-1

skipif mysql # not compatible
query I rowsort label-5557
SELECT ALL - COUNT ( * ) + 0
----
-1

query I rowsort
SELECT 6 * - - 57 AS col0
----
342

onlyif mysql # aggregate syntax: 
query I rowsort label-5559
SELECT ALL - COUNT( * ) * 48 AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-5559
SELECT ALL - COUNT ( * ) * 48 AS col0
----
-48

query I rowsort
SELECT + 72 - + + 70
----
2

query I rowsort
SELECT - 52 + - 68
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-5562
SELECT - SUM( DISTINCT + 41 )
----
-41

skipif mysql # not compatible
query I rowsort label-5562
SELECT - SUM ( DISTINCT + 41 )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-5563
SELECT COUNT( * ) * + + 93
----
93

skipif mysql # not compatible
query I rowsort label-5563
SELECT COUNT ( * ) * + + 93
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5564
SELECT NULLIF ( COUNT( * ), + 91 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5564
SELECT NULLIF ( COUNT ( * ), + 91 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5565
SELECT DISTINCT + SUM( DISTINCT - + 37 ) AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-5565
SELECT DISTINCT + SUM ( DISTINCT - + 37 ) AS col0
----
-37

query I rowsort
SELECT - ( 30 )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-5567
SELECT ALL ( + 90 ) * + SUM( DISTINCT 30 ) AS col0
----
2700

skipif mysql # not compatible
query I rowsort label-5567
SELECT ALL ( + 90 ) * + SUM ( DISTINCT 30 ) AS col0
----
2700

onlyif mysql # aggregate syntax: 
query I rowsort label-5568
SELECT ALL SUM( DISTINCT - 48 ) * + 12
----
-576

skipif mysql # not compatible
query I rowsort label-5568
SELECT ALL SUM ( DISTINCT - 48 ) * + 12
----
-576

query I rowsort
SELECT DISTINCT + + 83 AS col2
----
83

query I rowsort
SELECT DISTINCT 81 * - 52
----
-4212

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5571
SELECT CAST( NULL AS SIGNED ) + - MIN( ALL + 88 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5571
SELECT CAST ( NULL AS INTEGER ) + - MIN ( ALL + 88 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5572
SELECT ALL 8 + - COUNT( * ) + + + COUNT( * ) AS col0, 77 AS col2
----
8
77

skipif mysql # not compatible
query II rowsort label-5572
SELECT ALL 8 + - COUNT ( * ) + + + COUNT ( * ) AS col0, 77 AS col2
----
8
77

query I rowsort
SELECT + + 3 AS col0
----
3

query I rowsort
SELECT - ( + 46 )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-5575
SELECT ALL - COUNT( ALL ( + 39 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5575
SELECT ALL - COUNT ( ALL ( + 39 ) ) AS col1
----
-1

query I rowsort
SELECT DISTINCT - 11 + 49
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5577
SELECT 25 + + COUNT( * ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-5577
SELECT 25 + + COUNT ( * ) AS col1
----
26

query I rowsort
SELECT ALL + 94 + - 79
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-5579
SELECT - 65 AS col0, + COUNT( * ) AS col1
----
-65
1

skipif mysql # not compatible
query II rowsort label-5579
SELECT - 65 AS col0, + COUNT ( * ) AS col1
----
-65
1

query I rowsort
SELECT + 87 + + - 81
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5581
SELECT ALL COUNT( * ) * + 27
----
27

skipif mysql # not compatible
query I rowsort label-5581
SELECT ALL COUNT ( * ) * + 27
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5582
SELECT DISTINCT COUNT( DISTINCT + 32 )
----
1

skipif mysql # not compatible
query I rowsort label-5582
SELECT DISTINCT COUNT ( DISTINCT + 32 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5583
SELECT - COUNT( * ) DIV COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5583
SELECT - COUNT ( * ) / COUNT ( * ) AS col2
----
-1

query II rowsort
SELECT ALL + 86 AS col1, 8 + + ( - - 71 ) AS col2
----
86
79

query I rowsort
SELECT ALL ( - 59 ) * + - 17 - + 6 AS col0
----
997

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5586
SELECT - CAST( - COUNT( + - ( + 31 ) ) AS SIGNED ) col1
----
1

skipif mysql # not compatible
query I rowsort label-5586
SELECT - CAST ( - COUNT ( + - ( + 31 ) ) AS INTEGER ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5587
SELECT - COUNT( * ) + 43 + + 78
----
120

skipif mysql # not compatible
query I rowsort label-5587
SELECT - COUNT ( * ) + 43 + + 78
----
120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5588
SELECT - CAST( - + AVG ( ALL - 59 ) AS SIGNED ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-5588
SELECT - CAST ( - + AVG ( ALL - 59 ) AS INTEGER ) AS col2
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-5589
SELECT DISTINCT + + 73 DIV 74 + - 18 AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-5589
SELECT DISTINCT + + 73 / 74 + - 18 AS col2
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5590
SELECT ALL - MAX( 44 ) DIV + 89
----
0

skipif mysql # not compatible
query I rowsort label-5590
SELECT ALL - MAX ( 44 ) / + 89
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5591
SELECT ALL - + 98 + + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5591
SELECT ALL - + 98 + + CAST ( NULL AS INTEGER ) col1
----
NULL

query II rowsort
SELECT 38 AS col0, - 94 AS col0
----
38
-94

query I rowsort
SELECT ALL - 77 * ( - 78 ) AS col0
----
6006

onlyif mysql # aggregate syntax: 
query II rowsort label-5594
SELECT 38 AS col1, - COUNT( * ) * - 80
----
38
80

skipif mysql # not compatible
query II rowsort label-5594
SELECT 38 AS col1, - COUNT ( * ) * - 80
----
38
80

onlyif mysql # DIV for integer division: 
query I rowsort label-5595
SELECT 84 DIV + - 32 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-5595
SELECT 84 / + - 32 AS col0
----
-2

query I rowsort
SELECT ALL 56 + - 37 AS col2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5597
SELECT DISTINCT - COUNT( * ) + + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-5597
SELECT DISTINCT - COUNT ( * ) + + COUNT ( * )
----
0

query I rowsort
SELECT DISTINCT - ( + - 98 ) AS col2
----
98

query I rowsort
SELECT ALL + COALESCE ( + - 33, 11, - - 92 )
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-5600
SELECT - ( + COUNT( * ) ) + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5600
SELECT - ( + COUNT ( * ) ) + COUNT ( * ) AS col2
----
0

query I rowsort
SELECT DISTINCT - 27 * - 66 col1
----
1782

query I rowsort
SELECT ALL - 12 col1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-5603
SELECT + + COUNT( * ) + - 66 AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-5603
SELECT + + COUNT ( * ) + - 66 AS col1
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5604
SELECT CAST( 6 AS SIGNED )
----
6

skipif mysql # not compatible
query I rowsort label-5604
SELECT CAST ( 6 AS INTEGER )
----
6

query I rowsort
SELECT + 67 + - 97
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5606
SELECT - + CAST( - + COUNT( * ) AS SIGNED ), ( - - COUNT( * ) ) AS col1
----
1
1

skipif mysql # not compatible
query II rowsort label-5606
SELECT - + CAST ( - + COUNT ( * ) AS INTEGER ), ( - - COUNT ( * ) ) AS col1
----
1
1

query I rowsort
SELECT - ( + - 50 ) AS col1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5608
SELECT - ( COUNT( * ) ) * - 68
----
68

skipif mysql # not compatible
query I rowsort label-5608
SELECT - ( COUNT ( * ) ) * - 68
----
68

query I rowsort
SELECT ALL 91 + - - 29
----
120

onlyif mysql # DIV for integer division: 
query I rowsort label-5610
SELECT 49 DIV + - 9
----
-5

skipif mysql # not compatible
query I rowsort label-5610
SELECT 49 / + - 9
----
-5

query I rowsort
SELECT 59 * 19 AS col1
----
1121

query II rowsort
SELECT + 11, - 7 AS col0
----
11
-7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5613
SELECT + 68 AS col1, + CAST( NULL AS SIGNED )
----
68
NULL

skipif mysql # not compatible
query II rowsort label-5613
SELECT + 68 AS col1, + CAST ( NULL AS INTEGER )
----
68
NULL

query II rowsort
SELECT + 19 col0, - ( - + 17 ) AS col0
----
19
17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5615
SELECT DISTINCT - 59, CAST( NULL AS SIGNED ) AS col2
----
-59
NULL

skipif mysql # not compatible
query II rowsort label-5615
SELECT DISTINCT - 59, CAST ( NULL AS INTEGER ) AS col2
----
-59
NULL

query I rowsort
SELECT - ( + 79 ) AS col2
----
-79

query I rowsort
SELECT 75 * + + 51 AS col2
----
3825

onlyif mysql # aggregate syntax: 
query I rowsort label-5618
SELECT DISTINCT COUNT( * ) * + 6 + + 79 AS col0
----
85

skipif mysql # not compatible
query I rowsort label-5618
SELECT DISTINCT COUNT ( * ) * + 6 + + 79 AS col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5619
SELECT - + 12 + - 25 + + + ( - - COUNT( * ) )
----
-36

skipif mysql # not compatible
query I rowsort label-5619
SELECT - + 12 + - 25 + + + ( - - COUNT ( * ) )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-5620
SELECT ALL COUNT( * ) + - 55
----
-54

skipif mysql # not compatible
query I rowsort label-5620
SELECT ALL COUNT ( * ) + - 55
----
-54

query I rowsort
SELECT + 97 - + 54
----
43

query I rowsort
SELECT + 41 * - 72
----
-2952

onlyif mysql # aggregate syntax: 
query I rowsort label-5623
SELECT ALL + - MIN( DISTINCT - 10 )
----
10

skipif mysql # not compatible
query I rowsort label-5623
SELECT ALL + - MIN ( DISTINCT - 10 )
----
10

query I rowsort
SELECT 69 * 49
----
3381

query I rowsort
SELECT ALL 20 - 84 AS col2
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5626
SELECT ALL COUNT( * ) DIV CAST( - 82 AS SIGNED ) DIV + 65 - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-5626
SELECT ALL COUNT ( * ) / CAST ( - 82 AS INTEGER ) / + 65 - COUNT ( * )
----
-1

query I rowsort
SELECT ALL - - 19
----
19

query I rowsort
SELECT - 93 * + - 35
----
3255

onlyif mysql # aggregate syntax: 
query I rowsort label-5629
SELECT + + ( - COUNT( 47 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5629
SELECT + + ( - COUNT ( 47 ) )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5630
SELECT ALL 65 DIV + 88 + + 44 * 97
----
4268

skipif mysql # not compatible
query I rowsort label-5630
SELECT ALL 65 / + 88 + + 44 * 97
----
4268

query II rowsort
SELECT ALL - 67, + 37 AS col0
----
-67
37

query I rowsort
SELECT 79 * - + 88
----
-6952

onlyif mysql # aggregate syntax: 
query I rowsort label-5633
SELECT NULLIF ( - 76, + + 40 + + + COUNT( * ) ) * 63
----
-4788

skipif mysql # not compatible
query I rowsort label-5633
SELECT NULLIF ( - 76, + + 40 + + + COUNT ( * ) ) * 63
----
-4788

query I rowsort
SELECT + + ( - 5 )
----
-5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5635
SELECT + - AVG ( ALL CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5635
SELECT + - AVG ( ALL CAST ( NULL AS REAL ) ) AS col2
----
NULL

query I rowsort
SELECT + + 13 AS col1
----
13

query I rowsort
SELECT + 39 + - - 44 + + 29 col2
----
112

onlyif mysql # aggregate syntax: 
query II rowsort label-5638
SELECT ALL COUNT( * ) col1, - 90 AS col1
----
1
-90

skipif mysql # not compatible
query II rowsort label-5638
SELECT ALL COUNT ( * ) col1, - 90 AS col1
----
1
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-5639
SELECT ALL ( + - NULLIF ( COUNT( 13 ), + COUNT( * ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5639
SELECT ALL ( + - NULLIF ( COUNT ( 13 ), + COUNT ( * ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5640
SELECT - - SUM( - - 20 ) col2
----
20

skipif mysql # not compatible
query I rowsort label-5640
SELECT - - SUM ( - - 20 ) col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5641
SELECT DISTINCT + ( + - COUNT( DISTINCT + 95 ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-5641
SELECT DISTINCT + ( + - COUNT ( DISTINCT + 95 ) ) col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5642
SELECT + - COUNT( * ) * - - 11 AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-5642
SELECT + - COUNT ( * ) * - - 11 AS col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-5643
SELECT ALL 97 * + - COUNT( * )
----
-97

skipif mysql # not compatible
query I rowsort label-5643
SELECT ALL 97 * + - COUNT ( * )
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5644
SELECT - CAST( - 16 AS SIGNED ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-5644
SELECT - CAST ( - 16 AS INTEGER ) AS col2
----
16

query I rowsort
SELECT ALL - ( 80 ) * 52
----
-4160

query I rowsort
SELECT DISTINCT + + 36
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5647
SELECT - 24 * - + CAST( NULL AS SIGNED ) * - - 46 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5647
SELECT - 24 * - + CAST ( NULL AS INTEGER ) * - - 46 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5648
SELECT + COUNT( + - 32 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-5648
SELECT + COUNT ( + - 32 ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5649
SELECT + - ( + ( - - COUNT( * ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5649
SELECT + - ( + ( - - COUNT ( * ) ) )
----
-1

query I rowsort
SELECT 42 * - 88 AS col0
----
-3696

onlyif mysql # DIV for integer division: 
query I rowsort label-5651
SELECT DISTINCT 3 DIV - 11 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5651
SELECT DISTINCT 3 / - 11 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5652
SELECT 10 DIV - 41
----
0

skipif mysql # not compatible
query I rowsort label-5652
SELECT 10 / - 41
----
0

query I rowsort
SELECT 88 * + 79
----
6952

onlyif mysql # aggregate syntax: 
query I rowsort label-5654
SELECT ALL SUM( DISTINCT + - 8 )
----
-8

skipif mysql # not compatible
query I rowsort label-5654
SELECT ALL SUM ( DISTINCT + - 8 )
----
-8

query I rowsort
SELECT - ( - + 61 ) AS col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5656
SELECT + COUNT( * ) + - ( - 47 )
----
48

skipif mysql # not compatible
query I rowsort label-5656
SELECT + COUNT ( * ) + - ( - 47 )
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5657
SELECT CAST( + 59 AS SIGNED )
----
59

skipif mysql # not compatible
query I rowsort label-5657
SELECT CAST ( + 59 AS INTEGER )
----
59

query I rowsort
SELECT + 43 * + 14 AS col0
----
602

onlyif mysql # DIV for integer division: 
query I rowsort label-5659
SELECT - + ( + 22 ) DIV + 40 * - - 9
----
0

skipif mysql # not compatible
query I rowsort label-5659
SELECT - + ( + 22 ) / + 40 * - - 9
----
0

query I rowsort
SELECT DISTINCT - 81 col2
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5661
SELECT DISTINCT SUM( ALL - 44 )
----
-44

skipif mysql # not compatible
query I rowsort label-5661
SELECT DISTINCT SUM ( ALL - 44 )
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5662
SELECT ALL + 92 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5662
SELECT ALL + 92 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT - 36, 70 AS col2
----
-36
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5664
SELECT COUNT( * ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5664
SELECT COUNT ( * ) + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - - 80 col2
----
80

query I rowsort
SELECT + ( 94 ) AS col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5667
SELECT ( + COUNT( * ) ) - - COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-5667
SELECT ( + COUNT ( * ) ) - - COUNT ( * ) AS col0
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-5668
SELECT 3 + ( - 89 ), COUNT( * ) col1
----
-86
1

skipif mysql # not compatible
query II rowsort label-5668
SELECT 3 + ( - 89 ), COUNT ( * ) col1
----
-86
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5669
SELECT 64 * 42 DIV - + 76 AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-5669
SELECT 64 * 42 / - + 76 AS col2
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5670
SELECT - 54 / - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5670
SELECT - 54 / - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - ( + 37 ) AS col0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-5672
SELECT ALL - 9 * - COUNT( * ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-5672
SELECT ALL - 9 * - COUNT ( * ) AS col1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5673
SELECT CAST( NULL AS SIGNED ), + 8 col1
----
NULL
8

skipif mysql # not compatible
query II rowsort label-5673
SELECT CAST ( NULL AS INTEGER ), + 8 col1
----
NULL
8

onlyif mysql # DIV for integer division: 
query I rowsort label-5674
SELECT ALL + 76 * 59 DIV + ( - 32 ) + 13
----
-127

skipif mysql # not compatible
query I rowsort label-5674
SELECT ALL + 76 * 59 / + ( - 32 ) + 13
----
-127

query I rowsort
SELECT + + 15 AS col1
----
15

query I rowsort
SELECT NULLIF ( + - 30, - 32 )
----
-30

query I rowsort
SELECT ALL - 94 col1
----
-94

query I rowsort
SELECT + - 1 AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5679
SELECT ALL - + CAST( - + 20 AS SIGNED )
----
20

skipif mysql # not compatible
query I rowsort label-5679
SELECT ALL - + CAST ( - + 20 AS INTEGER )
----
20

query I rowsort
SELECT DISTINCT - + ( + - 38 ) * + + 63
----
2394

query I rowsort
SELECT ALL + 25 + - 77
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-5682
SELECT ALL - SUM( + 11 )
----
-11

skipif mysql # not compatible
query I rowsort label-5682
SELECT ALL - SUM ( + 11 )
----
-11

query I rowsort
SELECT ALL - ( 31 )
----
-31

query I rowsort
SELECT DISTINCT + 3 * 70 AS col1
----
210

onlyif mysql # aggregate syntax: 
query I rowsort label-5685
SELECT DISTINCT 67 + - COUNT( * ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-5685
SELECT DISTINCT 67 + - COUNT ( * ) AS col0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5686
SELECT DISTINCT 97 / + + ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5686
SELECT DISTINCT 97 / + + ( - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT - - 37 + - - 11
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-5688
SELECT ALL + - MAX( 35 ) AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-5688
SELECT ALL + - MAX ( 35 ) AS col1
----
-35

query I rowsort
SELECT DISTINCT + - 42 AS col1
----
-42

query I rowsort
SELECT + ( + - 93 )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-5691
SELECT ALL MAX( ALL - + 56 )
----
-56

skipif mysql # not compatible
query I rowsort label-5691
SELECT ALL MAX ( ALL - + 56 )
----
-56

query I rowsort
SELECT ALL ( + - ( + 7 ) ) AS col1
----
-7

query I rowsort
SELECT DISTINCT - 53 * + 5 col1
----
-265

query I rowsort
SELECT ALL - 51 col0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5695
SELECT - + ( - 65 ) - - + 71 * + - COUNT( * )
----
-6

skipif mysql # not compatible
query I rowsort label-5695
SELECT - + ( - 65 ) - - + 71 * + - COUNT ( * )
----
-6

query II rowsort
SELECT 3 AS col0, + ( + 52 )
----
3
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5697
SELECT ALL 72 - - MIN( DISTINCT 10 )
----
82

skipif mysql # not compatible
query I rowsort label-5697
SELECT ALL 72 - - MIN ( DISTINCT 10 )
----
82

query II rowsort
SELECT ALL 45 col1, + 50 - - 40
----
45
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5699
SELECT ( - COUNT( * ) ) + - 56 AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-5699
SELECT ( - COUNT ( * ) ) + - 56 AS col1
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-5700
SELECT DISTINCT - + COUNT( * ) + - + 88 AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-5700
SELECT DISTINCT - + COUNT ( * ) + - + 88 AS col1
----
-89

query I rowsort
SELECT 70 + + - 55
----
15

query I rowsort
SELECT ( + + 99 ) * 23
----
2277

query I rowsort
SELECT 98 - - 71
----
169

onlyif mysql # aggregate syntax: 
query I rowsort label-5704
SELECT COUNT( * ) * + 55
----
55

skipif mysql # not compatible
query I rowsort label-5704
SELECT COUNT ( * ) * + 55
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5705
SELECT ALL - 78 + - CAST( - - COUNT( * ) AS SIGNED ) - - 70 AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-5705
SELECT ALL - 78 + - CAST ( - - COUNT ( * ) AS INTEGER ) - - 70 AS col1
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-5706
SELECT + 19 + - - COUNT( * ) AS col1, - COUNT( DISTINCT + 95 ) AS col1
----
20
-1

skipif mysql # not compatible
query II rowsort label-5706
SELECT + 19 + - - COUNT ( * ) AS col1, - COUNT ( DISTINCT + 95 ) AS col1
----
20
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5707
SELECT ALL + COALESCE ( + COUNT( * ), + 88 )
----
1

skipif mysql # not compatible
query I rowsort label-5707
SELECT ALL + COALESCE ( + COUNT ( * ), + 88 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5708
SELECT - 7 + - 96 + - + COUNT( * )
----
-104

skipif mysql # not compatible
query I rowsort label-5708
SELECT - 7 + - 96 + - + COUNT ( * )
----
-104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5709
SELECT ALL CAST( + MAX( + 55 ) AS SIGNED )
----
55

skipif mysql # not compatible
query I rowsort label-5709
SELECT ALL CAST ( + MAX ( + 55 ) AS INTEGER )
----
55

query I rowsort
SELECT + ( + - 47 )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-5711
SELECT 55 * - 72 + + COUNT( * ) col0
----
-3959

skipif mysql # not compatible
query I rowsort label-5711
SELECT 55 * - 72 + + COUNT ( * ) col0
----
-3959

query I rowsort
SELECT DISTINCT + - 77 AS col2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5713
SELECT ALL - + SUM( ALL - NULLIF ( - + 96, - + 81 ) ) * - ( + - COUNT( * ) ) + + 39
----
-57

skipif mysql # not compatible
query I rowsort label-5713
SELECT ALL - + SUM ( ALL - NULLIF ( - + 96, - + 81 ) ) * - ( + - COUNT ( * ) ) + + 39
----
-57

query I rowsort
SELECT ALL 79 * + + 52
----
4108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5715
SELECT DISTINCT CAST( NULL AS SIGNED ) + - - COUNT( * ) * 44 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5715
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - - COUNT ( * ) * 44 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5716
SELECT COUNT( * ) * - 85
----
-85

skipif mysql # not compatible
query I rowsort label-5716
SELECT COUNT ( * ) * - 85
----
-85

query I rowsort
SELECT - 43 + + 14 AS col2
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-5718
SELECT - COUNT( * ) AS col2, 52 AS col0
----
-1
52

skipif mysql # not compatible
query II rowsort label-5718
SELECT - COUNT ( * ) AS col2, 52 AS col0
----
-1
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5719
SELECT COUNT( * ) + + 29 AS col0
----
30

skipif mysql # not compatible
query I rowsort label-5719
SELECT COUNT ( * ) + + 29 AS col0
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-5720
SELECT ALL + 56 DIV + - 94 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5720
SELECT ALL + 56 / + - 94 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5721
SELECT DISTINCT - COUNT( * ) AS col0, 62
----
-1
62

skipif mysql # not compatible
query II rowsort label-5721
SELECT DISTINCT - COUNT ( * ) AS col0, 62
----
-1
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5722
SELECT ALL + SUM( ALL - - ( - 79 ) ) + + 20
----
-59

skipif mysql # not compatible
query I rowsort label-5722
SELECT ALL + SUM ( ALL - - ( - 79 ) ) + + 20
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-5723
SELECT - 7 DIV + + 5
----
-1

skipif mysql # not compatible
query I rowsort label-5723
SELECT - 7 / + + 5
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5724
SELECT + CAST( NULL AS SIGNED ) * 65 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5724
SELECT + CAST ( NULL AS INTEGER ) * 65 col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5725
SELECT DISTINCT - ( + 33 ) DIV - + ( - 89 ) + + 66 - - 81
----
147

skipif mysql # not compatible
query I rowsort label-5725
SELECT DISTINCT - ( + 33 ) / - + ( - 89 ) + + 66 - - 81
----
147

query I rowsort
SELECT ALL + - 28 col1
----
-28

query I rowsort
SELECT DISTINCT + ( + 25 )
----
25

query I rowsort
SELECT ALL 86 col1
----
86

query I rowsort
SELECT - 77 - - 59 col0
----
-18

query I rowsort
SELECT DISTINCT - 79 AS col2
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-5731
SELECT 91 - - COUNT( * ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-5731
SELECT 91 - - COUNT ( * ) AS col0
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-5732
SELECT 26 DIV + + 51 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5732
SELECT 26 / + + 51 AS col1
----
0

query I rowsort
SELECT DISTINCT - 23 + 80
----
57

query I rowsort
SELECT DISTINCT - 55 col0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-5735
SELECT COUNT( * ) * 21 AS col1
----
21

skipif mysql # not compatible
query I rowsort label-5735
SELECT COUNT ( * ) * 21 AS col1
----
21

query I rowsort
SELECT 30 * - + 85 AS col2
----
-2550

onlyif mysql # aggregate syntax: 
query I rowsort label-5737
SELECT DISTINCT SUM( - 33 )
----
-33

skipif mysql # not compatible
query I rowsort label-5737
SELECT DISTINCT SUM ( - 33 )
----
-33

query I rowsort
SELECT - 94 + + 76 AS col2
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-5739
SELECT + ( 71 ) DIV + 85
----
0

skipif mysql # not compatible
query I rowsort label-5739
SELECT + ( 71 ) / + 85
----
0

query I rowsort
SELECT ( 27 ) AS col2
----
27

query I rowsort
SELECT + 26 * - 66 col0
----
-1716

onlyif mysql # aggregate syntax: 
query I rowsort label-5742
SELECT DISTINCT COUNT( * ) * MAX( DISTINCT 14 * 88 )
----
1232

skipif mysql # not compatible
query I rowsort label-5742
SELECT DISTINCT COUNT ( * ) * MAX ( DISTINCT 14 * 88 )
----
1232

onlyif mysql # aggregate syntax: 
query I rowsort label-5743
SELECT ALL + COUNT( DISTINCT - 68 )
----
1

skipif mysql # not compatible
query I rowsort label-5743
SELECT ALL + COUNT ( DISTINCT - 68 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5744
SELECT ALL - CAST( NULL AS SIGNED ) + 84 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5744
SELECT ALL - CAST ( NULL AS INTEGER ) + 84 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 37 + 41
----
78

query I rowsort
SELECT + 85 * - + 42
----
-3570

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5747
SELECT COUNT( * ) * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5747
SELECT COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5748
SELECT 25 + - COUNT( + ( - ( - 49 ) ) ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-5748
SELECT 25 + - COUNT ( + ( - ( - 49 ) ) ) AS col0
----
24

query I rowsort
SELECT ALL - 30 col0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-5750
SELECT ALL - COUNT( * ) + - 45
----
-46

skipif mysql # not compatible
query I rowsort label-5750
SELECT ALL - COUNT ( * ) + - 45
----
-46

query I rowsort
SELECT + 35 col1
----
35

query I rowsort
SELECT DISTINCT + 62 col2
----
62

query I rowsort
SELECT - 13 * + 57 AS col0
----
-741

onlyif mysql # aggregate syntax: 
query I rowsort label-5754
SELECT ALL + COUNT( * ) + - 15 AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-5754
SELECT ALL + COUNT ( * ) + - 15 AS col0
----
-14

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5755
SELECT CAST( + - CAST( NULL AS DECIMAL ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5755
SELECT CAST ( + - CAST ( NULL AS REAL ) AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5756
SELECT CAST( + 96 AS SIGNED ) col2
----
96

skipif mysql # not compatible
query I rowsort label-5756
SELECT CAST ( + 96 AS INTEGER ) col2
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5757
SELECT DISTINCT - 42 DIV - 41 - - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-5757
SELECT DISTINCT - 42 / - 41 - - COUNT ( * )
----
2

query I rowsort
SELECT + - 74 AS col1
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-5759
SELECT COUNT( * ) - - COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-5759
SELECT COUNT ( * ) - - COUNT ( * ) AS col0
----
2

query I rowsort
SELECT 29 * - + 48
----
-1392

query I rowsort
SELECT 50 * - 6 AS col0
----
-300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5762
SELECT DISTINCT - 30 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5762
SELECT DISTINCT - 30 - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 80 + - + 61
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5764
SELECT DISTINCT - ( CAST( 36 AS SIGNED ) ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-5764
SELECT DISTINCT - ( CAST ( 36 AS INTEGER ) ) AS col1
----
-36

query I rowsort
SELECT ( - ( - + 41 ) )
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-5766
SELECT COUNT( ALL 26 ) AS col0, + 79 col1
----
1
79

skipif mysql # not compatible
query II rowsort label-5766
SELECT COUNT ( ALL 26 ) AS col0, + 79 col1
----
1
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5767
SELECT DISTINCT MAX( + - 79 )
----
-79

skipif mysql # not compatible
query I rowsort label-5767
SELECT DISTINCT MAX ( + - 79 )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-5768
SELECT + - COUNT( * ) + - 6
----
-7

skipif mysql # not compatible
query I rowsort label-5768
SELECT + - COUNT ( * ) + - 6
----
-7

query I rowsort
SELECT + 61 * + 90 AS col2
----
5490

onlyif mysql # aggregate syntax: 
query I rowsort label-5770
SELECT + COUNT( * ) + - + 53
----
-52

skipif mysql # not compatible
query I rowsort label-5770
SELECT + COUNT ( * ) + - + 53
----
-52

query I rowsort
SELECT + + 61 AS col1
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5772
SELECT ALL - + ( CAST( - 35 AS SIGNED ) ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-5772
SELECT ALL - + ( CAST ( - 35 AS INTEGER ) ) AS col1
----
35

query I rowsort
SELECT 63 - 22 AS col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5774
SELECT ( + SUM( ALL + 16 ) )
----
16

skipif mysql # not compatible
query I rowsort label-5774
SELECT ( + SUM ( ALL + 16 ) )
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5775
SELECT DISTINCT - 96 - COUNT( * ) AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-5775
SELECT DISTINCT - 96 - COUNT ( * ) AS col0
----
-97

query I rowsort
SELECT ALL - + 56 AS col0
----
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-5777
SELECT DISTINCT 76, - COUNT( * ) AS col1
----
76
-1

skipif mysql # not compatible
query II rowsort label-5777
SELECT DISTINCT 76, - COUNT ( * ) AS col1
----
76
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5778
SELECT - 30 AS col1, ( + - ( + + COUNT( * ) ) )
----
-30
-1

skipif mysql # not compatible
query II rowsort label-5778
SELECT - 30 AS col1, ( + - ( + + COUNT ( * ) ) )
----
-30
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5779
SELECT - CAST( - COUNT( * ) AS SIGNED ) * + 6
----
6

skipif mysql # not compatible
query I rowsort label-5779
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) * + 6
----
6

query I rowsort
SELECT + - 75 AS col1
----
-75

query I rowsort
SELECT ALL + - 96 AS col1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5782
SELECT DISTINCT + 86 * - 9 + - - 51 + + - COUNT( * )
----
-724

skipif mysql # not compatible
query I rowsort label-5782
SELECT DISTINCT + 86 * - 9 + - - 51 + + - COUNT ( * )
----
-724

onlyif mysql # aggregate syntax: 
query I rowsort label-5783
SELECT ALL 30 * + + COUNT( * ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-5783
SELECT ALL 30 * + + COUNT ( * ) AS col2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5784
SELECT COUNT( * ) * 58 + + + SUM( ALL - 37 ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-5784
SELECT COUNT ( * ) * 58 + + + SUM ( ALL - 37 ) AS col1
----
21

query I rowsort
SELECT 98 + - 91
----
7

query I rowsort
SELECT 4 * + 51
----
204

query I rowsort
SELECT 48 + - 89 AS col1
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5788
SELECT ALL - COUNT( * ) + CAST( - - 87 AS SIGNED )
----
86

skipif mysql # not compatible
query I rowsort label-5788
SELECT ALL - COUNT ( * ) + CAST ( - - 87 AS INTEGER )
----
86

query II rowsort
SELECT 89 * + 23, 76 AS col0
----
2047
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5790
SELECT COUNT( * ) * - MIN( + ( + 48 ) )
----
-48

skipif mysql # not compatible
query I rowsort label-5790
SELECT COUNT ( * ) * - MIN ( + ( + 48 ) )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-5791
SELECT ALL - 30 + COUNT( * ) col1
----
-29

skipif mysql # not compatible
query I rowsort label-5791
SELECT ALL - 30 + COUNT ( * ) col1
----
-29

query I rowsort
SELECT ALL + 55 + - 82 AS col0
----
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-5793
SELECT ALL + COUNT( * ) * - COUNT( * ) * - COUNT( * ), 49 AS col1
----
1
49

skipif mysql # not compatible
query II rowsort label-5793
SELECT ALL + COUNT ( * ) * - COUNT ( * ) * - COUNT ( * ), 49 AS col1
----
1
49

onlyif mysql # DIV for integer division: 
query I rowsort label-5794
SELECT - 72 DIV + 38
----
-1

skipif mysql # not compatible
query I rowsort label-5794
SELECT - 72 / + 38
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5795
SELECT - 94 DIV + - MIN( ALL + ( - + ( + - 32 ) ) )
----
2

skipif mysql # not compatible
query I rowsort label-5795
SELECT - 94 / + - MIN ( ALL + ( - + ( + - 32 ) ) )
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-5796
SELECT DISTINCT + COUNT( * ) AS col1, + COUNT( * ) AS col1
----
1
1

skipif mysql # not compatible
query II rowsort label-5796
SELECT DISTINCT + COUNT ( * ) AS col1, + COUNT ( * ) AS col1
----
1
1

query I rowsort
SELECT ALL 60 + 16 AS col2
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5798
SELECT - 31 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5798
SELECT - 31 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5799
SELECT CAST( + 62 AS SIGNED )
----
62

skipif mysql # not compatible
query I rowsort label-5799
SELECT CAST ( + 62 AS INTEGER )
----
62

query II rowsort
SELECT DISTINCT + + 27 AS col0, + 93 col2
----
27
93

query I rowsort
SELECT ALL 7 + + ( + 30 )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5802
SELECT DISTINCT 53 * + COUNT( * )
----
53

skipif mysql # not compatible
query I rowsort label-5802
SELECT DISTINCT 53 * + COUNT ( * )
----
53

query I rowsort
SELECT DISTINCT - + 91 AS col0
----
-91

query I rowsort
SELECT + - 25 AS col1
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5805
SELECT ALL AVG ( CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5805
SELECT ALL AVG ( CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5806
SELECT COUNT( + 63 ) + + - 2
----
-1

skipif mysql # not compatible
query I rowsort label-5806
SELECT COUNT ( + 63 ) + + - 2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5807
SELECT COUNT( * ) * + + 71 AS col0
----
71

skipif mysql # not compatible
query I rowsort label-5807
SELECT COUNT ( * ) * + + 71 AS col0
----
71

query I rowsort
SELECT DISTINCT - 6 * 84
----
-504

onlyif mysql # aggregate syntax: 
query I rowsort label-5809
SELECT 58 * + + COUNT( * ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-5809
SELECT 58 * + + COUNT ( * ) AS col2
----
58

query I rowsort
SELECT ALL - + ( - 21 )
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5811
SELECT DISTINCT ( 32 ) DIV + + ( - + COUNT( * ) ) col1, COUNT( ALL - 31 )
----
-32
1

skipif mysql # not compatible
query II rowsort label-5811
SELECT DISTINCT ( 32 ) / + + ( - + COUNT ( * ) ) col1, COUNT ( ALL - 31 )
----
-32
1

query I rowsort
SELECT DISTINCT ( + + 67 ) col2
----
67

query I rowsort
SELECT ALL ( - 44 )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-5814
SELECT + - ( + COUNT( + 42 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5814
SELECT + - ( + COUNT ( + 42 ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5815
SELECT SUM( - 54 ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-5815
SELECT SUM ( - 54 ) AS col1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-5816
SELECT + - 84 * + COUNT( * ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-5816
SELECT + - 84 * + COUNT ( * ) AS col2
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-5817
SELECT DISTINCT COUNT( + 37 )
----
1

skipif mysql # not compatible
query I rowsort label-5817
SELECT DISTINCT COUNT ( + 37 )
----
1

query I rowsort
SELECT + 30 + 86
----
116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5819
SELECT ALL - + CAST( NULL AS SIGNED ) * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5819
SELECT ALL - + CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT + 29 * + 19 AS col1
----
551

onlyif mysql # aggregate syntax: 
query I rowsort label-5821
SELECT ALL + - COUNT( * ) * - + 51 AS col2
----
51

skipif mysql # not compatible
query I rowsort label-5821
SELECT ALL + - COUNT ( * ) * - + 51 AS col2
----
51

query I rowsort
SELECT ALL - - ( + + 92 ) AS col2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5823
SELECT COUNT( * ) + + 75
----
76

skipif mysql # not compatible
query I rowsort label-5823
SELECT COUNT ( * ) + + 75
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5824
SELECT ALL - COUNT( * ) * + COUNT( * ) * - + 23 AS col0
----
23

skipif mysql # not compatible
query I rowsort label-5824
SELECT ALL - COUNT ( * ) * + COUNT ( * ) * - + 23 AS col0
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5825
SELECT 52 DIV - ( COUNT( * ) )
----
-52

skipif mysql # not compatible
query I rowsort label-5825
SELECT 52 / - ( COUNT ( * ) )
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-5826
SELECT 48 - + COUNT( * ) + COUNT( * )
----
48

skipif mysql # not compatible
query I rowsort label-5826
SELECT 48 - + COUNT ( * ) + COUNT ( * )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-5827
SELECT ALL + SUM( ( + 94 ) ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-5827
SELECT ALL + SUM ( ( + 94 ) ) AS col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5828
SELECT + SUM( DISTINCT - + 80 )
----
-80

skipif mysql # not compatible
query I rowsort label-5828
SELECT + SUM ( DISTINCT - + 80 )
----
-80

query I rowsort
SELECT ( + 83 ) AS col1
----
83

query I rowsort
SELECT ALL - ( + 76 ) * 44 AS col2
----
-3344

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5831
SELECT ALL + 78 DIV - COUNT( * )
----
-78

skipif mysql # not compatible
query I rowsort label-5831
SELECT ALL + 78 / - COUNT ( * )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-5832
SELECT + 7 * + COUNT( * ) * + ( - SUM( ALL - 14 ) ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-5832
SELECT + 7 * + COUNT ( * ) * + ( - SUM ( ALL - 14 ) ) AS col2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5833
SELECT MAX( - 66 ) AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-5833
SELECT MAX ( - 66 ) AS col2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5834
SELECT MIN( - + 59 ) AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-5834
SELECT MIN ( - + 59 ) AS col1
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-5835
SELECT ALL 12 * COUNT( * ), - 86 AS col0
----
12
-86

skipif mysql # not compatible
query II rowsort label-5835
SELECT ALL 12 * COUNT ( * ), - 86 AS col0
----
12
-86

query I rowsort
SELECT DISTINCT - ( + 43 ) AS col0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-5837
SELECT ALL + + COUNT( * ) * - 16
----
-16

skipif mysql # not compatible
query I rowsort label-5837
SELECT ALL + + COUNT ( * ) * - 16
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5838
SELECT ALL MAX( DISTINCT - - 45 )
----
45

skipif mysql # not compatible
query I rowsort label-5838
SELECT ALL MAX ( DISTINCT - - 45 )
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5839
SELECT COUNT( * ) + + CAST( NULL AS SIGNED ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5839
SELECT COUNT ( * ) + + CAST ( NULL AS INTEGER ) + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5840
SELECT CAST( NULL AS SIGNED ) + 13 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5840
SELECT CAST ( NULL AS INTEGER ) + 13 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5841
SELECT - MAX( ALL + - 75 )
----
75

skipif mysql # not compatible
query I rowsort label-5841
SELECT - MAX ( ALL + - 75 )
----
75

query II rowsort
SELECT + 8 AS col1, 51
----
8
51

onlyif mysql # aggregate syntax: 
query II rowsort label-5843
SELECT COUNT( * ) col0, - ( - - COUNT( * ) ) * + - 59
----
1
59

skipif mysql # not compatible
query II rowsort label-5843
SELECT COUNT ( * ) col0, - ( - - COUNT ( * ) ) * + - 59
----
1
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5844
SELECT - 58 * - COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-5844
SELECT - 58 * - COUNT ( * )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5845
SELECT ALL - 77 * + COUNT( * ) AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-5845
SELECT ALL - 77 * + COUNT ( * ) AS col0
----
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-5846
SELECT DISTINCT COUNT( * ) col2, COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-5846
SELECT DISTINCT COUNT ( * ) col2, COUNT ( * )
----
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5847
SELECT DISTINCT CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) / COUNT( * ) / + SUM( ALL + 9 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5847
SELECT DISTINCT CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) / COUNT ( * ) / + SUM ( ALL + 9 ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5848
SELECT ( + CAST( + 74 AS SIGNED ) )
----
74

skipif mysql # not compatible
query I rowsort label-5848
SELECT ( + CAST ( + 74 AS INTEGER ) )
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5849
SELECT ALL + CAST( COUNT( * ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5849
SELECT ALL + CAST ( COUNT ( * ) AS INTEGER ) AS col2
----
1

query I rowsort
SELECT ALL 19 + 86 * - 41 AS col1
----
-3507

query I rowsort
SELECT 26 + - 53
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-5852
SELECT 87 + - COUNT( * )
----
86

skipif mysql # not compatible
query I rowsort label-5852
SELECT 87 + - COUNT ( * )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5853
SELECT DISTINCT 7 * + COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-5853
SELECT DISTINCT 7 * + COUNT ( * )
----
7

query I rowsort
SELECT ALL - ( - 73 )
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5855
SELECT + + CAST( + 61 AS SIGNED )
----
61

skipif mysql # not compatible
query I rowsort label-5855
SELECT + + CAST ( + 61 AS INTEGER )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5856
SELECT DISTINCT COUNT( * ) + + 38 AS col1
----
39

skipif mysql # not compatible
query I rowsort label-5856
SELECT DISTINCT COUNT ( * ) + + 38 AS col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5857
SELECT + - MAX( + 63 )
----
-63

skipif mysql # not compatible
query I rowsort label-5857
SELECT + - MAX ( + 63 )
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-5858
SELECT - + 67 * - COUNT( * ) - 85
----
-18

skipif mysql # not compatible
query I rowsort label-5858
SELECT - + 67 * - COUNT ( * ) - 85
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-5859
SELECT DISTINCT MIN( - 3 )
----
-3

skipif mysql # not compatible
query I rowsort label-5859
SELECT DISTINCT MIN ( - 3 )
----
-3

query I rowsort
SELECT + + ( + 93 ) AS col2
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-5861
SELECT + 8, - SUM( ALL - 15 ) AS col0
----
8
15

skipif mysql # not compatible
query II rowsort label-5861
SELECT + 8, - SUM ( ALL - 15 ) AS col0
----
8
15

query I rowsort
SELECT - ( + - 90 ) AS col1
----
90

query II rowsort
SELECT + + 26, - 54 AS col0
----
26
-54

query I rowsort
SELECT - ( + 81 )
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5865
SELECT DISTINCT - MAX( - + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5865
SELECT DISTINCT - MAX ( - + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 0 * - 29 AS col2
----
0

query I rowsort
SELECT DISTINCT - 61 AS col0
----
-61

query I rowsort
SELECT DISTINCT - + 14 AS col0
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5869
SELECT 5 DIV + COUNT( * ) col2
----
5

skipif mysql # not compatible
query I rowsort label-5869
SELECT 5 / + COUNT ( * ) col2
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-5870
SELECT DISTINCT COUNT( * ) AS col1, - 16 AS col0
----
1
-16

skipif mysql # not compatible
query II rowsort label-5870
SELECT DISTINCT COUNT ( * ) AS col1, - 16 AS col0
----
1
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5871
SELECT ALL + COUNT( * ) * + 70 * + 80 * - ( + + 8 ) * + 48
----
-2150400

skipif mysql # not compatible
query I rowsort label-5871
SELECT ALL + COUNT ( * ) * + 70 * + 80 * - ( + + 8 ) * + 48
----
-2150400

onlyif mysql # aggregate syntax: 
query I rowsort label-5872
SELECT SUM( + 18 ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-5872
SELECT SUM ( + 18 ) AS col2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5873
SELECT - COUNT( * ) * + 63
----
-63

skipif mysql # not compatible
query I rowsort label-5873
SELECT - COUNT ( * ) * + 63
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-5874
SELECT - SUM( ALL - - 51 )
----
-51

skipif mysql # not compatible
query I rowsort label-5874
SELECT - SUM ( ALL - - 51 )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5875
SELECT ALL + - 1 * + 9 - - COUNT( * ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-5875
SELECT ALL + - 1 * + 9 - - COUNT ( * ) AS col0
----
-8

query I rowsort
SELECT + ( 61 ) AS col0
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-5877
SELECT DISTINCT 17 DIV + - 48
----
0

skipif mysql # not compatible
query I rowsort label-5877
SELECT DISTINCT 17 / + - 48
----
0

query I rowsort
SELECT - ( - - 21 )
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-5879
SELECT DISTINCT - - 2 DIV + 70
----
0

skipif mysql # not compatible
query I rowsort label-5879
SELECT DISTINCT - - 2 / + 70
----
0

query I rowsort
SELECT DISTINCT - ( - 62 ) AS col0
----
62

query I rowsort
SELECT ALL - 57 + + + ( + 62 ) AS col2
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-5882
SELECT DISTINCT - COUNT( * ) AS col1, - 70 AS col1
----
-1
-70

skipif mysql # not compatible
query II rowsort label-5882
SELECT DISTINCT - COUNT ( * ) AS col1, - 70 AS col1
----
-1
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-5883
SELECT ALL - 96 DIV ( ( - 61 ) )
----
1

skipif mysql # not compatible
query I rowsort label-5883
SELECT ALL - 96 / ( ( - 61 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5884
SELECT ALL COUNT( * ) * - 3 col1
----
-3

skipif mysql # not compatible
query I rowsort label-5884
SELECT ALL COUNT ( * ) * - 3 col1
----
-3

query I rowsort
SELECT DISTINCT + 97 AS col0
----
97

query I rowsort
SELECT ALL + ( 0 ) col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5887
SELECT + 77 * - COUNT( * )
----
-77

skipif mysql # not compatible
query I rowsort label-5887
SELECT + 77 * - COUNT ( * )
----
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-5888
SELECT + 14 AS col0, - ( + COUNT( + 90 ) )
----
14
-1

skipif mysql # not compatible
query II rowsort label-5888
SELECT + 14 AS col0, - ( + COUNT ( + 90 ) )
----
14
-1

query I rowsort
SELECT ALL + 99 * - ( - 17 ) + - 53
----
1630

query I rowsort
SELECT - 95 * + 97
----
-9215

query I rowsort
SELECT ALL + + 88 AS col2
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5892
SELECT ALL + + 83 * CAST( - + 47 AS SIGNED ) AS col0, + 89 + - - 56
----
-3901
145

skipif mysql # not compatible
query II rowsort label-5892
SELECT ALL + + 83 * CAST ( - + 47 AS INTEGER ) AS col0, + 89 + - - 56
----
-3901
145

onlyif mysql # aggregate syntax: 
query I rowsort label-5893
SELECT + 72 + + MIN( + 78 )
----
150

skipif mysql # not compatible
query I rowsort label-5893
SELECT + 72 + + MIN ( + 78 )
----
150

onlyif mysql # DIV for integer division: 
query I rowsort label-5894
SELECT + 77 DIV ( + 35 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-5894
SELECT + 77 / ( + 35 ) AS col0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5895
SELECT + 53 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5895
SELECT + 53 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5896
SELECT ALL CAST( NULL AS SIGNED ) + + 71 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5896
SELECT ALL CAST ( NULL AS INTEGER ) + + 71 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5897
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-5897
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 14
----
NULL

query I rowsort
SELECT ALL - 71 + 65
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5899
SELECT ALL - NULLIF ( - 90, - + COUNT( * ) )
----
90

skipif mysql # not compatible
query I rowsort label-5899
SELECT ALL - NULLIF ( - 90, - + COUNT ( * ) )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5900
SELECT DISTINCT COUNT( DISTINCT 77 )
----
1

skipif mysql # not compatible
query I rowsort label-5900
SELECT DISTINCT COUNT ( DISTINCT 77 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5901
SELECT ALL 34 AS col0, 42 + - - CAST( NULL AS SIGNED )
----
34
NULL

skipif mysql # not compatible
query II rowsort label-5901
SELECT ALL 34 AS col0, 42 + - - CAST ( NULL AS INTEGER )
----
34
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5902
SELECT 81 DIV - + 41
----
-1

skipif mysql # not compatible
query I rowsort label-5902
SELECT 81 / - + 41
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5903
SELECT ALL - COUNT( * ) * - + 48
----
48

skipif mysql # not compatible
query I rowsort label-5903
SELECT ALL - COUNT ( * ) * - + 48
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-5904
SELECT ALL - + SUM( - 54 ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-5904
SELECT ALL - + SUM ( - 54 ) AS col2
----
54

query I rowsort
SELECT ALL 14 * + + 57 AS col2
----
798

onlyif mysql # aggregate syntax: 
query I rowsort label-5906
SELECT ALL - - ( - COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5906
SELECT ALL - - ( - COUNT ( * ) ) AS col1
----
-1

query II rowsort
SELECT 85 AS col1, - 84
----
85
-84

query I rowsort
SELECT - 6 + + 9 AS col0
----
3

query II rowsort
SELECT - 65 AS col1, 57 col0
----
-65
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5910
SELECT - MIN( DISTINCT + 44 ) + + COUNT( * ) col2
----
-43

skipif mysql # not compatible
query I rowsort label-5910
SELECT - MIN ( DISTINCT + 44 ) + + COUNT ( * ) col2
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-5911
SELECT DISTINCT - 99 * - COUNT( * ) col2
----
99

skipif mysql # not compatible
query I rowsort label-5911
SELECT DISTINCT - 99 * - COUNT ( * ) col2
----
99

query I rowsort
SELECT - ( - + 88 ) + - ( ( 92 ) ) col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5913
SELECT + ( COUNT( * ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-5913
SELECT + ( COUNT ( * ) ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5914
SELECT - 93 * + COUNT( * ) AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-5914
SELECT - 93 * + COUNT ( * ) AS col1
----
-93

query I rowsort
SELECT DISTINCT ( 88 )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5916
SELECT ALL + MAX( 95 )
----
95

skipif mysql # not compatible
query I rowsort label-5916
SELECT ALL + MAX ( 95 )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5917
SELECT ALL - MAX( - - 2 ) + - COUNT( ALL 33 ) + - 64 col1
----
-67

skipif mysql # not compatible
query I rowsort label-5917
SELECT ALL - MAX ( - - 2 ) + - COUNT ( ALL 33 ) + - 64 col1
----
-67

query I rowsort
SELECT 59 * + 10
----
590

onlyif mysql # aggregate syntax: 
query I rowsort label-5919
SELECT 49 + - - 79 * ( + - COUNT( * ) )
----
-30

skipif mysql # not compatible
query I rowsort label-5919
SELECT 49 + - - 79 * ( + - COUNT ( * ) )
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5920
SELECT - 10 DIV + COUNT( * ) AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-5920
SELECT - 10 / + COUNT ( * ) AS col2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-5921
SELECT ALL ( + - 6 ) * + COUNT( * )
----
-6

skipif mysql # not compatible
query I rowsort label-5921
SELECT ALL ( + - 6 ) * + COUNT ( * )
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5922
SELECT MIN( 62 ) DIV COUNT( * ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-5922
SELECT MIN ( 62 ) / COUNT ( * ) AS col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5923
SELECT - COUNT( * ) - + 5 AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-5923
SELECT - COUNT ( * ) - + 5 AS col2
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5924
SELECT CAST( + - 6 AS SIGNED ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-5924
SELECT CAST ( + - 6 AS INTEGER ) AS col1
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5925
SELECT ALL - 2 DIV + MAX( - 91 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5925
SELECT ALL - 2 / + MAX ( - 91 ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5926
SELECT - CAST( NULL AS SIGNED ) * - 85
----
NULL

skipif mysql # not compatible
query I rowsort label-5926
SELECT - CAST ( NULL AS INTEGER ) * - 85
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5927
SELECT SUM( ALL - - 36 ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-5927
SELECT SUM ( ALL - - 36 ) AS col0
----
36

query I rowsort
SELECT DISTINCT + 82 + + + 67 col0
----
149

query I rowsort
SELECT ALL - 7 * 0
----
0

query I rowsort
SELECT ALL 1 - - 1
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5931
SELECT + 12 * 34 / - - 33 * + + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5931
SELECT + 12 * 34 / - - 33 * + + CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT ALL 0 * - - 79
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5933
SELECT ( + + COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5933
SELECT ( + + COUNT ( * ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5934
SELECT ALL - COUNT( * ) * - 33 col1
----
33

skipif mysql # not compatible
query I rowsort label-5934
SELECT ALL - COUNT ( * ) * - 33 col1
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-5935
SELECT ALL 97 AS col0, - COUNT( * )
----
97
-1

skipif mysql # not compatible
query II rowsort label-5935
SELECT ALL 97 AS col0, - COUNT ( * )
----
97
-1

query I rowsort
SELECT - 15 + - 51
----
-66

query I rowsort
SELECT 55 * - ( - 18 ) AS col2
----
990

onlyif mysql # aggregate syntax: 
query II rowsort label-5938
SELECT - + COUNT( * ) AS col0, + 37
----
-1
37

skipif mysql # not compatible
query II rowsort label-5938
SELECT - + COUNT ( * ) AS col0, + 37
----
-1
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5939
SELECT - ( + - MAX( 78 ) )
----
78

skipif mysql # not compatible
query I rowsort label-5939
SELECT - ( + - MAX ( 78 ) )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5940
SELECT ALL - MAX( DISTINCT - 79 )
----
79

skipif mysql # not compatible
query I rowsort label-5940
SELECT ALL - MAX ( DISTINCT - 79 )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5941
SELECT DISTINCT COUNT( * ) * COUNT( * ) * + 39 col2
----
39

skipif mysql # not compatible
query I rowsort label-5941
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) * + 39 col2
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5942
SELECT COUNT( * ) DIV 61
----
0

skipif mysql # not compatible
query I rowsort label-5942
SELECT COUNT ( * ) / 61
----
0

query I rowsort
SELECT DISTINCT - - 19 AS col1
----
19

query II rowsort
SELECT ALL 77, + 46 AS col0
----
77
46

query I rowsort
SELECT ALL 8 * - ( - 80 ) + ( + 12 )
----
652

query I rowsort
SELECT 9 * + 7 AS col0
----
63

query I rowsort
SELECT ALL - 92 + - 74 AS col1
----
-166

onlyif mysql # aggregate syntax: 
query I rowsort label-5948
SELECT ALL MIN( ALL + - 10 )
----
-10

skipif mysql # not compatible
query I rowsort label-5948
SELECT ALL MIN ( ALL + - 10 )
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5949
SELECT + CAST( NULL AS SIGNED ) + - - 67 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5949
SELECT + CAST ( NULL AS INTEGER ) + - - 67 col0
----
NULL

query I rowsort
SELECT DISTINCT + + 0 AS col0
----
0

query I rowsort
SELECT DISTINCT + - 27
----
-27

query I rowsort
SELECT + - 43 + - + 62
----
-105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5953
SELECT - - NULLIF ( + + CAST( NULL AS SIGNED ), - 24 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5953
SELECT - - NULLIF ( + + CAST ( NULL AS INTEGER ), - 24 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5954
SELECT ALL ( - 19 ) - CAST( NULL AS SIGNED ) * 64 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5954
SELECT ALL ( - 19 ) - CAST ( NULL AS INTEGER ) * 64 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5955
SELECT DISTINCT COUNT( * ) * + 90 AS col1
----
90

skipif mysql # not compatible
query I rowsort label-5955
SELECT DISTINCT COUNT ( * ) * + 90 AS col1
----
90

query I rowsort
SELECT ALL + 73 * - 13 AS col2
----
-949

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5957
SELECT 2 DIV - ( + COUNT( ALL 16 ) )
----
-2

skipif mysql # not compatible
query I rowsort label-5957
SELECT 2 / - ( + COUNT ( ALL 16 ) )
----
-2

query I rowsort
SELECT 8 + 44 AS col1
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5959
SELECT DISTINCT + COUNT( 88 ) DIV 79 col2
----
0

skipif mysql # not compatible
query I rowsort label-5959
SELECT DISTINCT + COUNT ( 88 ) / 79 col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5960
SELECT - 23 + - ( + ( - ( CAST( NULL AS SIGNED ) ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5960
SELECT - 23 + - ( + ( - ( CAST ( NULL AS INTEGER ) ) ) )
----
NULL

query I rowsort
SELECT DISTINCT ( 35 ) col0
----
35

query I rowsort
SELECT ALL + - 77 AS col2
----
-77

query I rowsort
SELECT + ( + ( + - 38 ) ) col2
----
-38

query I rowsort
SELECT - ( 74 ) AS col2
----
-74

query I rowsort
SELECT ALL + 19 * 5
----
95

query I rowsort
SELECT ALL 63 + ( + 55 ) col2
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-5967
SELECT - COUNT( * ) * - + 36
----
36

skipif mysql # not compatible
query I rowsort label-5967
SELECT - COUNT ( * ) * - + 36
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5968
SELECT + - 14 + + COUNT( * ) * 45
----
31

skipif mysql # not compatible
query I rowsort label-5968
SELECT + - 14 + + COUNT ( * ) * 45
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5969
SELECT ALL + CAST( NULL AS SIGNED ) / 65 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5969
SELECT ALL + CAST ( NULL AS INTEGER ) / 65 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5970
SELECT + COUNT( DISTINCT + 7 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5970
SELECT + COUNT ( DISTINCT + 7 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5971
SELECT DISTINCT - 35 * 11 + + COUNT( * )
----
-384

skipif mysql # not compatible
query I rowsort label-5971
SELECT DISTINCT - 35 * 11 + + COUNT ( * )
----
-384

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5972
SELECT DISTINCT + + CAST( 78 AS SIGNED )
----
78

skipif mysql # not compatible
query I rowsort label-5972
SELECT DISTINCT + + CAST ( 78 AS INTEGER )
----
78

query I rowsort
SELECT + 83 * + ( - 52 ) AS col2
----
-4316

onlyif mysql # aggregate syntax: 
query II rowsort label-5974
SELECT DISTINCT - ( + 93 ) AS col2, + ( COUNT( * ) )
----
-93
1

skipif mysql # not compatible
query II rowsort label-5974
SELECT DISTINCT - ( + 93 ) AS col2, + ( COUNT ( * ) )
----
-93
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5975
SELECT ALL ( - MIN( ALL 66 ) ) * - 64
----
4224

skipif mysql # not compatible
query I rowsort label-5975
SELECT ALL ( - MIN ( ALL 66 ) ) * - 64
----
4224

onlyif mysql # aggregate syntax: 
query I rowsort label-5976
SELECT ALL ( - COUNT( * ) ) + - - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5976
SELECT ALL ( - COUNT ( * ) ) + - - COUNT ( * ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5977
SELECT - 49 * - + SUM( ALL - ( + 79 ) ) col2
----
-3871

skipif mysql # not compatible
query I rowsort label-5977
SELECT - 49 * - + SUM ( ALL - ( + 79 ) ) col2
----
-3871

query I rowsort
SELECT ALL ( 33 ) AS col0
----
33

query I rowsort
SELECT DISTINCT - ( 40 ) AS col1
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5980
SELECT ALL - CAST( 29 AS SIGNED )
----
-29

skipif mysql # not compatible
query I rowsort label-5980
SELECT ALL - CAST ( 29 AS INTEGER )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-5981
SELECT 57 * - + COUNT( * ) * - COUNT( * ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-5981
SELECT 57 * - + COUNT ( * ) * - COUNT ( * ) AS col1
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5982
SELECT ALL CASE - + CAST( NULL AS SIGNED ) WHEN + 33 THEN + 10 END + AVG ( 90 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5982
SELECT ALL CASE - + CAST ( NULL AS INTEGER ) WHEN + 33 THEN + 10 END + AVG ( 90 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5983
SELECT 46 - MAX( + CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5983
SELECT 46 - MAX ( + CAST ( NULL AS REAL ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5984
SELECT COUNT( * ) * - + 88
----
-88

skipif mysql # not compatible
query I rowsort label-5984
SELECT COUNT ( * ) * - + 88
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-5985
SELECT DISTINCT SUM( DISTINCT - 28 )
----
-28

skipif mysql # not compatible
query I rowsort label-5985
SELECT DISTINCT SUM ( DISTINCT - 28 )
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5986
SELECT ALL COUNT( * ) DIV - COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5986
SELECT ALL COUNT ( * ) / - COUNT ( * ) AS col1
----
-1

query II rowsort
SELECT + 15 AS col1, - ( 5 ) AS col0
----
15
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5988
SELECT SUM( DISTINCT + 74 )
----
74

skipif mysql # not compatible
query I rowsort label-5988
SELECT SUM ( DISTINCT + 74 )
----
74

query I rowsort
SELECT DISTINCT + ( + 92 ) AS col0
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5990
SELECT ALL + CAST( NULL AS SIGNED ) * COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5990
SELECT ALL + CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5991
SELECT + NULLIF ( - + 67, - MIN( + 78 ) ) AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-5991
SELECT + NULLIF ( - + 67, - MIN ( + 78 ) ) AS col0
----
-67

query I rowsort
SELECT ALL + 97 col0
----
97

query I rowsort
SELECT 22 * ( + 79 ) AS col0
----
1738

query I rowsort
SELECT ALL ( - 72 )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-5995
SELECT DISTINCT NULLIF ( ( - COUNT( * ) ), + - 91 ) * + 9
----
-9

skipif mysql # not compatible
query I rowsort label-5995
SELECT DISTINCT NULLIF ( ( - COUNT ( * ) ), + - 91 ) * + 9
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-5996
SELECT DISTINCT COUNT( - + 61 ), COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-5996
SELECT DISTINCT COUNT ( - + 61 ), COUNT ( * )
----
1
1

query I rowsort
SELECT + - ( + 69 ) col2
----
-69

query I rowsort
SELECT + - 13 AS col0
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5999
SELECT DISTINCT 82 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5999
SELECT DISTINCT 82 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6000
SELECT - 11 DIV - - SUM( DISTINCT + 99 )
----
0

skipif mysql # not compatible
query I rowsort label-6000
SELECT - 11 / - - SUM ( DISTINCT + 99 )
----
0

query I rowsort
SELECT - ( + 25 ) - + 54
----
-79

query I rowsort
SELECT DISTINCT 47 col0
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6003
SELECT DISTINCT COUNT( * ) * - MIN( + CAST( NULL AS SIGNED ) ) + 91 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6003
SELECT DISTINCT COUNT ( * ) * - MIN ( + CAST ( NULL AS INTEGER ) ) + 91 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - ( - 67 ) * + + 3
----
201

query I rowsort
SELECT ALL - ( + + 87 ) AS col1
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-6006
SELECT ALL 30 * ( COUNT( * ) ) - + 70 AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-6006
SELECT ALL 30 * ( COUNT ( * ) ) - + 70 AS col0
----
-40

query I rowsort
SELECT + 71 * 91 AS col1
----
6461

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6008
SELECT DISTINCT - COUNT( * ) AS col1, COUNT( * ) DIV + 41
----
-1
0

skipif mysql # not compatible
query II rowsort label-6008
SELECT DISTINCT - COUNT ( * ) AS col1, COUNT ( * ) / + 41
----
-1
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6009
SELECT 72 - MAX( ALL - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6009
SELECT 72 - MAX ( ALL - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT ALL + 29 * + + 86
----
2494

query I rowsort
SELECT DISTINCT - + 95 AS col0
----
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6012
SELECT DISTINCT + 47 DIV COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-6012
SELECT DISTINCT + 47 / COUNT ( * )
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6013
SELECT ALL - 3 DIV + - COUNT( * ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-6013
SELECT ALL - 3 / + - COUNT ( * ) AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6014
SELECT 85 * - COUNT( * ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-6014
SELECT 85 * - COUNT ( * ) AS col1
----
-85

query I rowsort
SELECT - ( + + 46 ) * + 33 * ( - + 70 )
----
106260

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6016
SELECT + - CAST( ( - 76 ) AS SIGNED ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-6016
SELECT + - CAST ( ( - 76 ) AS INTEGER ) AS col2
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6017
SELECT + 74 DIV + COUNT( * )
----
74

skipif mysql # not compatible
query I rowsort label-6017
SELECT + 74 / + COUNT ( * )
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6018
SELECT + 29 DIV COUNT( * )
----
29

skipif mysql # not compatible
query I rowsort label-6018
SELECT + 29 / COUNT ( * )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6019
SELECT + ( - 44 ) * - - COUNT( * ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-6019
SELECT + ( - 44 ) * - - COUNT ( * ) AS col2
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-6020
SELECT + COALESCE ( + - COUNT( * ), + ( 49 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6020
SELECT + COALESCE ( + - COUNT ( * ), + ( 49 ) )
----
-1

query I rowsort
SELECT DISTINCT ( - 66 ) AS col2
----
-66

query I rowsort
SELECT ALL ( + - 30 )
----
-30

query I rowsort
SELECT + 88 * + + 2 AS col0
----
176

query I rowsort
SELECT + 6 + - 55
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-6025
SELECT DISTINCT 87 * 19 * - COUNT( * ) * + 22
----
-36366

skipif mysql # not compatible
query I rowsort label-6025
SELECT DISTINCT 87 * 19 * - COUNT ( * ) * + 22
----
-36366

onlyif mysql # aggregate syntax: 
query I rowsort label-6026
SELECT DISTINCT COUNT( * ) * - 79 AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-6026
SELECT DISTINCT COUNT ( * ) * - 79 AS col1
----
-79

query I rowsort
SELECT ALL 5 col1
----
5

query I rowsort
SELECT ALL - + 73 col2
----
-73

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6029
SELECT ALL + - CAST( NULL AS DECIMAL ) + + + 19 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6029
SELECT ALL + - CAST ( NULL AS REAL ) + + + 19 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - - 73 + - 93
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6031
SELECT ALL - 17 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6031
SELECT ALL - 17 * + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6032
SELECT DISTINCT + COUNT( * ) - + + COUNT( * ) + + + 37 * - - 11
----
407

skipif mysql # not compatible
query I rowsort label-6032
SELECT DISTINCT + COUNT ( * ) - + + COUNT ( * ) + + + 37 * - - 11
----
407

onlyif mysql # aggregate syntax: 
query II rowsort label-6033
SELECT 35 AS col2, + ( ( - + COUNT( * ) ) )
----
35
-1

skipif mysql # not compatible
query II rowsort label-6033
SELECT 35 AS col2, + ( ( - + COUNT ( * ) ) )
----
35
-1

query II rowsort
SELECT 70 AS col2, - 74
----
70
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-6035
SELECT ALL NULLIF ( - COUNT( * ), - COUNT( * ) ) * + + COUNT( * ) / - + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-6035
SELECT ALL NULLIF ( - COUNT ( * ), - COUNT ( * ) ) * + + COUNT ( * ) / - + 3
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6036
SELECT - CAST( - + 26 AS SIGNED ) + - COUNT( * ) + - CAST( NULL AS SIGNED ) * 39
----
NULL

skipif mysql # not compatible
query I rowsort label-6036
SELECT - CAST ( - + 26 AS INTEGER ) + - COUNT ( * ) + - CAST ( NULL AS INTEGER ) * 39
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6037
SELECT DISTINCT - CAST( - - 54 AS SIGNED ) col2
----
-54

skipif mysql # not compatible
query I rowsort label-6037
SELECT DISTINCT - CAST ( - - 54 AS INTEGER ) col2
----
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6038
SELECT ALL COUNT( * ) DIV - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6038
SELECT ALL COUNT ( * ) / - COUNT ( * ) AS col2
----
-1

query I rowsort
SELECT - - 84 * + 38
----
3192

query I rowsort
SELECT 96 col0
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-6041
SELECT ALL MAX( + + 5 ) AS col2, 95 + 76 AS col0
----
5
171

skipif mysql # not compatible
query II rowsort label-6041
SELECT ALL MAX ( + + 5 ) AS col2, 95 + 76 AS col0
----
5
171

onlyif mysql # aggregate syntax: 
query I rowsort label-6042
SELECT + ( MAX( DISTINCT 43 ) ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-6042
SELECT + ( MAX ( DISTINCT 43 ) ) AS col1
----
43

query I rowsort
SELECT DISTINCT + 57 col0
----
57

query I rowsort
SELECT 38 + - 38 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6045
SELECT - 16 + COUNT( * ) col1
----
-15

skipif mysql # not compatible
query I rowsort label-6045
SELECT - 16 + COUNT ( * ) col1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-6046
SELECT 0 * COUNT( + 35 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6046
SELECT 0 * COUNT ( + 35 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6047
SELECT COUNT( * ) * - - 12 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-6047
SELECT COUNT ( * ) * - - 12 AS col0
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6048
SELECT ALL CAST( NULL AS SIGNED ) + CAST( NULL AS DECIMAL ) * - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6048
SELECT ALL CAST ( NULL AS INTEGER ) + CAST ( NULL AS REAL ) * - COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - - 62 AS col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6050
SELECT DISTINCT - + COUNT( * ) - 64
----
-65

skipif mysql # not compatible
query I rowsort label-6050
SELECT DISTINCT - + COUNT ( * ) - 64
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-6051
SELECT - + SUM( DISTINCT 21 ) AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-6051
SELECT - + SUM ( DISTINCT 21 ) AS col1
----
-21

query I rowsort
SELECT - ( - - 3 )
----
-3

query I rowsort
SELECT ALL - 72 * - + 32 AS col0
----
2304

query I rowsort
SELECT + - 96 + - 47 AS col1
----
-143

onlyif mysql # aggregate syntax: 
query I rowsort label-6055
SELECT + - 57 * - COUNT( * ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-6055
SELECT + - 57 * - COUNT ( * ) AS col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6056
SELECT + ( - - COUNT( * ) ) * + 1
----
1

skipif mysql # not compatible
query I rowsort label-6056
SELECT + ( - - COUNT ( * ) ) * + 1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6057
SELECT - COUNT( * ) + + COUNT( * ) + - 54
----
-54

skipif mysql # not compatible
query I rowsort label-6057
SELECT - COUNT ( * ) + + COUNT ( * ) + - 54
----
-54

query I rowsort
SELECT DISTINCT 34 + + 3
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-6059
SELECT DISTINCT COUNT( - + 80 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6059
SELECT DISTINCT COUNT ( - + 80 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6060
SELECT - 27 * - COUNT( 93 )
----
27

skipif mysql # not compatible
query I rowsort label-6060
SELECT - 27 * - COUNT ( 93 )
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6061
SELECT SUM( + CAST( + + 81 AS SIGNED ) ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-6061
SELECT SUM ( + CAST ( + + 81 AS INTEGER ) ) AS col0
----
81

query I rowsort
SELECT ALL + 58 col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6063
SELECT DISTINCT + + 15 + + COUNT( * ) + + COUNT( 36 ) - - ( - COUNT( * ) ) col1
----
16

skipif mysql # not compatible
query I rowsort label-6063
SELECT DISTINCT + + 15 + + COUNT ( * ) + + COUNT ( 36 ) - - ( - COUNT ( * ) ) col1
----
16

query I rowsort
SELECT - - 47 AS col1
----
47

query II rowsort
SELECT - 39 AS col1, 95 + - 62 AS col0
----
-39
33

onlyif mysql # aggregate syntax: 
query I rowsort label-6066
SELECT + SUM( DISTINCT - - 52 )
----
52

skipif mysql # not compatible
query I rowsort label-6066
SELECT + SUM ( DISTINCT - - 52 )
----
52

query I rowsort
SELECT DISTINCT - ( + - ( - 1 ) ) AS col0
----
-1

query I rowsort
SELECT + 39 * 39
----
1521

onlyif mysql # aggregate syntax: 
query I rowsort label-6069
SELECT ALL - COUNT( 76 )
----
-1

skipif mysql # not compatible
query I rowsort label-6069
SELECT ALL - COUNT ( 76 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6070
SELECT 60 DIV + 42 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6070
SELECT 60 / + 42 AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6071
SELECT - 99 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6071
SELECT - 99 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - ( - 18 ) * - - ( + - 44 ) AS col2
----
-792

onlyif mysql # aggregate syntax: 
query I rowsort label-6073
SELECT DISTINCT + SUM( + 19 )
----
19

skipif mysql # not compatible
query I rowsort label-6073
SELECT DISTINCT + SUM ( + 19 )
----
19

query I rowsort
SELECT - 98 + + 30 AS col2
----
-68

query II rowsort
SELECT 93 AS col2, 35 AS col2
----
93
35

query I rowsort
SELECT DISTINCT + 98 + - - 21
----
119

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6077
SELECT ALL CAST( NULL AS SIGNED ) * + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-6077
SELECT ALL CAST ( NULL AS INTEGER ) * + 26
----
NULL

query I rowsort
SELECT + 28 * - ( 46 )
----
-1288

query I rowsort
SELECT + 24 * + - 57 + - ( 42 ) AS col1
----
-1410

query I rowsort
SELECT + ( - 79 ) AS col0
----
-79

query I rowsort
SELECT + ( + + 53 )
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6082
SELECT DISTINCT - ( + + CAST( + SUM( ALL - 79 ) AS SIGNED ) ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-6082
SELECT DISTINCT - ( + + CAST ( + SUM ( ALL - 79 ) AS INTEGER ) ) AS col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-6083
SELECT + COUNT( * ) + 1
----
2

skipif mysql # not compatible
query I rowsort label-6083
SELECT + COUNT ( * ) + 1
----
2

query I rowsort
SELECT ALL - ( - 62 ) AS col2
----
62

query I rowsort
SELECT DISTINCT - ( + - 26 )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-6086
SELECT DISTINCT + COALESCE ( + - 9, + COUNT( * ) ) col0
----
-9

skipif mysql # not compatible
query I rowsort label-6086
SELECT DISTINCT + COALESCE ( + - 9, + COUNT ( * ) ) col0
----
-9

query I rowsort
SELECT - 75 + - 92
----
-167

onlyif mysql # aggregate syntax: 
query II rowsort label-6088
SELECT COUNT( * ), + COUNT( * ) * COUNT( * ) AS col2
----
1
1

skipif mysql # not compatible
query II rowsort label-6088
SELECT COUNT ( * ), + COUNT ( * ) * COUNT ( * ) AS col2
----
1
1

query I rowsort
SELECT ALL + - 29 col2
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-6090
SELECT + COUNT( 37 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6090
SELECT + COUNT ( 37 ) AS col1
----
1

query I rowsort
SELECT + - 63 * + 40 AS col0
----
-2520

onlyif mysql # aggregate syntax: 
query I rowsort label-6092
SELECT ALL + ( + COUNT( 29 ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-6092
SELECT ALL + ( + COUNT ( 29 ) ) col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6093
SELECT - ( - + COUNT( * ) ) col0, + COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-6093
SELECT - ( - + COUNT ( * ) ) col0, + COUNT ( * )
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6094
SELECT + COUNT( * ) * + 85
----
85

skipif mysql # not compatible
query I rowsort label-6094
SELECT + COUNT ( * ) * + 85
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6095
SELECT ALL - COUNT( DISTINCT - + 59 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6095
SELECT ALL - COUNT ( DISTINCT - + 59 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6096
SELECT + + COUNT( + 91 )
----
1

skipif mysql # not compatible
query I rowsort label-6096
SELECT + + COUNT ( + 91 )
----
1

query I rowsort
SELECT DISTINCT + 73 + + + 5 + + 82
----
160

query I rowsort
SELECT ALL - 63 * - 26 AS col2
----
1638

onlyif mysql # aggregate syntax: 
query I rowsort label-6099
SELECT COUNT( * ) + - COUNT( * ) col2
----
0

skipif mysql # not compatible
query I rowsort label-6099
SELECT COUNT ( * ) + - COUNT ( * ) col2
----
0

query I rowsort
SELECT ALL 7 * ( + 70 )
----
490

query II rowsort
SELECT + ( - 68 ) AS col0, 87
----
-68
87

query I rowsort
SELECT ALL 80 - - 83 AS col1
----
163

onlyif mysql # DIV for integer division: 
query I rowsort label-6103
SELECT ALL - ( + 79 ) DIV 42
----
-1

skipif mysql # not compatible
query I rowsort label-6103
SELECT ALL - ( + 79 ) / 42
----
-1

query I rowsort
SELECT + - ( - + 66 )
----
66

query I rowsort
SELECT ALL + - 38 AS col1
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-6106
SELECT SUM( DISTINCT + 24 ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-6106
SELECT SUM ( DISTINCT + 24 ) AS col1
----
24

query I rowsort
SELECT - ( - 86 )
----
86

query I rowsort
SELECT ALL - ( + - 0 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6109
SELECT 33 + + - COUNT( * ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-6109
SELECT 33 + + - COUNT ( * ) AS col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6110
SELECT ALL COUNT( * ) + + 80 col0
----
81

skipif mysql # not compatible
query I rowsort label-6110
SELECT ALL COUNT ( * ) + + 80 col0
----
81

query I rowsort
SELECT ALL 21 + + - 74
----
-53

query I rowsort
SELECT DISTINCT - 22 * - - 35 AS col1
----
-770

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6113
SELECT 29 * - - MIN( ALL - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6113
SELECT 29 * - - MIN ( ALL - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6114
SELECT COUNT( * ) + - - 98 AS col1
----
99

skipif mysql # not compatible
query I rowsort label-6114
SELECT COUNT ( * ) + - - 98 AS col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6115
SELECT 16 * + - COUNT( * ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-6115
SELECT 16 * + - COUNT ( * ) AS col2
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6116
SELECT ALL - CAST( + + 65 AS SIGNED )
----
-65

skipif mysql # not compatible
query I rowsort label-6116
SELECT ALL - CAST ( + + 65 AS INTEGER )
----
-65

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6117
SELECT + ( + COUNT( * ) ) / - MAX( ALL - - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6117
SELECT + ( + COUNT ( * ) ) / - MAX ( ALL - - CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6118
SELECT + - COUNT( * ) - + 18
----
-19

skipif mysql # not compatible
query I rowsort label-6118
SELECT + - COUNT ( * ) - + 18
----
-19

query I rowsort
SELECT ALL + ( - 81 )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6120
SELECT + MAX( - 71 )
----
-71

skipif mysql # not compatible
query I rowsort label-6120
SELECT + MAX ( - 71 )
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-6121
SELECT + COALESCE ( - COUNT( * ), - 15 - - 32 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6121
SELECT + COALESCE ( - COUNT ( * ), - 15 - - 32 ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6122
SELECT - 56 * - COUNT( DISTINCT - CAST( NULL AS DECIMAL ) ) * + 56 * 13 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6122
SELECT - 56 * - COUNT ( DISTINCT - CAST ( NULL AS REAL ) ) * + 56 * 13 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6123
SELECT - COUNT( ALL ( 1 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6123
SELECT - COUNT ( ALL ( 1 ) ) AS col0
----
-1

query I rowsort
SELECT DISTINCT ( 56 ) AS col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6125
SELECT DISTINCT + 36 * - - COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-6125
SELECT DISTINCT + 36 * - - COUNT ( * )
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6126
SELECT CAST( + + COUNT( * ) AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6126
SELECT CAST ( + + COUNT ( * ) AS INTEGER ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6127
SELECT + CAST( NULL AS SIGNED ) + + COUNT( * ) + + + 62 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6127
SELECT + CAST ( NULL AS INTEGER ) + + COUNT ( * ) + + + 62 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6128
SELECT - 7 + - + COUNT( * ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-6128
SELECT - 7 + - + COUNT ( * ) AS col2
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-6129
SELECT - ( + - COUNT( * ) ) AS col2, + 85
----
1
85

skipif mysql # not compatible
query II rowsort label-6129
SELECT - ( + - COUNT ( * ) ) AS col2, + 85
----
1
85

query I rowsort
SELECT ALL + ( + 79 ) AS col1
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6131
SELECT ALL COUNT( * ) DIV 38
----
0

skipif mysql # not compatible
query I rowsort label-6131
SELECT ALL COUNT ( * ) / 38
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6132
SELECT 41 * + + ( - COUNT( - 2 ) )
----
-41

skipif mysql # not compatible
query I rowsort label-6132
SELECT 41 * + + ( - COUNT ( - 2 ) )
----
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-6133
SELECT - COUNT( * ), + 7 col1
----
-1
7

skipif mysql # not compatible
query II rowsort label-6133
SELECT - COUNT ( * ), + 7 col1
----
-1
7

query I rowsort
SELECT + ( 62 ) AS col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6135
SELECT ALL + ( + + COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6135
SELECT ALL + ( + + COUNT ( * ) ) AS col0
----
1

query I rowsort
SELECT ALL + ( - 15 ) AS col1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-6137
SELECT ALL - MIN( + ( - 39 ) ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-6137
SELECT ALL - MIN ( + ( - 39 ) ) AS col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-6138
SELECT - COUNT( * ) * - - 81
----
-81

skipif mysql # not compatible
query I rowsort label-6138
SELECT - COUNT ( * ) * - - 81
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6139
SELECT - 4 - + + 11 * + - COUNT( * ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-6139
SELECT - 4 - + + 11 * + - COUNT ( * ) AS col2
----
7

query I rowsort
SELECT ( + 87 ) AS col0
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6141
SELECT + 56 DIV - + COUNT( * )
----
-56

skipif mysql # not compatible
query I rowsort label-6141
SELECT + 56 / - + COUNT ( * )
----
-56

query I rowsort
SELECT ALL NULLIF ( - - 98, - 89 * - 37 ) AS col1
----
98

query I rowsort
SELECT DISTINCT 4 - + 41 AS col2
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6144
SELECT DISTINCT COUNT( + - CAST( NULL AS SIGNED ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6144
SELECT DISTINCT COUNT ( + - CAST ( NULL AS INTEGER ) ) AS col0
----
0

query I rowsort
SELECT - - ( - - 41 ) col1
----
41

query I rowsort
SELECT + 99 * + 53 AS col0
----
5247

query I rowsort
SELECT ALL 53 col1
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-6148
SELECT COUNT( ALL 76 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-6148
SELECT COUNT ( ALL 76 ) col2
----
1

query I rowsort
SELECT DISTINCT - + 70 col1
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-6150
SELECT - SUM( DISTINCT + 29 )
----
-29

skipif mysql # not compatible
query I rowsort label-6150
SELECT - SUM ( DISTINCT + 29 )
----
-29

query I rowsort
SELECT DISTINCT - - 3 AS col0
----
3

query I rowsort
SELECT ALL - - 77
----
77

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6153
SELECT ALL ( + - COUNT( * ) ) + - ( + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6153
SELECT ALL ( + - COUNT ( * ) ) + - ( + CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6154
SELECT ALL COUNT( + - 54 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6154
SELECT ALL COUNT ( + - 54 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6155
SELECT ALL - 38 DIV + 15
----
-2

skipif mysql # not compatible
query I rowsort label-6155
SELECT ALL - 38 / + 15
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-6156
SELECT + 95 AS col1, + COUNT( DISTINCT 64 ) - 3 AS col1
----
95
-2

skipif mysql # not compatible
query II rowsort label-6156
SELECT + 95 AS col1, + COUNT ( DISTINCT 64 ) - 3 AS col1
----
95
-2

query I rowsort
SELECT + + 4 * + 21 col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6158
SELECT - COUNT( - 56 ) - - 87 col0
----
86

skipif mysql # not compatible
query I rowsort label-6158
SELECT - COUNT ( - 56 ) - - 87 col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6159
SELECT ALL MAX( + + 93 ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-6159
SELECT ALL MAX ( + + 93 ) AS col1
----
93

query I rowsort
SELECT ALL + + ( + 27 )
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6161
SELECT ALL - COUNT( * ) + CAST( - COUNT( * ) AS SIGNED ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-6161
SELECT ALL - COUNT ( * ) + CAST ( - COUNT ( * ) AS INTEGER ) AS col1
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6162
SELECT ( - CAST( NULL AS SIGNED ) ) * - - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6162
SELECT ( - CAST ( NULL AS INTEGER ) ) * - - COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + - 70 * - 55
----
3850

onlyif mysql # aggregate syntax: 
query II rowsort label-6164
SELECT 94 AS col2, COUNT( * ) AS col0
----
94
1

skipif mysql # not compatible
query II rowsort label-6164
SELECT 94 AS col2, COUNT ( * ) AS col0
----
94
1

query I rowsort
SELECT + - 90 + 13 AS col2
----
-77

query I rowsort
SELECT + + 15 + - 0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6167
SELECT - 15 / - AVG ( ALL - ( + - ( + 50 ) ) ) * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6167
SELECT - 15 / - AVG ( ALL - ( + - ( + 50 ) ) ) * - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6168
SELECT ALL + ( + ( COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-6168
SELECT ALL + ( + ( COUNT ( * ) ) )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6169
SELECT DISTINCT - - 44 DIV 69, COUNT( * ) + + + COUNT( * ) AS col1
----
0
2

skipif mysql # not compatible
query II rowsort label-6169
SELECT DISTINCT - - 44 / 69, COUNT ( * ) + + + COUNT ( * ) AS col1
----
0
2

query I rowsort
SELECT ALL 57 * + + 67 col2
----
3819

query I rowsort
SELECT + 3 * - 62
----
-186

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6172
SELECT + CAST( - + 80 AS SIGNED )
----
-80

skipif mysql # not compatible
query I rowsort label-6172
SELECT + CAST ( - + 80 AS INTEGER )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-6173
SELECT + MIN( ALL + 66 ) * ( 78 ) + + 34 AS col1
----
5182

skipif mysql # not compatible
query I rowsort label-6173
SELECT + MIN ( ALL + 66 ) * ( 78 ) + + 34 AS col1
----
5182

onlyif mysql # aggregate syntax: 
query I rowsort label-6174
SELECT - - MAX( ALL + 41 ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-6174
SELECT - - MAX ( ALL + 41 ) AS col1
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6175
SELECT ALL CAST( NULL AS SIGNED ) + - - 45
----
NULL

skipif mysql # not compatible
query I rowsort label-6175
SELECT ALL CAST ( NULL AS INTEGER ) + - - 45
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6176
SELECT ALL MIN( ALL - + 14 )
----
-14

skipif mysql # not compatible
query I rowsort label-6176
SELECT ALL MIN ( ALL - + 14 )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-6177
SELECT DISTINCT - COUNT( * ) + - 72 AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-6177
SELECT DISTINCT - COUNT ( * ) + - 72 AS col0
----
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-6178
SELECT COUNT( * ) AS col0, - 47 AS col0
----
1
-47

skipif mysql # not compatible
query II rowsort label-6178
SELECT COUNT ( * ) AS col0, - 47 AS col0
----
1
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-6179
SELECT DISTINCT COUNT( * ) * 84 + + 23, COUNT( * ) AS col0
----
107
1

skipif mysql # not compatible
query II rowsort label-6179
SELECT DISTINCT COUNT ( * ) * 84 + + 23, COUNT ( * ) AS col0
----
107
1

query I rowsort
SELECT DISTINCT + 0 * - 73
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6181
SELECT DISTINCT MIN( - 35 )
----
-35

skipif mysql # not compatible
query I rowsort label-6181
SELECT DISTINCT MIN ( - 35 )
----
-35

query I rowsort
SELECT - 55 + 77
----
22

query I rowsort
SELECT ( 90 ) AS col1
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6184
SELECT - + CAST( NULL AS SIGNED ) * - 14 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6184
SELECT - + CAST ( NULL AS INTEGER ) * - 14 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6185
SELECT ALL + - ( COUNT( * ) ) * - 86
----
86

skipif mysql # not compatible
query I rowsort label-6185
SELECT ALL + - ( COUNT ( * ) ) * - 86
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6186
SELECT ALL ( - 52 ) DIV - COUNT( * ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-6186
SELECT ALL ( - 52 ) / - COUNT ( * ) AS col2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6187
SELECT + NULLIF ( COUNT( * ), + 76 )
----
1

skipif mysql # not compatible
query I rowsort label-6187
SELECT + NULLIF ( COUNT ( * ), + 76 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6188
SELECT - SUM( - 16 )
----
16

skipif mysql # not compatible
query I rowsort label-6188
SELECT - SUM ( - 16 )
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6189
SELECT ALL MIN( CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6189
SELECT ALL MIN ( CAST ( NULL AS INTEGER ) ) col0
----
NULL

query I rowsort
SELECT - ( - 88 )
----
88

query I rowsort
SELECT ALL 21 - 75
----
-54

query I rowsort
SELECT DISTINCT 20 * 11 AS col2
----
220

query I rowsort
SELECT DISTINCT - ( - - CASE 33 WHEN 24 THEN - 38 END )
----
NULL

query II rowsort
SELECT DISTINCT 10, + 93 AS col2
----
10
93

query I rowsort
SELECT DISTINCT 44 * 32
----
1408

onlyif mysql # aggregate syntax: 
query I rowsort label-6196
SELECT ALL 79 * + COUNT( * ) * - 34 AS col0
----
-2686

skipif mysql # not compatible
query I rowsort label-6196
SELECT ALL 79 * + COUNT ( * ) * - 34 AS col0
----
-2686

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6197
SELECT ALL - CAST( - 61 AS SIGNED )
----
61

skipif mysql # not compatible
query I rowsort label-6197
SELECT ALL - CAST ( - 61 AS INTEGER )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-6198
SELECT ALL COUNT( * ) * - 96
----
-96

skipif mysql # not compatible
query I rowsort label-6198
SELECT ALL COUNT ( * ) * - 96
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6199
SELECT DISTINCT CAST( NULL AS SIGNED ) / + - 79
----
NULL

skipif mysql # not compatible
query I rowsort label-6199
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + - 79
----
NULL

query I rowsort
SELECT - 56 * - 62
----
3472

onlyif mysql # aggregate syntax: 
query I rowsort label-6201
SELECT ALL COUNT( * ) * MIN( ALL - 91 )
----
-91

skipif mysql # not compatible
query I rowsort label-6201
SELECT ALL COUNT ( * ) * MIN ( ALL - 91 )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-6202
SELECT DISTINCT SUM( DISTINCT - 93 ) AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-6202
SELECT DISTINCT SUM ( DISTINCT - 93 ) AS col2
----
-93

query I rowsort
SELECT DISTINCT 33 * + 96
----
3168

query II rowsort
SELECT ALL 6 AS col2, - 94
----
6
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6205
SELECT DISTINCT SUM( + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6205
SELECT DISTINCT SUM ( + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6206
SELECT ALL ( + 96 ) + + 92 * COUNT( * )
----
188

skipif mysql # not compatible
query I rowsort label-6206
SELECT ALL ( + 96 ) + + 92 * COUNT ( * )
----
188

onlyif mysql # aggregate syntax: 
query I rowsort label-6207
SELECT - COUNT( * ) + + MIN( - + 40 ) AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-6207
SELECT - COUNT ( * ) + + MIN ( - + 40 ) AS col2
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6208
SELECT DISTINCT - CAST( NULL AS SIGNED ) / - + COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6208
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / - + COUNT ( * ) col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6209
SELECT DISTINCT 85 DIV - - 78 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6209
SELECT DISTINCT 85 / - - 78 AS col0
----
1

query I rowsort
SELECT DISTINCT - - 45 AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6211
SELECT ALL - + CASE - ( 39 ) WHEN - COUNT( DISTINCT 61 ) THEN - MAX( ALL 84 ) ELSE + 34 END
----
-34

skipif mysql # not compatible
query I rowsort label-6211
SELECT ALL - + CASE - ( 39 ) WHEN - COUNT ( DISTINCT 61 ) THEN - MAX ( ALL 84 ) ELSE + 34 END
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-6212
SELECT 45 + + COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-6212
SELECT 45 + + COUNT ( * )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6213
SELECT ALL + COUNT( * ) - MIN( ALL - 35 )
----
36

skipif mysql # not compatible
query I rowsort label-6213
SELECT ALL + COUNT ( * ) - MIN ( ALL - 35 )
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6214
SELECT + 52 + - CAST( - ( 84 ) AS SIGNED )
----
136

skipif mysql # not compatible
query I rowsort label-6214
SELECT + 52 + - CAST ( - ( 84 ) AS INTEGER )
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-6215
SELECT ALL COUNT( * ) * - - 43
----
43

skipif mysql # not compatible
query I rowsort label-6215
SELECT ALL COUNT ( * ) * - - 43
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6216
SELECT ALL COUNT( * ) * + - 74
----
-74

skipif mysql # not compatible
query I rowsort label-6216
SELECT ALL COUNT ( * ) * + - 74
----
-74

query I rowsort
SELECT DISTINCT 2 + - 85 AS col1
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-6218
SELECT ALL - + COUNT( * ) - + - 93
----
92

skipif mysql # not compatible
query I rowsort label-6218
SELECT ALL - + COUNT ( * ) - + - 93
----
92

query II rowsort
SELECT DISTINCT - 35, - 23 AS col0
----
-35
-23

query I rowsort
SELECT - - 43 - - 8
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6221
SELECT - - 75 AS col1, - 14 / - + CAST( NULL AS SIGNED ) * - 35 + 48
----
75
NULL

skipif mysql # not compatible
query II rowsort label-6221
SELECT - - 75 AS col1, - 14 / - + CAST ( NULL AS INTEGER ) * - 35 + 48
----
75
NULL

query I rowsort
SELECT - - 49 * + 4 - + 99
----
97

query I rowsort
SELECT DISTINCT + - 90 AS col0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-6224
SELECT + 79 - COUNT( * ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-6224
SELECT + 79 - COUNT ( * ) AS col0
----
78

query I rowsort
SELECT + 10 + 57
----
67

query I rowsort
SELECT + 17 * + 39
----
663

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6227
SELECT - 37 - + ( + 25 ) / CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6227
SELECT - 37 - + ( + 25 ) / CAST ( NULL AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6228
SELECT 83 DIV - - 21
----
3

skipif mysql # not compatible
query I rowsort label-6228
SELECT 83 / - - 21
----
3

query I rowsort
SELECT 89 * - + 24
----
-2136

query I rowsort
SELECT DISTINCT + ( + ( - 43 ) ) AS col0
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-6231
SELECT + 39 DIV + - ( - 61 )
----
0

skipif mysql # not compatible
query I rowsort label-6231
SELECT + 39 / + - ( - 61 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6232
SELECT - ( - + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6232
SELECT - ( - + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT ALL + + 33 col0
----
33

query I rowsort
SELECT ALL + + 66 AS col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6235
SELECT + COUNT( ALL - + 56 )
----
1

skipif mysql # not compatible
query I rowsort label-6235
SELECT + COUNT ( ALL - + 56 )
----
1

query I rowsort
SELECT + 69 * + - 32 AS col2
----
-2208

onlyif mysql # aggregate syntax: 
query I rowsort label-6237
SELECT + 97 * + COUNT( * ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-6237
SELECT + 97 * + COUNT ( * ) AS col1
----
97

query I rowsort
SELECT ALL - - 34
----
34

query I rowsort
SELECT + + 23 AS col0
----
23

query I rowsort
SELECT ALL - 91 * + ( 7 ) AS col1
----
-637

query I rowsort
SELECT 54 * + + 92 col2
----
4968

query I rowsort
SELECT DISTINCT 85 + + - 8
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6243
SELECT MIN( - 94 ) + - MIN( ALL + 41 )
----
-135

skipif mysql # not compatible
query I rowsort label-6243
SELECT MIN ( - 94 ) + - MIN ( ALL + 41 )
----
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-6244
SELECT MAX( + - 75 )
----
-75

skipif mysql # not compatible
query I rowsort label-6244
SELECT MAX ( + - 75 )
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6245
SELECT ALL SUM( DISTINCT + 58 ) - 33 AS col2
----
25

skipif mysql # not compatible
query I rowsort label-6245
SELECT ALL SUM ( DISTINCT + 58 ) - 33 AS col2
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6246
SELECT ALL - + ( + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6246
SELECT ALL - + ( + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - - 66
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6248
SELECT DISTINCT NULLIF ( - COALESCE ( - + 83, + CAST( NULL AS SIGNED ) * - + 69 * - 93 - - 68 ), - AVG ( + - 52 ) / + + 58 )
----
83

skipif mysql # not compatible
query I rowsort label-6248
SELECT DISTINCT NULLIF ( - COALESCE ( - + 83, + CAST ( NULL AS INTEGER ) * - + 69 * - 93 - - 68 ), - AVG ( + - 52 ) / + + 58 )
----
83

query I rowsort
SELECT ALL + - 78 col2
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-6250
SELECT MAX( ALL + - 9 )
----
-9

skipif mysql # not compatible
query I rowsort label-6250
SELECT MAX ( ALL + - 9 )
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6251
SELECT DISTINCT COUNT( * ), + CAST( NULL AS SIGNED ) col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-6251
SELECT DISTINCT COUNT ( * ), + CAST ( NULL AS INTEGER ) col0
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6252
SELECT ALL MAX( - + 66 )
----
-66

skipif mysql # not compatible
query I rowsort label-6252
SELECT ALL MAX ( - + 66 )
----
-66

query I rowsort
SELECT - + 33 + 79 AS col1
----
46

query I rowsort
SELECT ALL + 24 col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6255
SELECT COUNT( DISTINCT - 20 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-6255
SELECT COUNT ( DISTINCT - 20 ) col1
----
1

query II rowsort
SELECT 4, 8 col1
----
4
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6257
SELECT + MIN( DISTINCT - + 15 ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-6257
SELECT + MIN ( DISTINCT - + 15 ) AS col1
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-6258
SELECT ALL + 98 DIV 54
----
1

skipif mysql # not compatible
query I rowsort label-6258
SELECT ALL + 98 / 54
----
1

query I rowsort
SELECT DISTINCT + 21 * + 13 AS col2
----
273

query I rowsort
SELECT - + 82 AS col0
----
-82

query I rowsort
SELECT 15 * + + ( - 33 )
----
-495

query I rowsort
SELECT + ( 25 ) - - 95
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-6263
SELECT ALL 62 - + COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-6263
SELECT ALL 62 - + COUNT ( * )
----
61

query I rowsort
SELECT DISTINCT + - 80 AS col2
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6265
SELECT + CAST( NULL AS SIGNED ) AS col2, CAST( + 14 AS SIGNED ) AS col2
----
NULL
14

skipif mysql # not compatible
query II rowsort label-6265
SELECT + CAST ( NULL AS INTEGER ) AS col2, CAST ( + 14 AS INTEGER ) AS col2
----
NULL
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6266
SELECT + COUNT( * ) + 83 AS col0
----
84

skipif mysql # not compatible
query I rowsort label-6266
SELECT + COUNT ( * ) + 83 AS col0
----
84

query I rowsort
SELECT ( + + 99 )
----
99

query I rowsort
SELECT DISTINCT + 66 AS col0
----
66

query I rowsort
SELECT ALL + 3 * - 4
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-6270
SELECT ALL COUNT( ALL - ( + 87 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6270
SELECT ALL COUNT ( ALL - ( + 87 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6271
SELECT ALL + COUNT( * ) * 67 AS col2
----
67

skipif mysql # not compatible
query I rowsort label-6271
SELECT ALL + COUNT ( * ) * 67 AS col2
----
67

query I rowsort
SELECT - - 44 AS col0
----
44

query I rowsort
SELECT 17 * 52 AS col0
----
884

query I rowsort
SELECT 48 * - + 56 + - 14 AS col1
----
-2702

onlyif mysql # aggregate syntax: 
query II rowsort label-6275
SELECT ALL + 7 AS col2, COUNT( * ) AS col1
----
7
1

skipif mysql # not compatible
query II rowsort label-6275
SELECT ALL + 7 AS col2, COUNT ( * ) AS col1
----
7
1

query I rowsort
SELECT ( + + 31 )
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6277
SELECT ALL + - NULLIF ( - COUNT( * ), - - 47 ) DIV + 13
----
0

skipif mysql # not compatible
query I rowsort label-6277
SELECT ALL + - NULLIF ( - COUNT ( * ), - - 47 ) / + 13
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6278
SELECT ALL COUNT( - 16 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6278
SELECT ALL COUNT ( - 16 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6279
SELECT ALL - SUM( - + 74 ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-6279
SELECT ALL - SUM ( - + 74 ) AS col0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6280
SELECT ALL - COUNT( ALL - 30 )
----
-1

skipif mysql # not compatible
query I rowsort label-6280
SELECT ALL - COUNT ( ALL - 30 )
----
-1

query I rowsort
SELECT DISTINCT + 72 * + - 21
----
-1512

onlyif mysql # aggregate syntax: 
query I rowsort label-6282
SELECT 98 * - - MAX( - 86 ) AS col0
----
-8428

skipif mysql # not compatible
query I rowsort label-6282
SELECT 98 * - - MAX ( - 86 ) AS col0
----
-8428

onlyif mysql # aggregate syntax: 
query I rowsort label-6283
SELECT DISTINCT + ( + COUNT( * ) ) * - 24 + - - ( + 64 )
----
40

skipif mysql # not compatible
query I rowsort label-6283
SELECT DISTINCT + ( + COUNT ( * ) ) * - 24 + - - ( + 64 )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6284
SELECT COUNT( * ) + - - 78 AS col2
----
79

skipif mysql # not compatible
query I rowsort label-6284
SELECT COUNT ( * ) + - - 78 AS col2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-6285
SELECT COUNT( * ) + ( + - 98 ) + - 12
----
-109

skipif mysql # not compatible
query I rowsort label-6285
SELECT COUNT ( * ) + ( + - 98 ) + - 12
----
-109

onlyif mysql # aggregate syntax: 
query II rowsort label-6286
SELECT DISTINCT 62 AS col1, COUNT( * ) * + COUNT( * ) AS col2
----
62
1

skipif mysql # not compatible
query II rowsort label-6286
SELECT DISTINCT 62 AS col1, COUNT ( * ) * + COUNT ( * ) AS col2
----
62
1

query I rowsort
SELECT 61 * - 32 AS col2
----
-1952

query I rowsort
SELECT 68 + - - 43 AS col0
----
111

onlyif mysql # DIV for integer division: 
query I rowsort label-6289
SELECT 81 DIV + 35 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-6289
SELECT 81 / + 35 AS col1
----
2

query I rowsort
SELECT DISTINCT - + ( - 53 ) AS col0
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6291
SELECT ALL - COUNT( * ) - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6291
SELECT ALL - COUNT ( * ) - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6292
SELECT ALL - CAST( NULL AS SIGNED ) * + ( - 75 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6292
SELECT ALL - CAST ( NULL AS INTEGER ) * + ( - 75 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6293
SELECT DISTINCT COUNT( + + 55 )
----
1

skipif mysql # not compatible
query I rowsort label-6293
SELECT DISTINCT COUNT ( + + 55 )
----
1

query I rowsort
SELECT + 49 + - + ( - - 84 )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-6295
SELECT - COUNT( * ) * 38 + - 94 * COUNT( * ) + + COUNT( * ) AS col1
----
-131

skipif mysql # not compatible
query I rowsort label-6295
SELECT - COUNT ( * ) * 38 + - 94 * COUNT ( * ) + + COUNT ( * ) AS col1
----
-131

query II rowsort
SELECT + 6, 19 AS col1
----
6
19

query II rowsort
SELECT - 23 AS col0, + 61
----
-23
61

query I rowsort
SELECT ALL 95 col0
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-6299
SELECT + 9 DIV - 12 col1
----
0

skipif mysql # not compatible
query I rowsort label-6299
SELECT + 9 / - 12 col1
----
0

query I rowsort
SELECT DISTINCT 48 * - 6 AS col2
----
-288

query I rowsort
SELECT DISTINCT + 98 * 60 AS col1
----
5880

query I rowsort
SELECT DISTINCT - + 48
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6303
SELECT DISTINCT - CAST( - COUNT( + + 3 ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-6303
SELECT DISTINCT - CAST ( - COUNT ( + + 3 ) AS INTEGER )
----
1

query I rowsort
SELECT DISTINCT - ( - - 28 ) AS col0
----
-28

query I rowsort
SELECT DISTINCT - + 85 AS col0
----
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-6306
SELECT ALL 92 DIV - + 49 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6306
SELECT ALL 92 / - + 49 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6307
SELECT - 12 + + 25 * + + COUNT( * )
----
13

skipif mysql # not compatible
query I rowsort label-6307
SELECT - 12 + + 25 * + + COUNT ( * )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-6308
SELECT DISTINCT - - COUNT( * ) * + 69 AS col2
----
69

skipif mysql # not compatible
query I rowsort label-6308
SELECT DISTINCT - - COUNT ( * ) * + 69 AS col2
----
69

query I rowsort
SELECT DISTINCT - 58 - 47 col1
----
-105

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6310
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + 11 + + - 49 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6310
SELECT DISTINCT + CAST ( NULL AS REAL ) + 11 + + - 49 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6311
SELECT + MAX( + 62 ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-6311
SELECT + MAX ( + 62 ) AS col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6312
SELECT ALL COUNT( * ) * + - COUNT( * ) + + 45 AS col1
----
44

skipif mysql # not compatible
query I rowsort label-6312
SELECT ALL COUNT ( * ) * + - COUNT ( * ) + + 45 AS col1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-6313
SELECT ALL + MAX( DISTINCT + 56 ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-6313
SELECT ALL + MAX ( DISTINCT + 56 ) AS col1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6314
SELECT ALL - ( - - ( COUNT( * ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6314
SELECT ALL - ( - - ( COUNT ( * ) ) )
----
-1

query I rowsort
SELECT DISTINCT + + 52 * 49
----
2548

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6316
SELECT ALL + - COUNT( * ) DIV + 26 - + ( - COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-6316
SELECT ALL + - COUNT ( * ) / + 26 - + ( - COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6317
SELECT SUM( ALL 54 )
----
54

skipif mysql # not compatible
query I rowsort label-6317
SELECT SUM ( ALL 54 )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6318
SELECT - COUNT( - + 66 )
----
-1

skipif mysql # not compatible
query I rowsort label-6318
SELECT - COUNT ( - + 66 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6319
SELECT COUNT( * ) - - 58
----
59

skipif mysql # not compatible
query I rowsort label-6319
SELECT COUNT ( * ) - - 58
----
59

query I rowsort
SELECT ALL 31 * - 65 col1
----
-2015

onlyif mysql # aggregate syntax: 
query I rowsort label-6321
SELECT ALL - - COUNT( * ) + - 76
----
-75

skipif mysql # not compatible
query I rowsort label-6321
SELECT ALL - - COUNT ( * ) + - 76
----
-75

query I rowsort
SELECT ALL - 46 - - - 86 AS col0
----
-132

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6323
SELECT 80 + - 45 + - - 33 + + - CAST( NULL AS DECIMAL ) - + COUNT( * ) * + COUNT( * ) * + + 12 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6323
SELECT 80 + - 45 + - - 33 + + - CAST ( NULL AS REAL ) - + COUNT ( * ) * + COUNT ( * ) * + + 12 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - ( - - 89 )
----
-89

query I rowsort
SELECT + 4 + + - ( + 19 )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-6326
SELECT - COUNT( ALL + 69 )
----
-1

skipif mysql # not compatible
query I rowsort label-6326
SELECT - COUNT ( ALL + 69 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6327
SELECT DISTINCT - 70 * COUNT( * )
----
-70

skipif mysql # not compatible
query I rowsort label-6327
SELECT DISTINCT - 70 * COUNT ( * )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-6328
SELECT DISTINCT - SUM( DISTINCT 11 ) * 68 AS col0
----
-748

skipif mysql # not compatible
query I rowsort label-6328
SELECT DISTINCT - SUM ( DISTINCT 11 ) * 68 AS col0
----
-748

onlyif mysql # aggregate syntax: 
query I rowsort label-6329
SELECT + 30 + MIN( 95 ) AS col1
----
125

skipif mysql # not compatible
query I rowsort label-6329
SELECT + 30 + MIN ( 95 ) AS col1
----
125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6330
SELECT - - CAST( NULL AS SIGNED ) + + 76 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6330
SELECT - - CAST ( NULL AS INTEGER ) + + 76 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6331
SELECT + COUNT( * ) + - COUNT( * ) + + - 4
----
-4

skipif mysql # not compatible
query I rowsort label-6331
SELECT + COUNT ( * ) + - COUNT ( * ) + + - 4
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-6332
SELECT ALL - MAX( 12 ) + + 16 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-6332
SELECT ALL - MAX ( 12 ) + + 16 AS col2
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6333
SELECT - CAST( - 80 AS SIGNED )
----
80

skipif mysql # not compatible
query I rowsort label-6333
SELECT - CAST ( - 80 AS INTEGER )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6334
SELECT COUNT( DISTINCT - 87 ) * 59
----
59

skipif mysql # not compatible
query I rowsort label-6334
SELECT COUNT ( DISTINCT - 87 ) * 59
----
59

query I rowsort
SELECT DISTINCT 84 + 5
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-6336
SELECT ALL + + 23 * - COUNT( * ) * 35 AS col1
----
-805

skipif mysql # not compatible
query I rowsort label-6336
SELECT ALL + + 23 * - COUNT ( * ) * 35 AS col1
----
-805

onlyif mysql # aggregate syntax: 
query I rowsort label-6337
SELECT DISTINCT - COUNT( * ) * - ( 49 ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-6337
SELECT DISTINCT - COUNT ( * ) * - ( 49 ) AS col0
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6338
SELECT NULLIF ( + COUNT( * ), + CAST( NULL AS SIGNED ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6338
SELECT NULLIF ( + COUNT ( * ), + CAST ( NULL AS INTEGER ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6339
SELECT MAX( DISTINCT - 84 ) col1
----
-84

skipif mysql # not compatible
query I rowsort label-6339
SELECT MAX ( DISTINCT - 84 ) col1
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-6340
SELECT - 98 * 61 - - 22 * - COUNT( * ) col0
----
-6000

skipif mysql # not compatible
query I rowsort label-6340
SELECT - 98 * 61 - - 22 * - COUNT ( * ) col0
----
-6000

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6341
SELECT ALL + CAST( NULL AS SIGNED ) - - 7 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6341
SELECT ALL + CAST ( NULL AS INTEGER ) - - 7 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6342
SELECT DISTINCT MIN( - 43 )
----
-43

skipif mysql # not compatible
query I rowsort label-6342
SELECT DISTINCT MIN ( - 43 )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-6343
SELECT - 13 - COUNT( * ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-6343
SELECT - 13 - COUNT ( * ) AS col0
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6344
SELECT - ( - - 79 ) DIV COUNT( * ) AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-6344
SELECT - ( - - 79 ) / COUNT ( * ) AS col0
----
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-6345
SELECT ALL + MIN( + + 53 ) AS col1, + 8 * 13 col0
----
53
104

skipif mysql # not compatible
query II rowsort label-6345
SELECT ALL + MIN ( + + 53 ) AS col1, + 8 * 13 col0
----
53
104

onlyif mysql # aggregate syntax: 
query I rowsort label-6346
SELECT + COALESCE ( + COUNT( * ), + - 24 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6346
SELECT + COALESCE ( + COUNT ( * ), + - 24 ) AS col1
----
1

query I rowsort
SELECT ALL + 70 col0
----
70

query I rowsort
SELECT 37 * + 99 AS col1
----
3663

query I rowsort
SELECT 25 * - 10 AS col1
----
-250

query I rowsort
SELECT DISTINCT ( + - 35 ) col2
----
-35

query I rowsort
SELECT - + 16 col0
----
-16

query I rowsort
SELECT - + 65 col2
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6353
SELECT ALL - 98, CAST( NULL AS SIGNED ) AS col0
----
-98
NULL

skipif mysql # not compatible
query II rowsort label-6353
SELECT ALL - 98, CAST ( NULL AS INTEGER ) AS col0
----
-98
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6354
SELECT ALL - COUNT( * ) * + CAST( NULL AS SIGNED ) - + + CAST( + 88 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6354
SELECT ALL - COUNT ( * ) * + CAST ( NULL AS INTEGER ) - + + CAST ( + 88 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6355
SELECT - 88 + COUNT( * ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-6355
SELECT - 88 + COUNT ( * ) AS col2
----
-87

query I rowsort
SELECT - COALESCE ( + - 74, - 91 ) AS col2
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6357
SELECT CAST( 98 AS SIGNED ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-6357
SELECT CAST ( 98 AS INTEGER ) AS col0
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6358
SELECT + 13 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6358
SELECT + 13 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6359
SELECT - + ( - COUNT( * ) ) * + - 59 AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-6359
SELECT - + ( - COUNT ( * ) ) * + - 59 AS col0
----
-59

query I rowsort
SELECT ( - 35 ) AS col0
----
-35

query I rowsort
SELECT 18 + - ( - 29 )
----
47

query I rowsort
SELECT 68 + 57 + + - 29 AS col0
----
96

query I rowsort
SELECT ALL - 73 col2
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6364
SELECT + CAST( 77 AS SIGNED )
----
77

skipif mysql # not compatible
query I rowsort label-6364
SELECT + CAST ( 77 AS INTEGER )
----
77

query I rowsort
SELECT + - 62 AS col1
----
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-6366
SELECT ALL + + MIN( + ( + 82 ) ) - 79 AS col0, 15
----
3
15

skipif mysql # not compatible
query II rowsort label-6366
SELECT ALL + + MIN ( + ( + 82 ) ) - 79 AS col0, 15
----
3
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6367
SELECT + 34 * - CAST( NULL AS SIGNED ) * COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6367
SELECT + 34 * - CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT - + 34 AS col1
----
-34

query I rowsort
SELECT ( - 22 ) AS col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-6370
SELECT - COUNT( * ) * - 26 AS col1
----
26

skipif mysql # not compatible
query I rowsort label-6370
SELECT - COUNT ( * ) * - 26 AS col1
----
26

query I rowsort
SELECT ALL + - ( 88 )
----
-88

query I rowsort
SELECT DISTINCT + - 75
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6373
SELECT DISTINCT 88 DIV - - MAX( + 12 )
----
7

skipif mysql # not compatible
query I rowsort label-6373
SELECT DISTINCT 88 / - - MAX ( + 12 )
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6374
SELECT - - CAST( NULL AS SIGNED ) / - 46 + + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6374
SELECT - - CAST ( NULL AS INTEGER ) / - 46 + + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT ALL - - 4 col2
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6376
SELECT - + COUNT( * ) * - - CAST( NULL AS DECIMAL ) + + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6376
SELECT - + COUNT ( * ) * - - CAST ( NULL AS REAL ) + + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6377
SELECT DISTINCT MAX( ALL + + 37 )
----
37

skipif mysql # not compatible
query I rowsort label-6377
SELECT DISTINCT MAX ( ALL + + 37 )
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6378
SELECT - COUNT( * ) DIV - 8 AS col2, 73
----
0
73

skipif mysql # not compatible
query II rowsort label-6378
SELECT - COUNT ( * ) / - 8 AS col2, 73
----
0
73

query I rowsort
SELECT ALL + 31 + + 18 AS col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-6380
SELECT - + COUNT( * ) + - + 69
----
-70

skipif mysql # not compatible
query I rowsort label-6380
SELECT - + COUNT ( * ) + - + 69
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-6381
SELECT ALL + - MAX( DISTINCT + 97 )
----
-97

skipif mysql # not compatible
query I rowsort label-6381
SELECT ALL + - MAX ( DISTINCT + 97 )
----
-97

query I rowsort
SELECT 61 col2
----
61

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6383
SELECT ALL + - COUNT( * ) / + - CAST( NULL AS DECIMAL ) AS col0, 42 AS col0
----
NULL
42

skipif mysql # not compatible
query II rowsort label-6383
SELECT ALL + - COUNT ( * ) / + - CAST ( NULL AS REAL ) AS col0, 42 AS col0
----
NULL
42

onlyif mysql # aggregate syntax: 
query I rowsort label-6384
SELECT ALL + SUM( ALL 20 ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-6384
SELECT ALL + SUM ( ALL 20 ) AS col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6385
SELECT + COUNT( * ) * + 72
----
72

skipif mysql # not compatible
query I rowsort label-6385
SELECT + COUNT ( * ) * + 72
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6386
SELECT 28 + + CAST( ( - COUNT( * ) ) AS SIGNED )
----
27

skipif mysql # not compatible
query I rowsort label-6386
SELECT 28 + + CAST ( ( - COUNT ( * ) ) AS INTEGER )
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6387
SELECT DISTINCT - ( - COUNT( * ) ) + + AVG ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6387
SELECT DISTINCT - ( - COUNT ( * ) ) + + AVG ( CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT 87 + + 16 AS col2
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-6389
SELECT DISTINCT - 22 + 32 * - COUNT( * ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-6389
SELECT DISTINCT - 22 + 32 * - COUNT ( * ) AS col1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-6390
SELECT 53 * - COUNT( * )
----
-53

skipif mysql # not compatible
query I rowsort label-6390
SELECT 53 * - COUNT ( * )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-6391
SELECT 58 * + COUNT( * ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-6391
SELECT 58 * + COUNT ( * ) AS col1
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6392
SELECT ALL - + COUNT( * ) * + NULLIF ( COUNT( * ) DIV COUNT( * ), 59 + - CAST( NULL AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6392
SELECT ALL - + COUNT ( * ) * + NULLIF ( COUNT ( * ) / COUNT ( * ), 59 + - CAST ( NULL AS INTEGER ) )
----
-1

query I rowsort
SELECT DISTINCT + ( 78 )
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6394
SELECT AVG ( DISTINCT CAST( NULL AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6394
SELECT AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6395
SELECT - COUNT( * ) + + 2 col1
----
1

skipif mysql # not compatible
query I rowsort label-6395
SELECT - COUNT ( * ) + + 2 col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6396
SELECT - + COUNT( ALL + 27 ) + 99 * + 37
----
3662

skipif mysql # not compatible
query I rowsort label-6396
SELECT - + COUNT ( ALL + 27 ) + 99 * + 37
----
3662

onlyif mysql # aggregate syntax: 
query I rowsort label-6397
SELECT + - ( + 58 ) + - MIN( DISTINCT 84 )
----
-142

skipif mysql # not compatible
query I rowsort label-6397
SELECT + - ( + 58 ) + - MIN ( DISTINCT 84 )
----
-142

query I rowsort
SELECT ALL + 56 * 30 + 31
----
1711

query I rowsort
SELECT ALL 49 * - 27
----
-1323

onlyif mysql # aggregate syntax: 
query I rowsort label-6400
SELECT DISTINCT COUNT( * ) * + - COUNT( * ) + - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-6400
SELECT DISTINCT COUNT ( * ) * + - COUNT ( * ) + - COUNT ( * )
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6401
SELECT - MIN( DISTINCT - 5 ) DIV + 66
----
0

skipif mysql # not compatible
query I rowsort label-6401
SELECT - MIN ( DISTINCT - 5 ) / + 66
----
0

query I rowsort
SELECT - 7 + - 94
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-6403
SELECT ALL + SUM( - 69 ) col1
----
-69

skipif mysql # not compatible
query I rowsort label-6403
SELECT ALL + SUM ( - 69 ) col1
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-6404
SELECT - ( + ( + COUNT( * ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6404
SELECT - ( + ( + COUNT ( * ) ) )
----
-1

query I rowsort
SELECT - ( + 27 ) + - 11
----
-38

query I rowsort
SELECT ALL - 67 AS col2
----
-67

query I rowsort
SELECT ( - 31 ) * - 65 AS col1
----
2015

query I rowsort
SELECT 87 - + + 14
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-6409
SELECT DISTINCT - COUNT( DISTINCT - - 96 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-6409
SELECT DISTINCT - COUNT ( DISTINCT - - 96 ) col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6410
SELECT ALL COUNT( + CAST( 36 AS SIGNED ) ) + + 68 col1
----
69

skipif mysql # not compatible
query I rowsort label-6410
SELECT ALL COUNT ( + CAST ( 36 AS INTEGER ) ) + + 68 col1
----
69

query I rowsort
SELECT + + 52 col2
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6412
SELECT ALL + CAST( NULL AS SIGNED ) + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6412
SELECT ALL + CAST ( NULL AS INTEGER ) + + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 38 * 56
----
2128

onlyif mysql # aggregate syntax: 
query I rowsort label-6414
SELECT ALL + + COUNT( * ) * COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6414
SELECT ALL + + COUNT ( * ) * COUNT ( * ) AS col1
----
1

query I rowsort
SELECT - 90 - - - 8 * + 64 col1
----
-602

query II rowsort
SELECT ALL 15, + 11 AS col0
----
15
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6417
SELECT ALL MIN( DISTINCT - 75 )
----
-75

skipif mysql # not compatible
query I rowsort label-6417
SELECT ALL MIN ( DISTINCT - 75 )
----
-75

query I rowsort
SELECT DISTINCT 19 * + - 54 AS col1
----
-1026

onlyif mysql # aggregate syntax: 
query II rowsort label-6419
SELECT ALL COUNT( * ) col1, - COUNT( * )
----
1
-1

skipif mysql # not compatible
query II rowsort label-6419
SELECT ALL COUNT ( * ) col1, - COUNT ( * )
----
1
-1

query I rowsort
SELECT DISTINCT + ( - 54 ) col2
----
-54

query I rowsort
SELECT ALL 33 * - 1 AS col2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-6422
SELECT ALL 93 * 50 + + COUNT( * )
----
4651

skipif mysql # not compatible
query I rowsort label-6422
SELECT ALL 93 * 50 + + COUNT ( * )
----
4651

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6423
SELECT - ( MAX( CAST( NULL AS SIGNED ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6423
SELECT - ( MAX ( CAST ( NULL AS INTEGER ) ) ) AS col0
----
NULL

query I rowsort
SELECT ALL ( 86 ) * + 42
----
3612

onlyif mysql # aggregate syntax: 
query I rowsort label-6425
SELECT - 35 * 56 * + - COUNT( * )
----
1960

skipif mysql # not compatible
query I rowsort label-6425
SELECT - 35 * 56 * + - COUNT ( * )
----
1960

query I rowsort
SELECT + + ( 18 )
----
18

query I rowsort
SELECT - 2 col1
----
-2

query I rowsort
SELECT DISTINCT + 49 * ( - + 32 )
----
-1568

query I rowsort
SELECT DISTINCT 1 + - ( 25 )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-6430
SELECT - MIN( 22 ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-6430
SELECT - MIN ( 22 ) AS col2
----
-22

query I rowsort
SELECT ALL - - 91 AS col1
----
91

query I rowsort
SELECT 8 col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6433
SELECT ALL SUM( DISTINCT 5 )
----
5

skipif mysql # not compatible
query I rowsort label-6433
SELECT ALL SUM ( DISTINCT 5 )
----
5

query I rowsort
SELECT 31 * 8 AS col2
----
248

onlyif mysql # aggregate syntax: 
query I rowsort label-6435
SELECT ALL + - ( - MAX( DISTINCT 83 ) )
----
83

skipif mysql # not compatible
query I rowsort label-6435
SELECT ALL + - ( - MAX ( DISTINCT 83 ) )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-6436
SELECT - ( ( - + MAX( ALL + - 83 ) ) ) col1
----
-83

skipif mysql # not compatible
query I rowsort label-6436
SELECT - ( ( - + MAX ( ALL + - 83 ) ) ) col1
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-6437
SELECT DISTINCT + + 21 * + COUNT( * ) + 48 AS col2
----
69

skipif mysql # not compatible
query I rowsort label-6437
SELECT DISTINCT + + 21 * + COUNT ( * ) + 48 AS col2
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-6438
SELECT - - 23 DIV - - 62
----
0

skipif mysql # not compatible
query I rowsort label-6438
SELECT - - 23 / - - 62
----
0

query II rowsort
SELECT + - 0 AS col0, 14 AS col0
----
0
14

query I rowsort
SELECT ( + 87 ) AS col2
----
87

query I rowsort
SELECT - ( - 60 ) AS col1
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6442
SELECT ALL 8 AS col0, COALESCE ( 20, - - CAST( NULL AS SIGNED ) )
----
8
20

skipif mysql # not compatible
query II rowsort label-6442
SELECT ALL 8 AS col0, COALESCE ( 20, - - CAST ( NULL AS INTEGER ) )
----
8
20

query II rowsort
SELECT ALL - 87 AS col0, - 31 AS col1
----
-87
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6444
SELECT - CAST( 32 AS SIGNED ) AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-6444
SELECT - CAST ( 32 AS INTEGER ) AS col2
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-6445
SELECT ALL + MAX( 65 )
----
65

skipif mysql # not compatible
query I rowsort label-6445
SELECT ALL + MAX ( 65 )
----
65

query I rowsort
SELECT - 87 * - 58 AS col2
----
5046

onlyif mysql # aggregate syntax: 
query II rowsort label-6447
SELECT DISTINCT - - 2 col1, - MIN( + 64 ) AS col2
----
2
-64

skipif mysql # not compatible
query II rowsort label-6447
SELECT DISTINCT - - 2 col1, - MIN ( + 64 ) AS col2
----
2
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-6448
SELECT ALL - + COUNT( 79 ) * - 4
----
4

skipif mysql # not compatible
query I rowsort label-6448
SELECT ALL - + COUNT ( 79 ) * - 4
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6449
SELECT COUNT( * ) * + - ( - 72 )
----
72

skipif mysql # not compatible
query I rowsort label-6449
SELECT COUNT ( * ) * + - ( - 72 )
----
72

query I rowsort
SELECT DISTINCT 26 col0
----
26

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6451
SELECT + CAST( NULL AS DECIMAL ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6451
SELECT + CAST ( NULL AS REAL ) + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - - 22 col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6453
SELECT + COUNT( * ) * 10
----
10

skipif mysql # not compatible
query I rowsort label-6453
SELECT + COUNT ( * ) * 10
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-6454
SELECT COUNT( * ) AS col1, ( - 0 )
----
1
0

skipif mysql # not compatible
query II rowsort label-6454
SELECT COUNT ( * ) AS col1, ( - 0 )
----
1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6455
SELECT + MIN( DISTINCT - 10 ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-6455
SELECT + MIN ( DISTINCT - 10 ) AS col1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-6456
SELECT COUNT( * ) * COUNT( * ) + + + 52 AS col2
----
53

skipif mysql # not compatible
query I rowsort label-6456
SELECT COUNT ( * ) * COUNT ( * ) + + + 52 AS col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-6457
SELECT + 96 * COUNT( * )
----
96

skipif mysql # not compatible
query I rowsort label-6457
SELECT + 96 * COUNT ( * )
----
96

query I rowsort
SELECT + 78 + - + ( - 6 )
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6459
SELECT ALL CAST( NULL AS SIGNED ) / + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6459
SELECT ALL CAST ( NULL AS INTEGER ) / + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6460
SELECT ALL - COUNT( DISTINCT + - 85 )
----
-1

skipif mysql # not compatible
query I rowsort label-6460
SELECT ALL - COUNT ( DISTINCT + - 85 )
----
-1

query I rowsort
SELECT ALL 38 + - 88 col1
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6462
SELECT CAST( 99 AS SIGNED )
----
99

skipif mysql # not compatible
query I rowsort label-6462
SELECT CAST ( 99 AS INTEGER )
----
99

query I rowsort
SELECT DISTINCT 61 col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-6464
SELECT ( + - 39 ) * + ( SUM( DISTINCT + 80 ) ) col2
----
-3120

skipif mysql # not compatible
query I rowsort label-6464
SELECT ( + - 39 ) * + ( SUM ( DISTINCT + 80 ) ) col2
----
-3120

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6465
SELECT + 46, ( - + CAST( NULL AS SIGNED ) ) col1
----
46
NULL

skipif mysql # not compatible
query II rowsort label-6465
SELECT + 46, ( - + CAST ( NULL AS INTEGER ) ) col1
----
46
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6466
SELECT + CAST( + + ( - ( + COUNT( * ) ) ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-6466
SELECT + CAST ( + + ( - ( + COUNT ( * ) ) ) AS INTEGER )
----
-1

query I rowsort
SELECT 94 + - 89 * + 9
----
-707

onlyif mysql # aggregate syntax: 
query I rowsort label-6468
SELECT - COUNT( * ) + + 84
----
83

skipif mysql # not compatible
query I rowsort label-6468
SELECT - COUNT ( * ) + + 84
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-6469
SELECT ALL - 74 + COUNT( * ) * - 90
----
-164

skipif mysql # not compatible
query I rowsort label-6469
SELECT ALL - 74 + COUNT ( * ) * - 90
----
-164

onlyif mysql # aggregate syntax: 
query I rowsort label-6470
SELECT ALL - COUNT( * ) * + 72 + - 44
----
-116

skipif mysql # not compatible
query I rowsort label-6470
SELECT ALL - COUNT ( * ) * + 72 + - 44
----
-116

onlyif mysql # aggregate syntax: 
query I rowsort label-6471
SELECT + NULLIF ( COUNT( * ), 37 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6471
SELECT + NULLIF ( COUNT ( * ), 37 ) AS col1
----
1

query I rowsort
SELECT ALL + + 83 AS col1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-6473
SELECT SUM( ALL 62 )
----
62

skipif mysql # not compatible
query I rowsort label-6473
SELECT SUM ( ALL 62 )
----
62

query I rowsort
SELECT + 1 + + 94 col2
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-6475
SELECT - COUNT( * ) - + 97 AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-6475
SELECT - COUNT ( * ) - + 97 AS col2
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6476
SELECT - CAST( 51 AS SIGNED )
----
-51

skipif mysql # not compatible
query I rowsort label-6476
SELECT - CAST ( 51 AS INTEGER )
----
-51

query I rowsort
SELECT ALL - 34 + - 19 AS col1
----
-53

query I rowsort
SELECT ALL 59 + - ( - 50 )
----
109

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6479
SELECT CAST( NULL AS SIGNED ) + + + 47 AS col0, - 3 AS col1
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-6479
SELECT CAST ( NULL AS INTEGER ) + + + 47 AS col0, - 3 AS col1
----
NULL
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-6480
SELECT 56 AS col2, - COUNT( * )
----
56
-1

skipif mysql # not compatible
query II rowsort label-6480
SELECT 56 AS col2, - COUNT ( * )
----
56
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6481
SELECT COUNT( * ) * + - 34 AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-6481
SELECT COUNT ( * ) * + - 34 AS col1
----
-34

query I rowsort
SELECT ALL ( - 8 ) * ( 43 )
----
-344

query I rowsort
SELECT + ( - 25 ) + - 53
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-6484
SELECT DISTINCT - COUNT( * ) + - 56
----
-57

skipif mysql # not compatible
query I rowsort label-6484
SELECT DISTINCT - COUNT ( * ) + - 56
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6485
SELECT ( + ( + - CAST( NULL AS SIGNED ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6485
SELECT ( + ( + - CAST ( NULL AS INTEGER ) ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6486
SELECT DISTINCT + SUM( DISTINCT CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6486
SELECT DISTINCT + SUM ( DISTINCT CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6487
SELECT - + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6487
SELECT - + CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 74 * + + 69
----
-5106

query II rowsort
SELECT ALL - 36, 73 col1
----
-36
73

query I rowsort
SELECT ALL - ( - 63 )
----
63

query I rowsort
SELECT 26 * + ( + 7 ) * + ( - 84 )
----
-15288

onlyif mysql # aggregate syntax: 
query I rowsort label-6492
SELECT DISTINCT 88 * + COUNT( * )
----
88

skipif mysql # not compatible
query I rowsort label-6492
SELECT DISTINCT 88 * + COUNT ( * )
----
88

query I rowsort
SELECT DISTINCT + 84 + + 0 AS col0
----
84

query I rowsort
SELECT - ( 42 )
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6495
SELECT AVG ( - - 68 ) + - - MAX( ALL - 53 ) * - CAST( NULL AS SIGNED ) + - + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-6495
SELECT AVG ( - - 68 ) + - - MAX ( ALL - 53 ) * - CAST ( NULL AS INTEGER ) + - + 79
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6496
SELECT + 37 + + 5 + - 82 * - COUNT( * ) col1
----
124

skipif mysql # not compatible
query I rowsort label-6496
SELECT + 37 + + 5 + - 82 * - COUNT ( * ) col1
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-6497
SELECT COUNT( * ) * - 97 * - COUNT( * ) * - 20 AS col1
----
-1940

skipif mysql # not compatible
query I rowsort label-6497
SELECT COUNT ( * ) * - 97 * - COUNT ( * ) * - 20 AS col1
----
-1940

query I rowsort
SELECT DISTINCT + + 64 - + 67 AS col2
----
-3

query I rowsort
SELECT + + 5 * 43
----
215

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6500
SELECT ALL CAST( NULL AS SIGNED ) / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6500
SELECT ALL CAST ( NULL AS INTEGER ) / COUNT ( * )
----
NULL

query I rowsort
SELECT + 10 + - 20 + - 69
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6502
SELECT ALL CAST( NULL AS SIGNED ) * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6502
SELECT ALL CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6503
SELECT ALL - + COUNT( * ) + - 70
----
-71

skipif mysql # not compatible
query I rowsort label-6503
SELECT ALL - + COUNT ( * ) + - 70
----
-71

query I rowsort
SELECT DISTINCT 4 col0
----
4

query I rowsort
SELECT 0 - - 14
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6506
SELECT + MIN( - - CAST( - 53 AS SIGNED ) )
----
-53

skipif mysql # not compatible
query I rowsort label-6506
SELECT + MIN ( - - CAST ( - 53 AS INTEGER ) )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-6507
SELECT DISTINCT - + MIN( ALL 44 )
----
-44

skipif mysql # not compatible
query I rowsort label-6507
SELECT DISTINCT - + MIN ( ALL 44 )
----
-44

query I rowsort
SELECT DISTINCT - + 80 col1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-6509
SELECT DISTINCT COUNT( ( - - 8 ) )
----
1

skipif mysql # not compatible
query I rowsort label-6509
SELECT DISTINCT COUNT ( ( - - 8 ) )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6510
SELECT DISTINCT COUNT( * ) AS col2, + 73
----
1
73

skipif mysql # not compatible
query II rowsort label-6510
SELECT DISTINCT COUNT ( * ) AS col2, + 73
----
1
73

onlyif mysql # aggregate syntax: 
query I rowsort label-6511
SELECT DISTINCT COUNT( + 11 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6511
SELECT DISTINCT COUNT ( + 11 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6512
SELECT ALL + CAST( CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6512
SELECT ALL + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6513
SELECT ALL SUM( ALL - 23 ) * + - 80
----
1840

skipif mysql # not compatible
query I rowsort label-6513
SELECT ALL SUM ( ALL - 23 ) * + - 80
----
1840

query I rowsort
SELECT ALL 28 col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6515
SELECT - COUNT( ALL + 48 )
----
-1

skipif mysql # not compatible
query I rowsort label-6515
SELECT - COUNT ( ALL + 48 )
----
-1

query I rowsort
SELECT ALL + - 47 AS col0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-6517
SELECT DISTINCT - COALESCE ( 13, COUNT( * ) )
----
-13

skipif mysql # not compatible
query I rowsort label-6517
SELECT DISTINCT - COALESCE ( 13, COUNT ( * ) )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-6518
SELECT 45 + + COUNT( * ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-6518
SELECT 45 + + COUNT ( * ) AS col2
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6519
SELECT COUNT( ALL + - 60 ) - + ( 82 ) DIV 57 col2
----
0

skipif mysql # not compatible
query I rowsort label-6519
SELECT COUNT ( ALL + - 60 ) - + ( 82 ) / 57 col2
----
0

query I rowsort
SELECT ALL 81 + + + 83
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-6521
SELECT ALL + COUNT( * ) + 77 * 1 AS col1
----
78

skipif mysql # not compatible
query I rowsort label-6521
SELECT ALL + COUNT ( * ) + 77 * 1 AS col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6522
SELECT ALL + + COUNT( * ) * + 27
----
27

skipif mysql # not compatible
query I rowsort label-6522
SELECT ALL + + COUNT ( * ) * + 27
----
27

query II rowsort
SELECT 48 AS col1, ( + + 72 ) AS col0
----
48
72

query II rowsort
SELECT ALL - - 65 AS col0, 15 AS col0
----
65
15

onlyif mysql # DIV for integer division: 
query I rowsort label-6525
SELECT ALL 57 DIV 21 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-6525
SELECT ALL 57 / 21 AS col0
----
2

query I rowsort
SELECT ALL + NULLIF ( + - 55, - + 77 )
----
-55

query I rowsort
SELECT DISTINCT - - 76 * + 67 AS col2
----
5092

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6528
SELECT + CAST( NULL AS SIGNED ) + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6528
SELECT + CAST ( NULL AS INTEGER ) + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6529
SELECT ALL + COUNT( * ) AS col1, - 74 AS col2
----
1
-74

skipif mysql # not compatible
query II rowsort label-6529
SELECT ALL + COUNT ( * ) AS col1, - 74 AS col2
----
1
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-6530
SELECT ( + + COUNT( 49 ) ) + - 83
----
-82

skipif mysql # not compatible
query I rowsort label-6530
SELECT ( + + COUNT ( 49 ) ) + - 83
----
-82

query I rowsort
SELECT DISTINCT - ( + - 23 )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6532
SELECT COUNT( * ) * - ( - + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-6532
SELECT COUNT ( * ) * - ( - + COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6533
SELECT ALL 22 * - - COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-6533
SELECT ALL 22 * - - COUNT ( * )
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-6534
SELECT ALL COUNT( DISTINCT + 54 ) AS col1, - 39
----
1
-39

skipif mysql # not compatible
query II rowsort label-6534
SELECT ALL COUNT ( DISTINCT + 54 ) AS col1, - 39
----
1
-39

query I rowsort
SELECT ALL + - 6 + 77 col2
----
71

query I rowsort
SELECT - - 97 AS col0
----
97

query I rowsort
SELECT ALL + 97 + 21
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-6538
SELECT DISTINCT + 39 + COUNT( * ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-6538
SELECT DISTINCT + 39 + COUNT ( * ) AS col0
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-6539
SELECT DISTINCT - 92 DIV - 12
----
7

skipif mysql # not compatible
query I rowsort label-6539
SELECT DISTINCT - 92 / - 12
----
7

query I rowsort
SELECT ALL + 82 * + 79 + - 90 AS col1
----
6388

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6541
SELECT + CAST( NULL AS SIGNED ) + - COUNT( 28 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6541
SELECT + CAST ( NULL AS INTEGER ) + - COUNT ( 28 ) AS col0
----
NULL

query I rowsort
SELECT - ( 36 ) AS col2
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-6543
SELECT + COUNT( ALL + + 29 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6543
SELECT + COUNT ( ALL + + 29 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6544
SELECT 1 * - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-6544
SELECT 1 * - COUNT ( * )
----
-1

query I rowsort
SELECT ALL - ( + 77 )
----
-77

query I rowsort
SELECT 98 + 85 AS col0
----
183

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6547
SELECT DISTINCT COUNT( * ) * + CAST( + - COUNT( * ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-6547
SELECT DISTINCT COUNT ( * ) * + CAST ( + - COUNT ( * ) AS INTEGER )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6548
SELECT + + COUNT( DISTINCT - + 27 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6548
SELECT + + COUNT ( DISTINCT - + 27 ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6549
SELECT ALL + + MAX( - 30 ) DIV - 47 * - MAX( 94 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6549
SELECT ALL + + MAX ( - 30 ) / - 47 * - MAX ( 94 ) AS col2
----
0

query I rowsort
SELECT - - ( + 72 ) AS col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6551
SELECT ALL ( + ( COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-6551
SELECT ALL ( + ( COUNT ( * ) ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6552
SELECT ALL + COUNT( * ) * + 62
----
62

skipif mysql # not compatible
query I rowsort label-6552
SELECT ALL + COUNT ( * ) * + 62
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6553
SELECT DISTINCT MIN( - 85 ) AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-6553
SELECT DISTINCT MIN ( - 85 ) AS col2
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6554
SELECT ALL CAST( NULL AS SIGNED ) * + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-6554
SELECT ALL CAST ( NULL AS INTEGER ) * + 35
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6555
SELECT + COUNT( * ) * - 66
----
-66

skipif mysql # not compatible
query I rowsort label-6555
SELECT + COUNT ( * ) * - 66
----
-66

query I rowsort
SELECT ALL + - 19 AS col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-6557
SELECT + COUNT( * ) * - - 9 + - - 64 * 37 + - + COUNT( * ) AS col0
----
2376

skipif mysql # not compatible
query I rowsort label-6557
SELECT + COUNT ( * ) * - - 9 + - - 64 * 37 + - + COUNT ( * ) AS col0
----
2376

onlyif mysql # aggregate syntax: 
query I rowsort label-6558
SELECT + - MAX( + 28 ) col1
----
-28

skipif mysql # not compatible
query I rowsort label-6558
SELECT + - MAX ( + 28 ) col1
----
-28

query I rowsort
SELECT ALL 54 * 14
----
756

query I rowsort
SELECT - ( 99 ) AS col0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6561
SELECT CASE CAST( NULL AS SIGNED ) WHEN + 79 + - CAST( NULL AS SIGNED ) THEN - - 82 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6561
SELECT CASE CAST ( NULL AS INTEGER ) WHEN + 79 + - CAST ( NULL AS INTEGER ) THEN - - 82 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6562
SELECT DISTINCT 5 + - + COUNT( * ) col1
----
4

skipif mysql # not compatible
query I rowsort label-6562
SELECT DISTINCT 5 + - + COUNT ( * ) col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6563
SELECT 97 - - COUNT( + 55 )
----
98

skipif mysql # not compatible
query I rowsort label-6563
SELECT 97 - - COUNT ( + 55 )
----
98

query I rowsort
SELECT 32 * - 68
----
-2176

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6565
SELECT ALL COUNT( * ) AS col1, - 6 DIV + + 93 AS col0
----
1
0

skipif mysql # not compatible
query II rowsort label-6565
SELECT ALL COUNT ( * ) AS col1, - 6 / + + 93 AS col0
----
1
0

query I rowsort
SELECT + 98 * + 25
----
2450

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6567
SELECT 8 + 67 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6567
SELECT 8 + 67 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6568
SELECT DISTINCT 89 * - COUNT( * ) AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-6568
SELECT DISTINCT 89 * - COUNT ( * ) AS col0
----
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-6569
SELECT COUNT( * ) AS col2, COUNT( * ) AS col2
----
1
1

skipif mysql # not compatible
query II rowsort label-6569
SELECT COUNT ( * ) AS col2, COUNT ( * ) AS col2
----
1
1

query II rowsort
SELECT - 78, 17 AS col2
----
-78
17

query I rowsort
SELECT DISTINCT 22 col0
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6572
SELECT ALL 35 / - 6 - + CAST( NULL AS SIGNED ) + - + COUNT( * ) * - 81 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6572
SELECT ALL 35 / - 6 - + CAST ( NULL AS INTEGER ) + - + COUNT ( * ) * - 81 AS col1
----
NULL

query I rowsort
SELECT + ( - 94 ) AS col0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-6574
SELECT - SUM( DISTINCT + 99 ) * - - 50
----
-4950

skipif mysql # not compatible
query I rowsort label-6574
SELECT - SUM ( DISTINCT + 99 ) * - - 50
----
-4950

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6575
SELECT DISTINCT - 92 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6575
SELECT DISTINCT - 92 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6576
SELECT ALL - - SUM( ALL - 76 ) + + - 93 AS col0
----
-169

skipif mysql # not compatible
query I rowsort label-6576
SELECT ALL - - SUM ( ALL - 76 ) + + - 93 AS col0
----
-169

query I rowsort
SELECT ALL + ( 44 ) AS col1
----
44

query I rowsort
SELECT - 74 * 89 AS col1
----
-6586

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6579
SELECT - ( - + 87 ) / 97 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6579
SELECT - ( - + 87 ) / 97 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL ( - + 12 ) + - 51 AS col1
----
-63

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6581
SELECT ( + CAST( NULL AS DECIMAL ) ) * + 41 + - + CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6581
SELECT ( + CAST ( NULL AS REAL ) ) * + 41 + - + CAST ( NULL AS REAL ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6582
SELECT ALL - + COUNT( ALL CAST( NULL AS SIGNED ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6582
SELECT ALL - + COUNT ( ALL CAST ( NULL AS INTEGER ) ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6583
SELECT ALL + COUNT( * ) * + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6583
SELECT ALL + COUNT ( * ) * + COUNT ( * ) AS col1
----
1

query I rowsort
SELECT - - 31 col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6585
SELECT MAX( DISTINCT + - 38 )
----
-38

skipif mysql # not compatible
query I rowsort label-6585
SELECT MAX ( DISTINCT + - 38 )
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6586
SELECT 26 DIV + COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-6586
SELECT 26 / + COUNT ( * )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-6587
SELECT ALL - COUNT( * ) + - 25 AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-6587
SELECT ALL - COUNT ( * ) + - 25 AS col1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-6588
SELECT SUM( DISTINCT + 7 ) col1
----
7

skipif mysql # not compatible
query I rowsort label-6588
SELECT SUM ( DISTINCT + 7 ) col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6589
SELECT COUNT( DISTINCT - 63 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6589
SELECT COUNT ( DISTINCT - 63 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6590
SELECT DISTINCT - CAST( - - CAST( - + COUNT( ALL 50 ) AS SIGNED ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6590
SELECT DISTINCT - CAST ( - - CAST ( - + COUNT ( ALL 50 ) AS INTEGER ) AS INTEGER ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6591
SELECT - ( - COUNT( * ) ) * + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6591
SELECT - ( - COUNT ( * ) ) * + COUNT ( * ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6592
SELECT ALL MIN( 0 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6592
SELECT ALL MIN ( 0 ) AS col0
----
0

query II rowsort
SELECT ALL 37, 74 AS col0
----
37
74

query I rowsort
SELECT - - 94 AS col1
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6595
SELECT ALL CAST( NULL AS SIGNED ) + - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-6595
SELECT ALL CAST ( NULL AS INTEGER ) + - 59
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6596
SELECT + 47 * COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-6596
SELECT + 47 * COUNT ( * )
----
47

query I rowsort
SELECT + 11 * 91 AS col0
----
1001

query I rowsort
SELECT DISTINCT + + ( - 1 )
----
-1

query I rowsort
SELECT DISTINCT - + 76 col2
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-6600
SELECT + 77 + + + ( - ( + SUM( - 98 ) ) ) AS col2
----
175

skipif mysql # not compatible
query I rowsort label-6600
SELECT + 77 + + + ( - ( + SUM ( - 98 ) ) ) AS col2
----
175

onlyif mysql # aggregate syntax: 
query I rowsort label-6601
SELECT ( + ( MIN( DISTINCT + 14 ) ) )
----
14

skipif mysql # not compatible
query I rowsort label-6601
SELECT ( + ( MIN ( DISTINCT + 14 ) ) )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6602
SELECT COUNT( * ) - + + 30 + 11 AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-6602
SELECT COUNT ( * ) - + + 30 + 11 AS col1
----
-18

query I rowsort
SELECT 45 + + ( - 89 ) AS col2
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-6604
SELECT DISTINCT - 86 DIV 33
----
-2

skipif mysql # not compatible
query I rowsort label-6604
SELECT DISTINCT - 86 / 33
----
-2

query I rowsort
SELECT DISTINCT 88 col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-6606
SELECT ALL + 67 * COUNT( * ) AS col0
----
67

skipif mysql # not compatible
query I rowsort label-6606
SELECT ALL + 67 * COUNT ( * ) AS col0
----
67

query I rowsort
SELECT DISTINCT 62 col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6608
SELECT 60 * - COUNT( * ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-6608
SELECT 60 * - COUNT ( * ) AS col0
----
-60

query I rowsort
SELECT ALL 51 * 73 + + 9
----
3732

onlyif mysql # aggregate syntax: 
query I rowsort label-6610
SELECT DISTINCT - COUNT( * ) * + COUNT( * ) + + 11 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-6610
SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) + + 11 AS col0
----
10

query I rowsort
SELECT ALL - 12 * 81 + - 32
----
-1004

onlyif mysql # aggregate syntax: 
query I rowsort label-6612
SELECT DISTINCT COUNT( * ) * 46
----
46

skipif mysql # not compatible
query I rowsort label-6612
SELECT DISTINCT COUNT ( * ) * 46
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6613
SELECT + 94 + - MAX( DISTINCT ( - 50 ) ) AS col2
----
144

skipif mysql # not compatible
query I rowsort label-6613
SELECT + 94 + - MAX ( DISTINCT ( - 50 ) ) AS col2
----
144

query I rowsort
SELECT ALL - 18 * 35 AS col1
----
-630

query I rowsort
SELECT DISTINCT - 85 * + 9 AS col0
----
-765

onlyif mysql # aggregate syntax: 
query I rowsort label-6616
SELECT ALL - COUNT( * ) + - COALESCE ( - 33, + COUNT( * ) * 41 )
----
32

skipif mysql # not compatible
query I rowsort label-6616
SELECT ALL - COUNT ( * ) + - COALESCE ( - 33, + COUNT ( * ) * 41 )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6617
SELECT - SUM( - 88 ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-6617
SELECT - SUM ( - 88 ) AS col0
----
88

query I rowsort
SELECT ( - + 95 )
----
-95

query I rowsort
SELECT 76 * + NULLIF ( + 35, 77 ) AS col1
----
2660

query I rowsort
SELECT + 2 * - 47 AS col0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-6621
SELECT ALL + ( + 85 ) * - MIN( - ( 68 ) )
----
5780

skipif mysql # not compatible
query I rowsort label-6621
SELECT ALL + ( + 85 ) * - MIN ( - ( 68 ) )
----
5780

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6622
SELECT 85 DIV COUNT( * )
----
85

skipif mysql # not compatible
query I rowsort label-6622
SELECT 85 / COUNT ( * )
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-6623
SELECT DISTINCT + 97 DIV - - 2 AS col0
----
48

skipif mysql # not compatible
query I rowsort label-6623
SELECT DISTINCT + 97 / - - 2 AS col0
----
48

query I rowsort
SELECT 45 + - 17
----
28

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6625
SELECT DISTINCT + ( 18 ) / - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6625
SELECT DISTINCT + ( 18 ) / - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6626
SELECT ALL + 18 * - + COUNT( * ) col0
----
-18

skipif mysql # not compatible
query I rowsort label-6626
SELECT ALL + 18 * - + COUNT ( * ) col0
----
-18

query I rowsort
SELECT ALL 27 + - ( - 12 ) AS col0
----
39

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6628
SELECT CAST( NULL AS DECIMAL ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6628
SELECT CAST ( NULL AS REAL ) * - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + 87 + - 42
----
45

query I rowsort
SELECT DISTINCT ( + 4 )
----
4

query I rowsort
SELECT DISTINCT 41 col2
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-6632
SELECT DISTINCT 38 * COUNT( * ), + MIN( 68 ) AS col0
----
38
68

skipif mysql # not compatible
query II rowsort label-6632
SELECT DISTINCT 38 * COUNT ( * ), + MIN ( 68 ) AS col0
----
38
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6633
SELECT - 12 - - NULLIF ( CAST( NULL AS SIGNED ), + COUNT( * ) * 50 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6633
SELECT - 12 - - NULLIF ( CAST ( NULL AS INTEGER ), + COUNT ( * ) * 50 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6634
SELECT + 26 * - COALESCE ( - 71, - COUNT( * ) * 63 ) AS col2
----
1846

skipif mysql # not compatible
query I rowsort label-6634
SELECT + 26 * - COALESCE ( - 71, - COUNT ( * ) * 63 ) AS col2
----
1846

onlyif mysql # aggregate syntax: 
query I rowsort label-6635
SELECT + ( + - MAX( DISTINCT + 66 ) )
----
-66

skipif mysql # not compatible
query I rowsort label-6635
SELECT + ( + - MAX ( DISTINCT + 66 ) )
----
-66

query I rowsort
SELECT ( - 44 )
----
-44

query I rowsort
SELECT + ( + 81 )
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6638
SELECT ALL - + COUNT( * ) + + 67 DIV - 59 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-6638
SELECT ALL - + COUNT ( * ) + + 67 / - 59 AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6639
SELECT ALL 90 + + COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-6639
SELECT ALL 90 + + COUNT ( * )
----
91

query II rowsort
SELECT ALL - 40 col0, ( - + 55 ) AS col0
----
-40
-55

query II rowsort
SELECT ALL - - 31 AS col1, 20 AS col0
----
31
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6642
SELECT ALL + 81 * - - ( COUNT( * ) )
----
81

skipif mysql # not compatible
query I rowsort label-6642
SELECT ALL + 81 * - - ( COUNT ( * ) )
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6643
SELECT - 44 DIV ( + COUNT( * ) ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-6643
SELECT - 44 / ( + COUNT ( * ) ) AS col0
----
-44

query I rowsort
SELECT DISTINCT - 73 + - 64
----
-137

onlyif mysql # aggregate syntax: 
query II rowsort label-6645
SELECT MIN( + - 81 ) AS col1, + 3 AS col1
----
-81
3

skipif mysql # not compatible
query II rowsort label-6645
SELECT MIN ( + - 81 ) AS col1, + 3 AS col1
----
-81
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6646
SELECT ALL - CAST( - MAX( ALL - + 87 ) AS SIGNED ) AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-6646
SELECT ALL - CAST ( - MAX ( ALL - + 87 ) AS INTEGER ) AS col0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-6647
SELECT 15 * MIN( + 5 ) + 12 AS col0
----
87

skipif mysql # not compatible
query I rowsort label-6647
SELECT 15 * MIN ( + 5 ) + 12 AS col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-6648
SELECT - + NULLIF ( 8, - COUNT( * ) ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-6648
SELECT - + NULLIF ( 8, - COUNT ( * ) ) AS col1
----
-8

query I rowsort
SELECT - - 92 col0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-6650
SELECT DISTINCT + 15 * MAX( - ( 50 ) ) AS col2
----
-750

skipif mysql # not compatible
query I rowsort label-6650
SELECT DISTINCT + 15 * MAX ( - ( 50 ) ) AS col2
----
-750

onlyif mysql # aggregate syntax: 
query II rowsort label-6651
SELECT ALL COUNT( * ) col2, 95 + + + 77
----
1
172

skipif mysql # not compatible
query II rowsort label-6651
SELECT ALL COUNT ( * ) col2, 95 + + + 77
----
1
172

query I rowsort
SELECT - ( - + 3 ) AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6653
SELECT - COUNT( * ) * + 84
----
-84

skipif mysql # not compatible
query I rowsort label-6653
SELECT - COUNT ( * ) * + 84
----
-84

query II rowsort
SELECT ALL + + 43 AS col1, 49
----
43
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6655
SELECT COUNT( * ) DIV + COUNT( * ) - - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-6655
SELECT COUNT ( * ) / + COUNT ( * ) - - COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6656
SELECT - 8 - - COUNT( ALL + 28 ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-6656
SELECT - 8 - - COUNT ( ALL + 28 ) AS col2
----
-7

query I rowsort
SELECT ALL - + 7 col1
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-6658
SELECT 98 DIV - 53 col1
----
-1

skipif mysql # not compatible
query I rowsort label-6658
SELECT 98 / - 53 col1
----
-1

query I rowsort
SELECT 5 + - 72 AS col2
----
-67

query I rowsort
SELECT 79 * - - 15
----
1185

onlyif mysql # DIV for integer division: 
query I rowsort label-6661
SELECT 52 DIV + 9 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-6661
SELECT 52 / + 9 AS col2
----
5

query I rowsort
SELECT + - 67 col1
----
-67

query I rowsort
SELECT 1 - - 44 col0
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6664
SELECT SUM( ALL CAST( NULL AS SIGNED ) ) * - ( 39 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6664
SELECT SUM ( ALL CAST ( NULL AS INTEGER ) ) * - ( 39 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6665
SELECT COUNT( * ) + + + 73 col2
----
74

skipif mysql # not compatible
query I rowsort label-6665
SELECT COUNT ( * ) + + + 73 col2
----
74

query I rowsort
SELECT 98 - - - 96 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6667
SELECT DISTINCT ( - ( COUNT( * ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6667
SELECT DISTINCT ( - ( COUNT ( * ) ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6668
SELECT DISTINCT - ( ( - - 89 ) ) - + COUNT( * )
----
-90

skipif mysql # not compatible
query I rowsort label-6668
SELECT DISTINCT - ( ( - - 89 ) ) - + COUNT ( * )
----
-90

query I rowsort
SELECT + 79 + ( + 69 ) AS col0
----
148

query I rowsort
SELECT ( - 23 ) AS col2
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6671
SELECT - CAST( NULL AS SIGNED ) AS col0, 90
----
NULL
90

skipif mysql # not compatible
query II rowsort label-6671
SELECT - CAST ( NULL AS INTEGER ) AS col0, 90
----
NULL
90

query I rowsort
SELECT + 16 + - - 40
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6673
SELECT SUM( + 82 ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-6673
SELECT SUM ( + 82 ) AS col2
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6674
SELECT 4 DIV + CAST( 58 AS SIGNED ), + COUNT( * ) AS col2
----
0
1

skipif mysql # not compatible
query II rowsort label-6674
SELECT 4 / + CAST ( 58 AS INTEGER ), + COUNT ( * ) AS col2
----
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6675
SELECT ALL + CAST( NULL AS SIGNED ) / - - 27 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6675
SELECT ALL + CAST ( NULL AS INTEGER ) / - - 27 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6676
SELECT ( CAST( NULL AS SIGNED ) ) / - - CAST( 97 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6676
SELECT ( CAST ( NULL AS INTEGER ) ) / - - CAST ( 97 AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL - + ( - 11 )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6678
SELECT + MAX( + 34 ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-6678
SELECT + MAX ( + 34 ) AS col1
----
34

query I rowsort
SELECT DISTINCT 35 + + + 31 AS col2
----
66

query I rowsort
SELECT DISTINCT - ( + - 21 ) * - 12 AS col1
----
-252

onlyif mysql # aggregate syntax: 
query II rowsort label-6681
SELECT ALL - + SUM( ALL - + 87 ) AS col0, + COUNT( * )
----
87
1

skipif mysql # not compatible
query II rowsort label-6681
SELECT ALL - + SUM ( ALL - + 87 ) AS col0, + COUNT ( * )
----
87
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6682
SELECT COUNT( * ) * + 98 AS col0
----
98

skipif mysql # not compatible
query I rowsort label-6682
SELECT COUNT ( * ) * + 98 AS col0
----
98

onlyif mysql # aggregate syntax: 
query II rowsort label-6683
SELECT - 73 AS col2, + COUNT( * )
----
-73
1

skipif mysql # not compatible
query II rowsort label-6683
SELECT - 73 AS col2, + COUNT ( * )
----
-73
1

query I rowsort
SELECT - + NULLIF ( 70, + - 32 ) AS col1
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6685
SELECT DISTINCT + CAST( + + 10 AS SIGNED ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-6685
SELECT DISTINCT + CAST ( + + 10 AS INTEGER ) AS col0
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-6686
SELECT DISTINCT + COUNT( * ), 43 AS col2
----
1
43

skipif mysql # not compatible
query II rowsort label-6686
SELECT DISTINCT + COUNT ( * ), 43 AS col2
----
1
43

query II rowsort
SELECT + 14 AS col2, + 20 * - - 67 AS col2
----
14
1340

onlyif mysql # aggregate syntax: 
query I rowsort label-6688
SELECT DISTINCT + 52 + COUNT( * )
----
53

skipif mysql # not compatible
query I rowsort label-6688
SELECT DISTINCT + 52 + COUNT ( * )
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6689
SELECT - NULLIF ( CAST( + 23 AS SIGNED ), - + 38 )
----
-23

skipif mysql # not compatible
query I rowsort label-6689
SELECT - NULLIF ( CAST ( + 23 AS INTEGER ), - + 38 )
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6690
SELECT + COUNT( * ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6690
SELECT + COUNT ( * ) * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6691
SELECT DISTINCT - 21 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6691
SELECT DISTINCT - 21 - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 21 + 41 AS col1
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6693
SELECT + CAST( NULL AS SIGNED ) + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-6693
SELECT + CAST ( NULL AS INTEGER ) + 86
----
NULL

query I rowsort
SELECT + 85 col2
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6695
SELECT 60 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6695
SELECT 60 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + + 88 AS col0
----
88

query I rowsort
SELECT ALL - - 83 * + 11 - + 32
----
881

query II rowsort
SELECT ALL 78 AS col1, - 54 AS col0
----
78
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6699
SELECT ALL SUM( - CAST( + 62 AS SIGNED ) ) * + - 20 * + ( - 34 ) col0
----
-42160

skipif mysql # not compatible
query I rowsort label-6699
SELECT ALL SUM ( - CAST ( + 62 AS INTEGER ) ) * + - 20 * + ( - 34 ) col0
----
-42160

onlyif mysql # aggregate syntax: 
query I rowsort label-6700
SELECT DISTINCT MAX( 99 ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-6700
SELECT DISTINCT MAX ( 99 ) AS col1
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6701
SELECT + + CAST( 58 AS SIGNED )
----
58

skipif mysql # not compatible
query I rowsort label-6701
SELECT + + CAST ( 58 AS INTEGER )
----
58

query I rowsort
SELECT - 40 + - 72 AS col2
----
-112

onlyif mysql # DIV for integer division: 
query I rowsort label-6703
SELECT DISTINCT + - 88 DIV + 12
----
-7

skipif mysql # not compatible
query I rowsort label-6703
SELECT DISTINCT + - 88 / + 12
----
-7

query I rowsort
SELECT 63 * + - 26 * + 30 AS col1
----
-49140

onlyif mysql # aggregate syntax: 
query I rowsort label-6705
SELECT ALL COUNT( * ) * 49 AS col1
----
49

skipif mysql # not compatible
query I rowsort label-6705
SELECT ALL COUNT ( * ) * 49 AS col1
----
49

query I rowsort
SELECT DISTINCT 62 * 95
----
5890

query I rowsort
SELECT DISTINCT - - ( 43 )
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-6708
SELECT - COUNT( * ) AS col0, 30 AS col0
----
-1
30

skipif mysql # not compatible
query II rowsort label-6708
SELECT - COUNT ( * ) AS col0, 30 AS col0
----
-1
30

query II rowsort
SELECT DISTINCT + 86 + - + 0 AS col2, + 17
----
86
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6710
SELECT ALL + COUNT( * ) * 16 AS col2
----
16

skipif mysql # not compatible
query I rowsort label-6710
SELECT ALL + COUNT ( * ) * 16 AS col2
----
16

query I rowsort
SELECT ALL + 37 - + + 88 col2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6712
SELECT - MAX( 83 )
----
-83

skipif mysql # not compatible
query I rowsort label-6712
SELECT - MAX ( 83 )
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6713
SELECT DISTINCT MIN( ALL - - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6713
SELECT DISTINCT MIN ( ALL - - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6714
SELECT COUNT( * ) + - + 92 AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-6714
SELECT COUNT ( * ) + - + 92 AS col1
----
-91

query I rowsort
SELECT - 43 col1
----
-43

query I rowsort
SELECT DISTINCT + - COALESCE ( + 72, - 39 ) col0
----
-72

query I rowsort
SELECT DISTINCT ( + ( + 68 ) ) col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6718
SELECT MIN( 61 )
----
61

skipif mysql # not compatible
query I rowsort label-6718
SELECT MIN ( 61 )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-6719
SELECT ALL - + COUNT( * ) + 73
----
72

skipif mysql # not compatible
query I rowsort label-6719
SELECT ALL - + COUNT ( * ) + 73
----
72

query I rowsort
SELECT ALL + - 90 AS col2
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6721
SELECT + CAST( 34 AS SIGNED )
----
34

skipif mysql # not compatible
query I rowsort label-6721
SELECT + CAST ( 34 AS INTEGER )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-6722
SELECT DISTINCT - ( - COUNT( * ) ) + + 35
----
36

skipif mysql # not compatible
query I rowsort label-6722
SELECT DISTINCT - ( - COUNT ( * ) ) + + 35
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-6723
SELECT COUNT( * ) + + + ( + - 78 )
----
-77

skipif mysql # not compatible
query I rowsort label-6723
SELECT COUNT ( * ) + + + ( + - 78 )
----
-77

query I rowsort
SELECT DISTINCT - ( - + ( - 33 ) ) AS col1
----
-33

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6725
SELECT DISTINCT - MAX( ALL + + 9 ) * + + CAST( NULL AS DECIMAL ) + 62 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6725
SELECT DISTINCT - MAX ( ALL + + 9 ) * + + CAST ( NULL AS REAL ) + 62 AS col2
----
NULL

query I rowsort
SELECT 12 * + 51
----
612

query I rowsort
SELECT 83 + 72 AS col1
----
155

query I rowsort
SELECT ALL - 87 * + 79
----
-6873

query I rowsort
SELECT 2 * - 32 AS col0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-6730
SELECT COALESCE ( - 98, COUNT( * ) ) AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-6730
SELECT COALESCE ( - 98, COUNT ( * ) ) AS col2
----
-98

query I rowsort
SELECT ALL + 52 * - - 26 AS col2
----
1352

onlyif mysql # aggregate syntax: 
query I rowsort label-6732
SELECT ALL - 9 * + COALESCE ( + COUNT( * ), + - ( - 58 ) ) col2
----
-9

skipif mysql # not compatible
query I rowsort label-6732
SELECT ALL - 9 * + COALESCE ( + COUNT ( * ), + - ( - 58 ) ) col2
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6733
SELECT COUNT( * ) DIV + 74
----
0

skipif mysql # not compatible
query I rowsort label-6733
SELECT COUNT ( * ) / + 74
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6734
SELECT DISTINCT COUNT( * ) * - 48 + + 81
----
33

skipif mysql # not compatible
query I rowsort label-6734
SELECT DISTINCT COUNT ( * ) * - 48 + + 81
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-6735
SELECT COUNT( * ) AS col2, + COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-6735
SELECT COUNT ( * ) AS col2, + COUNT ( * )
----
1
1

query I rowsort
SELECT ALL + 56 * + 16
----
896

query I rowsort
SELECT ALL - 84 + + ( + - 69 ) AS col2
----
-153

query I rowsort
SELECT - + 1 + + + 54 AS col2
----
53

query II rowsort
SELECT DISTINCT - 1 AS col1, - 84 AS col2
----
-1
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-6740
SELECT DISTINCT COUNT( ( - 95 ) )
----
1

skipif mysql # not compatible
query I rowsort label-6740
SELECT DISTINCT COUNT ( ( - 95 ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6741
SELECT - - CAST( NULL AS SIGNED ) AS col0, + 67 * 19 col2
----
NULL
1273

skipif mysql # not compatible
query II rowsort label-6741
SELECT - - CAST ( NULL AS INTEGER ) AS col0, + 67 * 19 col2
----
NULL
1273

query I rowsort
SELECT ALL + 66 col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6743
SELECT - 86 + - COUNT( * ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-6743
SELECT - 86 + - COUNT ( * ) AS col2
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-6744
SELECT - COUNT( - 84 ) * + 30
----
-30

skipif mysql # not compatible
query I rowsort label-6744
SELECT - COUNT ( - 84 ) * + 30
----
-30

query I rowsort
SELECT DISTINCT 46 + 76
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-6746
SELECT ALL 63 + - COUNT( * )
----
62

skipif mysql # not compatible
query I rowsort label-6746
SELECT ALL 63 + - COUNT ( * )
----
62

query I rowsort
SELECT ALL 38 * - + 73 AS col0
----
-2774

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6748
SELECT + CAST( NULL AS SIGNED ) + - COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6748
SELECT + CAST ( NULL AS INTEGER ) + - COUNT ( * ) col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6749
SELECT + COUNT( * ) * + CAST( MAX( DISTINCT + - 76 ) AS SIGNED ) * + + COUNT( * )
----
-76

skipif mysql # not compatible
query I rowsort label-6749
SELECT + COUNT ( * ) * + CAST ( MAX ( DISTINCT + - 76 ) AS INTEGER ) * + + COUNT ( * )
----
-76

query II rowsort
SELECT ALL 71, - 90 col0
----
71
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-6751
SELECT ALL - COUNT( DISTINCT ( + 52 ) ) + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6751
SELECT ALL - COUNT ( DISTINCT ( + 52 ) ) + COUNT ( * ) AS col2
----
0

query I rowsort
SELECT 95 * - 37
----
-3515

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6753
SELECT ALL COUNT( * ) DIV - + ( 88 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6753
SELECT ALL COUNT ( * ) / - + ( 88 ) AS col0
----
0

query I rowsort
SELECT DISTINCT - + 45 col0
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6755
SELECT + COALESCE ( + + CAST( NULL AS SIGNED ), 66 + - 53 * 78 ) AS col0
----
-4068

skipif mysql # not compatible
query I rowsort label-6755
SELECT + COALESCE ( + + CAST ( NULL AS INTEGER ), 66 + - 53 * 78 ) AS col0
----
-4068

onlyif mysql # aggregate syntax: 
query I rowsort label-6756
SELECT ALL 18 + + MAX( - 83 )
----
-65

skipif mysql # not compatible
query I rowsort label-6756
SELECT ALL 18 + + MAX ( - 83 )
----
-65

query I rowsort
SELECT ALL - 9 col0
----
-9

query I rowsort
SELECT - - 98 col1
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-6759
SELECT ALL + - ( 95 ) DIV 57
----
-1

skipif mysql # not compatible
query I rowsort label-6759
SELECT ALL + - ( 95 ) / 57
----
-1

query I rowsort
SELECT ALL 22 * - 35
----
-770

onlyif mysql # aggregate syntax: 
query I rowsort label-6761
SELECT ALL COUNT( DISTINCT - 15 )
----
1

skipif mysql # not compatible
query I rowsort label-6761
SELECT ALL COUNT ( DISTINCT - 15 )
----
1

query I rowsort
SELECT + 80 * + 10
----
800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6763
SELECT + 68 + + NULLIF ( + 18, CAST( 83 AS SIGNED ) ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-6763
SELECT + 68 + + NULLIF ( + 18, CAST ( 83 AS INTEGER ) ) AS col0
----
86

query I rowsort
SELECT DISTINCT + ( + - 90 )
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-6765
SELECT ALL - ( + - 60 ) DIV - + 90 + - 8 + + - 61
----
-69

skipif mysql # not compatible
query I rowsort label-6765
SELECT ALL - ( + - 60 ) / - + 90 + - 8 + + - 61
----
-69

query I rowsort
SELECT + ( 93 )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6767
SELECT - COUNT( ALL + 37 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6767
SELECT - COUNT ( ALL + 37 ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6768
SELECT + COUNT( DISTINCT - CAST( - - ( + 23 ) AS SIGNED ) ) + + 93 AS col0
----
94

skipif mysql # not compatible
query I rowsort label-6768
SELECT + COUNT ( DISTINCT - CAST ( - - ( + 23 ) AS INTEGER ) ) + + 93 AS col0
----
94

query I rowsort
SELECT ALL 83 col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-6770
SELECT 55 + - + 28 + - COUNT( * ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-6770
SELECT 55 + - + 28 + - COUNT ( * ) AS col2
----
26

query I rowsort
SELECT - 5 col1
----
-5

query I rowsort
SELECT + + 63 * 13
----
819

query I rowsort
SELECT + ( + + 80 ) col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6774
SELECT DISTINCT - COUNT( * ) + 11
----
10

skipif mysql # not compatible
query I rowsort label-6774
SELECT DISTINCT - COUNT ( * ) + 11
----
10

query I rowsort
SELECT - ( + + 53 ) AS col0
----
-53

query I rowsort
SELECT - ( - - 63 )
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6777
SELECT ALL + + COUNT( * ) DIV - 37
----
0

skipif mysql # not compatible
query I rowsort label-6777
SELECT ALL + + COUNT ( * ) / - 37
----
0

query I rowsort
SELECT DISTINCT + - 83 * 36
----
-2988

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6779
SELECT MAX( - - 2 ) * - ( - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6779
SELECT MAX ( - - 2 ) * - ( - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 92 + 50 col1
----
142

query I rowsort
SELECT 35 + - 48
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6782
SELECT ALL + COUNT( * ) + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6782
SELECT ALL + COUNT ( * ) + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6783
SELECT ALL SUM( - 81 ) - - COUNT( * )
----
-80

skipif mysql # not compatible
query I rowsort label-6783
SELECT ALL SUM ( - 81 ) - - COUNT ( * )
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6784
SELECT AVG ( DISTINCT + - CAST( NULL AS SIGNED ) ) * 2
----
NULL

skipif mysql # not compatible
query I rowsort label-6784
SELECT AVG ( DISTINCT + - CAST ( NULL AS INTEGER ) ) * 2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6785
SELECT ALL COUNT( ALL - - COALESCE ( 41, 70 ) ) * + ( - - CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6785
SELECT ALL COUNT ( ALL - - COALESCE ( 41, 70 ) ) * + ( - - CAST ( NULL AS REAL ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6786
SELECT - CAST( - - 28 AS SIGNED ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-6786
SELECT - CAST ( - - 28 AS INTEGER ) AS col2
----
-28

query I rowsort
SELECT - ( + + 72 ) + - 34 AS col0
----
-106

query I rowsort
SELECT + 6 * - + 66
----
-396

onlyif mysql # aggregate syntax: 
query II rowsort label-6789
SELECT DISTINCT COUNT( * ) AS col2, - 71
----
1
-71

skipif mysql # not compatible
query II rowsort label-6789
SELECT DISTINCT COUNT ( * ) AS col2, - 71
----
1
-71

query I rowsort
SELECT - - 4
----
4

query I rowsort
SELECT + 52 + - + ( + ( 94 ) ) AS col2
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-6792
SELECT ALL + ( + - 56 ) * + COUNT( * )
----
-56

skipif mysql # not compatible
query I rowsort label-6792
SELECT ALL + ( + - 56 ) * + COUNT ( * )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-6793
SELECT - 27 * - COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-6793
SELECT - 27 * - COUNT ( * )
----
27

query I rowsort
SELECT ( - 93 ) AS col2
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-6795
SELECT ALL - 59 * - + MIN( 83 ) AS col2
----
4897

skipif mysql # not compatible
query I rowsort label-6795
SELECT ALL - 59 * - + MIN ( 83 ) AS col2
----
4897

query I rowsort
SELECT COALESCE ( + - 67, + 45 * + 20 )
----
-67

query II rowsort
SELECT ALL + 19 AS col1, - 81 col1
----
19
-81

query I rowsort
SELECT COALESCE ( - - 0, + 75, + - 56 )
----
0

query I rowsort
SELECT ALL - 87 * - - 38 AS col1
----
-3306

query I rowsort
SELECT - - ( 71 ) * 59 * + 61 col1
----
255529

onlyif mysql # DIV for integer division: 
query I rowsort label-6801
SELECT - 3 DIV - + 93
----
0

skipif mysql # not compatible
query I rowsort label-6801
SELECT - 3 / - + 93
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6802
SELECT - CAST( - 96 AS SIGNED ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-6802
SELECT - CAST ( - 96 AS INTEGER ) AS col0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6803
SELECT + 4 * CAST( - - ( + - 8 ) AS SIGNED )
----
-32

skipif mysql # not compatible
query I rowsort label-6803
SELECT + 4 * CAST ( - - ( + - 8 ) AS INTEGER )
----
-32

query I rowsort
SELECT + 16 + + 28 AS col0
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6805
SELECT + 68 DIV - COUNT( * )
----
-68

skipif mysql # not compatible
query I rowsort label-6805
SELECT + 68 / - COUNT ( * )
----
-68

query I rowsort
SELECT ALL - + 11 + + 1 AS col2
----
-10

query I rowsort
SELECT ALL - + 51 AS col2
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6808
SELECT DISTINCT 91 + - - 15 * 74 + + + COUNT( * ) + - 57 DIV 93 col0
----
1202

skipif mysql # not compatible
query I rowsort label-6808
SELECT DISTINCT 91 + - - 15 * 74 + + + COUNT ( * ) + - 57 / 93 col0
----
1202

query I rowsort
SELECT 55 * 13 AS col0
----
715

onlyif mysql # aggregate syntax: 
query I rowsort label-6810
SELECT ALL - 86 + + COUNT( * ) AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-6810
SELECT ALL - 86 + + COUNT ( * ) AS col2
----
-85

query I rowsort
SELECT DISTINCT - - 75 AS col2
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6812
SELECT - COALESCE ( + COUNT( * ), 11 + - CAST( + - 94 AS SIGNED ) + 4 )
----
-1

skipif mysql # not compatible
query I rowsort label-6812
SELECT - COALESCE ( + COUNT ( * ), 11 + - CAST ( + - 94 AS INTEGER ) + 4 )
----
-1

query I rowsort
SELECT 42 * + 38
----
1596

query I rowsort
SELECT - 50 + + - 23
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-6815
SELECT - 32 * + COUNT( * ) AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-6815
SELECT - 32 * + COUNT ( * ) AS col2
----
-32

query II rowsort
SELECT ALL + 78 col1, 72 - - - 87 AS col2
----
78
-15

query I rowsort
SELECT ALL + + 16 AS col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-6818
SELECT + ( 87 ) * - COUNT( ALL - 73 )
----
-87

skipif mysql # not compatible
query I rowsort label-6818
SELECT + ( 87 ) * - COUNT ( ALL - 73 )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-6819
SELECT ALL MIN( - 38 ) AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-6819
SELECT ALL MIN ( - 38 ) AS col1
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-6820
SELECT DISTINCT + SUM( ALL - 21 ) col0
----
-21

skipif mysql # not compatible
query I rowsort label-6820
SELECT DISTINCT + SUM ( ALL - 21 ) col0
----
-21

query I rowsort
SELECT DISTINCT + + 20 col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6822
SELECT DISTINCT + - COUNT( 17 )
----
-1

skipif mysql # not compatible
query I rowsort label-6822
SELECT DISTINCT + - COUNT ( 17 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6823
SELECT ALL 62 * + ( + COUNT( * ) ) + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6823
SELECT ALL 62 * + ( + COUNT ( * ) ) + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6824
SELECT DISTINCT 80 + - - MIN( + - 75 ) col0
----
5

skipif mysql # not compatible
query I rowsort label-6824
SELECT DISTINCT 80 + - - MIN ( + - 75 ) col0
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6825
SELECT COUNT( * ) + - SUM( - CAST( - 1 AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-6825
SELECT COUNT ( * ) + - SUM ( - CAST ( - 1 AS INTEGER ) )
----
0

query I rowsort
SELECT ALL - + 53 AS col1
----
-53

query I rowsort
SELECT ALL - + ( - 31 ) col1
----
31

query I rowsort
SELECT ALL - + 30 + - + 82 col0
----
-112

query I rowsort
SELECT ALL - + 13 + 99
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6830
SELECT 18 DIV COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-6830
SELECT 18 / COUNT ( * )
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6831
SELECT 8 - - 58 * + - COUNT( * ) DIV + 89
----
8

skipif mysql # not compatible
query I rowsort label-6831
SELECT 8 - - 58 * + - COUNT ( * ) / + 89
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6832
SELECT 14 * COUNT( * ) AS col0
----
14

skipif mysql # not compatible
query I rowsort label-6832
SELECT 14 * COUNT ( * ) AS col0
----
14

query I rowsort
SELECT 14 + 55 + - + 58
----
11

query I rowsort
SELECT + + 96 AS col1
----
96

query I rowsort
SELECT + 92 * + ( 97 )
----
8924

onlyif mysql # aggregate syntax: 
query I rowsort label-6836
SELECT DISTINCT + SUM( - ( - - 93 ) )
----
-93

skipif mysql # not compatible
query I rowsort label-6836
SELECT DISTINCT + SUM ( - ( - - 93 ) )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-6837
SELECT + COUNT( * ) * - 19 AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-6837
SELECT + COUNT ( * ) * - 19 AS col1
----
-19

query I rowsort
SELECT DISTINCT - 50 col2
----
-50

query I rowsort
SELECT - - 14 * + 21 AS col2
----
294

query I rowsort
SELECT - 18 * - + 40 + 15 AS col1
----
735

onlyif mysql # aggregate syntax: 
query I rowsort label-6841
SELECT - COUNT( * ) * SUM( DISTINCT + 3 ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-6841
SELECT - COUNT ( * ) * SUM ( DISTINCT + 3 ) AS col2
----
-3

query I rowsort
SELECT + ( - - 85 ) AS col0
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-6843
SELECT - - ( 91 ), + COUNT( * ) AS col0
----
91
1

skipif mysql # not compatible
query II rowsort label-6843
SELECT - - ( 91 ), + COUNT ( * ) AS col0
----
91
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6844
SELECT ALL MAX( CAST( - ( + 69 ) AS SIGNED ) ) AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-6844
SELECT ALL MAX ( CAST ( - ( + 69 ) AS INTEGER ) ) AS col0
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6845
SELECT CAST( + + 58 AS SIGNED ) col0
----
58

skipif mysql # not compatible
query I rowsort label-6845
SELECT CAST ( + + 58 AS INTEGER ) col0
----
58

query I rowsort
SELECT ALL 15 * - 9
----
-135

query I rowsort
SELECT ALL ( + 72 ) * 87 AS col2
----
6264

onlyif mysql # aggregate syntax: 
query I rowsort label-6848
SELECT DISTINCT COUNT( * ) + - 88
----
-87

skipif mysql # not compatible
query I rowsort label-6848
SELECT DISTINCT COUNT ( * ) + - 88
----
-87

query I rowsort
SELECT - 70 - - + 82
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6850
SELECT - + CAST( - CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6850
SELECT - + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6851
SELECT ALL - COUNT( * ) * - 3 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-6851
SELECT ALL - COUNT ( * ) * - 3 AS col1
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-6852
SELECT ALL - 83, COUNT( * ) col1
----
-83
1

skipif mysql # not compatible
query II rowsort label-6852
SELECT ALL - 83, COUNT ( * ) col1
----
-83
1

query I rowsort
SELECT ALL - ( 84 ) col1
----
-84

query I rowsort
SELECT - + 1 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6855
SELECT ALL + SUM( DISTINCT + 36 ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-6855
SELECT ALL + SUM ( DISTINCT + 36 ) AS col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-6856
SELECT ALL COUNT( * ) * - + 33 AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-6856
SELECT ALL COUNT ( * ) * - + 33 AS col0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-6857
SELECT ALL COUNT( - 18 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-6857
SELECT ALL COUNT ( - 18 ) col0
----
1

query I rowsort
SELECT ( - 92 )
----
-92

query I rowsort
SELECT DISTINCT + ( + 30 ) AS col2
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-6860
SELECT ALL 17 AS col2, - COUNT( * ) AS col1
----
17
-1

skipif mysql # not compatible
query II rowsort label-6860
SELECT ALL 17 AS col2, - COUNT ( * ) AS col1
----
17
-1

query I rowsort
SELECT + 20 + - 54
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6862
SELECT ALL + 13 AS col1, CAST( NULL AS SIGNED ) + - - COUNT( * ) * - - 4 - 75
----
13
NULL

skipif mysql # not compatible
query II rowsort label-6862
SELECT ALL + 13 AS col1, CAST ( NULL AS INTEGER ) + - - COUNT ( * ) * - - 4 - 75
----
13
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6863
SELECT ALL + COUNT( * ) + 72
----
73

skipif mysql # not compatible
query I rowsort label-6863
SELECT ALL + COUNT ( * ) + 72
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-6864
SELECT DISTINCT + COUNT( * ) + 30
----
31

skipif mysql # not compatible
query I rowsort label-6864
SELECT DISTINCT + COUNT ( * ) + 30
----
31

query I rowsort
SELECT DISTINCT 29 col0
----
29

query I rowsort
SELECT DISTINCT 31 * + 81 AS col1
----
2511

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6867
SELECT ALL - 5 / CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6867
SELECT ALL - 5 / CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6868
SELECT ALL - - COUNT( - 25 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6868
SELECT ALL - - COUNT ( - 25 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6869
SELECT ALL + COUNT( * ) + + 53
----
54

skipif mysql # not compatible
query I rowsort label-6869
SELECT ALL + COUNT ( * ) + + 53
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6870
SELECT ALL + + NULLIF ( + - CAST( NULL AS SIGNED ), 58 / 97 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6870
SELECT ALL + + NULLIF ( + - CAST ( NULL AS INTEGER ), 58 / 97 ) AS col2
----
NULL

query I rowsort
SELECT ALL + - 93 AS col0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-6872
SELECT ALL COUNT( DISTINCT - 88 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6872
SELECT ALL COUNT ( DISTINCT - 88 ) AS col1
----
1

query I rowsort
SELECT + 69 + - + 63 AS col2
----
6

query I rowsort
SELECT - ( + 8 ) AS col0
----
-8

query I rowsort
SELECT DISTINCT 61 col1
----
61

query II rowsort
SELECT 7, 72 AS col1
----
7
72

query I rowsort
SELECT ALL - 22 * 60 AS col1
----
-1320

query I rowsort
SELECT ALL ( + 80 )
----
80

query I rowsort
SELECT ALL + 77 * 87
----
6699

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6880
SELECT CAST( + AVG ( ALL 49 ) AS SIGNED )
----
49

skipif mysql # not compatible
query I rowsort label-6880
SELECT CAST ( + AVG ( ALL 49 ) AS INTEGER )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-6881
SELECT - COUNT( * ) + 73
----
72

skipif mysql # not compatible
query I rowsort label-6881
SELECT - COUNT ( * ) + 73
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6882
SELECT ALL + + AVG ( ALL CAST( CAST( NULL AS SIGNED ) AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6882
SELECT ALL + + AVG ( ALL CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6883
SELECT + ( + - 24 ) DIV COUNT( * )
----
-24

skipif mysql # not compatible
query I rowsort label-6883
SELECT + ( + - 24 ) / COUNT ( * )
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-6884
SELECT ALL 73 DIV 75
----
0

skipif mysql # not compatible
query I rowsort label-6884
SELECT ALL 73 / 75
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6885
SELECT ALL + COUNT( * ) * + 97
----
97

skipif mysql # not compatible
query I rowsort label-6885
SELECT ALL + COUNT ( * ) * + 97
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6886
SELECT + + COUNT( - + 93 )
----
1

skipif mysql # not compatible
query I rowsort label-6886
SELECT + + COUNT ( - + 93 )
----
1

query I rowsort
SELECT DISTINCT - - 84
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6888
SELECT ALL 32 * COUNT( * )
----
32

skipif mysql # not compatible
query I rowsort label-6888
SELECT ALL 32 * COUNT ( * )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6889
SELECT ALL + 76 * + COUNT( * )
----
76

skipif mysql # not compatible
query I rowsort label-6889
SELECT ALL + 76 * + COUNT ( * )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6890
SELECT + COUNT( * ) * - 2
----
-2

skipif mysql # not compatible
query I rowsort label-6890
SELECT + COUNT ( * ) * - 2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6891
SELECT - MAX( 52 ) * - 88
----
4576

skipif mysql # not compatible
query I rowsort label-6891
SELECT - MAX ( 52 ) * - 88
----
4576

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6892
SELECT ALL + 16 AS col2, - CAST( NULL AS SIGNED )
----
16
NULL

skipif mysql # not compatible
query II rowsort label-6892
SELECT ALL + 16 AS col2, - CAST ( NULL AS INTEGER )
----
16
NULL

query I rowsort
SELECT - - 60 + - 40
----
20

query II rowsort
SELECT + ( - - 62 ) AS col1, + 91 AS col1
----
62
91

query I rowsort
SELECT ALL ( 99 )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6896
SELECT - - COUNT( * ) + - + 12 + 50
----
39

skipif mysql # not compatible
query I rowsort label-6896
SELECT - - COUNT ( * ) + - + 12 + 50
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6897
SELECT 96 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6897
SELECT 96 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6898
SELECT CAST( NULL AS DECIMAL ) + - - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6898
SELECT CAST ( NULL AS REAL ) + - - COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6899
SELECT 96 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6899
SELECT 96 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6900
SELECT ALL + + 93 * COUNT( * )
----
93

skipif mysql # not compatible
query I rowsort label-6900
SELECT ALL + + 93 * COUNT ( * )
----
93

query I rowsort
SELECT ALL - - 14 col0
----
14

query I rowsort
SELECT - + 25 AS col1
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-6903
SELECT + 33 DIV 33 col2
----
1

skipif mysql # not compatible
query I rowsort label-6903
SELECT + 33 / 33 col2
----
1

query I rowsort
SELECT ALL + - 92 + ( + + 49 )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-6905
SELECT ALL MAX( ALL + 55 ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-6905
SELECT ALL MAX ( ALL + 55 ) AS col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6906
SELECT COUNT( ALL + 30 )
----
1

skipif mysql # not compatible
query I rowsort label-6906
SELECT COUNT ( ALL + 30 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6907
SELECT ALL - MIN( + 9 ) col2
----
-9

skipif mysql # not compatible
query I rowsort label-6907
SELECT ALL - MIN ( + 9 ) col2
----
-9

query I rowsort
SELECT DISTINCT + ( - + 11 )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-6909
SELECT + 73 * + COUNT( * ) * + MAX( DISTINCT + 2 )
----
146

skipif mysql # not compatible
query I rowsort label-6909
SELECT + 73 * + COUNT ( * ) * + MAX ( DISTINCT + 2 )
----
146

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6910
SELECT DISTINCT + + CAST( + 99 AS SIGNED ) AS col2, + 61 AS col1
----
99
61

skipif mysql # not compatible
query II rowsort label-6910
SELECT DISTINCT + + CAST ( + 99 AS INTEGER ) AS col2, + 61 AS col1
----
99
61

query I rowsort
SELECT - + ( - - 79 )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-6912
SELECT ALL 37 + - COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-6912
SELECT ALL 37 + - COUNT ( * )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-6913
SELECT DISTINCT 65 + COUNT( * ) * + COUNT( * ) + - 24 AS col1
----
42

skipif mysql # not compatible
query I rowsort label-6913
SELECT DISTINCT 65 + COUNT ( * ) * + COUNT ( * ) + - 24 AS col1
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-6914
SELECT ALL COUNT( * ) col0, 65 AS col1
----
1
65

skipif mysql # not compatible
query II rowsort label-6914
SELECT ALL COUNT ( * ) col0, 65 AS col1
----
1
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6915
SELECT 41 * + COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-6915
SELECT 41 * + COUNT ( * )
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6916
SELECT + 37 * + CAST( + 56 AS SIGNED ) + - + COUNT( * ) AS col1
----
2071

skipif mysql # not compatible
query I rowsort label-6916
SELECT + 37 * + CAST ( + 56 AS INTEGER ) + - + COUNT ( * ) AS col1
----
2071

query I rowsort
SELECT DISTINCT + ( + 26 ) col1
----
26

query II rowsort
SELECT ALL + - 83 col0, 61 AS col2
----
-83
61

query I rowsort
SELECT + - 2 AS col2
----
-2

query I rowsort
SELECT ALL + ( - - 17 ) AS col2
----
17

query I rowsort
SELECT - ( + 75 ) AS col2
----
-75

query II rowsort
SELECT - ( - + 5 ) AS col1, - 98
----
5
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6923
SELECT ALL COUNT( * ) AS col1, CAST( ( + CAST( NULL AS SIGNED ) ) AS SIGNED )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-6923
SELECT ALL COUNT ( * ) AS col1, CAST ( ( + CAST ( NULL AS INTEGER ) ) AS INTEGER )
----
1
NULL

query I rowsort
SELECT ALL 26 col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-6925
SELECT MAX( ( - 49 ) )
----
-49

skipif mysql # not compatible
query I rowsort label-6925
SELECT MAX ( ( - 49 ) )
----
-49

query I rowsort
SELECT ALL - + 96 AS col2
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6927
SELECT ALL - + ( + COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6927
SELECT ALL - + ( + COUNT ( * ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6928
SELECT COUNT( + 73 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6928
SELECT COUNT ( + 73 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6929
SELECT ALL 34 + - COUNT( * ), 1 AS col2
----
33
1

skipif mysql # not compatible
query II rowsort label-6929
SELECT ALL 34 + - COUNT ( * ), 1 AS col2
----
33
1

query II rowsort
SELECT DISTINCT + 93 col0, - ( + 57 ) * 14
----
93
-798

onlyif mysql # aggregate syntax: 
query I rowsort label-6931
SELECT DISTINCT - 68 * - - COUNT( * ) - + + COUNT( * )
----
-69

skipif mysql # not compatible
query I rowsort label-6931
SELECT DISTINCT - 68 * - - COUNT ( * ) - + + COUNT ( * )
----
-69

query I rowsort
SELECT ( - - 57 ) col0
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6933
SELECT + 38 DIV COUNT( * ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-6933
SELECT + 38 / COUNT ( * ) AS col1
----
38

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6934
SELECT ALL + CAST( NULL AS DECIMAL ) AS col0, ( - - 30 )
----
NULL
30

skipif mysql # not compatible
query II rowsort label-6934
SELECT ALL + CAST ( NULL AS REAL ) AS col0, ( - - 30 )
----
NULL
30

query I rowsort
SELECT + 48 * 86
----
4128

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6936
SELECT ALL 18 AS col0, - CAST( NULL AS DECIMAL )
----
18
NULL

skipif mysql # not compatible
query II rowsort label-6936
SELECT ALL 18 AS col0, - CAST ( NULL AS REAL )
----
18
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6937
SELECT ALL 60 + - - COUNT( * ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-6937
SELECT ALL 60 + - - COUNT ( * ) AS col0
----
61

query I rowsort
SELECT DISTINCT 80 col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6939
SELECT DISTINCT - SUM( ALL 83 )
----
-83

skipif mysql # not compatible
query I rowsort label-6939
SELECT DISTINCT - SUM ( ALL 83 )
----
-83

query I rowsort
SELECT 40 * - 92 * - 29 AS col0
----
106720

onlyif mysql # aggregate syntax: 
query I rowsort label-6941
SELECT MIN( DISTINCT 95 ) * - 7 AS col0
----
-665

skipif mysql # not compatible
query I rowsort label-6941
SELECT MIN ( DISTINCT 95 ) * - 7 AS col0
----
-665

query I rowsort
SELECT ALL + ( + 96 )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6943
SELECT ALL + MIN( ALL 66 ) * - MIN( - 82 ) AS col1
----
5412

skipif mysql # not compatible
query I rowsort label-6943
SELECT ALL + MIN ( ALL 66 ) * - MIN ( - 82 ) AS col1
----
5412

onlyif mysql # aggregate syntax: 
query I rowsort label-6944
SELECT + 99 - + COUNT( * )
----
98

skipif mysql # not compatible
query I rowsort label-6944
SELECT + 99 - + COUNT ( * )
----
98

query I rowsort
SELECT - - 61 col2
----
61

query I rowsort
SELECT - ( 58 ) AS col0
----
-58

query I rowsort
SELECT - ( + - 61 ) col0
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6948
SELECT + + COUNT( * ) * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6948
SELECT + + COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6949
SELECT + COALESCE ( - 61, + COUNT( * ) )
----
-61

skipif mysql # not compatible
query I rowsort label-6949
SELECT + COALESCE ( - 61, + COUNT ( * ) )
----
-61

query I rowsort
SELECT DISTINCT ( 38 )
----
38

query I rowsort
SELECT DISTINCT - ( - 57 )
----
57

query I rowsort
SELECT + 96 * + + 77
----
7392

onlyif mysql # aggregate syntax: 
query I rowsort label-6953
SELECT DISTINCT + COUNT( * ) + - 74
----
-73

skipif mysql # not compatible
query I rowsort label-6953
SELECT DISTINCT + COUNT ( * ) + - 74
----
-73

query I rowsort
SELECT ALL + - 67 + 43 + - 64
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-6955
SELECT 74 * - + ( - + COUNT( * ) )
----
74

skipif mysql # not compatible
query I rowsort label-6955
SELECT 74 * - + ( - + COUNT ( * ) )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6956
SELECT - MAX( ALL + 81 ) col1
----
-81

skipif mysql # not compatible
query I rowsort label-6956
SELECT - MAX ( ALL + 81 ) col1
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6957
SELECT ALL COALESCE ( 6, - 41, - COUNT( * ) )
----
6

skipif mysql # not compatible
query I rowsort label-6957
SELECT ALL COALESCE ( 6, - 41, - COUNT ( * ) )
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-6958
SELECT + 60 DIV + 22
----
2

skipif mysql # not compatible
query I rowsort label-6958
SELECT + 60 / + 22
----
2

query I rowsort
SELECT DISTINCT ( - 17 )
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-6960
SELECT 45 AS col0, - COUNT( * ) AS col1
----
45
-1

skipif mysql # not compatible
query II rowsort label-6960
SELECT 45 AS col0, - COUNT ( * ) AS col1
----
45
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6961
SELECT DISTINCT 62 * - + COUNT( DISTINCT - CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-6961
SELECT DISTINCT 62 * - + COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6962
SELECT + CAST( NULL AS SIGNED ) AS col2, - 54
----
NULL
-54

skipif mysql # not compatible
query II rowsort label-6962
SELECT + CAST ( NULL AS INTEGER ) AS col2, - 54
----
NULL
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6963
SELECT ALL 48 DIV COUNT( * ) * + COUNT( * )
----
48

skipif mysql # not compatible
query I rowsort label-6963
SELECT ALL 48 / COUNT ( * ) * + COUNT ( * )
----
48

query II rowsort
SELECT + 19 + + - 49 AS col0, 18 col1
----
-30
18

query I rowsort
SELECT ( 86 ) * + + 76 AS col2
----
6536

query I rowsort
SELECT ALL 25 * ( + ( - 8 ) ) AS col0
----
-200

query I rowsort
SELECT 0 * ( - 70 )
----
0

query I rowsort
SELECT DISTINCT 24 + 29 AS col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-6969
SELECT ALL - COUNT( * ) + ( + 66 ) * + + 17
----
1121

skipif mysql # not compatible
query I rowsort label-6969
SELECT ALL - COUNT ( * ) + ( + 66 ) * + + 17
----
1121

onlyif mysql # aggregate syntax: 
query I rowsort label-6970
SELECT - + COUNT( - 39 )
----
-1

skipif mysql # not compatible
query I rowsort label-6970
SELECT - + COUNT ( - 39 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6971
SELECT DISTINCT - ( - 33 ) + - COUNT( * ), - 30 AS col0
----
32
-30

skipif mysql # not compatible
query II rowsort label-6971
SELECT DISTINCT - ( - 33 ) + - COUNT ( * ), - 30 AS col0
----
32
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6972
SELECT ALL + + 53 AS col0, COUNT( ALL CAST( NULL AS SIGNED ) ) AS col1
----
53
0

skipif mysql # not compatible
query II rowsort label-6972
SELECT ALL + + 53 AS col0, COUNT ( ALL CAST ( NULL AS INTEGER ) ) AS col1
----
53
0

query I rowsort
SELECT + ( - + 69 ) * - 63 AS col0
----
4347

query I rowsort
SELECT - + 97 + ( - + 40 )
----
-137

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6975
SELECT DISTINCT + 82 * CAST( 50 AS SIGNED ) AS col2
----
4100

skipif mysql # not compatible
query I rowsort label-6975
SELECT DISTINCT + 82 * CAST ( 50 AS INTEGER ) AS col2
----
4100

onlyif mysql # aggregate syntax: 
query I rowsort label-6976
SELECT MIN( ALL + 51 )
----
51

skipif mysql # not compatible
query I rowsort label-6976
SELECT MIN ( ALL + 51 )
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6977
SELECT ALL - 82 DIV + COUNT( * )
----
-82

skipif mysql # not compatible
query I rowsort label-6977
SELECT ALL - 82 / + COUNT ( * )
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-6978
SELECT ALL COUNT( * ) + - 36 col2
----
-35

skipif mysql # not compatible
query I rowsort label-6978
SELECT ALL COUNT ( * ) + - 36 col2
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-6979
SELECT ALL - COUNT( * ) * + 20 AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-6979
SELECT ALL - COUNT ( * ) * + 20 AS col1
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6980
SELECT + CAST( + MAX( + 88 ) AS SIGNED )
----
88

skipif mysql # not compatible
query I rowsort label-6980
SELECT + CAST ( + MAX ( + 88 ) AS INTEGER )
----
88

query I rowsort
SELECT 82 + - - 8
----
90

query II rowsort
SELECT ALL - 26 col2, + 2
----
-26
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6983
SELECT DISTINCT COUNT( * ) * COUNT( * ) * COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-6983
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) * COUNT ( * )
----
1

query I rowsort
SELECT ALL - 16 col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-6985
SELECT + 47 + COUNT( * ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-6985
SELECT + 47 + COUNT ( * ) AS col2
----
48

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6986
SELECT - - 91 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6986
SELECT - - 91 + - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + 61 * + + 17
----
1037

onlyif mysql # aggregate syntax: 
query II rowsort label-6988
SELECT - MIN( + 28 ) AS col0, 70 + ( ( - - 15 ) ) AS col1
----
-28
85

skipif mysql # not compatible
query II rowsort label-6988
SELECT - MIN ( + 28 ) AS col0, 70 + ( ( - - 15 ) ) AS col1
----
-28
85

query I rowsort
SELECT ALL + ( + + 30 )
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6990
SELECT - CAST( NULL AS SIGNED ) AS col0, COUNT( * ) + + - 40 AS col1
----
NULL
-39

skipif mysql # not compatible
query II rowsort label-6990
SELECT - CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) + + - 40 AS col1
----
NULL
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6991
SELECT - + COUNT( * ) DIV - 41
----
0

skipif mysql # not compatible
query I rowsort label-6991
SELECT - + COUNT ( * ) / - 41
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6992
SELECT ALL 32 DIV + - 18 + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6992
SELECT ALL 32 / + - 18 + COUNT ( * ) AS col2
----
0

query I rowsort
SELECT DISTINCT ( + 96 )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6994
SELECT ALL - COUNT( + + 12 )
----
-1

skipif mysql # not compatible
query I rowsort label-6994
SELECT ALL - COUNT ( + + 12 )
----
-1

query I rowsort
SELECT ALL - + 74 AS col0
----
-74

query I rowsort
SELECT + ( 71 )
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6997
SELECT DISTINCT COUNT( * ) DIV - COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6997
SELECT DISTINCT COUNT ( * ) / - COUNT ( * ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6998
SELECT ALL ( MAX( 12 ) ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-6998
SELECT ALL ( MAX ( 12 ) ) AS col0
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-6999
SELECT ALL COUNT( * ), + 84 AS col2
----
1
84

skipif mysql # not compatible
query II rowsort label-6999
SELECT ALL COUNT ( * ), + 84 AS col2
----
1
84

onlyif mysql # aggregate syntax: 
query II rowsort label-7000
SELECT ALL 45 AS col0, COUNT( * ) * 95
----
45
95

skipif mysql # not compatible
query II rowsort label-7000
SELECT ALL 45 AS col0, COUNT ( * ) * 95
----
45
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7001
SELECT + CAST( - 70 AS SIGNED ) col2
----
-70

skipif mysql # not compatible
query I rowsort label-7001
SELECT + CAST ( - 70 AS INTEGER ) col2
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-7002
SELECT - MAX( 60 ) col2
----
-60

skipif mysql # not compatible
query I rowsort label-7002
SELECT - MAX ( 60 ) col2
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-7003
SELECT - + SUM( DISTINCT 5 )
----
-5

skipif mysql # not compatible
query I rowsort label-7003
SELECT - + SUM ( DISTINCT 5 )
----
-5

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-7004
SELECT DISTINCT 8 DIV + CAST( COALESCE ( 75, - CAST( NULL AS DECIMAL ) ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-7004
SELECT DISTINCT 8 / + CAST ( COALESCE ( 75, - CAST ( NULL AS REAL ) ) AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7005
SELECT DISTINCT 65 - COUNT( * ) * + 41 AS col1
----
24

skipif mysql # not compatible
query I rowsort label-7005
SELECT DISTINCT 65 - COUNT ( * ) * + 41 AS col1
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-7006
SELECT - + 24 AS col1, COUNT( * )
----
-24
1

skipif mysql # not compatible
query II rowsort label-7006
SELECT - + 24 AS col1, COUNT ( * )
----
-24
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7007
SELECT ALL + SUM( ALL - - 18 )
----
18

skipif mysql # not compatible
query I rowsort label-7007
SELECT ALL + SUM ( ALL - - 18 )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7008
SELECT MIN( 11 ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-7008
SELECT MIN ( 11 ) AS col0
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7009
SELECT + 88 * - CAST( + 66 AS SIGNED )
----
-5808

skipif mysql # not compatible
query I rowsort label-7009
SELECT + 88 * - CAST ( + 66 AS INTEGER )
----
-5808

onlyif mysql # aggregate syntax: 
query I rowsort label-7010
SELECT ALL + MAX( ALL + + 61 ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-7010
SELECT ALL + MAX ( ALL + + 61 ) AS col2
----
61

query I rowsort
SELECT + 20 * - 17 AS col1
----
-340

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7012
SELECT ( - CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7012
SELECT ( - CAST ( NULL AS REAL ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7013
SELECT NULLIF ( COUNT( * ), - CAST( NULL AS SIGNED ) ) AS col0, COUNT( * ) AS col1
----
1
1

skipif mysql # not compatible
query II rowsort label-7013
SELECT NULLIF ( COUNT ( * ), - CAST ( NULL AS INTEGER ) ) AS col0, COUNT ( * ) AS col1
----
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7014
SELECT - 0 * + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7014
SELECT - 0 * + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + - 13 + + 61 AS col2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7016
SELECT + COUNT( * ) * + - ( - - 42 )
----
-42

skipif mysql # not compatible
query I rowsort label-7016
SELECT + COUNT ( * ) * + - ( - - 42 )
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-7017
SELECT 1 + - 35 + - MIN( DISTINCT 23 ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-7017
SELECT 1 + - 35 + - MIN ( DISTINCT 23 ) AS col1
----
-57

query I rowsort
SELECT + + 26 AS col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7019
SELECT ALL MAX( 35 )
----
35

skipif mysql # not compatible
query I rowsort label-7019
SELECT ALL MAX ( 35 )
----
35

query I rowsort
SELECT + 20 * + + ( 23 ) AS col1
----
460

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7021
SELECT DISTINCT MAX( + ( - + 95 ) ) AS col0, 91 + + CAST( NULL AS SIGNED ) + COUNT( * ) / + + 67 AS col0
----
-95
NULL

skipif mysql # not compatible
query II rowsort label-7021
SELECT DISTINCT MAX ( + ( - + 95 ) ) AS col0, 91 + + CAST ( NULL AS INTEGER ) + COUNT ( * ) / + + 67 AS col0
----
-95
NULL

query II rowsort
SELECT ALL + 5, 4 AS col1
----
5
4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7023
SELECT DISTINCT + 9 * - 66 - + CAST( NULL AS SIGNED ) AS col1, + ( - - 29 )
----
NULL
29

skipif mysql # not compatible
query II rowsort label-7023
SELECT DISTINCT + 9 * - 66 - + CAST ( NULL AS INTEGER ) AS col1, + ( - - 29 )
----
NULL
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7024
SELECT - - 32 + - COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-7024
SELECT - - 32 + - COUNT ( * )
----
31

query I rowsort
SELECT + 17 * 68
----
1156

query I rowsort
SELECT - 82 * + ( 21 ) AS col2
----
-1722

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7027
SELECT DISTINCT - COUNT( * ) DIV + - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-7027
SELECT DISTINCT - COUNT ( * ) / + - COUNT ( * )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7028
SELECT DISTINCT + + 98 * + - ( - ( - 65 ) ) * - 9 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7028
SELECT DISTINCT + + 98 * + - ( - ( - 65 ) ) * - 9 - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7029
SELECT + + MIN( DISTINCT - 0 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7029
SELECT + + MIN ( DISTINCT - 0 ) AS col0
----
0

query I rowsort
SELECT ALL + - 92 col0
----
-92

query I rowsort
SELECT ALL + - 58
----
-58

query I rowsort
SELECT ALL + 71 AS col1
----
71

query I rowsort
SELECT ALL 78 + - - 16 AS col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7034
SELECT 82 + - MAX( DISTINCT + 69 )
----
13

skipif mysql # not compatible
query I rowsort label-7034
SELECT 82 + - MAX ( DISTINCT + 69 )
----
13

query I rowsort
SELECT DISTINCT - - 92 AS col1
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7036
SELECT - 66 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7036
SELECT - 66 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7037
SELECT ALL - 95 * - COUNT( * )
----
95

skipif mysql # not compatible
query I rowsort label-7037
SELECT ALL - 95 * - COUNT ( * )
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7038
SELECT 91 DIV - + SUM( ALL + 53 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7038
SELECT 91 / - + SUM ( ALL + 53 ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7039
SELECT COUNT( * ) * + 31 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7039
SELECT COUNT ( * ) * + 31 * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7040
SELECT ALL + 45 DIV + NULLIF ( - - 61, 29 ) * + 49
----
0

skipif mysql # not compatible
query I rowsort label-7040
SELECT ALL + 45 / + NULLIF ( - - 61, 29 ) * + 49
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7041
SELECT DISTINCT SUM( ALL + ( - CAST( NULL AS SIGNED ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7041
SELECT DISTINCT SUM ( ALL + ( - CAST ( NULL AS INTEGER ) ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7042
SELECT ALL 66 - + + MAX( + 44 ) + - 21
----
1

skipif mysql # not compatible
query I rowsort label-7042
SELECT ALL 66 - + + MAX ( + 44 ) + - 21
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7043
SELECT ALL + MAX( ALL - - 51 ) col2
----
51

skipif mysql # not compatible
query I rowsort label-7043
SELECT ALL + MAX ( ALL - - 51 ) col2
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7044
SELECT DISTINCT + CAST( - ( 41 ) AS SIGNED ) AS col2, 99
----
-41
99

skipif mysql # not compatible
query II rowsort label-7044
SELECT DISTINCT + CAST ( - ( 41 ) AS INTEGER ) AS col2, 99
----
-41
99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7045
SELECT + CAST( NULL AS DECIMAL ) + - + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-7045
SELECT + CAST ( NULL AS REAL ) + - + 50
----
NULL

query I rowsort
SELECT DISTINCT ( - 47 ) AS col0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7047
SELECT ALL ( - - COUNT( * ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-7047
SELECT ALL ( - - COUNT ( * ) ) col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7048
SELECT ALL 26 DIV - 81 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7048
SELECT ALL 26 / - 81 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7049
SELECT DISTINCT SUM( ALL 93 )
----
93

skipif mysql # not compatible
query I rowsort label-7049
SELECT DISTINCT SUM ( ALL 93 )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7050
SELECT DISTINCT + 34 + + SUM( DISTINCT 11 ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-7050
SELECT DISTINCT + 34 + + SUM ( DISTINCT 11 ) AS col2
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7051
SELECT ALL - CAST( NULL AS SIGNED ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7051
SELECT ALL - CAST ( NULL AS INTEGER ) * - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7052
SELECT DISTINCT - COUNT( DISTINCT CAST( NULL AS SIGNED ) ) col0
----
0

skipif mysql # not compatible
query I rowsort label-7052
SELECT DISTINCT - COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) col0
----
0

query I rowsort
SELECT DISTINCT - ( + - 14 ) AS col1
----
14

query I rowsort
SELECT 36 + + 63
----
99

query I rowsort
SELECT DISTINCT - ( + 9 ) AS col1
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7056
SELECT ALL - 0 DIV + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-7056
SELECT ALL - 0 / + COUNT ( * )
----
0

query I rowsort
SELECT + 75 + ( 29 + + 3 )
----
107

query I rowsort
SELECT ALL 86 - + 63
----
23

query I rowsort
SELECT - NULLIF ( 77, + 45 ) AS col1
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-7060
SELECT ALL 3 DIV 24
----
0

skipif mysql # not compatible
query I rowsort label-7060
SELECT ALL 3 / 24
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7061
SELECT + 2 * + COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-7061
SELECT + 2 * + COUNT ( * ) AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7062
SELECT ALL + SUM( DISTINCT + 3 ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-7062
SELECT ALL + SUM ( DISTINCT + 3 ) AS col0
----
3

query I rowsort
SELECT ( - 91 ) AS col2
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7064
SELECT ALL + MAX( ALL + 9 ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-7064
SELECT ALL + MAX ( ALL + 9 ) AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7065
SELECT DISTINCT 95 * COUNT( * )
----
95

skipif mysql # not compatible
query I rowsort label-7065
SELECT DISTINCT 95 * COUNT ( * )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-7066
SELECT - COUNT( * ) * 31 AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-7066
SELECT - COUNT ( * ) * 31 AS col0
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7067
SELECT - + 63 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7067
SELECT - + 63 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + 35 col0
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7069
SELECT + + COUNT( * ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7069
SELECT + + COUNT ( * ) + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7070
SELECT - CAST( 0 AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7070
SELECT - CAST ( 0 AS INTEGER ) AS col2
----
0

query I rowsort
SELECT + - 6 + 53
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7072
SELECT CAST( - COUNT( DISTINCT 81 ) AS SIGNED ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7072
SELECT CAST ( - COUNT ( DISTINCT 81 ) AS INTEGER ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7073
SELECT + CAST( - 70 AS SIGNED ) AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-7073
SELECT + CAST ( - 70 AS INTEGER ) AS col1
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-7074
SELECT + COUNT( * ) - 46
----
-45

skipif mysql # not compatible
query I rowsort label-7074
SELECT + COUNT ( * ) - 46
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-7075
SELECT ALL ( 63 ) * COUNT( * ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-7075
SELECT ALL ( 63 ) * COUNT ( * ) AS col2
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7076
SELECT CAST( 21 AS SIGNED ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-7076
SELECT CAST ( 21 AS INTEGER ) AS col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7077
SELECT DISTINCT 84 + - SUM( DISTINCT 3 ) + + 25 col2
----
106

skipif mysql # not compatible
query I rowsort label-7077
SELECT DISTINCT 84 + - SUM ( DISTINCT 3 ) + + 25 col2
----
106

query I rowsort
SELECT ALL ( + 84 ) - 15 AS col2
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-7079
SELECT + 67 AS col2, COUNT( * ) col1
----
67
1

skipif mysql # not compatible
query II rowsort label-7079
SELECT + 67 AS col2, COUNT ( * ) col1
----
67
1

query I rowsort
SELECT - - ( - 81 )
----
-81

query I rowsort
SELECT ALL - ( + 1 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7082
SELECT ALL NULLIF ( - CAST( NULL AS SIGNED ), - COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7082
SELECT ALL NULLIF ( - CAST ( NULL AS INTEGER ), - COUNT ( * ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7083
SELECT DISTINCT + COALESCE ( COUNT( * ), 57, - 10 )
----
1

skipif mysql # not compatible
query I rowsort label-7083
SELECT DISTINCT + COALESCE ( COUNT ( * ), 57, - 10 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7084
SELECT + MAX( DISTINCT 58 )
----
58

skipif mysql # not compatible
query I rowsort label-7084
SELECT + MAX ( DISTINCT 58 )
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7085
SELECT + - 19 DIV ( - COUNT( * ) )
----
19

skipif mysql # not compatible
query I rowsort label-7085
SELECT + - 19 / ( - COUNT ( * ) )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-7086
SELECT DISTINCT - ( + COUNT( * ) ) * + - COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7086
SELECT DISTINCT - ( + COUNT ( * ) ) * + - COUNT ( * ) AS col0
----
1

query I rowsort
SELECT DISTINCT + + 37 AS col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7088
SELECT COUNT( - 40 )
----
1

skipif mysql # not compatible
query I rowsort label-7088
SELECT COUNT ( - 40 )
----
1

query I rowsort
SELECT ALL 64 + + 55 AS col0
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-7090
SELECT ( - COUNT( * ) ) * - + 15
----
15

skipif mysql # not compatible
query I rowsort label-7090
SELECT ( - COUNT ( * ) ) * - + 15
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7091
SELECT ALL 11 DIV - - ( + COUNT( * ) )
----
11

skipif mysql # not compatible
query I rowsort label-7091
SELECT ALL 11 / - - ( + COUNT ( * ) )
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7092
SELECT + - CAST( + CAST( 54 AS SIGNED ) AS SIGNED ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-7092
SELECT + - CAST ( + CAST ( 54 AS INTEGER ) AS INTEGER ) AS col2
----
-54

query I rowsort
SELECT 43 * 74
----
3182

query I rowsort
SELECT ALL - + 56 AS col2
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7095
SELECT + - CAST( + 78 AS SIGNED ) AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-7095
SELECT + - CAST ( + 78 AS INTEGER ) AS col1
----
-78

query I rowsort
SELECT DISTINCT 36 col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7097
SELECT MIN( 33 ) * 39 AS col2
----
1287

skipif mysql # not compatible
query I rowsort label-7097
SELECT MIN ( 33 ) * 39 AS col2
----
1287

query I rowsort
SELECT DISTINCT 70 * - - 85
----
5950

onlyif mysql # aggregate syntax: 
query I rowsort label-7099
SELECT ALL - + SUM( DISTINCT + 18 ) AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-7099
SELECT ALL - + SUM ( DISTINCT + 18 ) AS col0
----
-18

query I rowsort
SELECT ALL + ( - - 24 ) AS col0
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7101
SELECT DISTINCT + COUNT( * ) DIV + 46 col0
----
0

skipif mysql # not compatible
query I rowsort label-7101
SELECT DISTINCT + COUNT ( * ) / + 46 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7102
SELECT ALL - 97 - + - COUNT( * ) col1
----
-96

skipif mysql # not compatible
query I rowsort label-7102
SELECT ALL - 97 - + - COUNT ( * ) col1
----
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7103
SELECT - 6 DIV - COUNT( * ) + - 87
----
-81

skipif mysql # not compatible
query I rowsort label-7103
SELECT - 6 / - COUNT ( * ) + - 87
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7104
SELECT CASE - - 73 WHEN + COUNT( * ) THEN - + 19 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7104
SELECT CASE - - 73 WHEN + COUNT ( * ) THEN - + 19 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7105
SELECT + 60 DIV - 39 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7105
SELECT + 60 / - 39 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7106
SELECT + COUNT( 31 ) + + + COUNT( ALL + - 89 ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-7106
SELECT + COUNT ( 31 ) + + + COUNT ( ALL + - 89 ) AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7107
SELECT - + 68 * - COUNT( * ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-7107
SELECT - + 68 * - COUNT ( * ) AS col0
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7108
SELECT DISTINCT - CAST( - COUNT( * ) AS SIGNED ) + - 8
----
-7

skipif mysql # not compatible
query I rowsort label-7108
SELECT DISTINCT - CAST ( - COUNT ( * ) AS INTEGER ) + - 8
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7109
SELECT 80 - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7109
SELECT 80 - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 63 - - 31 AS col2
----
94

query I rowsort
SELECT 13 col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7112
SELECT - MIN( ALL 47 )
----
-47

skipif mysql # not compatible
query I rowsort label-7112
SELECT - MIN ( ALL 47 )
----
-47

query I rowsort
SELECT 70 * + 93
----
6510

query I rowsort
SELECT DISTINCT + 16 * - 11 AS col1
----
-176

query I rowsort
SELECT DISTINCT + 54 * - - 34
----
1836

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7116
SELECT - - CAST( + - 5 AS SIGNED )
----
-5

skipif mysql # not compatible
query I rowsort label-7116
SELECT - - CAST ( + - 5 AS INTEGER )
----
-5

query II rowsort
SELECT - - 57 AS col1, - 70 AS col1
----
57
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-7118
SELECT ALL + COUNT( + 37 )
----
1

skipif mysql # not compatible
query I rowsort label-7118
SELECT ALL + COUNT ( + 37 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7119
SELECT DISTINCT - + 35 + - - SUM( DISTINCT + 25 ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-7119
SELECT DISTINCT - + 35 + - - SUM ( DISTINCT + 25 ) AS col1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-7120
SELECT + MIN( 96 ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-7120
SELECT + MIN ( 96 ) AS col1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7121
SELECT DISTINCT COUNT( * ) * - 35 AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-7121
SELECT DISTINCT COUNT ( * ) * - 35 AS col0
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7122
SELECT + CAST( 43 AS SIGNED ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-7122
SELECT + CAST ( 43 AS INTEGER ) AS col2
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7123
SELECT + CAST( + - 76 AS SIGNED )
----
-76

skipif mysql # not compatible
query I rowsort label-7123
SELECT + CAST ( + - 76 AS INTEGER )
----
-76

query I rowsort
SELECT ( - 39 ) col2
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-7125
SELECT + COUNT( * ) AS col1, 20 col2
----
1
20

skipif mysql # not compatible
query II rowsort label-7125
SELECT + COUNT ( * ) AS col1, 20 col2
----
1
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7126
SELECT ALL - + COUNT( * ) * 30 AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-7126
SELECT ALL - + COUNT ( * ) * 30 AS col2
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7127
SELECT - - 28 * - 22 + + CAST( NULL AS SIGNED ) * + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7127
SELECT - - 28 * - 22 + + CAST ( NULL AS INTEGER ) * + + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7128
SELECT - + CAST( - COUNT( * ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-7128
SELECT - + CAST ( - COUNT ( * ) AS INTEGER )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7129
SELECT 8 * - MIN( DISTINCT + + ( + 6 ) )
----
-48

skipif mysql # not compatible
query I rowsort label-7129
SELECT 8 * - MIN ( DISTINCT + + ( + 6 ) )
----
-48

query I rowsort
SELECT ALL 82 * - 70 col1
----
-5740

onlyif mysql # aggregate syntax: 
query I rowsort label-7131
SELECT ALL - 35 * + COUNT( * ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-7131
SELECT ALL - 35 * + COUNT ( * ) AS col0
----
-35

query I rowsort
SELECT NULLIF ( 9, + 2 ) AS col2
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7133
SELECT DISTINCT + 77 * CAST( NULL AS SIGNED ) + + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-7133
SELECT DISTINCT + 77 * CAST ( NULL AS INTEGER ) + + 86
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7134
SELECT + 29 * COUNT( * )
----
29

skipif mysql # not compatible
query I rowsort label-7134
SELECT + 29 * COUNT ( * )
----
29

query I rowsort
SELECT ALL + - 28 AS col1
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-7136
SELECT ALL COUNT( * ) AS col1, 96 AS col1
----
1
96

skipif mysql # not compatible
query II rowsort label-7136
SELECT ALL COUNT ( * ) AS col1, 96 AS col1
----
1
96

query I rowsort
SELECT ALL 0 + + 6 AS col2
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-7138
SELECT ALL + ( + COUNT( * ) ) AS col1, 78 + + - 53
----
1
25

skipif mysql # not compatible
query II rowsort label-7138
SELECT ALL + ( + COUNT ( * ) ) AS col1, 78 + + - 53
----
1
25

query II rowsort
SELECT 95, + 40 AS col0
----
95
40

onlyif mysql # aggregate syntax: 
query II rowsort label-7140
SELECT + COUNT( * ) AS col1, 67
----
1
67

skipif mysql # not compatible
query II rowsort label-7140
SELECT + COUNT ( * ) AS col1, 67
----
1
67

query I rowsort
SELECT ALL + ( - 46 ) AS col0
----
-46

query II rowsort
SELECT ALL + - 35 AS col1, - 3
----
-35
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-7143
SELECT 51 DIV 79 AS col1, - 62 AS col0
----
0
-62

skipif mysql # not compatible
query II rowsort label-7143
SELECT 51 / 79 AS col1, - 62 AS col0
----
0
-62

query I rowsort
SELECT + - ( 9 )
----
-9

query I rowsort
SELECT - ( + 7 ) AS col0
----
-7

query I rowsort
SELECT DISTINCT - + 1 col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7147
SELECT COUNT( * ) + + - 68
----
-67

skipif mysql # not compatible
query I rowsort label-7147
SELECT COUNT ( * ) + + - 68
----
-67

query I rowsort
SELECT 74 - + 53 AS col0
----
21

query I rowsort
SELECT DISTINCT - 36 + 63 col0
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7150
SELECT DISTINCT - CAST( NULL AS SIGNED ) - 44 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7150
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - 44 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7151
SELECT ALL - 18 DIV 77 col2
----
0

skipif mysql # not compatible
query I rowsort label-7151
SELECT ALL - 18 / 77 col2
----
0

query I rowsort
SELECT DISTINCT ( - 39 ) AS col1
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-7153
SELECT ALL 16 DIV - + 54 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7153
SELECT ALL 16 / - + 54 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7154
SELECT - SUM( 7 ) - 80 AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-7154
SELECT - SUM ( 7 ) - 80 AS col1
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-7155
SELECT ALL COUNT( + 80 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7155
SELECT ALL COUNT ( + 80 ) AS col1
----
1

query I rowsort
SELECT ALL CASE - 17 WHEN + - 97 * - 18 THEN + 16 END
----
NULL

query I rowsort
SELECT DISTINCT - + 99 + - - ( - 22 )
----
-121

query I rowsort
SELECT ALL 43 + 21 AS col2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7159
SELECT ALL + ( + MIN( ALL - 22 ) ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-7159
SELECT ALL + ( + MIN ( ALL - 22 ) ) AS col1
----
-22

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7160
SELECT ( + - CAST( NULL AS DECIMAL ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7160
SELECT ( + - CAST ( NULL AS REAL ) ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7161
SELECT - MIN( DISTINCT 49 )
----
-49

skipif mysql # not compatible
query I rowsort label-7161
SELECT - MIN ( DISTINCT 49 )
----
-49

query I rowsort
SELECT ALL - ( - 87 )
----
87

query I rowsort
SELECT ALL + 0 * - 49 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7164
SELECT + CAST( + - 52 AS SIGNED ) + - 15 + + + SUM( + 93 ) col1
----
26

skipif mysql # not compatible
query I rowsort label-7164
SELECT + CAST ( + - 52 AS INTEGER ) + - 15 + + + SUM ( + 93 ) col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7165
SELECT + - 1 * + + COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7165
SELECT + - 1 * + + COUNT ( * ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7166
SELECT ALL + SUM( - + ( + 41 ) )
----
-41

skipif mysql # not compatible
query I rowsort label-7166
SELECT ALL + SUM ( - + ( + 41 ) )
----
-41

query I rowsort
SELECT - ( 50 ) * 5 AS col0
----
-250

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7168
SELECT + - CAST( - + 31 AS SIGNED ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-7168
SELECT + - CAST ( - + 31 AS INTEGER ) AS col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-7169
SELECT DISTINCT - MAX( 13 )
----
-13

skipif mysql # not compatible
query I rowsort label-7169
SELECT DISTINCT - MAX ( 13 )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-7170
SELECT DISTINCT - SUM( DISTINCT + 55 ) * ( - 83 ) col2
----
4565

skipif mysql # not compatible
query I rowsort label-7170
SELECT DISTINCT - SUM ( DISTINCT + 55 ) * ( - 83 ) col2
----
4565

query I rowsort
SELECT ALL 97 col2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7172
SELECT ALL COUNT( * ) - + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7172
SELECT ALL COUNT ( * ) - + COUNT ( * ) AS col0
----
0

query I rowsort
SELECT DISTINCT ( - 8 ) AS col1
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-7174
SELECT ALL COUNT( * ), 13 AS col0
----
1
13

skipif mysql # not compatible
query II rowsort label-7174
SELECT ALL COUNT ( * ), 13 AS col0
----
1
13

query I rowsort
SELECT + 56 col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7176
SELECT - 77 + + COUNT( * ) col1
----
-76

skipif mysql # not compatible
query I rowsort label-7176
SELECT - 77 + + COUNT ( * ) col1
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-7177
SELECT + - COUNT( * ) + - 95 + + 94
----
-2

skipif mysql # not compatible
query I rowsort label-7177
SELECT + - COUNT ( * ) + - 95 + + 94
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7178
SELECT SUM( DISTINCT 48 ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-7178
SELECT SUM ( DISTINCT 48 ) AS col1
----
48

query I rowsort
SELECT ALL + + 57 col2
----
57

query I rowsort
SELECT + 17 * 51 col2
----
867

onlyif mysql # aggregate syntax: 
query I rowsort label-7181
SELECT DISTINCT - 96 * - COUNT( * )
----
96

skipif mysql # not compatible
query I rowsort label-7181
SELECT DISTINCT - 96 * - COUNT ( * )
----
96

query I rowsort
SELECT DISTINCT - ( + 21 ) AS col1
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7183
SELECT 86 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7183
SELECT 86 * - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7184
SELECT COUNT( * ) * - + 89 * - COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-7184
SELECT COUNT ( * ) * - + 89 * - COUNT ( * )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-7185
SELECT ALL 57 * COUNT( * ) - - + 2
----
59

skipif mysql # not compatible
query I rowsort label-7185
SELECT ALL 57 * COUNT ( * ) - - + 2
----
59

query I rowsort
SELECT ALL - - 69 AS col1
----
69

query I rowsort
SELECT 69 + 92
----
161

onlyif mysql # aggregate syntax: 
query I rowsort label-7188
SELECT ALL + COUNT( * ) + - 66 col1
----
-65

skipif mysql # not compatible
query I rowsort label-7188
SELECT ALL + COUNT ( * ) + - 66 col1
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7189
SELECT - + CAST( + COUNT( * ) AS SIGNED ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7189
SELECT - + CAST ( + COUNT ( * ) AS INTEGER ) AS col0
----
-1

query I rowsort
SELECT ALL - - 93 - - 32
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-7191
SELECT COUNT( 86 )
----
1

skipif mysql # not compatible
query I rowsort label-7191
SELECT COUNT ( 86 )
----
1

query I rowsort
SELECT ALL + 35 col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7193
SELECT ALL - COUNT( * ) * + + COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7193
SELECT ALL - COUNT ( * ) * + + COUNT ( * ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7194
SELECT DISTINCT NULLIF ( + + COUNT( * ), + - 80 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7194
SELECT DISTINCT NULLIF ( + + COUNT ( * ), + - 80 ) AS col1
----
1

query II rowsort
SELECT ALL + 19 AS col2, 34 AS col1
----
19
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7196
SELECT 46 + - + ( - COUNT( * ) )
----
47

skipif mysql # not compatible
query I rowsort label-7196
SELECT 46 + - + ( - COUNT ( * ) )
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-7197
SELECT - 7 DIV + + 55
----
0

skipif mysql # not compatible
query I rowsort label-7197
SELECT - 7 / + + 55
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7198
SELECT 31 * + MIN( CAST( NULL AS SIGNED ) ) * - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-7198
SELECT 31 * + MIN ( CAST ( NULL AS INTEGER ) ) * - 68
----
NULL

query I rowsort
SELECT ALL - ( 13 )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-7200
SELECT ALL - COUNT( * ) - + - ( - 69 )
----
-70

skipif mysql # not compatible
query I rowsort label-7200
SELECT ALL - COUNT ( * ) - + - ( - 69 )
----
-70

query I rowsort
SELECT 11 * - 98 AS col2
----
-1078

onlyif mysql # aggregate syntax: 
query I rowsort label-7202
SELECT ALL SUM( 49 ) col1
----
49

skipif mysql # not compatible
query I rowsort label-7202
SELECT ALL SUM ( 49 ) col1
----
49

query I rowsort
SELECT ALL 47 + - - ( + 86 )
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-7204
SELECT 81 + - COUNT( * )
----
80

skipif mysql # not compatible
query I rowsort label-7204
SELECT 81 + - COUNT ( * )
----
80

query I rowsort
SELECT - 18 * - 56
----
1008

onlyif mysql # aggregate syntax: 
query I rowsort label-7206
SELECT ALL + MIN( - + 89 ) AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-7206
SELECT ALL + MIN ( - + 89 ) AS col2
----
-89

query I rowsort
SELECT - - ( 34 ) AS col0
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7208
SELECT ALL COUNT( * ) - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7208
SELECT ALL COUNT ( * ) - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7209
SELECT - COALESCE ( - 44, MIN( + 40 ) )
----
44

skipif mysql # not compatible
query I rowsort label-7209
SELECT - COALESCE ( - 44, MIN ( + 40 ) )
----
44

query I rowsort
SELECT ALL 27 col1
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7211
SELECT ALL CAST( NULL AS SIGNED ) / + + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-7211
SELECT ALL CAST ( NULL AS INTEGER ) / + + 28
----
NULL

query I rowsort
SELECT ( - - 33 ) col2
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7213
SELECT + ( COUNT( * ) ) DIV + - COUNT( * ) - - - COUNT( * ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-7213
SELECT + ( COUNT ( * ) ) / + - COUNT ( * ) - - - COUNT ( * ) AS col1
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7214
SELECT DISTINCT CAST( NULL AS SIGNED ) * COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7214
SELECT DISTINCT CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7215
SELECT COUNT( * ) * 59 col2
----
59

skipif mysql # not compatible
query I rowsort label-7215
SELECT COUNT ( * ) * 59 col2
----
59

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7216
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - + ( 25 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7216
SELECT DISTINCT CAST ( NULL AS REAL ) * - + ( 25 )
----
NULL

query I rowsort
SELECT - ( - 3 )
----
3

query I rowsort
SELECT ALL - - ( - 1 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7219
SELECT ALL - ( CAST( NULL AS SIGNED ) ) / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7219
SELECT ALL - ( CAST ( NULL AS INTEGER ) ) / COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7220
SELECT DISTINCT + + MIN( - + 38 )
----
-38

skipif mysql # not compatible
query I rowsort label-7220
SELECT DISTINCT + + MIN ( - + 38 )
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-7221
SELECT ALL SUM( - - 56 ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-7221
SELECT ALL SUM ( - - 56 ) AS col1
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-7222
SELECT DISTINCT COUNT( * ) col0, COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-7222
SELECT DISTINCT COUNT ( * ) col0, COUNT ( * )
----
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7223
SELECT DISTINCT + 26 DIV - COUNT( * ) * COUNT( * ) AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-7223
SELECT DISTINCT + 26 / - COUNT ( * ) * COUNT ( * ) AS col2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-7224
SELECT DISTINCT - + 23 * - SUM( - 36 ) + + COUNT( - 38 )
----
-827

skipif mysql # not compatible
query I rowsort label-7224
SELECT DISTINCT - + 23 * - SUM ( - 36 ) + + COUNT ( - 38 )
----
-827

query I rowsort
SELECT - ( + + 47 )
----
-47

query I rowsort
SELECT + 1 + + - 38 AS col2
----
-37

query I rowsort
SELECT 30 + 20
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-7228
SELECT - 41 - + + COUNT( * ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-7228
SELECT - 41 - + + COUNT ( * ) AS col1
----
-42

query I rowsort
SELECT DISTINCT - + 15 AS col2
----
-15

query II rowsort
SELECT + 6 AS col0, 96
----
6
96

query I rowsort
SELECT DISTINCT - ( ( - 53 ) ) AS col2
----
53

query I rowsort
SELECT 55 - 55 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7233
SELECT DISTINCT + COALESCE ( - COUNT( * ), + 29 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-7233
SELECT DISTINCT + COALESCE ( - COUNT ( * ), + 29 ) col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7234
SELECT ALL - + COUNT( * ) + + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-7234
SELECT ALL - + COUNT ( * ) + + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7235
SELECT MAX( + + 96 )
----
96

skipif mysql # not compatible
query I rowsort label-7235
SELECT MAX ( + + 96 )
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7236
SELECT ALL + ( + COUNT( * ) ) AS col0, CAST( - - 56 AS SIGNED )
----
1
56

skipif mysql # not compatible
query II rowsort label-7236
SELECT ALL + ( + COUNT ( * ) ) AS col0, CAST ( - - 56 AS INTEGER )
----
1
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7237
SELECT CAST( - 17 AS SIGNED ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-7237
SELECT CAST ( - 17 AS INTEGER ) AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-7238
SELECT 94 * - COUNT( * ) AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-7238
SELECT 94 * - COUNT ( * ) AS col0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-7239
SELECT DISTINCT - COUNT( * ) * + 71
----
-71

skipif mysql # not compatible
query I rowsort label-7239
SELECT DISTINCT - COUNT ( * ) * + 71
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-7240
SELECT COUNT( * ) + + + 33
----
34

skipif mysql # not compatible
query I rowsort label-7240
SELECT COUNT ( * ) + + + 33
----
34

query I rowsort
SELECT 3 + + 68
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7242
SELECT 68 + NULLIF ( - - ( + COUNT( * ) ), + ( - 50 ) ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-7242
SELECT 68 + NULLIF ( - - ( + COUNT ( * ) ), + ( - 50 ) ) AS col1
----
69

query I rowsort
SELECT DISTINCT - ( + 33 ) AS col0
----
-33

query I rowsort
SELECT DISTINCT 81 + + 35 AS col2
----
116

query I rowsort
SELECT DISTINCT - ( + 82 )
----
-82

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7246
SELECT SUM( - CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7246
SELECT SUM ( - CAST ( NULL AS REAL ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7247
SELECT ALL + CAST( 35 AS SIGNED ) * + - MIN( - 84 ) * 48 + - - 28
----
141148

skipif mysql # not compatible
query I rowsort label-7247
SELECT ALL + CAST ( 35 AS INTEGER ) * + - MIN ( - 84 ) * 48 + - - 28
----
141148

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7248
SELECT - CAST( NULL AS SIGNED ) * CAST( + COUNT( * ) AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7248
SELECT - CAST ( NULL AS INTEGER ) * CAST ( + COUNT ( * ) AS REAL ) AS col0
----
NULL

query I rowsort
SELECT ALL + 38 col1
----
38

query I rowsort
SELECT - + 48 + + 22 AS col2
----
-26

query I rowsort
SELECT ( + 51 )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7252
SELECT + - MIN( ALL - 15 ) + - MAX( 42 )
----
-27

skipif mysql # not compatible
query I rowsort label-7252
SELECT + - MIN ( ALL - 15 ) + - MAX ( 42 )
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-7253
SELECT - 34 DIV - 65 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7253
SELECT - 34 / - 65 AS col2
----
0

query I rowsort
SELECT ALL + 44 col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7255
SELECT - 23 + COUNT( * )
----
-22

skipif mysql # not compatible
query I rowsort label-7255
SELECT - 23 + COUNT ( * )
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7256
SELECT CAST( 81 AS SIGNED )
----
81

skipif mysql # not compatible
query I rowsort label-7256
SELECT CAST ( 81 AS INTEGER )
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7257
SELECT ALL + NULLIF ( + 81, 68 - - ( + 73 ) + COUNT( * ) + - 90 * CAST( NULL AS SIGNED ) * 53 )
----
81

skipif mysql # not compatible
query I rowsort label-7257
SELECT ALL + NULLIF ( + 81, 68 - - ( + 73 ) + COUNT ( * ) + - 90 * CAST ( NULL AS INTEGER ) * 53 )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7258
SELECT ALL + MAX( ALL + 47 )
----
47

skipif mysql # not compatible
query I rowsort label-7258
SELECT ALL + MAX ( ALL + 47 )
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-7259
SELECT COUNT( * ) * + COUNT( * ) AS col2, 51 AS col0
----
1
51

skipif mysql # not compatible
query II rowsort label-7259
SELECT COUNT ( * ) * + COUNT ( * ) AS col2, 51 AS col0
----
1
51

query I rowsort
SELECT DISTINCT - 66 col2
----
-66

query I rowsort
SELECT ALL + 2 + - 33
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-7262
SELECT + + COUNT( DISTINCT + 64 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-7262
SELECT + + COUNT ( DISTINCT + 64 ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7263
SELECT + + 11 * - COUNT( * ) + - + COUNT( ALL - 55 ) AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-7263
SELECT + + 11 * - COUNT ( * ) + - + COUNT ( ALL - 55 ) AS col2
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7264
SELECT ALL MIN( DISTINCT 69 ) col0, CAST( NULL AS SIGNED ) + SUM( - 58 )
----
69
NULL

skipif mysql # not compatible
query II rowsort label-7264
SELECT ALL MIN ( DISTINCT 69 ) col0, CAST ( NULL AS INTEGER ) + SUM ( - 58 )
----
69
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7265
SELECT - 68 DIV 52
----
-1

skipif mysql # not compatible
query I rowsort label-7265
SELECT - 68 / 52
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7266
SELECT + COALESCE ( - - 8, + COUNT( * ), + 4 )
----
8

skipif mysql # not compatible
query I rowsort label-7266
SELECT + COALESCE ( - - 8, + COUNT ( * ), + 4 )
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7267
SELECT MAX( DISTINCT - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7267
SELECT MAX ( DISTINCT - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7268
SELECT COUNT( - + 12 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7268
SELECT COUNT ( - + 12 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7269
SELECT ALL COALESCE ( 40, + COUNT( * ) ) AS col1, + 79
----
40
79

skipif mysql # not compatible
query II rowsort label-7269
SELECT ALL COALESCE ( 40, + COUNT ( * ) ) AS col1, + 79
----
40
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7270
SELECT DISTINCT + CAST( + COUNT( * ) AS SIGNED ) + + 79 * COUNT( * )
----
80

skipif mysql # not compatible
query I rowsort label-7270
SELECT DISTINCT + CAST ( + COUNT ( * ) AS INTEGER ) + + 79 * COUNT ( * )
----
80

query I rowsort
SELECT DISTINCT + 25 - 24 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7272
SELECT 74 * COUNT( * )
----
74

skipif mysql # not compatible
query I rowsort label-7272
SELECT 74 * COUNT ( * )
----
74

query I rowsort
SELECT DISTINCT - 86 col1
----
-86

query I rowsort
SELECT DISTINCT 25 * 93
----
2325

query I rowsort
SELECT ALL - 60 + 94 AS col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7276
SELECT DISTINCT + 27 + + COUNT( * ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-7276
SELECT DISTINCT + 27 + + COUNT ( * ) AS col1
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-7277
SELECT 44 DIV 61
----
0

skipif mysql # not compatible
query I rowsort label-7277
SELECT 44 / 61
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7278
SELECT + + COUNT( * ) + + - 6
----
-5

skipif mysql # not compatible
query I rowsort label-7278
SELECT + + COUNT ( * ) + + - 6
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7279
SELECT ALL COUNT( * ) * 43
----
43

skipif mysql # not compatible
query I rowsort label-7279
SELECT ALL COUNT ( * ) * 43
----
43

query I rowsort
SELECT ALL + ( + 97 )
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-7281
SELECT + 86 DIV + + 3
----
28

skipif mysql # not compatible
query I rowsort label-7281
SELECT + 86 / + + 3
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-7282
SELECT COUNT( * ) col0, 90 AS col2
----
1
90

skipif mysql # not compatible
query II rowsort label-7282
SELECT COUNT ( * ) col0, 90 AS col2
----
1
90

query I rowsort
SELECT ALL - ( - + 56 ) AS col1
----
56

query I rowsort
SELECT - CASE - - 49 WHEN - + 36 + 18 THEN 78 - 40 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7285
SELECT DISTINCT COUNT( * ) AS col0, - 30
----
1
-30

skipif mysql # not compatible
query II rowsort label-7285
SELECT DISTINCT COUNT ( * ) AS col0, - 30
----
1
-30

query I rowsort
SELECT - + ( + + 96 )
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7287
SELECT ALL COUNT( * ) * - ( - 90 )
----
90

skipif mysql # not compatible
query I rowsort label-7287
SELECT ALL COUNT ( * ) * - ( - 90 )
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7288
SELECT CAST( + - 22 AS SIGNED ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-7288
SELECT CAST ( + - 22 AS INTEGER ) AS col2
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7289
SELECT ALL - COUNT( * ) + + COUNT( * ) DIV - COUNT( * ) AS col0, - ( - 31 ) AS col2
----
-2
31

skipif mysql # not compatible
query II rowsort label-7289
SELECT ALL - COUNT ( * ) + + COUNT ( * ) / - COUNT ( * ) AS col0, - ( - 31 ) AS col2
----
-2
31

onlyif mysql # DIV for integer division: 
query I rowsort label-7290
SELECT 64 DIV 4
----
16

skipif mysql # not compatible
query I rowsort label-7290
SELECT 64 / 4
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-7291
SELECT ALL COUNT( - 0 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7291
SELECT ALL COUNT ( - 0 ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7292
SELECT DISTINCT - CAST( 58 AS SIGNED ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-7292
SELECT DISTINCT - CAST ( 58 AS INTEGER ) AS col2
----
-58

query I rowsort
SELECT + 47 + - 98
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7294
SELECT - CAST( MAX( DISTINCT 41 ) AS SIGNED ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-7294
SELECT - CAST ( MAX ( DISTINCT 41 ) AS INTEGER ) AS col0
----
-41

query I rowsort
SELECT ALL - 56 * + 71
----
-3976

query I rowsort
SELECT DISTINCT + 4 col0
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7297
SELECT ALL - CAST( NULL AS SIGNED ) / + 13
----
NULL

skipif mysql # not compatible
query I rowsort label-7297
SELECT ALL - CAST ( NULL AS INTEGER ) / + 13
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7298
SELECT COUNT( * ) * - - 12 * SUM( - 40 )
----
-480

skipif mysql # not compatible
query I rowsort label-7298
SELECT COUNT ( * ) * - - 12 * SUM ( - 40 )
----
-480

onlyif mysql # aggregate syntax: 
query I rowsort label-7299
SELECT DISTINCT COUNT( * ) + + 81
----
82

skipif mysql # not compatible
query I rowsort label-7299
SELECT DISTINCT COUNT ( * ) + + 81
----
82

query I rowsort
SELECT ALL + ( 74 )
----
74

onlyif mysql # DIV for integer division: 
query II rowsort label-7301
SELECT DISTINCT 86 DIV + 73 col2, + 32
----
1
32

skipif mysql # not compatible
query II rowsort label-7301
SELECT DISTINCT 86 / + 73 col2, + 32
----
1
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7302
SELECT SUM( ALL - 5 )
----
-5

skipif mysql # not compatible
query I rowsort label-7302
SELECT SUM ( ALL - 5 )
----
-5

query I rowsort
SELECT ALL - - 31
----
31

query I rowsort
SELECT ( ( 98 ) )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7305
SELECT - COUNT( * ) - + - 99
----
98

skipif mysql # not compatible
query I rowsort label-7305
SELECT - COUNT ( * ) - + - 99
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-7306
SELECT - 74 DIV + 73 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7306
SELECT - 74 / + 73 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7307
SELECT - COUNT( * ) * - 81 col1
----
81

skipif mysql # not compatible
query I rowsort label-7307
SELECT - COUNT ( * ) * - 81 col1
----
81

query I rowsort
SELECT ALL 58 - 47
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7309
SELECT CAST( + + 7 AS SIGNED )
----
7

skipif mysql # not compatible
query I rowsort label-7309
SELECT CAST ( + + 7 AS INTEGER )
----
7

query I rowsort
SELECT ALL + - 78 AS col1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-7311
SELECT ALL - 11 * + + COUNT( * )
----
-11

skipif mysql # not compatible
query I rowsort label-7311
SELECT ALL - 11 * + + COUNT ( * )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-7312
SELECT ALL MIN( - 4 ) - + ( COUNT( * ) )
----
-5

skipif mysql # not compatible
query I rowsort label-7312
SELECT ALL MIN ( - 4 ) - + ( COUNT ( * ) )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7313
SELECT - ( + 70 ) + - + SUM( DISTINCT 24 ) AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-7313
SELECT - ( + 70 ) + - + SUM ( DISTINCT 24 ) AS col0
----
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-7314
SELECT ALL - 68 AS col1, + 57 * 28 * + - COUNT( * )
----
-68
-1596

skipif mysql # not compatible
query II rowsort label-7314
SELECT ALL - 68 AS col1, + 57 * 28 * + - COUNT ( * )
----
-68
-1596

query I rowsort
SELECT DISTINCT - 97 * + 51
----
-4947

onlyif mysql # aggregate syntax: 
query II rowsort label-7316
SELECT DISTINCT - COUNT( * ) AS col1, + 13
----
-1
13

skipif mysql # not compatible
query II rowsort label-7316
SELECT DISTINCT - COUNT ( * ) AS col1, + 13
----
-1
13

query I rowsort
SELECT ALL ( 78 )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7318
SELECT DISTINCT - - MAX( 25 ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-7318
SELECT DISTINCT - - MAX ( 25 ) AS col1
----
25

query I rowsort
SELECT DISTINCT - ( - 17 ) col2
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-7320
SELECT - COUNT( * ), + 56 AS col1
----
-1
56

skipif mysql # not compatible
query II rowsort label-7320
SELECT - COUNT ( * ), + 56 AS col1
----
-1
56

query I rowsort
SELECT DISTINCT - 63 * + 79
----
-4977

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7322
SELECT DISTINCT COUNT( DISTINCT - - CAST( NULL AS SIGNED ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7322
SELECT DISTINCT COUNT ( DISTINCT - - CAST ( NULL AS INTEGER ) ) AS col2
----
0

query I rowsort
SELECT + + 75 - 63 AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7324
SELECT ALL - COUNT( + - 54 )
----
-1

skipif mysql # not compatible
query I rowsort label-7324
SELECT ALL - COUNT ( + - 54 )
----
-1

query I rowsort
SELECT DISTINCT + - 83 AS col1
----
-83

query I rowsort
SELECT DISTINCT + ( 56 ) AS col0
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-7327
SELECT - + 87 * - 21 AS col2, COUNT( * )
----
1827
1

skipif mysql # not compatible
query II rowsort label-7327
SELECT - + 87 * - 21 AS col2, COUNT ( * )
----
1827
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7328
SELECT ALL + SUM( ALL - 75 ) AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-7328
SELECT ALL + SUM ( ALL - 75 ) AS col0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7329
SELECT ALL + MIN( DISTINCT 36 ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-7329
SELECT ALL + MIN ( DISTINCT 36 ) AS col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7330
SELECT DISTINCT + COUNT( * ) * + + 23 AS col2
----
23

skipif mysql # not compatible
query I rowsort label-7330
SELECT DISTINCT + COUNT ( * ) * + + 23 AS col2
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7331
SELECT CAST( + 36 AS SIGNED ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-7331
SELECT CAST ( + 36 AS INTEGER ) AS col1
----
36

query I rowsort
SELECT DISTINCT 81 - 76 AS col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7333
SELECT ALL - 61 * COUNT( * )
----
-61

skipif mysql # not compatible
query I rowsort label-7333
SELECT ALL - 61 * COUNT ( * )
----
-61

query I rowsort
SELECT DISTINCT 74 + - 19 AS col0
----
55

query I rowsort
SELECT ALL 73 + 73
----
146

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7336
SELECT + CAST( - 44 AS SIGNED )
----
-44

skipif mysql # not compatible
query I rowsort label-7336
SELECT + CAST ( - 44 AS INTEGER )
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-7337
SELECT - 93 DIV - 8 AS col2
----
11

skipif mysql # not compatible
query I rowsort label-7337
SELECT - 93 / - 8 AS col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7338
SELECT COUNT( * ) * + - 74 + + 3 AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-7338
SELECT COUNT ( * ) * + - 74 + + 3 AS col1
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-7339
SELECT COUNT( * ) - + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-7339
SELECT COUNT ( * ) - + COUNT ( * )
----
0

query I rowsort
SELECT + + 62 col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-7341
SELECT + + 75 * - COUNT( * ) AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-7341
SELECT + + 75 * - COUNT ( * ) AS col1
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7342
SELECT DISTINCT - 37 * - COUNT( * ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-7342
SELECT DISTINCT - 37 * - COUNT ( * ) AS col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7343
SELECT + + 7 + COUNT( * ) col0
----
8

skipif mysql # not compatible
query I rowsort label-7343
SELECT + + 7 + COUNT ( * ) col0
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-7344
SELECT + - 49 DIV + 85
----
0

skipif mysql # not compatible
query I rowsort label-7344
SELECT + - 49 / + 85
----
0

query I rowsort
SELECT + - NULLIF ( - - 39, - - 39 ) + 32 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7346
SELECT ALL 70 DIV COUNT( * ) * COUNT( * ) * + 62
----
4340

skipif mysql # not compatible
query I rowsort label-7346
SELECT ALL 70 / COUNT ( * ) * COUNT ( * ) * + 62
----
4340

onlyif mysql # aggregate syntax: 
query I rowsort label-7347
SELECT MAX( 14 ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-7347
SELECT MAX ( 14 ) AS col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7348
SELECT ALL + SUM( ALL ( 62 ) ) col0
----
62

skipif mysql # not compatible
query I rowsort label-7348
SELECT ALL + SUM ( ALL ( 62 ) ) col0
----
62

query I rowsort
SELECT ALL 85 * - + 14
----
-1190

onlyif mysql # aggregate syntax: 
query I rowsort label-7350
SELECT ALL COUNT( * ) + + - 63 AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-7350
SELECT ALL COUNT ( * ) + + - 63 AS col1
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-7351
SELECT ALL 50 * - - 86 * SUM( ALL 95 )
----
408500

skipif mysql # not compatible
query I rowsort label-7351
SELECT ALL 50 * - - 86 * SUM ( ALL 95 )
----
408500

onlyif mysql # aggregate syntax: 
query I rowsort label-7352
SELECT ALL - MAX( ALL + 52 ) AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-7352
SELECT ALL - MAX ( ALL + 52 ) AS col0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-7353
SELECT + COUNT( * ) * + 46 col0
----
46

skipif mysql # not compatible
query I rowsort label-7353
SELECT + COUNT ( * ) * + 46 col0
----
46

query I rowsort
SELECT 19 - 27
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-7355
SELECT ALL SUM( + 38 ) col1
----
38

skipif mysql # not compatible
query I rowsort label-7355
SELECT ALL SUM ( + 38 ) col1
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7356
SELECT ALL + 41 DIV - MIN( ALL 79 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7356
SELECT ALL + 41 / - MIN ( ALL 79 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7357
SELECT - COUNT( * ) + + 82 AS col1
----
81

skipif mysql # not compatible
query I rowsort label-7357
SELECT - COUNT ( * ) + + 82 AS col1
----
81

query I rowsort
SELECT - 62 + 82
----
20

query I rowsort
SELECT ALL + 90 col2
----
90

query I rowsort
SELECT ALL - 39 + + 70 AS col1
----
31

query I rowsort
SELECT + 41 + - 61 AS col1
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7362
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) * - 33 col2
----
-33

skipif mysql # not compatible
query I rowsort label-7362
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) * - 33 col2
----
-33

query I rowsort
SELECT 49 + - 83
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-7364
SELECT COUNT( * ) + 55 col2
----
56

skipif mysql # not compatible
query I rowsort label-7364
SELECT COUNT ( * ) + 55 col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7365
SELECT ALL - MAX( ALL + 36 ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-7365
SELECT ALL - MAX ( ALL + 36 ) AS col1
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7366
SELECT - CAST( - ( - 14 ) AS SIGNED ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-7366
SELECT - CAST ( - ( - 14 ) AS INTEGER ) AS col0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-7367
SELECT - 26 * 52 - - COUNT( * ) AS col0
----
-1351

skipif mysql # not compatible
query I rowsort label-7367
SELECT - 26 * 52 - - COUNT ( * ) AS col0
----
-1351

query I rowsort
SELECT - 50 * 55 AS col1
----
-2750

query I rowsort
SELECT - NULLIF ( + 18, 74 ) AS col2
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-7370
SELECT + 45 + COALESCE ( - 92, + - 47, + - 79 ) + - + 54 DIV - - 64 AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-7370
SELECT + 45 + COALESCE ( - 92, + - 47, + - 79 ) + - + 54 / - - 64 AS col1
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7371
SELECT + CAST( 70 AS SIGNED )
----
70

skipif mysql # not compatible
query I rowsort label-7371
SELECT + CAST ( 70 AS INTEGER )
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7372
SELECT + ( + CAST( + 79 AS SIGNED ) ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-7372
SELECT + ( + CAST ( + 79 AS INTEGER ) ) AS col1
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7373
SELECT DISTINCT 9 * COUNT( * ) + + - MAX( DISTINCT - 17 ), CAST( NULL AS SIGNED ) AS col1
----
26
NULL

skipif mysql # not compatible
query II rowsort label-7373
SELECT DISTINCT 9 * COUNT ( * ) + + - MAX ( DISTINCT - 17 ), CAST ( NULL AS INTEGER ) AS col1
----
26
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7374
SELECT + COUNT( 58 ) * + SUM( + - 80 ) + COUNT( * ) * COUNT( * )
----
-79

skipif mysql # not compatible
query I rowsort label-7374
SELECT + COUNT ( 58 ) * + SUM ( + - 80 ) + COUNT ( * ) * COUNT ( * )
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7375
SELECT ALL + CAST( NULL AS SIGNED ) / - + SUM( ALL + 56 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7375
SELECT ALL + CAST ( NULL AS INTEGER ) / - + SUM ( ALL + 56 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7376
SELECT ALL + 4 DIV + COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-7376
SELECT ALL + 4 / + COUNT ( * )
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7377
SELECT + COUNT( * ) DIV - 81 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7377
SELECT + COUNT ( * ) / - 81 AS col2
----
0

query I rowsort
SELECT ALL - - 50 col1
----
50

query I rowsort
SELECT 72 + + 85
----
157

query II rowsort
SELECT DISTINCT + + 56, 45 AS col0
----
56
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7381
SELECT DISTINCT 83 DIV - - COUNT( * ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-7381
SELECT DISTINCT 83 / - - COUNT ( * ) AS col1
----
83

query II rowsort
SELECT + 25 col2, 52 AS col1
----
25
52

query I rowsort
SELECT ALL + + 28 col1
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7384
SELECT - CAST( NULL AS SIGNED ) * 15 / + + COALESCE ( - - 33, COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7384
SELECT - CAST ( NULL AS INTEGER ) * 15 / + + COALESCE ( - - 33, COUNT ( * ) ) AS col2
----
NULL

query I rowsort
SELECT - ( + - 28 )
----
28

query I rowsort
SELECT - ( 11 ) AS col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-7387
SELECT DISTINCT - ( - COUNT( * ) ) * ( 98 )
----
98

skipif mysql # not compatible
query I rowsort label-7387
SELECT DISTINCT - ( - COUNT ( * ) ) * ( 98 )
----
98

query I rowsort
SELECT ALL + 1 * + + 50
----
50

query I rowsort
SELECT 94 * - 33 AS col0
----
-3102

query I rowsort
SELECT ALL - + 17 AS col0
----
-17

query I rowsort
SELECT + + 99 AS col2
----
99

query I rowsort
SELECT ALL + 94 - 11 AS col0
----
83

query II rowsort
SELECT ALL 87 AS col2, NULLIF ( - + 25, 93 + 91 )
----
87
-25

query I rowsort
SELECT 62 * + 19
----
1178

query I rowsort
SELECT ALL 43 + - 71 AS col2
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7396
SELECT 86 / - - CAST( NULL AS SIGNED ) + 4 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7396
SELECT 86 / - - CAST ( NULL AS INTEGER ) + 4 AS col2
----
NULL

query I rowsort
SELECT + + 22 col1
----
22

query II rowsort
SELECT ALL - + 34 col2, + 1 + - + 3
----
-34
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-7399
SELECT DISTINCT - ( COUNT( * ) ), + 48 AS col2
----
-1
48

skipif mysql # not compatible
query II rowsort label-7399
SELECT DISTINCT - ( COUNT ( * ) ), + 48 AS col2
----
-1
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7400
SELECT + ( + - COUNT( * ) ) DIV + 11
----
0

skipif mysql # not compatible
query I rowsort label-7400
SELECT + ( + - COUNT ( * ) ) / + 11
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7401
SELECT + MIN( DISTINCT 31 ) * + CAST( - 57 AS SIGNED )
----
-1767

skipif mysql # not compatible
query I rowsort label-7401
SELECT + MIN ( DISTINCT 31 ) * + CAST ( - 57 AS INTEGER )
----
-1767

query I rowsort
SELECT ALL 40 * + ( + 67 ) AS col0
----
2680

query I rowsort
SELECT ALL + - 79 AS col0
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-7404
SELECT DISTINCT - 84 + + + COUNT( * )
----
-83

skipif mysql # not compatible
query I rowsort label-7404
SELECT DISTINCT - 84 + + + COUNT ( * )
----
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-7405
SELECT DISTINCT ( 4 ) * COUNT( * ) + + 31, + COUNT( * ) col1
----
35
1

skipif mysql # not compatible
query II rowsort label-7405
SELECT DISTINCT ( 4 ) * COUNT ( * ) + + 31, + COUNT ( * ) col1
----
35
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7406
SELECT DISTINCT COUNT( * ) * - 66
----
-66

skipif mysql # not compatible
query I rowsort label-7406
SELECT DISTINCT COUNT ( * ) * - 66
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7407
SELECT ALL - 78 * + - ( - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7407
SELECT ALL - 78 * + - ( - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7408
SELECT DISTINCT + COUNT( * ) * CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7408
SELECT DISTINCT + COUNT ( * ) * CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7409
SELECT DISTINCT + COUNT( * ) + + 81
----
82

skipif mysql # not compatible
query I rowsort label-7409
SELECT DISTINCT + COUNT ( * ) + + 81
----
82

query I rowsort
SELECT ALL - 7 - + - 24
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-7411
SELECT ALL SUM( 25 ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-7411
SELECT ALL SUM ( 25 ) AS col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7412
SELECT DISTINCT + 97 + + - MAX( DISTINCT + 58 )
----
39

skipif mysql # not compatible
query I rowsort label-7412
SELECT DISTINCT + 97 + + - MAX ( DISTINCT + 58 )
----
39

query I rowsort
SELECT ALL + 63 + 8 AS col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7414
SELECT + + 50 - - + COALESCE ( COUNT( * ), - + 64, - 75 )
----
51

skipif mysql # not compatible
query I rowsort label-7414
SELECT + + 50 - - + COALESCE ( COUNT ( * ), - + 64, - 75 )
----
51

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7415
SELECT + 56 + ( + - CAST( NULL AS DECIMAL ) ) + - - 86 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7415
SELECT + 56 + ( + - CAST ( NULL AS REAL ) ) + - - 86 col1
----
NULL

query I rowsort
SELECT DISTINCT 30 * + + 1 AS col2
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-7417
SELECT DISTINCT - 34 col1, COUNT( * ) AS col1
----
-34
1

skipif mysql # not compatible
query II rowsort label-7417
SELECT DISTINCT - 34 col1, COUNT ( * ) AS col1
----
-34
1

query II rowsort
SELECT - ( - 34 ), 13 AS col0
----
34
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7419
SELECT ALL + COUNT( ( - 2 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7419
SELECT ALL + COUNT ( ( - 2 ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7420
SELECT DISTINCT COUNT( * ) * + 58 AS col1
----
58

skipif mysql # not compatible
query I rowsort label-7420
SELECT DISTINCT COUNT ( * ) * + 58 AS col1
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7421
SELECT - 31 * - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7421
SELECT - 31 * - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7422
SELECT ( - + COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7422
SELECT ( - + COUNT ( * ) ) AS col0
----
-1

query I rowsort
SELECT ( - - 7 ) AS col2
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7424
SELECT ALL - CAST( + - 5 AS SIGNED )
----
5

skipif mysql # not compatible
query I rowsort label-7424
SELECT ALL - CAST ( + - 5 AS INTEGER )
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7425
SELECT CAST( - 4 AS SIGNED ), - 4
----
-4
-4

skipif mysql # not compatible
query II rowsort label-7425
SELECT CAST ( - 4 AS INTEGER ), - 4
----
-4
-4

query I rowsort
SELECT ALL - 87 AS col2
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-7427
SELECT ALL + 6 DIV 19 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7427
SELECT ALL + 6 / 19 AS col1
----
0

query I rowsort
SELECT DISTINCT ( - + 98 )
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-7429
SELECT ALL SUM( 61 )
----
61

skipif mysql # not compatible
query I rowsort label-7429
SELECT ALL SUM ( 61 )
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7430
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + 69 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7430
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + 69 AS col2
----
NULL

query I rowsort
SELECT - 9 - 94
----
-103

query I rowsort
SELECT + 38 * + 72
----
2736

query I rowsort
SELECT - 73 + - 19
----
-92

query I rowsort
SELECT ALL + 21 col1
----
21

query I rowsort
SELECT ALL + 23 * + 46
----
1058

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7436
SELECT DISTINCT + CAST( + - 97 AS SIGNED )
----
-97

skipif mysql # not compatible
query I rowsort label-7436
SELECT DISTINCT + CAST ( + - 97 AS INTEGER )
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7437
SELECT ALL + - COUNT( ALL - - 87 )
----
-1

skipif mysql # not compatible
query I rowsort label-7437
SELECT ALL + - COUNT ( ALL - - 87 )
----
-1

query I rowsort
SELECT ALL + - 26
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7439
SELECT + ( + COALESCE ( - ( - - COUNT( * ) ), + CAST( NULL AS SIGNED ), - ( + ( COUNT( * ) ) ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-7439
SELECT + ( + COALESCE ( - ( - - COUNT ( * ) ), + CAST ( NULL AS INTEGER ), - ( + ( COUNT ( * ) ) ) ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7440
SELECT + 50 * + COUNT( * ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-7440
SELECT + 50 * + COUNT ( * ) AS col2
----
50

query I rowsort
SELECT - ( 45 )
----
-45

query I rowsort
SELECT - ( - + 17 ) AS col1
----
17

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7443
SELECT CAST( NULL AS DECIMAL ) + + - COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7443
SELECT CAST ( NULL AS REAL ) + + - COUNT ( * ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7444
SELECT DISTINCT - SUM( ALL + 88 ), - 23 col0
----
-88
-23

skipif mysql # not compatible
query II rowsort label-7444
SELECT DISTINCT - SUM ( ALL + 88 ), - 23 col0
----
-88
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-7445
SELECT ALL 37 - COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-7445
SELECT ALL 37 - COUNT ( * )
----
36

query I rowsort
SELECT 41 * - + 13 AS col1
----
-533

query II rowsort
SELECT 21 AS col0, 2
----
21
2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7448
SELECT ALL + 72 * - - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7448
SELECT ALL + 72 * - - CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 33 * + + 76
----
2508

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7450
SELECT + ( - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7450
SELECT + ( - CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT + 91 * + + 65 * + + 82
----
485030

onlyif mysql # aggregate syntax: 
query I rowsort label-7452
SELECT ALL - COUNT( * ) * - COUNT( * ) col2
----
1

skipif mysql # not compatible
query I rowsort label-7452
SELECT ALL - COUNT ( * ) * - COUNT ( * ) col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7453
SELECT CAST( 17 AS SIGNED )
----
17

skipif mysql # not compatible
query I rowsort label-7453
SELECT CAST ( 17 AS INTEGER )
----
17

query I rowsort
SELECT 57 * - 11 AS col0
----
-627

query I rowsort
SELECT ALL 14 * - 16 col2
----
-224

onlyif mysql # aggregate syntax: 
query I rowsort label-7456
SELECT MAX( ALL - 65 ) + - - 29 col0
----
-36

skipif mysql # not compatible
query I rowsort label-7456
SELECT MAX ( ALL - 65 ) + - - 29 col0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-7457
SELECT 51 * + COUNT( DISTINCT 2 ) * + COUNT( * ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-7457
SELECT 51 * + COUNT ( DISTINCT 2 ) * + COUNT ( * ) AS col2
----
51

query II rowsort
SELECT + 58 col1, 66
----
58
66

query I rowsort
SELECT DISTINCT + 33 + + 6 AS col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7460
SELECT COUNT( * ) * + 81 AS col1
----
81

skipif mysql # not compatible
query I rowsort label-7460
SELECT COUNT ( * ) * + 81 AS col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7461
SELECT ALL COUNT( ALL - + 59 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-7461
SELECT ALL COUNT ( ALL - + 59 ) col0
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-7462
SELECT DISTINCT 9 DIV + 13, 66 AS col2
----
0
66

skipif mysql # not compatible
query II rowsort label-7462
SELECT DISTINCT 9 / + 13, 66 AS col2
----
0
66

query I rowsort
SELECT ALL + ( + + 38 )
----
38

query I rowsort
SELECT ALL 60 * + 10 + 16
----
616

query I rowsort
SELECT DISTINCT + ( + 71 ) col0
----
71

onlyif mysql # aggregate syntax: 
query II rowsort label-7466
SELECT + 15 + - + COUNT( * ), + 49 - + COUNT( * ) AS col1
----
14
48

skipif mysql # not compatible
query II rowsort label-7466
SELECT + 15 + - + COUNT ( * ), + 49 - + COUNT ( * ) AS col1
----
14
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7467
SELECT + MAX( ALL + - 78 ) - - MIN( ALL 71 ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-7467
SELECT + MAX ( ALL + - 78 ) - - MIN ( ALL 71 ) AS col0
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7468
SELECT ALL - CAST( NULL AS SIGNED ) / + 59 + + - ( 51 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7468
SELECT ALL - CAST ( NULL AS INTEGER ) / + 59 + + - ( 51 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7469
SELECT + 68 AS col1, CAST( NULL AS SIGNED )
----
68
NULL

skipif mysql # not compatible
query II rowsort label-7469
SELECT + 68 AS col1, CAST ( NULL AS INTEGER )
----
68
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7470
SELECT - 92 * - + COUNT( * ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-7470
SELECT - 92 * - + COUNT ( * ) AS col1
----
92

query I rowsort
SELECT - 73 col2
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-7472
SELECT ALL + 51 + COUNT( * ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-7472
SELECT ALL + 51 + COUNT ( * ) AS col2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7473
SELECT MIN( DISTINCT + 96 ) + - - 16 - - + 55 AS col0
----
167

skipif mysql # not compatible
query I rowsort label-7473
SELECT MIN ( DISTINCT + 96 ) + - - 16 - - + 55 AS col0
----
167

onlyif mysql # aggregate syntax: 
query I rowsort label-7474
SELECT + MAX( + 92 )
----
92

skipif mysql # not compatible
query I rowsort label-7474
SELECT + MAX ( + 92 )
----
92

query I rowsort
SELECT - ( ( + ( - 27 ) ) )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7476
SELECT DISTINCT + COUNT( * ) + 9 * COUNT( * )
----
10

skipif mysql # not compatible
query I rowsort label-7476
SELECT DISTINCT + COUNT ( * ) + 9 * COUNT ( * )
----
10

query I rowsort
SELECT ALL + 20 * + 72 AS col1
----
1440

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7478
SELECT - + CAST( NULL AS SIGNED ) * - 78 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7478
SELECT - + CAST ( NULL AS INTEGER ) * - 78 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7479
SELECT ALL + ( COUNT( * ) ) * COUNT( + CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-7479
SELECT ALL + ( COUNT ( * ) ) * COUNT ( + CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7480
SELECT + CAST( 6 AS SIGNED ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-7480
SELECT + CAST ( 6 AS INTEGER ) AS col2
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-7481
SELECT ALL - 56 DIV 47
----
-1

skipif mysql # not compatible
query I rowsort label-7481
SELECT ALL - 56 / 47
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7482
SELECT SUM( ALL + 46 ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-7482
SELECT SUM ( ALL + 46 ) AS col1
----
46

query I rowsort
SELECT - ( - 83 ) AS col1
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7484
SELECT - CAST( + 22 AS SIGNED )
----
-22

skipif mysql # not compatible
query I rowsort label-7484
SELECT - CAST ( + 22 AS INTEGER )
----
-22

query I rowsort
SELECT DISTINCT ( - 10 ) - 87 AS col1
----
-97

query I rowsort
SELECT DISTINCT ( + ( - 74 ) )
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7487
SELECT ALL CAST( + ( 49 ) AS SIGNED )
----
49

skipif mysql # not compatible
query I rowsort label-7487
SELECT ALL CAST ( + ( 49 ) AS INTEGER )
----
49

query I rowsort
SELECT ALL + 64 + - - 17 col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7489
SELECT ALL - + ( - COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-7489
SELECT ALL - + ( - COUNT ( * ) )
----
1

query I rowsort
SELECT + + 33 AS col2
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-7491
SELECT 30 DIV - 49 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7491
SELECT 30 / - 49 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7492
SELECT DISTINCT - COUNT( * ) DIV + ( + ( 15 ) )
----
0

skipif mysql # not compatible
query I rowsort label-7492
SELECT DISTINCT - COUNT ( * ) / + ( + ( 15 ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7493
SELECT - NULLIF ( + - CAST( NULL AS SIGNED ), + ( 78 ) ) + 66 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7493
SELECT - NULLIF ( + - CAST ( NULL AS INTEGER ), + ( 78 ) ) + 66 AS col0
----
NULL

query II rowsort
SELECT + 89, 34 AS col2
----
89
34

query I rowsort
SELECT - 77 * 46
----
-3542

query I rowsort
SELECT ALL - 25 * - 44 col0
----
1100

onlyif mysql # aggregate syntax: 
query I rowsort label-7497
SELECT DISTINCT SUM( 94 ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-7497
SELECT DISTINCT SUM ( 94 ) AS col0
----
94

query I rowsort
SELECT ALL + - 49 AS col2
----
-49

query I rowsort
SELECT + - 88 AS col0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-7500
SELECT ALL COUNT( * ) * + 39
----
39

skipif mysql # not compatible
query I rowsort label-7500
SELECT ALL COUNT ( * ) * + 39
----
39

query I rowsort
SELECT + - ( - 97 )
----
97

query I rowsort
SELECT + - 90 AS col1
----
-90

query I rowsort
SELECT ALL + 65 col0
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7504
SELECT CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7504
SELECT CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL + - 89 - - 61 AS col1
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-7506
SELECT + MAX( - + ( 46 ) )
----
-46

skipif mysql # not compatible
query I rowsort label-7506
SELECT + MAX ( - + ( 46 ) )
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7507
SELECT - - ( + + ( + + CAST( NULL AS SIGNED ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7507
SELECT - - ( + + ( + + CAST ( NULL AS INTEGER ) ) ) AS col0
----
NULL

query I rowsort
SELECT - 54 * + - 31 + - - 37
----
1711

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7509
SELECT + ( + MAX( + ( - CAST( NULL AS SIGNED ) ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7509
SELECT + ( + MAX ( + ( - CAST ( NULL AS INTEGER ) ) ) ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 30 + 5 AS col2
----
35

query I rowsort
SELECT ALL 21 + + 45 + + 66
----
132

query I rowsort
SELECT + 51 * ( - - 77 ) AS col0
----
3927

query I rowsort
SELECT ALL + ( 76 ) AS col2
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-7514
SELECT ALL + 78 DIV 73 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7514
SELECT ALL + 78 / 73 AS col2
----
1

query I rowsort
SELECT ALL + + 0 + - 17 AS col2
----
-17

query I rowsort
SELECT DISTINCT - COALESCE ( + 64, 72 ) AS col2
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-7517
SELECT - MIN( + + 74 ) * - - 49
----
-3626

skipif mysql # not compatible
query I rowsort label-7517
SELECT - MIN ( + + 74 ) * - - 49
----
-3626

onlyif mysql # aggregate syntax: 
query I rowsort label-7518
SELECT ( + ( - - COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-7518
SELECT ( + ( - - COUNT ( * ) ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7519
SELECT ALL + ( + CAST( + ( + + ( - 77 ) ) AS SIGNED ) ) AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-7519
SELECT ALL + ( + CAST ( + ( + + ( - 77 ) ) AS INTEGER ) ) AS col0
----
-77

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7520
SELECT - CAST( NULL AS DECIMAL ) * 14 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7520
SELECT - CAST ( NULL AS REAL ) * 14 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7521
SELECT DISTINCT + 9 * + COUNT( * ) + COUNT( * ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-7521
SELECT DISTINCT + 9 * + COUNT ( * ) + COUNT ( * ) AS col1
----
10

query I rowsort
SELECT DISTINCT + 74 + + 32 AS col1
----
106

query I rowsort
SELECT DISTINCT + + 13 + - ( + 81 ) AS col1
----
-68

query I rowsort
SELECT DISTINCT 22 col1
----
22

query I rowsort
SELECT ALL 66 * + + 70
----
4620

onlyif mysql # aggregate syntax: 
query I rowsort label-7526
SELECT ALL - - COUNT( - + 61 )
----
1

skipif mysql # not compatible
query I rowsort label-7526
SELECT ALL - - COUNT ( - + 61 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7527
SELECT ALL - - COUNT( ALL - 17 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7527
SELECT ALL - - COUNT ( ALL - 17 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7528
SELECT ALL + - COUNT( * ) - 87 * + COUNT( * )
----
-88

skipif mysql # not compatible
query I rowsort label-7528
SELECT ALL + - COUNT ( * ) - 87 * + COUNT ( * )
----
-88

query I rowsort
SELECT DISTINCT + 84 col2
----
84

query II rowsort
SELECT - ( 25 ) AS col2, 42 col0
----
-25
42

onlyif mysql # DIV for integer division: 
query I rowsort label-7531
SELECT - 37 DIV 1
----
-37

skipif mysql # not compatible
query I rowsort label-7531
SELECT - 37 / 1
----
-37

query I rowsort
SELECT DISTINCT + + 44 AS col1
----
44

query I rowsort
SELECT + ( 24 ) * - 35
----
-840

query I rowsort
SELECT + 31 * 92
----
2852

onlyif mysql # aggregate syntax: 
query II rowsort label-7535
SELECT 97 AS col1, COUNT( * )
----
97
1

skipif mysql # not compatible
query II rowsort label-7535
SELECT 97 AS col1, COUNT ( * )
----
97
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7536
SELECT 38 DIV - 45 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7536
SELECT 38 / - 45 AS col2
----
0

query I rowsort
SELECT ALL 84 + + + 75
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-7538
SELECT MIN( DISTINCT + 14 ) + COUNT( * ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-7538
SELECT MIN ( DISTINCT + 14 ) + COUNT ( * ) AS col1
----
15

query I rowsort
SELECT 69 * + 86 * 19 + - - 2
----
112748

onlyif mysql # aggregate syntax: 
query I rowsort label-7540
SELECT 10 * ( + - COUNT( * ) ) AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-7540
SELECT 10 * ( + - COUNT ( * ) ) AS col0
----
-10

query I rowsort
SELECT + + ( - - 4 ) AS col0
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-7542
SELECT 59 * - - COUNT( * ) + + 95 AS col0, - 95
----
154
-95

skipif mysql # not compatible
query II rowsort label-7542
SELECT 59 * - - COUNT ( * ) + + 95 AS col0, - 95
----
154
-95

query II rowsort
SELECT 31 AS col2, - 61 col1
----
31
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-7544
SELECT ALL + COUNT( * ) - - - 78
----
-77

skipif mysql # not compatible
query I rowsort label-7544
SELECT ALL + COUNT ( * ) - - - 78
----
-77

query II rowsort
SELECT - + 7, 35 AS col1
----
-7
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7546
SELECT DISTINCT + 89 * - COUNT( * ) col0
----
-89

skipif mysql # not compatible
query I rowsort label-7546
SELECT DISTINCT + 89 * - COUNT ( * ) col0
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7547
SELECT ALL + - CAST( + - 1 AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-7547
SELECT ALL + - CAST ( + - 1 AS INTEGER )
----
1

query I rowsort
SELECT + + 67 * + - 28
----
-1876

query I rowsort
SELECT + + 89 col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-7550
SELECT + + COUNT( * ) * + 99
----
99

skipif mysql # not compatible
query I rowsort label-7550
SELECT + + COUNT ( * ) * + 99
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7551
SELECT DISTINCT + COALESCE ( - COUNT( * ), + 46 * - 2 + + 43 )
----
-1

skipif mysql # not compatible
query I rowsort label-7551
SELECT DISTINCT + COALESCE ( - COUNT ( * ), + 46 * - 2 + + 43 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7552
SELECT DISTINCT - 11 * - COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-7552
SELECT DISTINCT - 11 * - COUNT ( * )
----
11

query I rowsort
SELECT 29 * + 69 - + ( + 5 )
----
1996

onlyif mysql # aggregate syntax: 
query II rowsort label-7554
SELECT - COUNT( * ) AS col1, - 15 + 83
----
-1
68

skipif mysql # not compatible
query II rowsort label-7554
SELECT - COUNT ( * ) AS col1, - 15 + 83
----
-1
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7555
SELECT + 85 * + + COUNT( * )
----
85

skipif mysql # not compatible
query I rowsort label-7555
SELECT + 85 * + + COUNT ( * )
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7556
SELECT + CAST( - ( 3 ) AS SIGNED ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-7556
SELECT + CAST ( - ( 3 ) AS INTEGER ) AS col2
----
-3

query I rowsort
SELECT DISTINCT 96 * + ( + - 71 )
----
-6816

onlyif mysql # aggregate syntax: 
query I rowsort label-7558
SELECT - COUNT( + + ( 10 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7558
SELECT - COUNT ( + + ( 10 ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7559
SELECT - - ( + 35 ) AS col1, - COUNT( * ) AS col1
----
35
-1

skipif mysql # not compatible
query II rowsort label-7559
SELECT - - ( + 35 ) AS col1, - COUNT ( * ) AS col1
----
35
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7560
SELECT DISTINCT 24 * + + COUNT( * ) * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7560
SELECT DISTINCT 24 * + + COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7561
SELECT ALL + 0 DIV + + 23 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7561
SELECT ALL + 0 / + + 23 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7562
SELECT COUNT( * ) DIV - + 29 * - 4 + - COUNT( * ) * - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-7562
SELECT COUNT ( * ) / - + 29 * - 4 + - COUNT ( * ) * - COUNT ( * )
----
1

query II rowsort
SELECT 60, 22 col0
----
60
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7564
SELECT ALL COUNT( * ) DIV - + 6
----
0

skipif mysql # not compatible
query I rowsort label-7564
SELECT ALL COUNT ( * ) / - + 6
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7565
SELECT ALL - 82 * + + COUNT( * ) col0
----
-82

skipif mysql # not compatible
query I rowsort label-7565
SELECT ALL - 82 * + + COUNT ( * ) col0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-7566
SELECT DISTINCT + 49 + COUNT( * ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-7566
SELECT DISTINCT + 49 + COUNT ( * ) AS col2
----
50

query I rowsort
SELECT + 64 + 9 + - 99 col2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-7568
SELECT DISTINCT + MAX( ALL - 20 ) AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-7568
SELECT DISTINCT + MAX ( ALL - 20 ) AS col1
----
-20

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7569
SELECT 99 * - + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7569
SELECT 99 * - + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT 34 * 57 + + 61 AS col2
----
1999

query I rowsort
SELECT ALL - 80 * + 51
----
-4080

query I rowsort
SELECT - - 76 AS col0
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-7573
SELECT ALL 43 DIV + + 48
----
0

skipif mysql # not compatible
query I rowsort label-7573
SELECT ALL 43 / + + 48
----
0

query I rowsort
SELECT - - 25 AS col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7575
SELECT + ( + - COUNT( * ) ) * - + 15 AS col1
----
15

skipif mysql # not compatible
query I rowsort label-7575
SELECT + ( + - COUNT ( * ) ) * - + 15 AS col1
----
15

query I rowsort
SELECT ( - ( + 91 ) )
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7577
SELECT CAST( NULL AS SIGNED ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7577
SELECT CAST ( NULL AS INTEGER ) * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7578
SELECT DISTINCT - 67 AS col1, COUNT( * )
----
-67
1

skipif mysql # not compatible
query II rowsort label-7578
SELECT DISTINCT - 67 AS col1, COUNT ( * )
----
-67
1

query I rowsort
SELECT ALL - + 0 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7580
SELECT 41 - + COUNT( * ) + - COUNT( * ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-7580
SELECT 41 - + COUNT ( * ) + - COUNT ( * ) AS col2
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-7581
SELECT DISTINCT SUM( 77 ) AS col0, - COUNT( * ) AS col1
----
77
-1

skipif mysql # not compatible
query II rowsort label-7581
SELECT DISTINCT SUM ( 77 ) AS col0, - COUNT ( * ) AS col1
----
77
-1

query I rowsort
SELECT 1 + + 62 AS col0
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7583
SELECT + NULLIF ( 65, + + CAST( NULL AS SIGNED ) ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-7583
SELECT + NULLIF ( 65, + + CAST ( NULL AS INTEGER ) ) AS col0
----
65

query I rowsort
SELECT ALL + 69 col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7585
SELECT ALL COALESCE ( - ( COUNT( * ) ), - 4 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7585
SELECT ALL COALESCE ( - ( COUNT ( * ) ), - 4 ) AS col0
----
-1

query I rowsort
SELECT ALL + + 33 AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7587
SELECT DISTINCT + MAX( - + 49 )
----
-49

skipif mysql # not compatible
query I rowsort label-7587
SELECT DISTINCT + MAX ( - + 49 )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-7588
SELECT SUM( + 17 ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-7588
SELECT SUM ( + 17 ) AS col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-7589
SELECT MAX( 40 ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-7589
SELECT MAX ( 40 ) AS col2
----
40

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7590
SELECT - COUNT( * ) * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7590
SELECT - COUNT ( * ) * + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + 54 + 36 - - 86 * 6
----
606

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7592
SELECT + COUNT( * ) / CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7592
SELECT + COUNT ( * ) / CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7593
SELECT ALL COUNT( ALL 49 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7593
SELECT ALL COUNT ( ALL 49 ) AS col2
----
1

query I rowsort
SELECT DISTINCT + 44 * + 29
----
1276

query I rowsort
SELECT 47 + 73
----
120

query I rowsort
SELECT ALL + 77 - - + 25 AS col0
----
102

query I rowsort
SELECT ALL - ( + ( + - 83 ) )
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7598
SELECT 30 AS col2, CAST( NULL AS SIGNED )
----
30
NULL

skipif mysql # not compatible
query II rowsort label-7598
SELECT 30 AS col2, CAST ( NULL AS INTEGER )
----
30
NULL

query I rowsort
SELECT ALL 71 + - - 84 AS col0
----
155

onlyif mysql # aggregate syntax: 
query II rowsort label-7600
SELECT - 94 AS col1, COUNT( * )
----
-94
1

skipif mysql # not compatible
query II rowsort label-7600
SELECT - 94 AS col1, COUNT ( * )
----
-94
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7601
SELECT ALL - COUNT( * ) * - 97 AS col2
----
97

skipif mysql # not compatible
query I rowsort label-7601
SELECT ALL - COUNT ( * ) * - 97 AS col2
----
97

query I rowsort
SELECT DISTINCT + 35 * 9
----
315

query I rowsort
SELECT - - ( + ( + - 72 ) )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-7604
SELECT - + 11 * + MAX( ALL 6 ) col0
----
-66

skipif mysql # not compatible
query I rowsort label-7604
SELECT - + 11 * + MAX ( ALL 6 ) col0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-7605
SELECT + COUNT( * ) * + 64 AS col0
----
64

skipif mysql # not compatible
query I rowsort label-7605
SELECT + COUNT ( * ) * + 64 AS col0
----
64

query I rowsort
SELECT ( + 12 ) AS col2
----
12

query II rowsort
SELECT ALL - 70 AS col0, - 42
----
-70
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-7608
SELECT ALL - 94 + - + 69 * - - COUNT( * )
----
-163

skipif mysql # not compatible
query I rowsort label-7608
SELECT ALL - 94 + - + 69 * - - COUNT ( * )
----
-163

onlyif mysql # aggregate syntax: 
query I rowsort label-7609
SELECT DISTINCT COUNT( * ) - + 17
----
-16

skipif mysql # not compatible
query I rowsort label-7609
SELECT DISTINCT COUNT ( * ) - + 17
----
-16

query I rowsort
SELECT + 21 * - 63 AS col0
----
-1323

query I rowsort
SELECT ALL - - 95
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-7612
SELECT DISTINCT COUNT( * ) - + - 18 * - + COUNT( * ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-7612
SELECT DISTINCT COUNT ( * ) - + - 18 * - + COUNT ( * ) AS col1
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7613
SELECT 67 + + + CAST( NULL AS SIGNED ), 91 col1
----
NULL
91

skipif mysql # not compatible
query II rowsort label-7613
SELECT 67 + + + CAST ( NULL AS INTEGER ), 91 col1
----
NULL
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7614
SELECT - - COUNT( * ) + 85
----
86

skipif mysql # not compatible
query I rowsort label-7614
SELECT - - COUNT ( * ) + 85
----
86

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7615
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + - 81 - + 99 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7615
SELECT DISTINCT + CAST ( NULL AS REAL ) + - 81 - + 99 AS col1
----
NULL

query I rowsort
SELECT ALL + ( + ( 22 ) ) AS col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-7617
SELECT DISTINCT + COUNT( * ) * - - ( - COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7617
SELECT DISTINCT + COUNT ( * ) * - - ( - COUNT ( * ) ) AS col0
----
-1

query II rowsort
SELECT ALL 55 AS col1, + ( + + 50 ) AS col2
----
55
50

onlyif mysql # aggregate syntax: 
query I rowsort label-7619
SELECT ALL + MIN( - + 17 ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-7619
SELECT ALL + MIN ( - + 17 ) AS col1
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-7620
SELECT DISTINCT + COUNT( * ) AS col1, - COUNT( * ) + + 20 AS col1
----
1
19

skipif mysql # not compatible
query II rowsort label-7620
SELECT DISTINCT + COUNT ( * ) AS col1, - COUNT ( * ) + + 20 AS col1
----
1
19

query I rowsort
SELECT ( - 42 )
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7622
SELECT DISTINCT + CAST( - - 44 AS SIGNED )
----
44

skipif mysql # not compatible
query I rowsort label-7622
SELECT DISTINCT + CAST ( - - 44 AS INTEGER )
----
44

query I rowsort
SELECT DISTINCT + 91 * + 74 AS col1
----
6734

onlyif mysql # aggregate syntax: 
query I rowsort label-7624
SELECT 61 * + COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-7624
SELECT 61 * + COUNT ( * )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7625
SELECT + MAX( + - 73 ) col2
----
-73

skipif mysql # not compatible
query I rowsort label-7625
SELECT + MAX ( + - 73 ) col2
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-7626
SELECT MIN( - 81 ) AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-7626
SELECT MIN ( - 81 ) AS col0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7627
SELECT 29 + - COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-7627
SELECT 29 + - COUNT ( * )
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7628
SELECT ALL - CAST( + COUNT( * ) AS SIGNED ) DIV + + 17 * COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7628
SELECT ALL - CAST ( + COUNT ( * ) AS INTEGER ) / + + 17 * COUNT ( * ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7629
SELECT - COUNT( * ) * + 50
----
-50

skipif mysql # not compatible
query I rowsort label-7629
SELECT - COUNT ( * ) * + 50
----
-50

query I rowsort
SELECT ALL NULLIF ( 88, - ( 83 ) * 56 - - 4 ) AS col0
----
88

query I rowsort
SELECT - 89 + - 91 * + - 71 col1
----
6372

onlyif mysql # aggregate syntax: 
query I rowsort label-7632
SELECT ALL - 15 + - - 45 + 7 * - COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-7632
SELECT ALL - 15 + - - 45 + 7 * - COUNT ( * )
----
23

query I rowsort
SELECT + + 38 col1
----
38

query I rowsort
SELECT ALL + + 18 AS col2
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7635
SELECT - CAST( 84 AS SIGNED )
----
-84

skipif mysql # not compatible
query I rowsort label-7635
SELECT - CAST ( 84 AS INTEGER )
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-7636
SELECT + 66 DIV + + 21
----
3

skipif mysql # not compatible
query I rowsort label-7636
SELECT + 66 / + + 21
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-7637
SELECT COUNT( * ) AS col0, - SUM( - 23 ) AS col0
----
1
23

skipif mysql # not compatible
query II rowsort label-7637
SELECT COUNT ( * ) AS col0, - SUM ( - 23 ) AS col0
----
1
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7638
SELECT DISTINCT MAX( + 51 )
----
51

skipif mysql # not compatible
query I rowsort label-7638
SELECT DISTINCT MAX ( + 51 )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7639
SELECT DISTINCT ( MIN( ALL - 19 ) ) AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-7639
SELECT DISTINCT ( MIN ( ALL - 19 ) ) AS col0
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-7640
SELECT DISTINCT + - COUNT( * ) AS col2, 14 AS col1
----
-1
14

skipif mysql # not compatible
query II rowsort label-7640
SELECT DISTINCT + - COUNT ( * ) AS col2, 14 AS col1
----
-1
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7641
SELECT 84 * - COUNT( * )
----
-84

skipif mysql # not compatible
query I rowsort label-7641
SELECT 84 * - COUNT ( * )
----
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-7642
SELECT ALL - COUNT( * ), - 63 AS col1
----
-1
-63

skipif mysql # not compatible
query II rowsort label-7642
SELECT ALL - COUNT ( * ), - 63 AS col1
----
-1
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7643
SELECT DISTINCT 82 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7643
SELECT DISTINCT 82 - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT 53 AS col2, 29
----
53
29

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7645
SELECT ALL - ( - + CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7645
SELECT ALL - ( - + CAST ( NULL AS REAL ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7646
SELECT ALL - + CAST( NULL AS DECIMAL ) * - 92
----
NULL

skipif mysql # not compatible
query I rowsort label-7646
SELECT ALL - + CAST ( NULL AS REAL ) * - 92
----
NULL

query I rowsort
SELECT + - 93 AS col2
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-7648
SELECT DISTINCT MIN( DISTINCT 78 ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-7648
SELECT DISTINCT MIN ( DISTINCT 78 ) AS col2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7649
SELECT COUNT( * ) * 3
----
3

skipif mysql # not compatible
query I rowsort label-7649
SELECT COUNT ( * ) * 3
----
3

query I rowsort
SELECT ALL + 0 col1
----
0

query I rowsort
SELECT ALL - 21 + - 23
----
-44

query I rowsort
SELECT ALL ( - 21 ) AS col0
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7653
SELECT DISTINCT + CAST( 86 AS SIGNED ) * - + 55 AS col0, NULLIF ( 22, - 73 )
----
-4730
22

skipif mysql # not compatible
query II rowsort label-7653
SELECT DISTINCT + CAST ( 86 AS INTEGER ) * - + 55 AS col0, NULLIF ( 22, - 73 )
----
-4730
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7654
SELECT - CAST( 73 AS SIGNED )
----
-73

skipif mysql # not compatible
query I rowsort label-7654
SELECT - CAST ( 73 AS INTEGER )
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-7655
SELECT ALL 35 + + + COUNT( * ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-7655
SELECT ALL 35 + + + COUNT ( * ) AS col2
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7656
SELECT ALL - CAST( NULL AS SIGNED ) + - - 48 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7656
SELECT ALL - CAST ( NULL AS INTEGER ) + - - 48 AS col1
----
NULL

query I rowsort
SELECT ( - - 17 ) AS col0
----
17

query I rowsort
SELECT ALL ( + 41 ) AS col1
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7659
SELECT ALL + COUNT( * ) * CAST( + COUNT( * ) AS SIGNED ) DIV + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7659
SELECT ALL + COUNT ( * ) * CAST ( + COUNT ( * ) AS INTEGER ) / + COUNT ( * ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7660
SELECT - - ( + + COUNT( - 27 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7660
SELECT - - ( + + COUNT ( - 27 ) ) AS col2
----
1

query I rowsort
SELECT ALL - ( - + 57 )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-7662
SELECT DISTINCT - COALESCE ( + ( - 45 ), + COUNT( * ) )
----
45

skipif mysql # not compatible
query I rowsort label-7662
SELECT DISTINCT - COALESCE ( + ( - 45 ), + COUNT ( * ) )
----
45

query II rowsort
SELECT DISTINCT - 88, 84 AS col2
----
-88
84

query I rowsort
SELECT ALL - ( - 16 ) AS col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-7665
SELECT ALL SUM( ALL ( + 61 ) )
----
61

skipif mysql # not compatible
query I rowsort label-7665
SELECT ALL SUM ( ALL ( + 61 ) )
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-7666
SELECT COUNT( * ) AS col2, - 65
----
1
-65

skipif mysql # not compatible
query II rowsort label-7666
SELECT COUNT ( * ) AS col2, - 65
----
1
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-7667
SELECT DISTINCT + + SUM( ALL - + 69 )
----
-69

skipif mysql # not compatible
query I rowsort label-7667
SELECT DISTINCT + + SUM ( ALL - + 69 )
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7668
SELECT ALL ( COUNT( * ) ) DIV - COUNT( DISTINCT - - 66 )
----
-1

skipif mysql # not compatible
query I rowsort label-7668
SELECT ALL ( COUNT ( * ) ) / - COUNT ( DISTINCT - - 66 )
----
-1

query I rowsort
SELECT + ( - + 55 )
----
-55

query I rowsort
SELECT + 31 + + + 7
----
38

query II rowsort
SELECT DISTINCT 54 AS col0, 36
----
54
36

query I rowsort
SELECT + 77 * 81
----
6237

onlyif mysql # aggregate syntax: 
query I rowsort label-7673
SELECT COUNT( * ) * + 62 AS col2
----
62

skipif mysql # not compatible
query I rowsort label-7673
SELECT COUNT ( * ) * + 62 AS col2
----
62

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7674
SELECT ALL - CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7674
SELECT ALL - CAST ( NULL AS REAL ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7675
SELECT - 38 + + MIN( 89 )
----
51

skipif mysql # not compatible
query I rowsort label-7675
SELECT - 38 + + MIN ( 89 )
----
51

query I rowsort
SELECT DISTINCT - + ( - 55 ) AS col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7677
SELECT + MIN( DISTINCT - 53 )
----
-53

skipif mysql # not compatible
query I rowsort label-7677
SELECT + MIN ( DISTINCT - 53 )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-7678
SELECT ALL - NULLIF ( + 49, - + 46 ) + + COUNT( * ) col2
----
-48

skipif mysql # not compatible
query I rowsort label-7678
SELECT ALL - NULLIF ( + 49, - + 46 ) + + COUNT ( * ) col2
----
-48

query I rowsort
SELECT DISTINCT - - 68 AS col0
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-7680
SELECT 21 DIV - - 12
----
1

skipif mysql # not compatible
query I rowsort label-7680
SELECT 21 / - - 12
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7681
SELECT 44 DIV COUNT( * ) * + COUNT( * ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-7681
SELECT 44 / COUNT ( * ) * + COUNT ( * ) AS col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7682
SELECT ALL - + COUNT( ALL + 48 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7682
SELECT ALL - + COUNT ( ALL + 48 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7683
SELECT 22 AS col0, + COUNT( * ) AS col2
----
22
1

skipif mysql # not compatible
query II rowsort label-7683
SELECT 22 AS col0, + COUNT ( * ) AS col2
----
22
1

query I rowsort
SELECT - 41 * 80
----
-3280

onlyif mysql # DIV for integer division: 
query I rowsort label-7685
SELECT DISTINCT 87 DIV + 73
----
1

skipif mysql # not compatible
query I rowsort label-7685
SELECT DISTINCT 87 / + 73
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7686
SELECT + + 58 DIV - - 58 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7686
SELECT + + 58 / - - 58 AS col2
----
1

query I rowsort
SELECT + - 38 + - + 30 AS col0
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7688
SELECT + CAST( NULL AS SIGNED ) AS col0, NULLIF ( - SUM( DISTINCT - 41 ), - 0 )
----
NULL
41

skipif mysql # not compatible
query II rowsort label-7688
SELECT + CAST ( NULL AS INTEGER ) AS col0, NULLIF ( - SUM ( DISTINCT - 41 ), - 0 )
----
NULL
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7689
SELECT - ( + 95 ) + COUNT( * ) * COUNT( * )
----
-94

skipif mysql # not compatible
query I rowsort label-7689
SELECT - ( + 95 ) + COUNT ( * ) * COUNT ( * )
----
-94

query II rowsort
SELECT 93 AS col2, + 90
----
93
90

query I rowsort
SELECT 33 * + 55 col2
----
1815

query I rowsort
SELECT 58 * 45
----
2610

onlyif mysql # aggregate syntax: 
query II rowsort label-7693
SELECT 37, - COUNT( * ) col2
----
37
-1

skipif mysql # not compatible
query II rowsort label-7693
SELECT 37, - COUNT ( * ) col2
----
37
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7694
SELECT 58 DIV 11 * - 48 DIV + COUNT( * ) AS col2
----
-240

skipif mysql # not compatible
query I rowsort label-7694
SELECT 58 / 11 * - 48 / + COUNT ( * ) AS col2
----
-240

query II rowsort
SELECT - 85 AS col0, 26
----
-85
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7696
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-7696
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 34
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7697
SELECT COUNT( * ) * 6 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-7697
SELECT COUNT ( * ) * 6 AS col2
----
6

query I rowsort
SELECT ALL + - 40 - 60
----
-100

query I rowsort
SELECT DISTINCT + 65 col2
----
65

query I rowsort
SELECT ( + 58 ) AS col1
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-7701
SELECT DISTINCT + 70 col1, - COUNT( * )
----
70
-1

skipif mysql # not compatible
query II rowsort label-7701
SELECT DISTINCT + 70 col1, - COUNT ( * )
----
70
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7702
SELECT DISTINCT 93 * CAST( + + 10 AS SIGNED ) AS col1
----
930

skipif mysql # not compatible
query I rowsort label-7702
SELECT DISTINCT 93 * CAST ( + + 10 AS INTEGER ) AS col1
----
930

query I rowsort
SELECT DISTINCT + 75 - - 74
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-7704
SELECT ALL + COUNT( * ) + 1 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-7704
SELECT ALL + COUNT ( * ) + 1 AS col1
----
2

query I rowsort
SELECT DISTINCT 59 * 43
----
2537

onlyif mysql # aggregate syntax: 
query I rowsort label-7706
SELECT 77 + COUNT( * ) * COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-7706
SELECT 77 + COUNT ( * ) * COUNT ( * )
----
78

query I rowsort
SELECT ALL + - 70 AS col1
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7708
SELECT - - CAST( + ( 86 ) AS SIGNED ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-7708
SELECT - - CAST ( + ( 86 ) AS INTEGER ) AS col1
----
86

query I rowsort
SELECT DISTINCT 43 + 56
----
99

query I rowsort
SELECT ALL 84 * 86
----
7224

onlyif mysql # aggregate syntax: 
query I rowsort label-7711
SELECT DISTINCT MAX( - 72 ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-7711
SELECT DISTINCT MAX ( - 72 ) AS col2
----
-72

query II rowsort
SELECT - 50, - 93 AS col1
----
-50
-93

query II rowsort
SELECT + 27, 6 AS col1
----
27
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7714
SELECT ALL + MIN( + - 55 ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-7714
SELECT ALL + MIN ( + - 55 ) AS col1
----
-55

query I rowsort
SELECT DISTINCT + - 2 AS col0
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7716
SELECT - CAST( + 46 AS SIGNED ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-7716
SELECT - CAST ( + 46 AS INTEGER ) AS col2
----
-46

query I rowsort
SELECT + ( + ( + + 55 ) ) - - 21
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7718
SELECT DISTINCT ( + SUM( ALL + 47 ) ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-7718
SELECT DISTINCT ( + SUM ( ALL + 47 ) ) AS col2
----
47

query I rowsort
SELECT - ( + 60 )
----
-60

query I rowsort
SELECT ( + 94 ) + 69
----
163

query I rowsort
SELECT + - 66 AS col0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-7722
SELECT DISTINCT - 69 * + - COUNT( * )
----
69

skipif mysql # not compatible
query I rowsort label-7722
SELECT DISTINCT - 69 * + - COUNT ( * )
----
69

query I rowsort
SELECT DISTINCT - 96 * + - 59 AS col1
----
5664

query I rowsort
SELECT DISTINCT - + 87
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-7725
SELECT DISTINCT - - MIN( DISTINCT + 48 ) * 97
----
4656

skipif mysql # not compatible
query I rowsort label-7725
SELECT DISTINCT - - MIN ( DISTINCT + 48 ) * 97
----
4656

onlyif mysql # aggregate syntax: 
query I rowsort label-7726
SELECT DISTINCT - MIN( DISTINCT + 70 ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-7726
SELECT DISTINCT - MIN ( DISTINCT + 70 ) AS col0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-7727
SELECT DISTINCT MIN( DISTINCT - ( + 79 ) )
----
-79

skipif mysql # not compatible
query I rowsort label-7727
SELECT DISTINCT MIN ( DISTINCT - ( + 79 ) )
----
-79

query I rowsort
SELECT 22 * + 84 col1
----
1848

onlyif mysql # aggregate syntax: 
query I rowsort label-7729
SELECT + MIN( DISTINCT - - 65 ) * + COUNT( * )
----
65

skipif mysql # not compatible
query I rowsort label-7729
SELECT + MIN ( DISTINCT - - 65 ) * + COUNT ( * )
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7730
SELECT DISTINCT - 19 * - CAST( + 97 AS SIGNED )
----
1843

skipif mysql # not compatible
query I rowsort label-7730
SELECT DISTINCT - 19 * - CAST ( + 97 AS INTEGER )
----
1843

query I rowsort
SELECT ALL + - 39 AS col1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-7732
SELECT ALL + COUNT( * ) + - 82
----
-81

skipif mysql # not compatible
query I rowsort label-7732
SELECT ALL + COUNT ( * ) + - 82
----
-81

query I rowsort
SELECT DISTINCT + + ( - 30 )
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7734
SELECT CAST( + 71 AS SIGNED )
----
71

skipif mysql # not compatible
query I rowsort label-7734
SELECT CAST ( + 71 AS INTEGER )
----
71

query I rowsort
SELECT DISTINCT - ( - ( + 77 ) )
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-7736
SELECT ALL - 19 DIV - ( - + 3 )
----
-6

skipif mysql # not compatible
query I rowsort label-7736
SELECT ALL - 19 / - ( - + 3 )
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7737
SELECT - - ( NULLIF ( + MIN( ALL + 0 ), + CAST( + + 45 AS SIGNED ) DIV ( - 82 ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7737
SELECT - - ( NULLIF ( + MIN ( ALL + 0 ), + CAST ( + + 45 AS INTEGER ) / ( - 82 ) ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7738
SELECT 75 * + COUNT( * ) col1
----
75

skipif mysql # not compatible
query I rowsort label-7738
SELECT 75 * + COUNT ( * ) col1
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7739
SELECT DISTINCT SUM( ALL 48 ), - CAST( NULL AS SIGNED ) AS col1
----
48
NULL

skipif mysql # not compatible
query II rowsort label-7739
SELECT DISTINCT SUM ( ALL 48 ), - CAST ( NULL AS INTEGER ) AS col1
----
48
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7740
SELECT COUNT( * ) * - + 15
----
-15

skipif mysql # not compatible
query I rowsort label-7740
SELECT COUNT ( * ) * - + 15
----
-15

query I rowsort
SELECT 81 * + 19
----
1539

onlyif mysql # aggregate syntax: 
query I rowsort label-7742
SELECT ALL COUNT( * ) + + 5 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-7742
SELECT ALL COUNT ( * ) + + 5 AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7743
SELECT ALL + + 5 + COUNT( * ) col1
----
6

skipif mysql # not compatible
query I rowsort label-7743
SELECT ALL + + 5 + COUNT ( * ) col1
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7744
SELECT ALL + CAST( - COUNT( * ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-7744
SELECT ALL + CAST ( - COUNT ( * ) AS INTEGER )
----
-1

query I rowsort
SELECT DISTINCT + NULLIF ( 42, + 78 )
----
42

query I rowsort
SELECT DISTINCT + ( - 84 ) AS col0
----
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7747
SELECT - - 97 DIV + COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-7747
SELECT - - 97 / + COUNT ( * )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7748
SELECT DISTINCT + 91 + COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-7748
SELECT DISTINCT + 91 + COUNT ( * )
----
92

query I rowsort
SELECT - - 3 + + 60
----
63

query I rowsort
SELECT ALL 13 + - ( - 55 )
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-7751
SELECT ALL COUNT( * ) AS col2, 66 AS col1
----
1
66

skipif mysql # not compatible
query II rowsort label-7751
SELECT ALL COUNT ( * ) AS col2, 66 AS col1
----
1
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7752
SELECT CAST( 85 AS SIGNED ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-7752
SELECT CAST ( 85 AS INTEGER ) AS col2
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7753
SELECT CAST( - - ( + COUNT( * ) ) AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7753
SELECT CAST ( - - ( + COUNT ( * ) ) AS INTEGER ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7754
SELECT - 50 * + 51 + COUNT( * )
----
-2549

skipif mysql # not compatible
query I rowsort label-7754
SELECT - 50 * + 51 + COUNT ( * )
----
-2549

onlyif mysql # aggregate syntax: 
query I rowsort label-7755
SELECT - COUNT( * ) * + - 16 col0
----
16

skipif mysql # not compatible
query I rowsort label-7755
SELECT - COUNT ( * ) * + - 16 col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-7756
SELECT ALL + 27 * + COUNT( * ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-7756
SELECT ALL + 27 * + COUNT ( * ) AS col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7757
SELECT - MAX( + - ( - + ( 32 ) ) ) + + MIN( 52 )
----
20

skipif mysql # not compatible
query I rowsort label-7757
SELECT - MAX ( + - ( - + ( 32 ) ) ) + + MIN ( 52 )
----
20

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7758
SELECT ALL 75 AS col0, 5 DIV - CAST( 50 AS SIGNED ) AS col2
----
75
0

skipif mysql # not compatible
query II rowsort label-7758
SELECT ALL 75 AS col0, 5 / - CAST ( 50 AS INTEGER ) AS col2
----
75
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7759
SELECT + MIN( 30 )
----
30

skipif mysql # not compatible
query I rowsort label-7759
SELECT + MIN ( 30 )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7760
SELECT - 37 * - COUNT( * ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-7760
SELECT - 37 * - COUNT ( * ) AS col1
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-7761
SELECT - 44, - COUNT( * ) AS col0
----
-44
-1

skipif mysql # not compatible
query II rowsort label-7761
SELECT - 44, - COUNT ( * ) AS col0
----
-44
-1

query I rowsort
SELECT 75 - - 77 col2
----
152

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7763
SELECT DISTINCT ( - 12 ) DIV COUNT( * )
----
-12

skipif mysql # not compatible
query I rowsort label-7763
SELECT DISTINCT ( - 12 ) / COUNT ( * )
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7764
SELECT ALL - 71 * - CAST( + + 1 AS SIGNED )
----
71

skipif mysql # not compatible
query I rowsort label-7764
SELECT ALL - 71 * - CAST ( + + 1 AS INTEGER )
----
71

query I rowsort
SELECT + 12 col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7766
SELECT 46 * - - MAX( DISTINCT 32 )
----
1472

skipif mysql # not compatible
query I rowsort label-7766
SELECT 46 * - - MAX ( DISTINCT 32 )
----
1472

query I rowsort
SELECT ALL 47 * + + 50 col2
----
2350

onlyif mysql # aggregate syntax: 
query I rowsort label-7768
SELECT + - ( 78 ) + MIN( DISTINCT 98 )
----
20

skipif mysql # not compatible
query I rowsort label-7768
SELECT + - ( 78 ) + MIN ( DISTINCT 98 )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7769
SELECT + 28 * COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-7769
SELECT + 28 * COUNT ( * )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-7770
SELECT - 18 * - - COUNT( * )
----
-18

skipif mysql # not compatible
query I rowsort label-7770
SELECT - 18 * - - COUNT ( * )
----
-18

query I rowsort
SELECT - 46 * - - 79 AS col0
----
-3634

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7772
SELECT ALL 33 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7772
SELECT ALL 33 * - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + - 62 * + 5 AS col1
----
-310

onlyif mysql # aggregate syntax: 
query I rowsort label-7774
SELECT DISTINCT + COUNT( + 22 ) * + 10
----
10

skipif mysql # not compatible
query I rowsort label-7774
SELECT DISTINCT + COUNT ( + 22 ) * + 10
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7775
SELECT + MIN( ALL + CAST( 14 AS SIGNED ) ) + + + 74 AS col1
----
88

skipif mysql # not compatible
query I rowsort label-7775
SELECT + MIN ( ALL + CAST ( 14 AS INTEGER ) ) + + + 74 AS col1
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7776
SELECT 12, + CAST( NULL AS SIGNED ) AS col0
----
12
NULL

skipif mysql # not compatible
query II rowsort label-7776
SELECT 12, + CAST ( NULL AS INTEGER ) AS col0
----
12
NULL

query I rowsort
SELECT + 5 + + 31
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7778
SELECT ALL - MAX( + - 53 ) col2
----
53

skipif mysql # not compatible
query I rowsort label-7778
SELECT ALL - MAX ( + - 53 ) col2
----
53

query I rowsort
SELECT ALL - + 11 AS col0
----
-11

query I rowsort
SELECT + - COALESCE ( - 65, + 77 ) AS col1
----
65

query II rowsort
SELECT - 55 AS col1, 41 AS col0
----
-55
41

query II rowsort
SELECT - 66 AS col2, 9 col1
----
-66
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7783
SELECT DISTINCT COUNT( * ) * + + 26
----
26

skipif mysql # not compatible
query I rowsort label-7783
SELECT DISTINCT COUNT ( * ) * + + 26
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7784
SELECT DISTINCT COUNT( * ) * + - COUNT( ALL - 85 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-7784
SELECT DISTINCT COUNT ( * ) * + - COUNT ( ALL - 85 ) col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7785
SELECT + 85 * COUNT( * ) + COUNT( * )
----
86

skipif mysql # not compatible
query I rowsort label-7785
SELECT + 85 * COUNT ( * ) + COUNT ( * )
----
86

query I rowsort
SELECT DISTINCT + 73 * + - 18
----
-1314

onlyif mysql # aggregate syntax: 
query I rowsort label-7787
SELECT + SUM( ALL - - 48 )
----
48

skipif mysql # not compatible
query I rowsort label-7787
SELECT + SUM ( ALL - - 48 )
----
48

query I rowsort
SELECT ALL - + 45 AS col0
----
-45

query I rowsort
SELECT + 44 col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7790
SELECT 56 + + MAX( DISTINCT + + 65 )
----
121

skipif mysql # not compatible
query I rowsort label-7790
SELECT 56 + + MAX ( DISTINCT + + 65 )
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-7791
SELECT - COUNT( * ) - - 81 AS col1
----
80

skipif mysql # not compatible
query I rowsort label-7791
SELECT - COUNT ( * ) - - 81 AS col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7792
SELECT - 63 * COUNT( * )
----
-63

skipif mysql # not compatible
query I rowsort label-7792
SELECT - 63 * COUNT ( * )
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7793
SELECT ALL - 15 DIV COUNT( * ) * - COUNT( 88 )
----
15

skipif mysql # not compatible
query I rowsort label-7793
SELECT ALL - 15 / COUNT ( * ) * - COUNT ( 88 )
----
15

query I rowsort
SELECT + + ( 34 )
----
34

query I rowsort
SELECT ( 44 )
----
44

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7796
SELECT - + CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7796
SELECT - + CAST ( NULL AS REAL ) col2
----
NULL

query I rowsort
SELECT DISTINCT 17 * 13
----
221

query II rowsort
SELECT ALL - 80, - 8 AS col1
----
-80
-8

query I rowsort
SELECT DISTINCT ( + 6 )
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7800
SELECT + CAST( NULL AS SIGNED ) + + COUNT( ALL + 11 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7800
SELECT + CAST ( NULL AS INTEGER ) + + COUNT ( ALL + 11 )
----
NULL

query I rowsort
SELECT ALL ( + 37 ) col2
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7802
SELECT - - CAST( NULL AS SIGNED ) col1, 57
----
NULL
57

skipif mysql # not compatible
query II rowsort label-7802
SELECT - - CAST ( NULL AS INTEGER ) col1, 57
----
NULL
57

onlyif mysql # aggregate syntax: 
query I rowsort label-7803
SELECT MAX( - - 56 ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-7803
SELECT MAX ( - - 56 ) AS col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7804
SELECT + + 96 * COUNT( * ) + 94 AS col2
----
190

skipif mysql # not compatible
query I rowsort label-7804
SELECT + + 96 * COUNT ( * ) + 94 AS col2
----
190

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7805
SELECT + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + + + CAST( NULL AS SIGNED ) + + - 36 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7805
SELECT + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + + + CAST ( NULL AS INTEGER ) + + - 36 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7806
SELECT ALL - 87 DIV 71
----
-1

skipif mysql # not compatible
query I rowsort label-7806
SELECT ALL - 87 / 71
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7807
SELECT ALL + 71 * - COUNT( * ) + - 61 AS col2
----
-132

skipif mysql # not compatible
query I rowsort label-7807
SELECT ALL + 71 * - COUNT ( * ) + - 61 AS col2
----
-132

query I rowsort
SELECT ( + + ( - + 78 ) ) AS col2
----
-78

query I rowsort
SELECT ( - ( + 33 ) ) AS col0
----
-33

query I rowsort
SELECT DISTINCT + + ( + 90 )
----
90

query I rowsort
SELECT DISTINCT 58 + + ( 36 ) AS col1
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7812
SELECT ALL + CAST( NULL AS SIGNED ) + + 26 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7812
SELECT ALL + CAST ( NULL AS INTEGER ) + + 26 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7813
SELECT ALL - 87 DIV + ( - - 47 )
----
-1

skipif mysql # not compatible
query I rowsort label-7813
SELECT ALL - 87 / + ( - - 47 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7814
SELECT ALL - + SUM( - + 91 )
----
91

skipif mysql # not compatible
query I rowsort label-7814
SELECT ALL - + SUM ( - + 91 )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7815
SELECT + COUNT( * ) * - - COALESCE ( - 8, - + 82 * + + 24 ) + 98 AS col1
----
90

skipif mysql # not compatible
query I rowsort label-7815
SELECT + COUNT ( * ) * - - COALESCE ( - 8, - + 82 * + + 24 ) + 98 AS col1
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7816
SELECT - 71 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7816
SELECT - 71 / CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 64 + - 28 AS col1
----
36

query I rowsort
SELECT DISTINCT - 14 + - + 57
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-7819
SELECT DISTINCT - ( - 94 ) * 51 + - COUNT( * ) col1
----
4793

skipif mysql # not compatible
query I rowsort label-7819
SELECT DISTINCT - ( - 94 ) * 51 + - COUNT ( * ) col1
----
4793

onlyif mysql # aggregate syntax: 
query I rowsort label-7820
SELECT SUM( ALL + - 53 )
----
-53

skipif mysql # not compatible
query I rowsort label-7820
SELECT SUM ( ALL + - 53 )
----
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-7821
SELECT COUNT( * ) * - - 7 AS col2, 35
----
7
35

skipif mysql # not compatible
query II rowsort label-7821
SELECT COUNT ( * ) * - - 7 AS col2, 35
----
7
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7822
SELECT - - 51 + COUNT( * ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-7822
SELECT - - 51 + COUNT ( * ) AS col2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7823
SELECT DISTINCT MIN( + - 51 )
----
-51

skipif mysql # not compatible
query I rowsort label-7823
SELECT DISTINCT MIN ( + - 51 )
----
-51

query I rowsort
SELECT ALL + + 70 AS col2
----
70

query I rowsort
SELECT + - ( - 96 )
----
96

query I rowsort
SELECT DISTINCT + - 17 AS col2
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7827
SELECT ALL COUNT( * ) - CAST( NULL AS SIGNED ) * - - 69 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7827
SELECT ALL COUNT ( * ) - CAST ( NULL AS INTEGER ) * - - 69 AS col2
----
NULL

query I rowsort
SELECT ALL ( - 0 )
----
0

query I rowsort
SELECT ALL + - 28 + 11 * + - 42
----
-490

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7830
SELECT 93 - + COUNT( - + CAST( - + 48 AS SIGNED ) ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-7830
SELECT 93 - + COUNT ( - + CAST ( - + 48 AS INTEGER ) ) AS col2
----
92

query I rowsort
SELECT DISTINCT + 66 * + + 97 AS col0
----
6402

onlyif mysql # aggregate syntax: 
query I rowsort label-7832
SELECT 93 + + COUNT( * ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-7832
SELECT 93 + + COUNT ( * ) AS col0
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-7833
SELECT ALL - 6 DIV - 62 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7833
SELECT ALL - 6 / - 62 AS col1
----
0

query I rowsort
SELECT 28 + 64 AS col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7835
SELECT 34 + COUNT( * ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-7835
SELECT 34 + COUNT ( * ) AS col1
----
35

query I rowsort
SELECT + 69 + - 51
----
18

query I rowsort
SELECT + - 24 * - 33 AS col0
----
792

query II rowsort
SELECT + + 12, 42 AS col1
----
12
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7839
SELECT ALL - CAST( NULL AS SIGNED ) * + 93 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7839
SELECT ALL - CAST ( NULL AS INTEGER ) * + 93 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7840
SELECT - COUNT( * ) * COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7840
SELECT - COUNT ( * ) * COUNT ( * ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7841
SELECT - COUNT( * ) + 24
----
23

skipif mysql # not compatible
query I rowsort label-7841
SELECT - COUNT ( * ) + 24
----
23

query I rowsort
SELECT + ( 89 ) AS col0
----
89

query I rowsort
SELECT ( + 74 )
----
74

query I rowsort
SELECT ( - 60 ) AS col2
----
-60

query I rowsort
SELECT DISTINCT + 63 * - - 26 AS col0
----
1638

query I rowsort
SELECT + 68 + 87
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-7847
SELECT + SUM( + 11 )
----
11

skipif mysql # not compatible
query I rowsort label-7847
SELECT + SUM ( + 11 )
----
11

query I rowsort
SELECT ALL + 93 + + 69 + - 14 AS col0
----
148

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7849
SELECT CAST( 37 AS SIGNED ) DIV 27 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7849
SELECT CAST ( 37 AS INTEGER ) / 27 AS col0
----
1

query I rowsort
SELECT ALL 87 * - 95 AS col1
----
-8265

query II rowsort
SELECT - 23 AS col2, 15
----
-23
15

query II rowsort
SELECT - 28, 37 - + 4 col0
----
-28
33

onlyif mysql # aggregate syntax: 
query II rowsort label-7853
SELECT ALL - 74 AS col2, 41 + + 21 + - 59 * + COUNT( * )
----
-74
3

skipif mysql # not compatible
query II rowsort label-7853
SELECT ALL - 74 AS col2, 41 + + 21 + - 59 * + COUNT ( * )
----
-74
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7854
SELECT ALL + COUNT( * ) * - COUNT( * ) + + 33
----
32

skipif mysql # not compatible
query I rowsort label-7854
SELECT ALL + COUNT ( * ) * - COUNT ( * ) + + 33
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7855
SELECT ALL + COUNT( - 57 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-7855
SELECT ALL + COUNT ( - 57 ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7856
SELECT + COUNT( * ) - - 13 AS col2
----
14

skipif mysql # not compatible
query I rowsort label-7856
SELECT + COUNT ( * ) - - 13 AS col2
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7857
SELECT + CAST( NULL AS SIGNED ) col0, - 52
----
NULL
-52

skipif mysql # not compatible
query II rowsort label-7857
SELECT + CAST ( NULL AS INTEGER ) col0, - 52
----
NULL
-52

query I rowsort
SELECT ( + 62 ) AS col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-7859
SELECT COUNT( * ) - - 21 col0
----
22

skipif mysql # not compatible
query I rowsort label-7859
SELECT COUNT ( * ) - - 21 col0
----
22

query I rowsort
SELECT 53 - + 6
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7861
SELECT DISTINCT - COUNT( * ) * - 27
----
27

skipif mysql # not compatible
query I rowsort label-7861
SELECT DISTINCT - COUNT ( * ) * - 27
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7862
SELECT ALL - + CAST( SUM( DISTINCT - - 0 ) AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7862
SELECT ALL - + CAST ( SUM ( DISTINCT - - 0 ) AS INTEGER ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7863
SELECT + + SUM( - 52 )
----
-52

skipif mysql # not compatible
query I rowsort label-7863
SELECT + + SUM ( - 52 )
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-7864
SELECT COUNT( ALL 65 ) * + + 82 AS col0
----
82

skipif mysql # not compatible
query I rowsort label-7864
SELECT COUNT ( ALL 65 ) * + + 82 AS col0
----
82

query I rowsort
SELECT ALL 38 col2
----
38

query I rowsort
SELECT ALL 87 * 42 col1
----
3654

onlyif mysql # aggregate syntax: 
query II rowsort label-7867
SELECT + COUNT( * ), 19 col1
----
1
19

skipif mysql # not compatible
query II rowsort label-7867
SELECT + COUNT ( * ), 19 col1
----
1
19

query I rowsort
SELECT DISTINCT - - 17
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7869
SELECT ALL 56 - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7869
SELECT ALL 56 - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7870
SELECT DISTINCT MAX( ALL - 5 ) col1
----
-5

skipif mysql # not compatible
query I rowsort label-7870
SELECT DISTINCT MAX ( ALL - 5 ) col1
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7871
SELECT ALL - 64 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7871
SELECT ALL - 64 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + + 22 AS col0
----
22

query I rowsort
SELECT DISTINCT + - 8 AS col2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-7874
SELECT MAX( DISTINCT + 41 )
----
41

skipif mysql # not compatible
query I rowsort label-7874
SELECT MAX ( DISTINCT + 41 )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7875
SELECT ALL COALESCE ( - COUNT( * ), - 90, COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-7875
SELECT ALL COALESCE ( - COUNT ( * ), - 90, COUNT ( * ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7876
SELECT DISTINCT - MIN( + 12 )
----
-12

skipif mysql # not compatible
query I rowsort label-7876
SELECT DISTINCT - MIN ( + 12 )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-7877
SELECT ALL 28 * + - 84 * - COUNT( * )
----
2352

skipif mysql # not compatible
query I rowsort label-7877
SELECT ALL 28 * + - 84 * - COUNT ( * )
----
2352

onlyif mysql # aggregate syntax: 
query I rowsort label-7878
SELECT ALL COUNT( * ) + 91 col0
----
92

skipif mysql # not compatible
query I rowsort label-7878
SELECT ALL COUNT ( * ) + 91 col0
----
92

query I rowsort
SELECT 62 * + 22
----
1364

onlyif mysql # aggregate syntax: 
query I rowsort label-7880
SELECT COUNT( * ) - - + COUNT( * ) + + 88
----
90

skipif mysql # not compatible
query I rowsort label-7880
SELECT COUNT ( * ) - - + COUNT ( * ) + + 88
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7881
SELECT 41 * + + COUNT( * ) + 7
----
48

skipif mysql # not compatible
query I rowsort label-7881
SELECT 41 * + + COUNT ( * ) + 7
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7882
SELECT + COUNT( * ) * + ( - COUNT( * ) ) + - + 80 AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-7882
SELECT + COUNT ( * ) * + ( - COUNT ( * ) ) + - + 80 AS col1
----
-81

query I rowsort
SELECT DISTINCT + ( + 96 ) AS col2
----
96

query I rowsort
SELECT + 52 * + 65
----
3380

onlyif mysql # aggregate syntax: 
query I rowsort label-7885
SELECT COUNT( ALL - 55 )
----
1

skipif mysql # not compatible
query I rowsort label-7885
SELECT COUNT ( ALL - 55 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7886
SELECT ALL + CAST( - - 1 AS SIGNED ) col0
----
1

skipif mysql # not compatible
query I rowsort label-7886
SELECT ALL + CAST ( - - 1 AS INTEGER ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7887
SELECT DISTINCT MIN( 14 ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-7887
SELECT DISTINCT MIN ( 14 ) AS col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7888
SELECT - MIN( DISTINCT - 12 ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-7888
SELECT - MIN ( DISTINCT - 12 ) AS col0
----
12

query I rowsort
SELECT ALL + + 79 * 27 col1
----
2133

onlyif mysql # aggregate syntax: 
query II rowsort label-7890
SELECT - 92 col2, + COUNT( * ) AS col0
----
-92
1

skipif mysql # not compatible
query II rowsort label-7890
SELECT - 92 col2, + COUNT ( * ) AS col0
----
-92
1

query I rowsort
SELECT ALL + 50 * - 41 AS col1
----
-2050

query II rowsort
SELECT DISTINCT + 75 col0, 76 AS col0
----
75
76

query I rowsort
SELECT - 72 * + + 21 col1
----
-1512

query I rowsort
SELECT ALL - - 63 col2
----
63

query I rowsort
SELECT ALL - ( + 14 )
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7896
SELECT ALL - COUNT( * ) / - CAST( NULL AS SIGNED ) / + - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-7896
SELECT ALL - COUNT ( * ) / - CAST ( NULL AS INTEGER ) / + - 51
----
NULL

query I rowsort
SELECT ( 44 ) * + 7
----
308

onlyif mysql # aggregate syntax: 
query I rowsort label-7898
SELECT COUNT( * ) - - + 87 col1
----
88

skipif mysql # not compatible
query I rowsort label-7898
SELECT COUNT ( * ) - - + 87 col1
----
88

query I rowsort
SELECT DISTINCT - ( 89 )
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7900
SELECT ALL - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7900
SELECT ALL - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7901
SELECT ALL COUNT( * ) * - - 99
----
99

skipif mysql # not compatible
query I rowsort label-7901
SELECT ALL COUNT ( * ) * - - 99
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7902
SELECT DISTINCT 51 + SUM( + + ( - 60 ) ) AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-7902
SELECT DISTINCT 51 + SUM ( + + ( - 60 ) ) AS col0
----
-9

query I rowsort
SELECT - ( + 2 ) AS col2
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7904
SELECT - - 82 DIV COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-7904
SELECT - - 82 / COUNT ( * )
----
82

query I rowsort
SELECT ( 43 ) AS col2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7906
SELECT - COUNT( * ) * + 54
----
-54

skipif mysql # not compatible
query I rowsort label-7906
SELECT - COUNT ( * ) * + 54
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-7907
SELECT + MIN( DISTINCT - + 61 ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-7907
SELECT + MIN ( DISTINCT - + 61 ) AS col1
----
-61

query I rowsort
SELECT + ( - - 92 ) AS col1
----
92

query I rowsort
SELECT - ( + 22 )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-7910
SELECT COUNT( * ) * + COUNT( * ) * - COUNT( * ) + - 69
----
-70

skipif mysql # not compatible
query I rowsort label-7910
SELECT COUNT ( * ) * + COUNT ( * ) * - COUNT ( * ) + - 69
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-7911
SELECT ALL + COUNT( * ) - 52
----
-51

skipif mysql # not compatible
query I rowsort label-7911
SELECT ALL + COUNT ( * ) - 52
----
-51

query I rowsort
SELECT ALL - + 8 AS col0
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-7913
SELECT ALL 16 col2, - COUNT( * ) AS col1
----
16
-1

skipif mysql # not compatible
query II rowsort label-7913
SELECT ALL 16 col2, - COUNT ( * ) AS col1
----
16
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7914
SELECT + COUNT( * ) col2, 93
----
1
93

skipif mysql # not compatible
query II rowsort label-7914
SELECT + COUNT ( * ) col2, 93
----
1
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7915
SELECT + - MAX( + ( - 38 ) )
----
38

skipif mysql # not compatible
query I rowsort label-7915
SELECT + - MAX ( + ( - 38 ) )
----
38

query I rowsort
SELECT DISTINCT 13 + - 23
----
-10

query I rowsort
SELECT ALL + 15 col1
----
15

query I rowsort
SELECT DISTINCT + - ( - 27 )
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7919
SELECT - COUNT( * ) + - + 87 + + - CAST( NULL AS SIGNED ) * + 74
----
NULL

skipif mysql # not compatible
query I rowsort label-7919
SELECT - COUNT ( * ) + - + 87 + + - CAST ( NULL AS INTEGER ) * + 74
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7920
SELECT MAX( - 13 )
----
-13

skipif mysql # not compatible
query I rowsort label-7920
SELECT MAX ( - 13 )
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7921
SELECT - ( + ( CAST( NULL AS SIGNED ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7921
SELECT - ( + ( CAST ( NULL AS INTEGER ) ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7922
SELECT - COUNT( ALL 20 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7922
SELECT - COUNT ( ALL 20 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7923
SELECT - COUNT( * ) - + 25 AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-7923
SELECT - COUNT ( * ) - + 25 AS col2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-7924
SELECT MIN( 59 )
----
59

skipif mysql # not compatible
query I rowsort label-7924
SELECT MIN ( 59 )
----
59

query I rowsort
SELECT ALL + 37 + + + 5 AS col2
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7926
SELECT ALL ( + - COUNT( * ) ) DIV - 43 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7926
SELECT ALL ( + - COUNT ( * ) ) / - 43 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7927
SELECT 50 + - COUNT( + - 19 )
----
49

skipif mysql # not compatible
query I rowsort label-7927
SELECT 50 + - COUNT ( + - 19 )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7928
SELECT - - MIN( DISTINCT 98 ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-7928
SELECT - - MIN ( DISTINCT 98 ) AS col1
----
98

query I rowsort
SELECT 41 + + 63 AS col0
----
104

query I rowsort
SELECT DISTINCT + ( + 33 ) * + - 25
----
-825

query I rowsort
SELECT 76 + 35
----
111

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7932
SELECT ALL - CAST( NULL AS SIGNED ), 26 AS col2
----
NULL
26

skipif mysql # not compatible
query II rowsort label-7932
SELECT ALL - CAST ( NULL AS INTEGER ), 26 AS col2
----
NULL
26

query I rowsort
SELECT 20 * + 56
----
1120

onlyif mysql # aggregate syntax: 
query I rowsort label-7934
SELECT ALL 72 * COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-7934
SELECT ALL 72 * COUNT ( * )
----
72

query I rowsort
SELECT ALL 37 + + 76
----
113

query I rowsort
SELECT DISTINCT 81 col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7937
SELECT ALL + 42 * COUNT( * ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-7937
SELECT ALL + 42 * COUNT ( * ) AS col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7938
SELECT - NULLIF ( 56, SUM( + 84 ) )
----
-56

skipif mysql # not compatible
query I rowsort label-7938
SELECT - NULLIF ( 56, SUM ( + 84 ) )
----
-56

query I rowsort
SELECT DISTINCT + ( + 83 )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7940
SELECT - 92 * COUNT( * ) AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-7940
SELECT - 92 * COUNT ( * ) AS col2
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7941
SELECT DISTINCT + COALESCE ( CAST( NULL AS SIGNED ), 77 ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-7941
SELECT DISTINCT + COALESCE ( CAST ( NULL AS INTEGER ), 77 ) AS col0
----
77

query I rowsort
SELECT ALL ( - 99 ) AS col2
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7943
SELECT ALL + COUNT( * ) + - 42 * - 80
----
3361

skipif mysql # not compatible
query I rowsort label-7943
SELECT ALL + COUNT ( * ) + - 42 * - 80
----
3361

query I rowsort
SELECT + + 82 - 64
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-7945
SELECT DISTINCT - + 57 DIV 2 col1
----
-28

skipif mysql # not compatible
query I rowsort label-7945
SELECT DISTINCT - + 57 / 2 col1
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-7946
SELECT + - 55 DIV 33
----
-1

skipif mysql # not compatible
query I rowsort label-7946
SELECT + - 55 / 33
----
-1

query I rowsort
SELECT ALL ( - 15 ) col2
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7948
SELECT ALL + SUM( ALL - - 81 ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-7948
SELECT ALL + SUM ( ALL - - 81 ) AS col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7949
SELECT ALL COUNT( * ) + - 57
----
-56

skipif mysql # not compatible
query I rowsort label-7949
SELECT ALL COUNT ( * ) + - 57
----
-56

query II rowsort
SELECT + 38 AS col2, - 58
----
38
-58

query I rowsort
SELECT + 69 + + 5 AS col1
----
74

query I rowsort
SELECT ALL ( - 45 )
----
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-7953
SELECT DISTINCT 80, + COUNT( * ) AS col1
----
80
1

skipif mysql # not compatible
query II rowsort label-7953
SELECT DISTINCT 80, + COUNT ( * ) AS col1
----
80
1

query I rowsort
SELECT + 67 * - + 6
----
-402

onlyif mysql # aggregate syntax: 
query I rowsort label-7955
SELECT DISTINCT + COUNT( DISTINCT + 28 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7955
SELECT DISTINCT + COUNT ( DISTINCT + 28 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7956
SELECT DISTINCT + 80 + + COUNT( * )
----
81

skipif mysql # not compatible
query I rowsort label-7956
SELECT DISTINCT + 80 + + COUNT ( * )
----
81

query I rowsort
SELECT ( + - 70 ) AS col0
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7958
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - - 76 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7958
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - - 76 AS col0
----
NULL

query I rowsort
SELECT ( + + 66 )
----
66

query I rowsort
SELECT - + 12 AS col1
----
-12

query I rowsort
SELECT - - 26 + + 89
----
115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7962
SELECT + 98 + + COUNT( * ) / - - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7962
SELECT + 98 + + COUNT ( * ) / - - CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7963
SELECT ALL + COUNT( DISTINCT + 61 ) + - 93 AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-7963
SELECT ALL + COUNT ( DISTINCT + 61 ) + - 93 AS col2
----
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-7964
SELECT - COUNT( * ) AS col0, 23
----
-1
23

skipif mysql # not compatible
query II rowsort label-7964
SELECT - COUNT ( * ) AS col0, 23
----
-1
23

query I rowsort
SELECT ALL 21 * - 21 AS col0
----
-441

onlyif mysql # aggregate syntax: 
query I rowsort label-7966
SELECT MIN( 16 ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-7966
SELECT MIN ( 16 ) AS col0
----
16

query I rowsort
SELECT DISTINCT 98 * 50
----
4900

query I rowsort
SELECT DISTINCT - 23 + - 18 AS col2
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-7969
SELECT - MIN( DISTINCT 64 ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-7969
SELECT - MIN ( DISTINCT 64 ) AS col0
----
-64

query I rowsort
SELECT ALL + 97 + 2
----
99

query I rowsort
SELECT + 83 * 52 * - 11 + + 66 AS col1
----
-47410

query I rowsort
SELECT + + ( + 8 ) AS col0
----
8

query I rowsort
SELECT ALL - 53 * - 58 AS col1
----
3074

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7974
SELECT - CAST( + + 30 AS SIGNED ) * 9 AS col0
----
-270

skipif mysql # not compatible
query I rowsort label-7974
SELECT - CAST ( + + 30 AS INTEGER ) * 9 AS col0
----
-270

query I rowsort
SELECT + ( - 34 )
----
-34

query I rowsort
SELECT - 67 + + 52
----
-15

query I rowsort
SELECT ALL ( + 4 ) col1
----
4

query I rowsort
SELECT ALL + 84 col2
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7979
SELECT ALL - COUNT( * ) DIV + 31 col2
----
0

skipif mysql # not compatible
query I rowsort label-7979
SELECT ALL - COUNT ( * ) / + 31 col2
----
0

query I rowsort
SELECT + 28 + - + 47 col1
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-7981
SELECT DISTINCT + - COUNT( * ) - - + COALESCE ( COUNT( * ), - COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-7981
SELECT DISTINCT + - COUNT ( * ) - - + COALESCE ( COUNT ( * ), - COUNT ( * ) )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7982
SELECT DISTINCT - + COUNT( * ) DIV + ( + - COUNT( * ) ) + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-7982
SELECT DISTINCT - + COUNT ( * ) / + ( + - COUNT ( * ) ) + - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7983
SELECT ALL - + MIN( DISTINCT 40 ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-7983
SELECT ALL - + MIN ( DISTINCT 40 ) AS col1
----
-40

query I rowsort
SELECT ALL - 73 + - 29 AS col2
----
-102

query II rowsort
SELECT 19, - 21 AS col2
----
19
-21

query I rowsort
SELECT 39 * 17
----
663

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7987
SELECT 29 * + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7987
SELECT 29 * + + CAST ( NULL AS REAL )
----
NULL

query II rowsort
SELECT ALL - 5 AS col1, 70 AS col1
----
-5
70

onlyif mysql # aggregate syntax: 
query I rowsort label-7989
SELECT ALL COUNT( ( - + 83 ) )
----
1

skipif mysql # not compatible
query I rowsort label-7989
SELECT ALL COUNT ( ( - + 83 ) )
----
1

query I rowsort
SELECT DISTINCT - 46 col2
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7991
SELECT - 81 DIV + ( + - COUNT( * ) ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-7991
SELECT - 81 / + ( + - COUNT ( * ) ) AS col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7992
SELECT + 87 * - 67 * + 74 + + + COUNT( * ) AS col1
----
-431345

skipif mysql # not compatible
query I rowsort label-7992
SELECT + 87 * - 67 * + 74 + + + COUNT ( * ) AS col1
----
-431345

query I rowsort
SELECT ALL ( - - 65 ) * + - 56 AS col1
----
-3640

onlyif mysql # aggregate syntax: 
query I rowsort label-7994
SELECT ( ( + - MAX( DISTINCT + 6 ) ) ) AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-7994
SELECT ( ( + - MAX ( DISTINCT + 6 ) ) ) AS col0
----
-6

query I rowsort
SELECT - + ( - 80 ) AS col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7996
SELECT COUNT( * ) - + 10
----
-9

skipif mysql # not compatible
query I rowsort label-7996
SELECT COUNT ( * ) - + 10
----
-9

query I rowsort
SELECT ( + 43 ) AS col1
----
43

query II rowsort
SELECT - 65, - 86 + + - ( + 52 ) AS col0
----
-65
-138

query I rowsort
SELECT DISTINCT - ( - - 99 ) AS col1
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8000
SELECT COUNT( ALL - 85 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8000
SELECT COUNT ( ALL - 85 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8001
SELECT COUNT( * ) AS col0, + 34 AS col2
----
1
34

skipif mysql # not compatible
query II rowsort label-8001
SELECT COUNT ( * ) AS col0, + 34 AS col2
----
1
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8002
SELECT DISTINCT - 5 + - CAST( - COUNT( * ) AS SIGNED ) col0
----
-4

skipif mysql # not compatible
query I rowsort label-8002
SELECT DISTINCT - 5 + - CAST ( - COUNT ( * ) AS INTEGER ) col0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-8003
SELECT - + MIN( + 37 )
----
-37

skipif mysql # not compatible
query I rowsort label-8003
SELECT - + MIN ( + 37 )
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-8004
SELECT DISTINCT + MIN( + 98 )
----
98

skipif mysql # not compatible
query I rowsort label-8004
SELECT DISTINCT + MIN ( + 98 )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8005
SELECT DISTINCT + ( + + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-8005
SELECT DISTINCT + ( + + COUNT ( * ) )
----
1

query I rowsort
SELECT ALL + + 43 AS col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8007
SELECT - MIN( DISTINCT + - 51 )
----
51

skipif mysql # not compatible
query I rowsort label-8007
SELECT - MIN ( DISTINCT + - 51 )
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8008
SELECT ALL + 99 * - + COUNT( * ) + - CAST( - CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8008
SELECT ALL + 99 * - + COUNT ( * ) + - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8009
SELECT + 93 + + COUNT( * ) AS col2, COUNT( * ) + COUNT( * ) AS col0
----
94
2

skipif mysql # not compatible
query II rowsort label-8009
SELECT + 93 + + COUNT ( * ) AS col2, COUNT ( * ) + COUNT ( * ) AS col0
----
94
2

query I rowsort
SELECT DISTINCT - - 43
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8011
SELECT ALL - COUNT( * ) + - + COUNT( * ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-8011
SELECT ALL - COUNT ( * ) + - + COUNT ( * ) AS col0
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-8012
SELECT ALL + COUNT( + 21 ) + + COUNT( * ) AS col1, ( + 72 )
----
2
72

skipif mysql # not compatible
query II rowsort label-8012
SELECT ALL + COUNT ( + 21 ) + + COUNT ( * ) AS col1, ( + 72 )
----
2
72

query I rowsort
SELECT ALL 61 + + 6 AS col0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8014
SELECT + - SUM( - 84 ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-8014
SELECT + - SUM ( - 84 ) AS col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8015
SELECT SUM( DISTINCT - - 99 ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-8015
SELECT SUM ( DISTINCT - - 99 ) AS col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8016
SELECT ( + ( + - COUNT( * ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8016
SELECT ( + ( + - COUNT ( * ) ) )
----
-1

query I rowsort
SELECT - 72 col0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-8018
SELECT DISTINCT MAX( + 62 ) col2
----
62

skipif mysql # not compatible
query I rowsort label-8018
SELECT DISTINCT MAX ( + 62 ) col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-8019
SELECT ALL + COUNT( * ) * - - 23 AS col1
----
23

skipif mysql # not compatible
query I rowsort label-8019
SELECT ALL + COUNT ( * ) * - - 23 AS col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8020
SELECT - 48 + COUNT( * )
----
-47

skipif mysql # not compatible
query I rowsort label-8020
SELECT - 48 + COUNT ( * )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8021
SELECT DISTINCT + - ( - COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8021
SELECT DISTINCT + - ( - COUNT ( * ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8022
SELECT COUNT( * ) + - MAX( ALL + 96 )
----
-95

skipif mysql # not compatible
query I rowsort label-8022
SELECT COUNT ( * ) + - MAX ( ALL + 96 )
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-8023
SELECT ALL - - 85 + 47 + - - MAX( DISTINCT + 94 )
----
226

skipif mysql # not compatible
query I rowsort label-8023
SELECT ALL - - 85 + 47 + - - MAX ( DISTINCT + 94 )
----
226

query I rowsort
SELECT + + 1 col0
----
1

query II rowsort
SELECT ALL - 86, + 0 col0
----
-86
0

query I rowsort
SELECT ALL ( - 42 ) * + 80
----
-3360

onlyif mysql # aggregate syntax: 
query II rowsort label-8027
SELECT COUNT( * ) * 25 col2, 12 * 96 AS col0
----
25
1152

skipif mysql # not compatible
query II rowsort label-8027
SELECT COUNT ( * ) * 25 col2, 12 * 96 AS col0
----
25
1152

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8028
SELECT 73 + - - MIN( + + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8028
SELECT 73 + - - MIN ( + + CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8029
SELECT DISTINCT + + COUNT( * ) * ( COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-8029
SELECT DISTINCT + + COUNT ( * ) * ( COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8030
SELECT ALL 74 * MIN( 43 ) - + 51
----
3131

skipif mysql # not compatible
query I rowsort label-8030
SELECT ALL 74 * MIN ( 43 ) - + 51
----
3131

onlyif mysql # aggregate syntax: 
query I rowsort label-8031
SELECT + + 31 * + - 38 * + + 0 * - + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8031
SELECT + + 31 * + - 38 * + + 0 * - + COUNT ( * )
----
0

query I rowsort
SELECT + + 48 + 72 col0
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-8033
SELECT ALL ( 75 ) * + 31 * + COUNT( * ) AS col0
----
2325

skipif mysql # not compatible
query I rowsort label-8033
SELECT ALL ( 75 ) * + 31 * + COUNT ( * ) AS col0
----
2325

query I rowsort
SELECT - ( - 75 ) AS col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8035
SELECT ALL MIN( + 75 )
----
75

skipif mysql # not compatible
query I rowsort label-8035
SELECT ALL MIN ( + 75 )
----
75

query I rowsort
SELECT + 44 + - - 5
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8037
SELECT ( - - COUNT( * ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-8037
SELECT ( - - COUNT ( * ) ) col0
----
1

query I rowsort
SELECT ALL + ( - - 46 ) AS col1
----
46

query I rowsort
SELECT 2 * - - 41
----
82

query I rowsort
SELECT DISTINCT 67 + + + 31 AS col0
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8041
SELECT ALL 96 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8041
SELECT ALL 96 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8042
SELECT DISTINCT - SUM( ALL + - 29 ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-8042
SELECT DISTINCT - SUM ( ALL + - 29 ) AS col0
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-8043
SELECT DISTINCT 31 DIV + 1 AS col0
----
31

skipif mysql # not compatible
query I rowsort label-8043
SELECT DISTINCT 31 / + 1 AS col0
----
31

query I rowsort
SELECT ALL - 62 col2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-8045
SELECT DISTINCT - MAX( DISTINCT + 99 ) AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-8045
SELECT DISTINCT - MAX ( DISTINCT + 99 ) AS col2
----
-99

query I rowsort
SELECT DISTINCT - - 50
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-8047
SELECT - 75 DIV 82 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8047
SELECT - 75 / 82 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8048
SELECT + SUM( + + 55 )
----
55

skipif mysql # not compatible
query I rowsort label-8048
SELECT + SUM ( + + 55 )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8049
SELECT ALL + 54 + - SUM( + ( - 99 ) ) AS col1
----
153

skipif mysql # not compatible
query I rowsort label-8049
SELECT ALL + 54 + - SUM ( + ( - 99 ) ) AS col1
----
153

query I rowsort
SELECT 2 * + 94 AS col0
----
188

query I rowsort
SELECT ALL - ( - 12 )
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8052
SELECT ALL - CAST( - 57 AS SIGNED ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-8052
SELECT ALL - CAST ( - 57 AS INTEGER ) AS col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8053
SELECT COUNT( - 74 )
----
1

skipif mysql # not compatible
query I rowsort label-8053
SELECT COUNT ( - 74 )
----
1

query I rowsort
SELECT DISTINCT - COALESCE ( - 92, 72 )
----
92

query I rowsort
SELECT DISTINCT + 44 col2
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-8056
SELECT + 63 DIV - 30 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-8056
SELECT + 63 / - 30 AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8057
SELECT + - MAX( ALL - 94 ) - + 68 AS col0
----
26

skipif mysql # not compatible
query I rowsort label-8057
SELECT + - MAX ( ALL - 94 ) - + 68 AS col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8058
SELECT ALL 69 + - COUNT( * ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-8058
SELECT ALL 69 + - COUNT ( * ) AS col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8059
SELECT + COUNT( * ) + 87 AS col1
----
88

skipif mysql # not compatible
query I rowsort label-8059
SELECT + COUNT ( * ) + 87 AS col1
----
88

query I rowsort
SELECT - 85 * - - ( - 88 ) AS col0
----
7480

query I rowsort
SELECT ( + 54 ) AS col2
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-8062
SELECT - 49 DIV + - 39
----
1

skipif mysql # not compatible
query I rowsort label-8062
SELECT - 49 / + - 39
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8063
SELECT ALL + MAX( + CAST( + 7 AS SIGNED ) )
----
7

skipif mysql # not compatible
query I rowsort label-8063
SELECT ALL + MAX ( + CAST ( + 7 AS INTEGER ) )
----
7

query I rowsort
SELECT + + 54 col0
----
54

query I rowsort
SELECT + ( - + 76 )
----
-76

query I rowsort
SELECT - ( - 4 ) col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8067
SELECT ALL SUM( ALL + + 22 ) col2
----
22

skipif mysql # not compatible
query I rowsort label-8067
SELECT ALL SUM ( ALL + + 22 ) col2
----
22

query I rowsort
SELECT ALL - + 62 col1
----
-62

query I rowsort
SELECT DISTINCT - + 16 + + 90
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-8070
SELECT 78 DIV + 1 AS col1
----
78

skipif mysql # not compatible
query I rowsort label-8070
SELECT 78 / + 1 AS col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8071
SELECT DISTINCT COUNT( + ( - 49 ) )
----
1

skipif mysql # not compatible
query I rowsort label-8071
SELECT DISTINCT COUNT ( + ( - 49 ) )
----
1

query I rowsort
SELECT ALL COALESCE ( + 82, 91 )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8073
SELECT ALL COUNT( * ) + + - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8073
SELECT ALL COUNT ( * ) + + - COUNT ( * ) AS col2
----
0

query I rowsort
SELECT DISTINCT + COALESCE ( + - 33, 30, + 10 )
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8075
SELECT + COUNT( + CAST( NULL AS SIGNED ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8075
SELECT + COUNT ( + CAST ( NULL AS INTEGER ) ) AS col1
----
0

query I rowsort
SELECT ALL 73 * - 4
----
-292

onlyif mysql # aggregate syntax: 
query I rowsort label-8077
SELECT + + SUM( ALL - + 41 )
----
-41

skipif mysql # not compatible
query I rowsort label-8077
SELECT + + SUM ( ALL - + 41 )
----
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-8078
SELECT - 12 AS col1, COUNT( * )
----
-12
1

skipif mysql # not compatible
query II rowsort label-8078
SELECT - 12 AS col1, COUNT ( * )
----
-12
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8079
SELECT - CAST( + + 49 AS SIGNED ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-8079
SELECT - CAST ( + + 49 AS INTEGER ) AS col2
----
-49

query I rowsort
SELECT ALL ( - + 49 ) AS col0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-8081
SELECT DISTINCT COUNT( - ( 78 ) )
----
1

skipif mysql # not compatible
query I rowsort label-8081
SELECT DISTINCT COUNT ( - ( 78 ) )
----
1

query I rowsort
SELECT + ( 86 ) AS col1
----
86

query I rowsort
SELECT ( + + 32 )
----
32

query I rowsort
SELECT ALL - 65 + - + 49 col1
----
-114

query I rowsort
SELECT 61 + - 22
----
39

query I rowsort
SELECT ALL + + 51 * + 69
----
3519

query II rowsort
SELECT 72, + 98 col0
----
72
98

onlyif mysql # aggregate syntax: 
query II rowsort label-8088
SELECT 45 AS col0, + COUNT( * ) AS col0
----
45
1

skipif mysql # not compatible
query II rowsort label-8088
SELECT 45 AS col0, + COUNT ( * ) AS col0
----
45
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8089
SELECT COUNT( * ) * - 8 AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-8089
SELECT COUNT ( * ) * - 8 AS col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8090
SELECT ALL + SUM( ALL - 24 ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-8090
SELECT ALL + SUM ( ALL - 24 ) AS col0
----
-24

query I rowsort
SELECT DISTINCT + 49 * - 20 col0
----
-980

onlyif mysql # aggregate syntax: 
query II rowsort label-8092
SELECT + COUNT( * ) AS col1, 5 AS col0
----
1
5

skipif mysql # not compatible
query II rowsort label-8092
SELECT + COUNT ( * ) AS col1, 5 AS col0
----
1
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8093
SELECT COUNT( * ) * - 27 AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-8093
SELECT COUNT ( * ) * - 27 AS col2
----
-27

query I rowsort
SELECT + 98 col1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8095
SELECT DISTINCT - 56 * + MIN( DISTINCT 87 ) AS col1
----
-4872

skipif mysql # not compatible
query I rowsort label-8095
SELECT DISTINCT - 56 * + MIN ( DISTINCT 87 ) AS col1
----
-4872

query I rowsort
SELECT ( + 99 ) AS col1
----
99

query I rowsort
SELECT ALL ( + 89 ) AS col1
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8098
SELECT ALL + CAST( - 30 AS SIGNED ) AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-8098
SELECT ALL + CAST ( - 30 AS INTEGER ) AS col2
----
-30

query I rowsort
SELECT ALL + 3 col1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8100
SELECT ALL + 95 DIV ( - 41 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-8100
SELECT ALL + 95 / ( - 41 ) AS col1
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8101
SELECT - - ( + ( - CAST( NULL AS SIGNED ) ) ) + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-8101
SELECT - - ( + ( - CAST ( NULL AS INTEGER ) ) ) + 97
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8102
SELECT - CAST( - + 77 AS SIGNED ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-8102
SELECT - CAST ( - + 77 AS INTEGER ) AS col0
----
77

query I rowsort
SELECT DISTINCT + 77 col2
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-8104
SELECT ALL - COUNT( * ), ( - 45 ) col1
----
-1
-45

skipif mysql # not compatible
query II rowsort label-8104
SELECT ALL - COUNT ( * ), ( - 45 ) col1
----
-1
-45

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8105
SELECT ALL - CAST( NULL AS DECIMAL ) AS col1, 40 AS col2
----
NULL
40

skipif mysql # not compatible
query II rowsort label-8105
SELECT ALL - CAST ( NULL AS REAL ) AS col1, 40 AS col2
----
NULL
40

query I rowsort
SELECT 63 * 31 * - + 71 AS col1
----
-138663

onlyif mysql # aggregate syntax: 
query I rowsort label-8107
SELECT ALL - SUM( DISTINCT - ( - 52 ) )
----
-52

skipif mysql # not compatible
query I rowsort label-8107
SELECT ALL - SUM ( DISTINCT - ( - 52 ) )
----
-52

query I rowsort
SELECT DISTINCT - - 39 AS col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8109
SELECT 9 + + COUNT( * )
----
10

skipif mysql # not compatible
query I rowsort label-8109
SELECT 9 + + COUNT ( * )
----
10

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8110
SELECT - - CAST( NULL AS DECIMAL ) * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8110
SELECT - - CAST ( NULL AS REAL ) * COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8111
SELECT - CAST( NULL AS SIGNED ) * - - 62
----
NULL

skipif mysql # not compatible
query I rowsort label-8111
SELECT - CAST ( NULL AS INTEGER ) * - - 62
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8112
SELECT DISTINCT COUNT( * ) * + 29 + + - 74 col2
----
-45

skipif mysql # not compatible
query I rowsort label-8112
SELECT DISTINCT COUNT ( * ) * + 29 + + - 74 col2
----
-45

query I rowsort
SELECT ( 83 ) AS col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8114
SELECT DISTINCT + MAX( - - 9 ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-8114
SELECT DISTINCT + MAX ( - - 9 ) AS col2
----
9

query I rowsort
SELECT ALL + ( - 56 )
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8116
SELECT DISTINCT ( - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8116
SELECT DISTINCT ( - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT - ( - + ( 83 ) ) AS col1
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-8118
SELECT DISTINCT - 93 * - - COUNT( * ) AS col0, + 24
----
-93
24

skipif mysql # not compatible
query II rowsort label-8118
SELECT DISTINCT - 93 * - - COUNT ( * ) AS col0, + 24
----
-93
24

query I rowsort
SELECT 64 * 98
----
6272

query I rowsort
SELECT DISTINCT 8 + - 41 AS col2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-8121
SELECT COUNT( * ) * 18 col2
----
18

skipif mysql # not compatible
query I rowsort label-8121
SELECT COUNT ( * ) * 18 col2
----
18

query I rowsort
SELECT ALL + 89 + + 38
----
127

query I rowsort
SELECT DISTINCT - ( - + 66 ) AS col0
----
66

query II rowsort
SELECT + 97 AS col1, 88 col0
----
97
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8125
SELECT COUNT( * ) * + - 16 AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-8125
SELECT COUNT ( * ) * + - 16 AS col0
----
-16

query II rowsort
SELECT ALL + 70 AS col0, 88 AS col2
----
70
88

query I rowsort
SELECT ALL - 72 * - + 51
----
3672

onlyif mysql # aggregate syntax: 
query I rowsort label-8128
SELECT ALL + MAX( - + 60 )
----
-60

skipif mysql # not compatible
query I rowsort label-8128
SELECT ALL + MAX ( - + 60 )
----
-60

query I rowsort
SELECT 50 * 70 AS col0
----
3500

onlyif mysql # aggregate syntax: 
query II rowsort label-8130
SELECT ALL COUNT( * ) AS col2, - 2
----
1
-2

skipif mysql # not compatible
query II rowsort label-8130
SELECT ALL COUNT ( * ) AS col2, - 2
----
1
-2

query II rowsort
SELECT 21, - 29 AS col2
----
21
-29

query I rowsort
SELECT ALL - ( 69 ) AS col0
----
-69

query I rowsort
SELECT DISTINCT - ( - + 50 )
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8134
SELECT NULLIF ( - 67, - COUNT( * ) ) DIV + 77
----
0

skipif mysql # not compatible
query I rowsort label-8134
SELECT NULLIF ( - 67, - COUNT ( * ) ) / + 77
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8135
SELECT ( + + COUNT( * ) ) + - + 4
----
-3

skipif mysql # not compatible
query I rowsort label-8135
SELECT ( + + COUNT ( * ) ) + - + 4
----
-3

query I rowsort
SELECT - + ( - - 45 ) AS col2
----
-45

query I rowsort
SELECT - 82 + - 74
----
-156

query I rowsort
SELECT + - 48 AS col0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-8139
SELECT ALL - 99 * + COUNT( * )
----
-99

skipif mysql # not compatible
query I rowsort label-8139
SELECT ALL - 99 * + COUNT ( * )
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8140
SELECT ALL + CAST( NULL AS SIGNED ) / - COALESCE ( - - 92, + + 6, + 99 ) * + - 35
----
NULL

skipif mysql # not compatible
query I rowsort label-8140
SELECT ALL + CAST ( NULL AS INTEGER ) / - COALESCE ( - - 92, + + 6, + 99 ) * + - 35
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8141
SELECT - - COUNT( * ) AS col0, + 79
----
1
79

skipif mysql # not compatible
query II rowsort label-8141
SELECT - - COUNT ( * ) AS col0, + 79
----
1
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8142
SELECT + - COUNT( * ) + - + 36 col2
----
-37

skipif mysql # not compatible
query I rowsort label-8142
SELECT + - COUNT ( * ) + - + 36 col2
----
-37

query I rowsort
SELECT + + 45 + - + 23
----
22

query I rowsort
SELECT ALL + ( 15 ) AS col1
----
15

query I rowsort
SELECT - 19 - - 33 AS col2
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8146
SELECT + + COALESCE ( CAST( NULL AS SIGNED ), + COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8146
SELECT + + COALESCE ( CAST ( NULL AS INTEGER ), + COUNT ( * ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8147
SELECT ALL - 95 AS col2, + COUNT( * )
----
-95
1

skipif mysql # not compatible
query II rowsort label-8147
SELECT ALL - 95 AS col2, + COUNT ( * )
----
-95
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8148
SELECT ALL ( - COUNT( * ) ) * + + 34 + 3
----
-31

skipif mysql # not compatible
query I rowsort label-8148
SELECT ALL ( - COUNT ( * ) ) * + + 34 + 3
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8149
SELECT 73 / - CAST( NULL AS SIGNED ) + 17 * 20
----
NULL

skipif mysql # not compatible
query I rowsort label-8149
SELECT 73 / - CAST ( NULL AS INTEGER ) + 17 * 20
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8150
SELECT + 37 * ( - - COUNT( * ) ) + + 17
----
54

skipif mysql # not compatible
query I rowsort label-8150
SELECT + 37 * ( - - COUNT ( * ) ) + + 17
----
54

query I rowsort
SELECT DISTINCT 18 * - 20 AS col0
----
-360

onlyif mysql # aggregate syntax: 
query II rowsort label-8152
SELECT 31 + - + COUNT( * ), 38 AS col2
----
30
38

skipif mysql # not compatible
query II rowsort label-8152
SELECT 31 + - + COUNT ( * ), 38 AS col2
----
30
38

query I rowsort
SELECT ALL - - 45 AS col0
----
45

query I rowsort
SELECT DISTINCT 52 col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8155
SELECT ALL - MAX( ALL 62 )
----
-62

skipif mysql # not compatible
query I rowsort label-8155
SELECT ALL - MAX ( ALL 62 )
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8156
SELECT ALL - CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8156
SELECT ALL - CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT + + ( + - ( - - 43 ) ) AS col0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-8158
SELECT + 24 * + COUNT( * ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-8158
SELECT + 24 * + COUNT ( * ) AS col0
----
24

query I rowsort
SELECT + 96 + + 42
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-8160
SELECT ALL COUNT( DISTINCT - 72 )
----
1

skipif mysql # not compatible
query I rowsort label-8160
SELECT ALL COUNT ( DISTINCT - 72 )
----
1

query I rowsort
SELECT - 89 * + 92
----
-8188

onlyif mysql # aggregate syntax: 
query I rowsort label-8162
SELECT + COUNT( DISTINCT + 2 )
----
1

skipif mysql # not compatible
query I rowsort label-8162
SELECT + COUNT ( DISTINCT + 2 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8163
SELECT ALL + ( - SUM( ALL 99 ) ) col0
----
-99

skipif mysql # not compatible
query I rowsort label-8163
SELECT ALL + ( - SUM ( ALL 99 ) ) col0
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8164
SELECT + CAST( NULL AS SIGNED ) * + COUNT( * ) + 69 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8164
SELECT + CAST ( NULL AS INTEGER ) * + COUNT ( * ) + 69 * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8165
SELECT ALL 31 * + COUNT( * ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-8165
SELECT ALL 31 * + COUNT ( * ) AS col1
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8166
SELECT - CAST( COUNT( * ) AS SIGNED ) DIV COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-8166
SELECT - CAST ( COUNT ( * ) AS INTEGER ) / COUNT ( * )
----
-1

query I rowsort
SELECT + 69 col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8168
SELECT ALL 62 + + COUNT( * ) col2
----
63

skipif mysql # not compatible
query I rowsort label-8168
SELECT ALL 62 + + COUNT ( * ) col2
----
63

query I rowsort
SELECT ALL 76 + + 77
----
153

query I rowsort
SELECT DISTINCT - - 30 AS col2
----
30

query I rowsort
SELECT + - ( ( 32 ) )
----
-32

query I rowsort
SELECT ALL + ( 84 ) * 37
----
3108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8173
SELECT 43 * - + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8173
SELECT 43 * - + CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT 52 - - + 7
----
59

query I rowsort
SELECT DISTINCT + 56 + - - 47 AS col2
----
103

query I rowsort
SELECT ALL + - 87 AS col0
----
-87

query I rowsort
SELECT - - 41 + - 69 AS col2
----
-28

query II rowsort
SELECT ALL + 7 AS col0, + 26
----
7
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8179
SELECT ALL CAST( NULL AS SIGNED ) * + ( 65 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8179
SELECT ALL CAST ( NULL AS INTEGER ) * + ( 65 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8180
SELECT ALL ( + COUNT( * ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-8180
SELECT ALL ( + COUNT ( * ) ) col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8181
SELECT - 72 AS col2, - CAST( NULL AS SIGNED ) + - + COUNT( * ) / 41
----
-72
NULL

skipif mysql # not compatible
query II rowsort label-8181
SELECT - 72 AS col2, - CAST ( NULL AS INTEGER ) + - + COUNT ( * ) / 41
----
-72
NULL

query I rowsort
SELECT DISTINCT + 85 + 78
----
163

onlyif mysql # aggregate syntax: 
query I rowsort label-8183
SELECT ALL 41 * - COUNT( * ) AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-8183
SELECT ALL 41 * - COUNT ( * ) AS col1
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8184
SELECT - 47 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8184
SELECT - 47 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8185
SELECT + - COUNT( * ) + + 30 + - 78
----
-49

skipif mysql # not compatible
query I rowsort label-8185
SELECT + - COUNT ( * ) + + 30 + - 78
----
-49

query I rowsort
SELECT + 26 * - 90
----
-2340

onlyif mysql # DIV for integer division: 
query I rowsort label-8187
SELECT DISTINCT - 15 DIV - + 16 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8187
SELECT DISTINCT - 15 / - + 16 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8188
SELECT DISTINCT MIN( DISTINCT 91 ) * - COUNT( * ) + COUNT( * ) * 0 + - 12
----
-103

skipif mysql # not compatible
query I rowsort label-8188
SELECT DISTINCT MIN ( DISTINCT 91 ) * - COUNT ( * ) + COUNT ( * ) * 0 + - 12
----
-103

onlyif mysql # aggregate syntax: 
query II rowsort label-8189
SELECT DISTINCT - 54 AS col1, - COUNT( * )
----
-54
-1

skipif mysql # not compatible
query II rowsort label-8189
SELECT DISTINCT - 54 AS col1, - COUNT ( * )
----
-54
-1

query I rowsort
SELECT DISTINCT - ( - 33 ) AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-8191
SELECT ALL - ( + COUNT( * ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-8191
SELECT ALL - ( + COUNT ( * ) ) col2
----
-1

query I rowsort
SELECT DISTINCT - ( + - 93 )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8193
SELECT COUNT( * ) * + 53 AS col0
----
53

skipif mysql # not compatible
query I rowsort label-8193
SELECT COUNT ( * ) * + 53 AS col0
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-8194
SELECT COUNT( * ), + 45 + + + ( - ( + 77 ) ) AS col1
----
1
-32

skipif mysql # not compatible
query II rowsort label-8194
SELECT COUNT ( * ), + 45 + + + ( - ( + 77 ) ) AS col1
----
1
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-8195
SELECT SUM( 97 ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-8195
SELECT SUM ( 97 ) AS col2
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-8196
SELECT - - 60, + COUNT( * ) * + COUNT( * ) AS col0
----
60
1

skipif mysql # not compatible
query II rowsort label-8196
SELECT - - 60, + COUNT ( * ) * + COUNT ( * ) AS col0
----
60
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8197
SELECT - - NULLIF ( - MAX( - 70 ), - 64 ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-8197
SELECT - - NULLIF ( - MAX ( - 70 ), - 64 ) AS col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8198
SELECT + COUNT( * ) + + 28
----
29

skipif mysql # not compatible
query I rowsort label-8198
SELECT + COUNT ( * ) + + 28
----
29

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8199
SELECT ( - CAST( + + CAST( NULL AS SIGNED ) AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8199
SELECT ( - CAST ( + + CAST ( NULL AS INTEGER ) AS REAL ) ) AS col0
----
NULL

query I rowsort
SELECT ( + - 0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8201
SELECT + COUNT( * ) * - COUNT( * ) * - 47
----
47

skipif mysql # not compatible
query I rowsort label-8201
SELECT + COUNT ( * ) * - COUNT ( * ) * - 47
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8202
SELECT + COUNT( * ) DIV + 66 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8202
SELECT + COUNT ( * ) / + 66 AS col2
----
0

query I rowsort
SELECT ALL - 45 * + 2
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8204
SELECT MIN( 78 ) + COUNT( * ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-8204
SELECT MIN ( 78 ) + COUNT ( * ) AS col2
----
79

query I rowsort
SELECT 96 + - - 98
----
194

query I rowsort
SELECT 86 + 91 AS col2
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-8207
SELECT ALL 12 + + MAX( ALL 1 )
----
13

skipif mysql # not compatible
query I rowsort label-8207
SELECT ALL 12 + + MAX ( ALL 1 )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8208
SELECT ALL NULLIF ( + COUNT( * ), - + 16 ) + - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8208
SELECT ALL NULLIF ( + COUNT ( * ), - + 16 ) + - COUNT ( * ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8209
SELECT DISTINCT COUNT( * ) * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8209
SELECT DISTINCT COUNT ( * ) * + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL 27 * 50
----
1350

query I rowsort
SELECT ALL 60 * 31 + 12 AS col0
----
1872

onlyif mysql # aggregate syntax: 
query I rowsort label-8212
SELECT + 81 + + COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-8212
SELECT + 81 + + COUNT ( * )
----
82

query I rowsort
SELECT - ( 27 )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-8214
SELECT DISTINCT COALESCE ( + - COUNT( * ), - COUNT( * ) ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-8214
SELECT DISTINCT COALESCE ( + - COUNT ( * ), - COUNT ( * ) ) col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8215
SELECT ALL SUM( + - 45 ) col2
----
-45

skipif mysql # not compatible
query I rowsort label-8215
SELECT ALL SUM ( + - 45 ) col2
----
-45

query I rowsort
SELECT DISTINCT 48 * - + 33
----
-1584

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8217
SELECT - 95 + + 97 + - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8217
SELECT - 95 + + 97 + - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8218
SELECT + - COUNT( DISTINCT + 58 )
----
-1

skipif mysql # not compatible
query I rowsort label-8218
SELECT + - COUNT ( DISTINCT + 58 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8219
SELECT + 5 * + 60 + + COUNT( * )
----
301

skipif mysql # not compatible
query I rowsort label-8219
SELECT + 5 * + 60 + + COUNT ( * )
----
301

query I rowsort
SELECT ALL - - ( + - 45 )
----
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-8221
SELECT + 26, ( + COUNT( * ) ) AS col1
----
26
1

skipif mysql # not compatible
query II rowsort label-8221
SELECT + 26, ( + COUNT ( * ) ) AS col1
----
26
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8222
SELECT 22 * - + MIN( + 96 ) AS col1, - 67 col0
----
-2112
-67

skipif mysql # not compatible
query II rowsort label-8222
SELECT 22 * - + MIN ( + 96 ) AS col1, - 67 col0
----
-2112
-67

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8223
SELECT - COUNT( * ) * CAST( NULL AS DECIMAL ) - + - 45
----
NULL

skipif mysql # not compatible
query I rowsort label-8223
SELECT - COUNT ( * ) * CAST ( NULL AS REAL ) - + - 45
----
NULL

query I rowsort
SELECT DISTINCT - ( 70 ) AS col2
----
-70

query I rowsort
SELECT 12 * 27
----
324

query I rowsort
SELECT 21 + 65 AS col2
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-8227
SELECT - COUNT( * ) AS col1, 66 AS col2
----
-1
66

skipif mysql # not compatible
query II rowsort label-8227
SELECT - COUNT ( * ) AS col1, 66 AS col2
----
-1
66

query I rowsort
SELECT 50 * - + 76
----
-3800

onlyif mysql # aggregate syntax: 
query I rowsort label-8229
SELECT - COUNT( * ) * - 12
----
12

skipif mysql # not compatible
query I rowsort label-8229
SELECT - COUNT ( * ) * - 12
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8230
SELECT ALL 0 * - CAST( - - COUNT( * ) AS SIGNED ) * + - 27 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8230
SELECT ALL 0 * - CAST ( - - COUNT ( * ) AS INTEGER ) * + - 27 AS col1
----
0

query I rowsort
SELECT + - ( 41 ) AS col1
----
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-8232
SELECT + - 79 * - 82 AS col1, + 88 + ( - NULLIF ( SUM( ALL - 11 ), - COUNT( * ) ) ) AS col0
----
6478
99

skipif mysql # not compatible
query II rowsort label-8232
SELECT + - 79 * - 82 AS col1, + 88 + ( - NULLIF ( SUM ( ALL - 11 ), - COUNT ( * ) ) ) AS col0
----
6478
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8233
SELECT - 48 * + CAST( 16 AS SIGNED ), SUM( - 71 ) AS col0
----
-768
-71

skipif mysql # not compatible
query II rowsort label-8233
SELECT - 48 * + CAST ( 16 AS INTEGER ), SUM ( - 71 ) AS col0
----
-768
-71

query I rowsort
SELECT + 19 + - 90
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8235
SELECT DISTINCT CAST( + + 12 AS SIGNED )
----
12

skipif mysql # not compatible
query I rowsort label-8235
SELECT DISTINCT CAST ( + + 12 AS INTEGER )
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8236
SELECT CAST( + 6 AS SIGNED ) * 44 AS col1
----
264

skipif mysql # not compatible
query I rowsort label-8236
SELECT CAST ( + 6 AS INTEGER ) * 44 AS col1
----
264

query I rowsort
SELECT + 2 * 55 + + - 37 * - - 47
----
-1629

onlyif mysql # aggregate syntax: 
query I rowsort label-8238
SELECT 31 * + COALESCE ( - - COUNT( * ), + 18 ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-8238
SELECT 31 * + COALESCE ( - - COUNT ( * ), + 18 ) AS col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8239
SELECT + COUNT( - + 40 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8239
SELECT + COUNT ( - + 40 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8240
SELECT + COUNT( DISTINCT + - 38 )
----
1

skipif mysql # not compatible
query I rowsort label-8240
SELECT + COUNT ( DISTINCT + - 38 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8241
SELECT ALL + COUNT( * ) * - ( - COUNT( * ) ) + + 72
----
73

skipif mysql # not compatible
query I rowsort label-8241
SELECT ALL + COUNT ( * ) * - ( - COUNT ( * ) ) + + 72
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8242
SELECT + COUNT( * ) + + 74
----
75

skipif mysql # not compatible
query I rowsort label-8242
SELECT + COUNT ( * ) + + 74
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8243
SELECT DISTINCT 15 * + - COUNT( * ) + 53 col1
----
38

skipif mysql # not compatible
query I rowsort label-8243
SELECT DISTINCT 15 * + - COUNT ( * ) + 53 col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8244
SELECT - COUNT( * ) + - - 78 + - 85 col0
----
-8

skipif mysql # not compatible
query I rowsort label-8244
SELECT - COUNT ( * ) + - - 78 + - 85 col0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8245
SELECT ALL COUNT( ALL 96 )
----
1

skipif mysql # not compatible
query I rowsort label-8245
SELECT ALL COUNT ( ALL 96 )
----
1

query II rowsort
SELECT + 59 AS col2, + 44
----
59
44

query I rowsort
SELECT + 20 * + 37
----
740

query I rowsort
SELECT 65 * + 94 * - ( - + 90 ) + + - 98
----
549802

onlyif mysql # aggregate syntax: 
query I rowsort label-8249
SELECT DISTINCT + ( COUNT( * ) ) * - + 58 AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-8249
SELECT DISTINCT + ( COUNT ( * ) ) * - + 58 AS col0
----
-58

query I rowsort
SELECT DISTINCT 47 * + 91
----
4277

onlyif mysql # aggregate syntax: 
query I rowsort label-8251
SELECT COUNT( * ) + + 88 AS col1
----
89

skipif mysql # not compatible
query I rowsort label-8251
SELECT COUNT ( * ) + + 88 AS col1
----
89

query I rowsort
SELECT DISTINCT 0 * + 56 AS col1
----
0

query I rowsort
SELECT DISTINCT - + 88
----
-88

query I rowsort
SELECT NULLIF ( - 25, + 36 )
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8255
SELECT ALL + CAST( NULL AS SIGNED ) + - AVG ( + - 79 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8255
SELECT ALL + CAST ( NULL AS INTEGER ) + - AVG ( + - 79 ) AS col1
----
NULL

query I rowsort
SELECT ALL - 79 - - 37
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-8257
SELECT DISTINCT + + COUNT( * ), 87 AS col2
----
1
87

skipif mysql # not compatible
query II rowsort label-8257
SELECT DISTINCT + + COUNT ( * ), 87 AS col2
----
1
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8258
SELECT ALL COUNT( * ) * 55 + - COUNT( * ) + 32
----
86

skipif mysql # not compatible
query I rowsort label-8258
SELECT ALL COUNT ( * ) * 55 + - COUNT ( * ) + 32
----
86

query I rowsort
SELECT - 61 - - 23
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-8260
SELECT + COUNT( * ) + + 75
----
76

skipif mysql # not compatible
query I rowsort label-8260
SELECT + COUNT ( * ) + + 75
----
76

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8261
SELECT - ( - CAST( NULL AS DECIMAL ) ) - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8261
SELECT - ( - CAST ( NULL AS REAL ) ) - - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8262
SELECT DISTINCT NULLIF ( 58, - + ( + - COUNT( * ) ) )
----
58

skipif mysql # not compatible
query I rowsort label-8262
SELECT DISTINCT NULLIF ( 58, - + ( + - COUNT ( * ) ) )
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8263
SELECT ALL CAST( + COUNT( ALL + + 58 ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-8263
SELECT ALL CAST ( + COUNT ( ALL + + 58 ) AS INTEGER )
----
1

query I rowsort
SELECT - 58 + - - 64 AS col2
----
6

query I rowsort
SELECT ALL + - 17 col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-8266
SELECT ALL COUNT( * ) * + 3 col2
----
3

skipif mysql # not compatible
query I rowsort label-8266
SELECT ALL COUNT ( * ) * + 3 col2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8267
SELECT DISTINCT 41 DIV 48
----
0

skipif mysql # not compatible
query I rowsort label-8267
SELECT DISTINCT 41 / 48
----
0

query I rowsort
SELECT ALL 2 * - 24 AS col2
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-8269
SELECT ALL - - COUNT( * ) + + COUNT( * ) * 65 AS col2
----
66

skipif mysql # not compatible
query I rowsort label-8269
SELECT ALL - - COUNT ( * ) + + COUNT ( * ) * 65 AS col2
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8270
SELECT ALL + - 54 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8270
SELECT ALL + - 54 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8271
SELECT - COUNT( * ) col1, COUNT( * )
----
-1
1

skipif mysql # not compatible
query II rowsort label-8271
SELECT - COUNT ( * ) col1, COUNT ( * )
----
-1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8272
SELECT ALL MAX( ALL + 88 )
----
88

skipif mysql # not compatible
query I rowsort label-8272
SELECT ALL MAX ( ALL + 88 )
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8273
SELECT ALL 36 * + CAST( NULL AS SIGNED ) / - 44
----
NULL

skipif mysql # not compatible
query I rowsort label-8273
SELECT ALL 36 * + CAST ( NULL AS INTEGER ) / - 44
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8274
SELECT ALL COUNT( DISTINCT - 31 ) + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-8274
SELECT ALL COUNT ( DISTINCT - 31 ) + COUNT ( * )
----
2

query I rowsort
SELECT ALL + ( + 77 )
----
77

query I rowsort
SELECT ( - - ( 68 ) ) AS col1
----
68

query I rowsort
SELECT - - ( - - 72 ) * + 85 + - - 98
----
6218

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8278
SELECT ALL + - CAST( 85 AS SIGNED )
----
-85

skipif mysql # not compatible
query I rowsort label-8278
SELECT ALL + - CAST ( 85 AS INTEGER )
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8279
SELECT ALL + NULLIF ( - CAST( - - ( + + ( - 22 ) ) AS SIGNED ), 94 ) AS col1, - 7 - 66
----
22
-73

skipif mysql # not compatible
query II rowsort label-8279
SELECT ALL + NULLIF ( - CAST ( - - ( + + ( - 22 ) ) AS INTEGER ), 94 ) AS col1, - 7 - 66
----
22
-73

query I rowsort
SELECT ALL ( + + 40 ) AS col1
----
40

query I rowsort
SELECT ALL 99 col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8282
SELECT COUNT( * ) + + 24 AS col2
----
25

skipif mysql # not compatible
query I rowsort label-8282
SELECT COUNT ( * ) + + 24 AS col2
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8283
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0, - 59 col2
----
NULL
-59

skipif mysql # not compatible
query II rowsort label-8283
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, - 59 col2
----
NULL
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-8284
SELECT 19 DIV - - ( 13 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8284
SELECT 19 / - - ( 13 ) AS col2
----
1

query I rowsort
SELECT 3 * 32 AS col2
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-8286
SELECT + COUNT( * ), + ( - - COUNT( * ) )
----
1
1

skipif mysql # not compatible
query II rowsort label-8286
SELECT + COUNT ( * ), + ( - - COUNT ( * ) )
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8287
SELECT COUNT( * ) + + 22 col0
----
23

skipif mysql # not compatible
query I rowsort label-8287
SELECT COUNT ( * ) + + 22 col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8288
SELECT ALL + 61 - COUNT( * ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-8288
SELECT ALL + 61 - COUNT ( * ) AS col0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8289
SELECT + + COUNT( * ) + - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8289
SELECT + + COUNT ( * ) + - COUNT ( * ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8290
SELECT - 66 + + 48 DIV + 89
----
-66

skipif mysql # not compatible
query I rowsort label-8290
SELECT - 66 + + 48 / + 89
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8291
SELECT ( CAST( + COUNT( * ) AS SIGNED ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8291
SELECT ( CAST ( + COUNT ( * ) AS INTEGER ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8292
SELECT ALL + + SUM( 59 ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-8292
SELECT ALL + + SUM ( 59 ) AS col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8293
SELECT DISTINCT + + COUNT( * ) + + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-8293
SELECT DISTINCT + + COUNT ( * ) + + + COUNT ( * )
----
2

query I rowsort
SELECT + 25 + + - 93 AS col0
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8295
SELECT + CAST( NULL AS SIGNED ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8295
SELECT + CAST ( NULL AS INTEGER ) * + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8296
SELECT 24 + COUNT( * ) * + COUNT( + 47 ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-8296
SELECT 24 + COUNT ( * ) * + COUNT ( + 47 ) AS col0
----
25

query I rowsort
SELECT 73 + - + 62 * 87 AS col0
----
-5321

onlyif mysql # aggregate syntax: 
query I rowsort label-8298
SELECT ( CASE + - 34 WHEN - 86 THEN - - 2 END ) * - + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8298
SELECT ( CASE + - 34 WHEN - 86 THEN - - 2 END ) * - + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT + 16 * - 71 + 23 col0
----
-1113

onlyif mysql # aggregate syntax: 
query II rowsort label-8300
SELECT ALL - 26 AS col0, ( 35 ) * + COUNT( * ) * 61
----
-26
2135

skipif mysql # not compatible
query II rowsort label-8300
SELECT ALL - 26 AS col0, ( 35 ) * + COUNT ( * ) * 61
----
-26
2135

query I rowsort
SELECT + - ( - + 1 )
----
1

query I rowsort
SELECT 84 * - + 20 col2
----
-1680

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8303
SELECT + + CAST( NULL AS SIGNED ) - + 10 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8303
SELECT + + CAST ( NULL AS INTEGER ) - + 10 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8304
SELECT DISTINCT 56 * COUNT( * ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-8304
SELECT DISTINCT 56 * COUNT ( * ) AS col0
----
56

query I rowsort
SELECT ALL + - 97
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8306
SELECT DISTINCT + + ( ( COUNT( * ) ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8306
SELECT DISTINCT + + ( ( COUNT ( * ) ) ) AS col1
----
1

query I rowsort
SELECT ALL + + 63 AS col0
----
63

query I rowsort
SELECT - 12 * + + 29 AS col0
----
-348

query I rowsort
SELECT ALL + + 95 AS col1
----
95

query I rowsort
SELECT DISTINCT + 51 col1
----
51

query I rowsort
SELECT + ( + ( + 57 ) )
----
57

query I rowsort
SELECT DISTINCT 89 + - - 9
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8313
SELECT ALL + COUNT( - - 95 ) * 53 * - 66 + - 95
----
-3593

skipif mysql # not compatible
query I rowsort label-8313
SELECT ALL + COUNT ( - - 95 ) * 53 * - 66 + - 95
----
-3593

query II rowsort
SELECT - 1 + - 53 AS col2, 15
----
-54
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8315
SELECT ALL + COUNT( * ) + 7 AS col2
----
8

skipif mysql # not compatible
query I rowsort label-8315
SELECT ALL + COUNT ( * ) + 7 AS col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8316
SELECT DISTINCT + COUNT( * ) * - 66
----
-66

skipif mysql # not compatible
query I rowsort label-8316
SELECT DISTINCT + COUNT ( * ) * - 66
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-8317
SELECT - COUNT( ALL - 62 )
----
-1

skipif mysql # not compatible
query I rowsort label-8317
SELECT - COUNT ( ALL - 62 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8318
SELECT 47 + - COUNT( * ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-8318
SELECT 47 + - COUNT ( * ) AS col0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8319
SELECT ALL + SUM( ALL + 17 ) AS col2
----
17

skipif mysql # not compatible
query I rowsort label-8319
SELECT ALL + SUM ( ALL + 17 ) AS col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8320
SELECT ALL - MAX( DISTINCT + 70 )
----
-70

skipif mysql # not compatible
query I rowsort label-8320
SELECT ALL - MAX ( DISTINCT + 70 )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-8321
SELECT ALL - + ( - + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-8321
SELECT ALL - + ( - + COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8322
SELECT MAX( ALL - 58 )
----
-58

skipif mysql # not compatible
query I rowsort label-8322
SELECT MAX ( ALL - 58 )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8323
SELECT ALL + SUM( ALL 93 ) col0
----
93

skipif mysql # not compatible
query I rowsort label-8323
SELECT ALL + SUM ( ALL 93 ) col0
----
93

query I rowsort
SELECT - 17 + - 26
----
-43

query II rowsort
SELECT 21 AS col2, 44 + - 63
----
21
-19

query I rowsort
SELECT ALL 80 + + 80 - + - 8 AS col0
----
168

query I rowsort
SELECT ALL + - 7 AS col2
----
-7

query I rowsort
SELECT ( - 91 ) col1
----
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8329
SELECT COUNT( * ) DIV - COUNT( * ) + + 71 * - COUNT( * )
----
-72

skipif mysql # not compatible
query I rowsort label-8329
SELECT COUNT ( * ) / - COUNT ( * ) + + 71 * - COUNT ( * )
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8330
SELECT + COUNT( * ) DIV + + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8330
SELECT + COUNT ( * ) / + + COUNT ( * ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8331
SELECT - ( MIN( + - ( - 4 ) ) )
----
-4

skipif mysql # not compatible
query I rowsort label-8331
SELECT - ( MIN ( + - ( - 4 ) ) )
----
-4

query I rowsort
SELECT 28 * - ( - 16 )
----
448

onlyif mysql # aggregate syntax: 
query I rowsort label-8333
SELECT 63 * - + COUNT( - 31 ) AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-8333
SELECT 63 * - + COUNT ( - 31 ) AS col1
----
-63

query II rowsort
SELECT ALL - 43 AS col0, 7
----
-43
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8335
SELECT ALL - MIN( DISTINCT + ( - 16 ) )
----
16

skipif mysql # not compatible
query I rowsort label-8335
SELECT ALL - MIN ( DISTINCT + ( - 16 ) )
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8336
SELECT ALL + COUNT( ALL + 19 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-8336
SELECT ALL + COUNT ( ALL + 19 ) col0
----
1

query I rowsort
SELECT + 57 * 87 AS col0
----
4959

query I rowsort
SELECT + 70 - - 60
----
130

query I rowsort
SELECT DISTINCT 63 AS col0
----
63

query I rowsort
SELECT - 24 + - - 60 AS col0
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8341
SELECT - CAST( NULL AS SIGNED ) * COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8341
SELECT - CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8342
SELECT + COUNT( DISTINCT - - ( + + 26 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8342
SELECT + COUNT ( DISTINCT - - ( + + 26 ) ) AS col0
----
1

query I rowsort
SELECT + 65 + + 0 AS col0
----
65

query I rowsort
SELECT DISTINCT + ( + + 41 )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8345
SELECT DISTINCT - 85 * - COUNT( * ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-8345
SELECT DISTINCT - 85 * - COUNT ( * ) AS col1
----
85

query I rowsort
SELECT DISTINCT - - ( 28 ) AS col2
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8347
SELECT 1 - + - 67 * - 18 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8347
SELECT 1 - + - 67 * - 18 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8348
SELECT ALL + 80 * MIN( DISTINCT 72 )
----
5760

skipif mysql # not compatible
query I rowsort label-8348
SELECT ALL + 80 * MIN ( DISTINCT 72 )
----
5760

query I rowsort
SELECT + 54 + - 4 * + 56
----
-170

onlyif mysql # aggregate syntax: 
query I rowsort label-8350
SELECT + 1 * - SUM( + 18 ) AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-8350
SELECT + 1 * - SUM ( + 18 ) AS col1
----
-18

query I rowsort
SELECT - ( - 15 )
----
15

query I rowsort
SELECT DISTINCT ( 83 ) AS col2
----
83

query I rowsort
SELECT ALL + + ( - 13 ) AS col2
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8354
SELECT DISTINCT + CAST( + + ( - COUNT( * ) ) AS SIGNED ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8354
SELECT DISTINCT + CAST ( + + ( - COUNT ( * ) ) AS INTEGER ) AS col2
----
-1

query I rowsort
SELECT + + 30 col1
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-8356
SELECT + 82 DIV + - 8
----
-10

skipif mysql # not compatible
query I rowsort label-8356
SELECT + 82 / + - 8
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8357
SELECT ( - ( SUM( - 22 ) ) ) + 69
----
91

skipif mysql # not compatible
query I rowsort label-8357
SELECT ( - ( SUM ( - 22 ) ) ) + 69
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8358
SELECT COUNT( * ) + - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8358
SELECT COUNT ( * ) + - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8359
SELECT DISTINCT - SUM( DISTINCT 17 ) * ( - 6 ) AS col0
----
102

skipif mysql # not compatible
query I rowsort label-8359
SELECT DISTINCT - SUM ( DISTINCT 17 ) * ( - 6 ) AS col0
----
102

query II rowsort
SELECT DISTINCT - 79, - 46 col1
----
-79
-46

query I rowsort
SELECT + ( - + 42 ) AS col0
----
-42

query I rowsort
SELECT + 92 * 14 AS col1
----
1288

onlyif mysql # aggregate syntax: 
query I rowsort label-8363
SELECT COUNT( * ) + - - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-8363
SELECT COUNT ( * ) + - - COUNT ( * )
----
2

query II rowsort
SELECT 27, - 23 AS col0
----
27
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8365
SELECT 7 + - ( - COUNT( * ) ) * + COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-8365
SELECT 7 + - ( - COUNT ( * ) ) * + COUNT ( * )
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-8366
SELECT 16 DIV + 37 col2
----
0

skipif mysql # not compatible
query I rowsort label-8366
SELECT 16 / + 37 col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8367
SELECT ALL COUNT( * ) + + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8367
SELECT ALL COUNT ( * ) + + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8368
SELECT ALL + 88 + + COUNT( * ) * - 54 AS col1
----
34

skipif mysql # not compatible
query I rowsort label-8368
SELECT ALL + 88 + + COUNT ( * ) * - 54 AS col1
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-8369
SELECT - 37 AS col2, - COUNT( * ) AS col0
----
-37
-1

skipif mysql # not compatible
query II rowsort label-8369
SELECT - 37 AS col2, - COUNT ( * ) AS col0
----
-37
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8370
SELECT DISTINCT - 13 + - - COUNT( * ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-8370
SELECT DISTINCT - 13 + - - COUNT ( * ) AS col0
----
-12

query I rowsort
SELECT - 87 * + 41
----
-3567

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8372
SELECT DISTINCT 79 + 85 + + COUNT( - + CAST( NULL AS DECIMAL ) ) AS col1
----
164

skipif mysql # not compatible
query I rowsort label-8372
SELECT DISTINCT 79 + 85 + + COUNT ( - + CAST ( NULL AS REAL ) ) AS col1
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-8373
SELECT ALL 64 + COUNT( * )
----
65

skipif mysql # not compatible
query I rowsort label-8373
SELECT ALL 64 + COUNT ( * )
----
65

query I rowsort
SELECT + 10 + + - 14 AS col0
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8375
SELECT COALESCE ( - 87, - + CAST( NULL AS SIGNED ), 16 )
----
-87

skipif mysql # not compatible
query I rowsort label-8375
SELECT COALESCE ( - 87, - + CAST ( NULL AS INTEGER ), 16 )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-8376
SELECT + SUM( DISTINCT - 5 )
----
-5

skipif mysql # not compatible
query I rowsort label-8376
SELECT + SUM ( DISTINCT - 5 )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8377
SELECT DISTINCT + COUNT( - + 17 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8377
SELECT DISTINCT + COUNT ( - + 17 ) AS col0
----
1

query I rowsort
SELECT ALL 98 - + + 78
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8379
SELECT CAST( NULL AS SIGNED ) * + 86 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8379
SELECT CAST ( NULL AS INTEGER ) * + 86 AS col0
----
NULL

query II rowsort
SELECT DISTINCT - ( 9 ), 43 col2
----
-9
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8381
SELECT DISTINCT + - 68 * COUNT( * ) * 53 AS col2
----
-3604

skipif mysql # not compatible
query I rowsort label-8381
SELECT DISTINCT + - 68 * COUNT ( * ) * 53 AS col2
----
-3604

query I rowsort
SELECT - 83 * ( - 70 ) AS col2
----
5810

query I rowsort
SELECT ALL + 62 + + 73
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-8384
SELECT ALL - 90 * - - MAX( 21 ) AS col1
----
-1890

skipif mysql # not compatible
query I rowsort label-8384
SELECT ALL - 90 * - - MAX ( 21 ) AS col1
----
-1890

onlyif mysql # aggregate syntax: 
query I rowsort label-8385
SELECT COUNT( * ) + + 91
----
92

skipif mysql # not compatible
query I rowsort label-8385
SELECT COUNT ( * ) + + 91
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8386
SELECT 35 DIV + COUNT( * ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-8386
SELECT 35 / + COUNT ( * ) AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8387
SELECT DISTINCT - SUM( DISTINCT + 32 ) AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-8387
SELECT DISTINCT - SUM ( DISTINCT + 32 ) AS col1
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-8388
SELECT + COUNT( ALL 98 )
----
1

skipif mysql # not compatible
query I rowsort label-8388
SELECT + COUNT ( ALL 98 )
----
1

query I rowsort
SELECT 75 * + 1
----
75

query I rowsort
SELECT ALL + 3 * 87
----
261

onlyif mysql # aggregate syntax: 
query I rowsort label-8391
SELECT DISTINCT SUM( 60 ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-8391
SELECT DISTINCT SUM ( 60 ) AS col2
----
60

query I rowsort
SELECT DISTINCT - 86 + 28 * - 35 AS col2
----
-1066

query I rowsort
SELECT DISTINCT COALESCE ( + 30, 19, - 87 )
----
30

query I rowsort
SELECT ( 48 )
----
48

query I rowsort
SELECT - 4 * - 61 AS col0
----
244

query I rowsort
SELECT ALL + + 28 AS col2
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-8397
SELECT + + 37 DIV 23
----
1

skipif mysql # not compatible
query I rowsort label-8397
SELECT + + 37 / 23
----
1

query I rowsort
SELECT + 74 * - 37 AS col1
----
-2738

onlyif mysql # aggregate syntax: 
query I rowsort label-8399
SELECT ALL COUNT( ALL ( - 99 ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-8399
SELECT ALL COUNT ( ALL ( - 99 ) ) col1
----
1

query I rowsort
SELECT - - COALESCE ( + 81, 30 ) AS col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8401
SELECT DISTINCT SUM( + 10 )
----
10

skipif mysql # not compatible
query I rowsort label-8401
SELECT DISTINCT SUM ( + 10 )
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8402
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + AVG ( DISTINCT 61 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8402
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + AVG ( DISTINCT 61 ) AS col2
----
NULL

query I rowsort
SELECT - 17 + - 20
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8404
SELECT - CAST( CAST( 4 AS SIGNED ) AS SIGNED ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-8404
SELECT - CAST ( CAST ( 4 AS INTEGER ) AS INTEGER ) AS col0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-8405
SELECT - 52 * + COUNT( * )
----
-52

skipif mysql # not compatible
query I rowsort label-8405
SELECT - 52 * + COUNT ( * )
----
-52

query I rowsort
SELECT ALL ( + 26 ) * + 27
----
702

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8407
SELECT ALL CAST( 92 AS SIGNED ) + + ( - 75 ) + COUNT( * ) * - 26 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-8407
SELECT ALL CAST ( 92 AS INTEGER ) + + ( - 75 ) + COUNT ( * ) * - 26 AS col0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-8408
SELECT 60 DIV 86
----
0

skipif mysql # not compatible
query I rowsort label-8408
SELECT 60 / 86
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8409
SELECT 71 * - 50 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8409
SELECT 71 * - 50 - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 0 + - 39 AS col1
----
-39

query I rowsort
SELECT ( - + ( - 49 ) )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8412
SELECT DISTINCT COUNT( DISTINCT - ( + + 51 ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-8412
SELECT DISTINCT COUNT ( DISTINCT - ( + + 51 ) ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8413
SELECT MIN( DISTINCT 65 ) * + 7
----
455

skipif mysql # not compatible
query I rowsort label-8413
SELECT MIN ( DISTINCT 65 ) * + 7
----
455

onlyif mysql # aggregate syntax: 
query I rowsort label-8414
SELECT 69 + MAX( - 75 )
----
-6

skipif mysql # not compatible
query I rowsort label-8414
SELECT 69 + MAX ( - 75 )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8415
SELECT ALL - 70 + + COUNT( * )
----
-69

skipif mysql # not compatible
query I rowsort label-8415
SELECT ALL - 70 + + COUNT ( * )
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8416
SELECT - COUNT( * ) / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8416
SELECT - COUNT ( * ) / + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT ( 75 )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8418
SELECT DISTINCT + 82 + - COUNT( * ) * - - 74
----
8

skipif mysql # not compatible
query I rowsort label-8418
SELECT DISTINCT + 82 + - COUNT ( * ) * - - 74
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8419
SELECT DISTINCT - + 75 * + COUNT( * ) col2
----
-75

skipif mysql # not compatible
query I rowsort label-8419
SELECT DISTINCT - + 75 * + COUNT ( * ) col2
----
-75

query I rowsort
SELECT DISTINCT + - 30 col2
----
-30

query I rowsort
SELECT - + 8 + ( - - ( - 23 ) ) col1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-8422
SELECT - 29 * + COUNT( * ) + COUNT( * )
----
-28

skipif mysql # not compatible
query I rowsort label-8422
SELECT - 29 * + COUNT ( * ) + COUNT ( * )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-8423
SELECT ALL 23 * - COUNT( * ) * + COUNT( * )
----
-23

skipif mysql # not compatible
query I rowsort label-8423
SELECT ALL 23 * - COUNT ( * ) * + COUNT ( * )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8424
SELECT ALL ( + MAX( DISTINCT + 43 ) ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-8424
SELECT ALL ( + MAX ( DISTINCT + 43 ) ) AS col0
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8425
SELECT - CAST( NULL AS SIGNED ) - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8425
SELECT - CAST ( NULL AS INTEGER ) - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) col2
----
NULL

query I rowsort
SELECT ALL + ( 32 ) col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8427
SELECT - COUNT( * ) * + 72 AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-8427
SELECT - COUNT ( * ) * + 72 AS col2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-8428
SELECT - 2 + - - COUNT( * ) * COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8428
SELECT - 2 + - - COUNT ( * ) * COUNT ( * ) AS col0
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-8429
SELECT ALL 29 DIV + 20 AS col2, 73 DIV + + 2 AS col0
----
1
36

skipif mysql # not compatible
query II rowsort label-8429
SELECT ALL 29 / + 20 AS col2, 73 / + + 2 AS col0
----
1
36

query I rowsort
SELECT 22 - - 2
----
24

query I rowsort
SELECT 78 * 70
----
5460

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8432
SELECT + - CAST( CAST( NULL AS SIGNED ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8432
SELECT + - CAST ( CAST ( NULL AS INTEGER ) AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8433
SELECT DISTINCT - COUNT( * ) * - 46 + + - COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-8433
SELECT DISTINCT - COUNT ( * ) * - 46 + + - COUNT ( * )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8434
SELECT MAX( - 65 ) AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-8434
SELECT MAX ( - 65 ) AS col1
----
-65

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8435
SELECT - CAST( NULL AS DECIMAL ) * - 12
----
NULL

skipif mysql # not compatible
query I rowsort label-8435
SELECT - CAST ( NULL AS REAL ) * - 12
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8436
SELECT - COUNT( * ), 41 col1
----
-1
41

skipif mysql # not compatible
query II rowsort label-8436
SELECT - COUNT ( * ), 41 col1
----
-1
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8437
SELECT ALL 48 + + - MIN( ALL ( - ( + - 55 ) ) )
----
-7

skipif mysql # not compatible
query I rowsort label-8437
SELECT ALL 48 + + - MIN ( ALL ( - ( + - 55 ) ) )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-8438
SELECT - - 64 + COUNT( * ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-8438
SELECT - - 64 + COUNT ( * ) AS col1
----
65

query I rowsort
SELECT - - 13 AS col1
----
13

query I rowsort
SELECT ALL - 54 + 76 * 45 * - + 26
----
-88974

query I rowsort
SELECT ALL 82 + + + 77 AS col0
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-8442
SELECT ALL - MIN( DISTINCT + - 65 ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-8442
SELECT ALL - MIN ( DISTINCT + - 65 ) AS col1
----
65

query I rowsort
SELECT DISTINCT - 30 col2
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8444
SELECT 97 DIV - COUNT( * )
----
-97

skipif mysql # not compatible
query I rowsort label-8444
SELECT 97 / - COUNT ( * )
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-8445
SELECT - 53 DIV - - 18 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-8445
SELECT - 53 / - - 18 AS col1
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8446
SELECT ALL - 69 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8446
SELECT ALL - 69 * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8447
SELECT ALL + 66 + - 42 - - + COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-8447
SELECT ALL + 66 + - 42 - - + COUNT ( * )
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-8448
SELECT 79 DIV + 15 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-8448
SELECT 79 / + 15 AS col1
----
5

query I rowsort
SELECT DISTINCT + 16 * ( 52 )
----
832

onlyif mysql # aggregate syntax: 
query I rowsort label-8450
SELECT MAX( + 93 ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-8450
SELECT MAX ( + 93 ) AS col2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8451
SELECT ALL - + MIN( - 42 ) col2
----
42

skipif mysql # not compatible
query I rowsort label-8451
SELECT ALL - + MIN ( - 42 ) col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8452
SELECT COALESCE ( + COUNT( * ), - + 85 )
----
1

skipif mysql # not compatible
query I rowsort label-8452
SELECT COALESCE ( + COUNT ( * ), - + 85 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8453
SELECT + 53 DIV 41 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8453
SELECT + 53 / 41 AS col2
----
1

query I rowsort
SELECT ALL 32 col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8455
SELECT ALL + - COUNT( * ) * + + 17
----
-17

skipif mysql # not compatible
query I rowsort label-8455
SELECT ALL + - COUNT ( * ) * + + 17
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-8456
SELECT DISTINCT COALESCE ( - COUNT( * ), - COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8456
SELECT DISTINCT COALESCE ( - COUNT ( * ), - COUNT ( * ) ) AS col2
----
-1

query I rowsort
SELECT - 69 + 55 AS col1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-8458
SELECT - - 36 + COUNT( * )
----
37

skipif mysql # not compatible
query I rowsort label-8458
SELECT - - 36 + COUNT ( * )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-8459
SELECT DISTINCT ( MIN( DISTINCT 10 ) )
----
10

skipif mysql # not compatible
query I rowsort label-8459
SELECT DISTINCT ( MIN ( DISTINCT 10 ) )
----
10

query I rowsort
SELECT - - 85 AS col0
----
85

query II rowsort
SELECT ALL 59, ( + 88 ) col0
----
59
88

query I rowsort
SELECT - ( + 85 )
----
-85

query I rowsort
SELECT 81 * - + 92 + - 2
----
-7454

query I rowsort
SELECT DISTINCT + ( + 77 ) - 86
----
-9

query I rowsort
SELECT ALL - + 99 col0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8466
SELECT 88 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8466
SELECT 88 - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8467
SELECT DISTINCT + 57 + + - 44 AS col0, + COUNT( * )
----
13
1

skipif mysql # not compatible
query II rowsort label-8467
SELECT DISTINCT + 57 + + - 44 AS col0, + COUNT ( * )
----
13
1

query I rowsort
SELECT 13 * - 97 * - 55 AS col2
----
69355

onlyif mysql # aggregate syntax: 
query I rowsort label-8469
SELECT ( COUNT( * ) ) + - 25 AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-8469
SELECT ( COUNT ( * ) ) + - 25 AS col2
----
-24

query I rowsort
SELECT ALL 98 + - 1
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8471
SELECT DISTINCT - MIN( DISTINCT - 99 ) DIV COUNT( * ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-8471
SELECT DISTINCT - MIN ( DISTINCT - 99 ) / COUNT ( * ) AS col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8472
SELECT ALL + COUNT( * ) * 16 AS col1
----
16

skipif mysql # not compatible
query I rowsort label-8472
SELECT ALL + COUNT ( * ) * 16 AS col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8473
SELECT DISTINCT + COUNT( * ) * - + 14 * + ( + 55 )
----
-770

skipif mysql # not compatible
query I rowsort label-8473
SELECT DISTINCT + COUNT ( * ) * - + 14 * + ( + 55 )
----
-770

query I rowsort
SELECT - + 72 AS col0
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8475
SELECT + CAST( - 17 AS SIGNED )
----
-17

skipif mysql # not compatible
query I rowsort label-8475
SELECT + CAST ( - 17 AS INTEGER )
----
-17

query I rowsort
SELECT - ( 84 ) AS col0
----
-84

query I rowsort
SELECT 43 - 53 + + + 70
----
60

query I rowsort
SELECT 43 * + + 32 AS col1
----
1376

onlyif mysql # aggregate syntax: 
query I rowsort label-8479
SELECT 92 * - 84 * + COUNT( * )
----
-7728

skipif mysql # not compatible
query I rowsort label-8479
SELECT 92 * - 84 * + COUNT ( * )
----
-7728

query I rowsort
SELECT DISTINCT - 39 * - - 7
----
-273

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8481
SELECT 52 * MAX( ALL + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8481
SELECT 52 * MAX ( ALL + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL - ( + 93 ) AS col0
----
-93

query I rowsort
SELECT - ( + + 67 ) col2
----
-67

query I rowsort
SELECT ALL - - 19 + + 28 col0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8485
SELECT - 6 + + COUNT( DISTINCT - ( + + 10 ) ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-8485
SELECT - 6 + + COUNT ( DISTINCT - ( + + 10 ) ) AS col0
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-8486
SELECT 33 + + 19, COUNT( * ) * + - 41 + + COUNT( * ) AS col2
----
52
-40

skipif mysql # not compatible
query II rowsort label-8486
SELECT 33 + + 19, COUNT ( * ) * + - 41 + + COUNT ( * ) AS col2
----
52
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8487
SELECT ALL + 19 + SUM( DISTINCT 35 ) * 46
----
1629

skipif mysql # not compatible
query I rowsort label-8487
SELECT ALL + 19 + SUM ( DISTINCT 35 ) * 46
----
1629

query I rowsort
SELECT - 70 * + ( - 61 )
----
4270

onlyif mysql # aggregate syntax: 
query I rowsort label-8489
SELECT ALL + MAX( ALL 33 )
----
33

skipif mysql # not compatible
query I rowsort label-8489
SELECT ALL + MAX ( ALL 33 )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-8490
SELECT ALL + COUNT( DISTINCT - 71 )
----
1

skipif mysql # not compatible
query I rowsort label-8490
SELECT ALL + COUNT ( DISTINCT - 71 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8491
SELECT ALL CAST( NULL AS SIGNED ) * + 40 + 0 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8491
SELECT ALL CAST ( NULL AS INTEGER ) * + 40 + 0 AS col0
----
NULL

query I rowsort
SELECT ALL - 47 - + 18 AS col1
----
-65

query I rowsort
SELECT ALL + 28 * + ( + 32 )
----
896

onlyif mysql # aggregate syntax: 
query I rowsort label-8494
SELECT ALL + COUNT( * ) + 39 AS col1
----
40

skipif mysql # not compatible
query I rowsort label-8494
SELECT ALL + COUNT ( * ) + 39 AS col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8495
SELECT ALL 39 * 63 * 53 * - COUNT( * ) col1
----
-130221

skipif mysql # not compatible
query I rowsort label-8495
SELECT ALL 39 * 63 * 53 * - COUNT ( * ) col1
----
-130221

query I rowsort
SELECT 12 + + + 73 AS col1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8497
SELECT + MIN( ALL 24 )
----
24

skipif mysql # not compatible
query I rowsort label-8497
SELECT + MIN ( ALL 24 )
----
24

query I rowsort
SELECT ALL ( + 41 ) AS col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8499
SELECT - COUNT( * ) + + 36
----
35

skipif mysql # not compatible
query I rowsort label-8499
SELECT - COUNT ( * ) + + 36
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8500
SELECT - COUNT( 9 )
----
-1

skipif mysql # not compatible
query I rowsort label-8500
SELECT - COUNT ( 9 )
----
-1

query I rowsort
SELECT ALL + 38 * + + 61
----
2318

query I rowsort
SELECT ( + 9 )
----
9

query I rowsort
SELECT + + 2 * 5
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8504
SELECT - ( - COUNT( * ) ) + + 76
----
77

skipif mysql # not compatible
query I rowsort label-8504
SELECT - ( - COUNT ( * ) ) + + 76
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8505
SELECT DISTINCT - 24 - 64 * ( ( - COUNT( * ) ) )
----
40

skipif mysql # not compatible
query I rowsort label-8505
SELECT DISTINCT - 24 - 64 * ( ( - COUNT ( * ) ) )
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8506
SELECT COUNT( DISTINCT + CAST( - - 23 AS SIGNED ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8506
SELECT COUNT ( DISTINCT + CAST ( - - 23 AS INTEGER ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8507
SELECT + + MAX( + + 24 )
----
24

skipif mysql # not compatible
query I rowsort label-8507
SELECT + + MAX ( + + 24 )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8508
SELECT ALL + COUNT( * ) + - 73
----
-72

skipif mysql # not compatible
query I rowsort label-8508
SELECT ALL + COUNT ( * ) + - 73
----
-72

query I rowsort
SELECT 77 * + + 60 AS col0
----
4620

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8510
SELECT DISTINCT MAX( ALL ( - CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8510
SELECT DISTINCT MAX ( ALL ( - CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8511
SELECT DISTINCT - - COUNT( * ) AS col0, 51 col2
----
1
51

skipif mysql # not compatible
query II rowsort label-8511
SELECT DISTINCT - - COUNT ( * ) AS col0, 51 col2
----
1
51

query I rowsort
SELECT DISTINCT - - 40 AS col0
----
40

query I rowsort
SELECT ( - - ( - 56 ) ) AS col0
----
-56

query I rowsort
SELECT + 29 + + + 23
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8515
SELECT - MAX( 21 )
----
-21

skipif mysql # not compatible
query I rowsort label-8515
SELECT - MAX ( 21 )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-8516
SELECT + 39 * COUNT( * )
----
39

skipif mysql # not compatible
query I rowsort label-8516
SELECT + 39 * COUNT ( * )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8517
SELECT DISTINCT + 66 + + 6 * - 8 + + COUNT( * ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-8517
SELECT DISTINCT + 66 + + 6 * - 8 + + COUNT ( * ) AS col2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8518
SELECT + + COUNT( * ) + 50 AS col0
----
51

skipif mysql # not compatible
query I rowsort label-8518
SELECT + + COUNT ( * ) + 50 AS col0
----
51

query II rowsort
SELECT 31 AS col2, + 47
----
31
47

query I rowsort
SELECT ALL + + ( 1 ) * + 79 AS col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8521
SELECT ALL + + 42 - COUNT( * ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-8521
SELECT ALL + + 42 - COUNT ( * ) AS col2
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8522
SELECT DISTINCT 88, - CAST( + 11 AS SIGNED ) AS col0
----
88
-11

skipif mysql # not compatible
query II rowsort label-8522
SELECT DISTINCT 88, - CAST ( + 11 AS INTEGER ) AS col0
----
88
-11

query I rowsort
SELECT + + 34 AS col2
----
34

query I rowsort
SELECT ALL - + 87 * + 18 + + 48 AS col0
----
-1518

onlyif mysql # aggregate syntax: 
query I rowsort label-8525
SELECT ALL - MIN( - 37 ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-8525
SELECT ALL - MIN ( - 37 ) AS col0
----
37

query I rowsort
SELECT DISTINCT 75 + + 80 AS col2
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-8527
SELECT ALL - COUNT( ALL - - 33 )
----
-1

skipif mysql # not compatible
query I rowsort label-8527
SELECT ALL - COUNT ( ALL - - 33 )
----
-1

query I rowsort
SELECT ALL 68 * - 73 AS col2
----
-4964

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8529
SELECT CAST( NULL AS SIGNED ) + CAST( NULL AS DECIMAL ) - - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8529
SELECT CAST ( NULL AS INTEGER ) + CAST ( NULL AS REAL ) - - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 23 * COALESCE ( - 2, - 21 )
----
-46

query I rowsort
SELECT DISTINCT - + 45
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-8532
SELECT MIN( - 35 )
----
-35

skipif mysql # not compatible
query I rowsort label-8532
SELECT MIN ( - 35 )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-8533
SELECT - 73 * - - COUNT( * ) - + COUNT( DISTINCT + 28 )
----
-74

skipif mysql # not compatible
query I rowsort label-8533
SELECT - 73 * - - COUNT ( * ) - + COUNT ( DISTINCT + 28 )
----
-74

query I rowsort
SELECT + - 62 + + 10 AS col1
----
-52

query I rowsort
SELECT ( + 39 ) AS col0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8536
SELECT - COUNT( ALL 6 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-8536
SELECT - COUNT ( ALL 6 ) col1
----
-1

query II rowsort
SELECT - 96, + 94 AS col2
----
-96
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8538
SELECT + + ( + - COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8538
SELECT + + ( + - COUNT ( * ) )
----
-1

query I rowsort
SELECT + ( - + 62 )
----
-62

query I rowsort
SELECT 1 - + 40
----
-39

query I rowsort
SELECT 30 * - + 70 col2
----
-2100

onlyif mysql # aggregate syntax: 
query I rowsort label-8542
SELECT ALL + 89 + + - COUNT( * ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-8542
SELECT ALL + 89 + + - COUNT ( * ) AS col2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8543
SELECT - 60 + + COUNT( * )
----
-59

skipif mysql # not compatible
query I rowsort label-8543
SELECT - 60 + + COUNT ( * )
----
-59

query I rowsort
SELECT + + 48 col1
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8545
SELECT DISTINCT - COUNT( * ) DIV - + COUNT( DISTINCT - 46 )
----
1

skipif mysql # not compatible
query I rowsort label-8545
SELECT DISTINCT - COUNT ( * ) / - + COUNT ( DISTINCT - 46 )
----
1

query I rowsort
SELECT - 98 + 77 AS col1
----
-21

query I rowsort
SELECT + 26 + + 28 AS col2
----
54

query I rowsort
SELECT - 54 col0
----
-54

query I rowsort
SELECT + 61 * 82 + + 53 AS col2
----
5055

query I rowsort
SELECT DISTINCT ( 27 ) AS col0
----
27

query I rowsort
SELECT ALL + + 99 AS col2
----
99

query I rowsort
SELECT + 78 * - 56 AS col1
----
-4368

onlyif mysql # aggregate syntax: 
query I rowsort label-8553
SELECT ALL + + MIN( 95 )
----
95

skipif mysql # not compatible
query I rowsort label-8553
SELECT ALL + + MIN ( 95 )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8554
SELECT 36 + + MAX( 46 )
----
82

skipif mysql # not compatible
query I rowsort label-8554
SELECT 36 + + MAX ( 46 )
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8555
SELECT DISTINCT CAST( - ( 82 ) AS SIGNED ) col0
----
-82

skipif mysql # not compatible
query I rowsort label-8555
SELECT DISTINCT CAST ( - ( 82 ) AS INTEGER ) col0
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8556
SELECT ALL + CAST( NULL AS SIGNED ) * - 98 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8556
SELECT ALL + CAST ( NULL AS INTEGER ) * - 98 AS col2
----
NULL

query I rowsort
SELECT 69 + + 97
----
166

onlyif mysql # aggregate syntax: 
query I rowsort label-8558
SELECT 3 * - COUNT( * ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-8558
SELECT 3 * - COUNT ( * ) AS col0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8559
SELECT + CAST( - - 48 AS SIGNED ), - 64 AS col2
----
48
-64

skipif mysql # not compatible
query II rowsort label-8559
SELECT + CAST ( - - 48 AS INTEGER ), - 64 AS col2
----
48
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-8560
SELECT 81 DIV 46 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8560
SELECT 81 / 46 AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8561
SELECT 71 DIV - 10 * + COUNT( * ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-8561
SELECT 71 / - 10 * + COUNT ( * ) AS col0
----
-7

query I rowsort
SELECT DISTINCT - + 79 AS col1
----
-79

query I rowsort
SELECT ALL + ( - - 89 )
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8564
SELECT - 5 * + SUM( + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8564
SELECT - 5 * + SUM ( + - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8565
SELECT - SUM( + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8565
SELECT - SUM ( + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query II rowsort
SELECT ALL 38 AS col0, 51 * 2
----
38
102

query I rowsort
SELECT DISTINCT 28 AS col2
----
28

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8568
SELECT + - CAST( NULL AS DECIMAL ) * - 31 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8568
SELECT + - CAST ( NULL AS REAL ) * - 31 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8569
SELECT MIN( - 78 ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-8569
SELECT MIN ( - 78 ) AS col2
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-8570
SELECT ALL + - 16 + - COUNT( * )
----
-17

skipif mysql # not compatible
query I rowsort label-8570
SELECT ALL + - 16 + - COUNT ( * )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-8571
SELECT + SUM( DISTINCT - - ( + 94 ) ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-8571
SELECT + SUM ( DISTINCT - - ( + 94 ) ) AS col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8572
SELECT ALL - MAX( ALL - - 41 ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-8572
SELECT ALL - MAX ( ALL - - 41 ) AS col0
----
-41

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8573
SELECT 23 + - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8573
SELECT 23 + - - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL + 22 + - + 63 AS col0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-8575
SELECT 62 + - - COUNT( * ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-8575
SELECT 62 + - - COUNT ( * ) AS col1
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8576
SELECT COUNT( DISTINCT + CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-8576
SELECT COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) )
----
0

query I rowsort
SELECT ALL 56 * - 96
----
-5376

query I rowsort
SELECT DISTINCT - ( 61 ) col0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-8579
SELECT ALL 67 + COUNT( * ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-8579
SELECT ALL 67 + COUNT ( * ) AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8580
SELECT ( - - MAX( ALL - 23 ) )
----
-23

skipif mysql # not compatible
query I rowsort label-8580
SELECT ( - - MAX ( ALL - 23 ) )
----
-23

query I rowsort
SELECT + ( + - 91 ) AS col2
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8582
SELECT SUM( DISTINCT - 38 )
----
-38

skipif mysql # not compatible
query I rowsort label-8582
SELECT SUM ( DISTINCT - 38 )
----
-38

query I rowsort
SELECT DISTINCT - 17 - 42
----
-59

query I rowsort
SELECT DISTINCT + COALESCE ( - ( - - 80 ), + 1 )
----
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-8585
SELECT ALL - 23 DIV - 17 col0
----
1

skipif mysql # not compatible
query I rowsort label-8585
SELECT ALL - 23 / - 17 col0
----
1

query I rowsort
SELECT - ( + 14 )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-8587
SELECT DISTINCT - COUNT( ALL - - 40 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8587
SELECT DISTINCT - COUNT ( ALL - - 40 ) AS col2
----
-1

query I rowsort
SELECT + 72 col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8589
SELECT - ( + 99 ) - - + COUNT( * ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-8589
SELECT - ( + 99 ) - - + COUNT ( * ) AS col1
----
-98

query II rowsort
SELECT ALL 80 + 23, ( - 14 ) AS col2
----
103
-14

query I rowsort
SELECT ALL - - 27
----
27

query I rowsort
SELECT DISTINCT - 50 * 10 col2
----
-500

onlyif mysql # aggregate syntax: 
query I rowsort label-8593
SELECT ALL + MIN( - 35 )
----
-35

skipif mysql # not compatible
query I rowsort label-8593
SELECT ALL + MIN ( - 35 )
----
-35

query I rowsort
SELECT DISTINCT + - ( + 70 )
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8595
SELECT + CAST( NULL AS SIGNED ) * + - 78
----
NULL

skipif mysql # not compatible
query I rowsort label-8595
SELECT + CAST ( NULL AS INTEGER ) * + - 78
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8596
SELECT COUNT( DISTINCT + - ( - 91 ) )
----
1

skipif mysql # not compatible
query I rowsort label-8596
SELECT COUNT ( DISTINCT + - ( - 91 ) )
----
1

query I rowsort
SELECT ALL 5 + 19 AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8598
SELECT DISTINCT MAX( 94 ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-8598
SELECT DISTINCT MAX ( 94 ) AS col0
----
94

onlyif mysql # aggregate syntax: 
query II rowsort label-8599
SELECT + MAX( DISTINCT - 11 ) - + CASE 5 WHEN - + COUNT( * ) THEN + - 22 ELSE NULL END col0, + MIN( + - ( + 47 ) ) AS col0
----
NULL
-47

skipif mysql # not compatible
query II rowsort label-8599
SELECT + MAX ( DISTINCT - 11 ) - + CASE 5 WHEN - + COUNT ( * ) THEN + - 22 ELSE NULL END col0, + MIN ( + - ( + 47 ) ) AS col0
----
NULL
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8600
SELECT ALL + COUNT( * ) - + 55 AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-8600
SELECT ALL + COUNT ( * ) - + 55 AS col0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-8601
SELECT ALL MAX( DISTINCT 61 )
----
61

skipif mysql # not compatible
query I rowsort label-8601
SELECT ALL MAX ( DISTINCT 61 )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8602
SELECT ALL ( - ( - COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-8602
SELECT ALL ( - ( - COUNT ( * ) ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8603
SELECT ALL CAST( + + COUNT( * ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8603
SELECT ALL CAST ( + + COUNT ( * ) AS INTEGER ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8604
SELECT - - CAST( NULL AS SIGNED ) + + - 39
----
NULL

skipif mysql # not compatible
query I rowsort label-8604
SELECT - - CAST ( NULL AS INTEGER ) + + - 39
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8605
SELECT ALL + - COUNT( * ), 61 AS col0
----
-1
61

skipif mysql # not compatible
query II rowsort label-8605
SELECT ALL + - COUNT ( * ), 61 AS col0
----
-1
61

query I rowsort
SELECT ALL + + 12 col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8607
SELECT ALL - 0 * - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8607
SELECT ALL - 0 * - COUNT ( * ) AS col2
----
0

query I rowsort
SELECT DISTINCT - - 78
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8609
SELECT ALL - - CAST( 71 AS SIGNED ) + - SUM( DISTINCT + + 99 ) + CAST( + 86 AS SIGNED ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-8609
SELECT ALL - - CAST ( 71 AS INTEGER ) + - SUM ( DISTINCT + + 99 ) + CAST ( + 86 AS INTEGER ) AS col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8610
SELECT ALL - COUNT( * ) * - 85
----
85

skipif mysql # not compatible
query I rowsort label-8610
SELECT ALL - COUNT ( * ) * - 85
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8611
SELECT 93 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8611
SELECT 93 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8612
SELECT ( COUNT( * ) ) + + 12
----
13

skipif mysql # not compatible
query I rowsort label-8612
SELECT ( COUNT ( * ) ) + + 12
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8613
SELECT - COUNT( - + 6 ) + - - 17 col1
----
16

skipif mysql # not compatible
query I rowsort label-8613
SELECT - COUNT ( - + 6 ) + - - 17 col1
----
16

query I rowsort
SELECT ALL + ( 51 )
----
51

query I rowsort
SELECT - 10 + - 53 AS col0
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8616
SELECT ALL COALESCE ( 49, + CAST( NULL AS SIGNED ) )
----
49

skipif mysql # not compatible
query I rowsort label-8616
SELECT ALL COALESCE ( 49, + CAST ( NULL AS INTEGER ) )
----
49

query I rowsort
SELECT DISTINCT + ( - 12 ) * 45 AS col0
----
-540

onlyif mysql # aggregate syntax: 
query I rowsort label-8618
SELECT - MAX( + 49 ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-8618
SELECT - MAX ( + 49 ) AS col0
----
-49

query I rowsort
SELECT - + ( 67 )
----
-67

query I rowsort
SELECT DISTINCT + - 42 AS col0
----
-42

query I rowsort
SELECT DISTINCT + 76 col2
----
76

query I rowsort
SELECT - 27 * - 82
----
2214

onlyif mysql # aggregate syntax: 
query I rowsort label-8623
SELECT - COUNT( * ) - - ( 21 ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-8623
SELECT - COUNT ( * ) - - ( 21 ) AS col0
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8624
SELECT DISTINCT CAST( - 95 AS SIGNED ) AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-8624
SELECT DISTINCT CAST ( - 95 AS INTEGER ) AS col1
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-8625
SELECT ALL 56 + - COUNT( - 5 ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-8625
SELECT ALL 56 + - COUNT ( - 5 ) AS col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8626
SELECT DISTINCT - COUNT( * ) - 86
----
-87

skipif mysql # not compatible
query I rowsort label-8626
SELECT DISTINCT - COUNT ( * ) - 86
----
-87

query I rowsort
SELECT 6 + 26 AS col0
----
32

query I rowsort
SELECT + ( - 59 ) * - 75 col0
----
4425

query I rowsort
SELECT - - ( ( 15 ) )
----
15

query I rowsort
SELECT DISTINCT - - 74 * 57 AS col0
----
4218

onlyif mysql # aggregate syntax: 
query I rowsort label-8631
SELECT COUNT( * ) * - - 92 AS col0
----
92

skipif mysql # not compatible
query I rowsort label-8631
SELECT COUNT ( * ) * - - 92 AS col0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8632
SELECT COUNT( * ) * 93 AS col1
----
93

skipif mysql # not compatible
query I rowsort label-8632
SELECT COUNT ( * ) * 93 AS col1
----
93

query I rowsort
SELECT ALL - + ( + 68 ) AS col1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-8634
SELECT - 46 + + ( COUNT( * ) )
----
-45

skipif mysql # not compatible
query I rowsort label-8634
SELECT - 46 + + ( COUNT ( * ) )
----
-45

query I rowsort
SELECT ALL - 25 + + 12 AS col2
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-8636
SELECT ALL 40 + - COUNT( * )
----
39

skipif mysql # not compatible
query I rowsort label-8636
SELECT ALL 40 + - COUNT ( * )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8637
SELECT - 10 + - COUNT( * ) + MIN( ALL ( 41 ) )
----
30

skipif mysql # not compatible
query I rowsort label-8637
SELECT - 10 + - COUNT ( * ) + MIN ( ALL ( 41 ) )
----
30

query I rowsort
SELECT + ( + 80 )
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8639
SELECT - CAST( - 62 AS SIGNED ) * 16 + + 2
----
994

skipif mysql # not compatible
query I rowsort label-8639
SELECT - CAST ( - 62 AS INTEGER ) * 16 + + 2
----
994

query I rowsort
SELECT ( 27 ) col0
----
27

query I rowsort
SELECT - 68 * - ( + ( + 48 ) ) AS col1
----
3264

onlyif mysql # aggregate syntax: 
query I rowsort label-8642
SELECT + SUM( ALL 92 )
----
92

skipif mysql # not compatible
query I rowsort label-8642
SELECT + SUM ( ALL 92 )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8643
SELECT ALL 49 * COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-8643
SELECT ALL 49 * COUNT ( * )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8644
SELECT DISTINCT + COUNT( - NULLIF ( + 79, + 11 ) )
----
1

skipif mysql # not compatible
query I rowsort label-8644
SELECT DISTINCT + COUNT ( - NULLIF ( + 79, + 11 ) )
----
1

query I rowsort
SELECT + 17 col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8646
SELECT - + 22 - + COUNT( * )
----
-23

skipif mysql # not compatible
query I rowsort label-8646
SELECT - + 22 - + COUNT ( * )
----
-23

query I rowsort
SELECT ALL + + 43 + - 97
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8648
SELECT + CAST( NULL AS SIGNED ) + - SUM( DISTINCT - 47 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8648
SELECT + CAST ( NULL AS INTEGER ) + - SUM ( DISTINCT - 47 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8649
SELECT COUNT( * ) + - 79 + 52 AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-8649
SELECT COUNT ( * ) + - 79 + 52 AS col2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-8650
SELECT COUNT( * ) + + - 45 AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-8650
SELECT COUNT ( * ) + + - 45 AS col0
----
-44

query I rowsort
SELECT ALL + ( 48 ) + 29
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8652
SELECT ALL COUNT( ALL - + 92 )
----
1

skipif mysql # not compatible
query I rowsort label-8652
SELECT ALL COUNT ( ALL - + 92 )
----
1

query I rowsort
SELECT - 4 col1
----
-4

query I rowsort
SELECT - 15 col2
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-8655
SELECT + 61 DIV - - 78 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8655
SELECT + 61 / - - 78 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8656
SELECT ALL + MAX( ALL - 16 ) AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-8656
SELECT ALL + MAX ( ALL - 16 ) AS col0
----
-16

query I rowsort
SELECT DISTINCT + 40 col1
----
40

query I rowsort
SELECT + - 84 + - 82 AS col0
----
-166

onlyif mysql # aggregate syntax: 
query I rowsort label-8659
SELECT + - COUNT( * ) * - ( + COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8659
SELECT + - COUNT ( * ) * - ( + COUNT ( * ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8660
SELECT DISTINCT - 23 + + COUNT( * ) AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-8660
SELECT DISTINCT - 23 + + COUNT ( * ) AS col0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-8661
SELECT + MAX( 98 )
----
98

skipif mysql # not compatible
query I rowsort label-8661
SELECT + MAX ( 98 )
----
98

query I rowsort
SELECT - + 27 col0
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8663
SELECT 32 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8663
SELECT 32 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL + 27 * 16
----
432

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8665
SELECT - - ( - CAST( 46 AS SIGNED ) )
----
-46

skipif mysql # not compatible
query I rowsort label-8665
SELECT - - ( - CAST ( 46 AS INTEGER ) )
----
-46

query I rowsort
SELECT + 75 col0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8667
SELECT COUNT( DISTINCT 49 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8667
SELECT COUNT ( DISTINCT 49 ) AS col1
----
1

query I rowsort
SELECT + + 21 * 64 AS col0
----
1344

onlyif mysql # aggregate syntax: 
query I rowsort label-8669
SELECT - ( - - COUNT( * ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-8669
SELECT - ( - - COUNT ( * ) ) col2
----
-1

query I rowsort
SELECT ( + 10 ) AS col1
----
10

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8671
SELECT + CAST( - CAST( NULL AS SIGNED ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8671
SELECT + CAST ( - CAST ( NULL AS INTEGER ) AS REAL )
----
NULL

query I rowsort
SELECT DISTINCT ( - 60 ) col0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-8673
SELECT - MIN( 49 )
----
-49

skipif mysql # not compatible
query I rowsort label-8673
SELECT - MIN ( 49 )
----
-49

query I rowsort
SELECT 71 + + - 30 AS col0
----
41

query I rowsort
SELECT DISTINCT + 56 + - 11 AS col1
----
45

query I rowsort
SELECT - - 55 col0
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-8677
SELECT COUNT( * ) AS col2, + 46
----
1
46

skipif mysql # not compatible
query II rowsort label-8677
SELECT COUNT ( * ) AS col2, + 46
----
1
46

query I rowsort
SELECT 90 * 69
----
6210

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8679
SELECT ALL + 74 DIV + COUNT( ALL + 27 ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-8679
SELECT ALL + 74 / + COUNT ( ALL + 27 ) AS col2
----
74

query I rowsort
SELECT DISTINCT + 65 * + 63
----
4095

onlyif mysql # aggregate syntax: 
query I rowsort label-8681
SELECT ALL COUNT( * ) * - 43
----
-43

skipif mysql # not compatible
query I rowsort label-8681
SELECT ALL COUNT ( * ) * - 43
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-8682
SELECT ALL COUNT( * ) + + 26
----
27

skipif mysql # not compatible
query I rowsort label-8682
SELECT ALL COUNT ( * ) + + 26
----
27

query I rowsort
SELECT 42 - - 69
----
111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8684
SELECT - + CAST( - 88 AS SIGNED )
----
88

skipif mysql # not compatible
query I rowsort label-8684
SELECT - + CAST ( - 88 AS INTEGER )
----
88

query I rowsort
SELECT 67 + - 34 * + 94 AS col1
----
-3129

query I rowsort
SELECT ALL 14 col0
----
14

query II rowsort
SELECT ALL 75 col0, - 42 AS col0
----
75
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-8688
SELECT ALL - + 67 + - - COUNT( * ) AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-8688
SELECT ALL - + 67 + - - COUNT ( * ) AS col2
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8689
SELECT - CAST( 50 AS SIGNED ) col1
----
-50

skipif mysql # not compatible
query I rowsort label-8689
SELECT - CAST ( 50 AS INTEGER ) col1
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8690
SELECT - - CAST( - 95 AS SIGNED )
----
-95

skipif mysql # not compatible
query I rowsort label-8690
SELECT - - CAST ( - 95 AS INTEGER )
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8691
SELECT - CAST( - 71 AS SIGNED )
----
71

skipif mysql # not compatible
query I rowsort label-8691
SELECT - CAST ( - 71 AS INTEGER )
----
71

query I rowsort
SELECT + 54 * - + ( + 90 ) AS col0
----
-4860

onlyif mysql # aggregate syntax: 
query I rowsort label-8693
SELECT ALL 92 * + COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-8693
SELECT ALL 92 * + COUNT ( * )
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8694
SELECT ALL - + CAST( + ( + CAST( NULL AS SIGNED ) ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8694
SELECT ALL - + CAST ( + ( + CAST ( NULL AS INTEGER ) ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8695
SELECT DISTINCT COUNT( * ) + 59 AS col2
----
60

skipif mysql # not compatible
query I rowsort label-8695
SELECT DISTINCT COUNT ( * ) + 59 AS col2
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8696
SELECT DISTINCT 44 / CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8696
SELECT DISTINCT 44 / CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8697
SELECT DISTINCT - SUM( + 20 )
----
-20

skipif mysql # not compatible
query I rowsort label-8697
SELECT DISTINCT - SUM ( + 20 )
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8698
SELECT DISTINCT - CAST( NULL AS SIGNED ) - + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-8698
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - + 23
----
NULL

query I rowsort
SELECT + ( + 55 ) AS col1
----
55

query I rowsort
SELECT DISTINCT - ( + 22 ) AS col2
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8701
SELECT ALL - CAST( NULL AS SIGNED ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8701
SELECT ALL - CAST ( NULL AS INTEGER ) * + COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT + ( + 69 ) AS col1
----
69

query I rowsort
SELECT ALL + 88 * 93 AS col1
----
8184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8704
SELECT ALL - COUNT( * ) + + - 80 + + - 80 * - + CAST( NULL AS SIGNED ) + + - 10 - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8704
SELECT ALL - COUNT ( * ) + + - 80 + + - 80 * - + CAST ( NULL AS INTEGER ) + + - 10 - COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT - 26 + - 76
----
-102

query I rowsort
SELECT ALL ( + 78 ) col0
----
78

query I rowsort
SELECT DISTINCT - 53 - + + 74
----
-127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-8708
SELECT DISTINCT COALESCE ( + - 69, 36 DIV CASE - CAST( NULL AS DECIMAL ) WHEN 33 * + CAST( NULL AS SIGNED ) THEN NULL ELSE + + COUNT( * ) END + + COUNT( * ) )
----
-69

skipif mysql # not compatible
query I rowsort label-8708
SELECT DISTINCT COALESCE ( + - 69, 36 / CASE - CAST ( NULL AS REAL ) WHEN 33 * + CAST ( NULL AS INTEGER ) THEN NULL ELSE + + COUNT ( * ) END + + COUNT ( * ) )
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8709
SELECT ALL + - 52 - CAST( - COUNT( * ) AS SIGNED )
----
-51

skipif mysql # not compatible
query I rowsort label-8709
SELECT ALL + - 52 - CAST ( - COUNT ( * ) AS INTEGER )
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8710
SELECT + COUNT( * ) + - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8710
SELECT + COUNT ( * ) + - CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8711
SELECT ALL ( + + COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8711
SELECT ALL ( + + COUNT ( * ) ) AS col1
----
1

query I rowsort
SELECT ALL - + 5 AS col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8713
SELECT ALL + COUNT( * ) + - + 55 AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-8713
SELECT ALL + COUNT ( * ) + - + 55 AS col1
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8714
SELECT CAST( - 85 AS SIGNED ) * - 52
----
4420

skipif mysql # not compatible
query I rowsort label-8714
SELECT CAST ( - 85 AS INTEGER ) * - 52
----
4420

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8715
SELECT ALL - + 43 / + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8715
SELECT ALL - + 43 / + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8716
SELECT COUNT( * ), - COUNT( * ) * - + 87 * - 94 + COUNT( * ) AS col2
----
1
-8177

skipif mysql # not compatible
query II rowsort label-8716
SELECT COUNT ( * ), - COUNT ( * ) * - + 87 * - 94 + COUNT ( * ) AS col2
----
1
-8177

onlyif mysql # aggregate syntax: 
query I rowsort label-8717
SELECT ALL - MAX( 70 ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-8717
SELECT ALL - MAX ( 70 ) AS col2
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-8718
SELECT ALL + SUM( - 2 )
----
-2

skipif mysql # not compatible
query I rowsort label-8718
SELECT ALL + SUM ( - 2 )
----
-2

query I rowsort
SELECT DISTINCT - 12 * - 9
----
108

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8720
SELECT + COUNT( * ) + + + 19 + - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8720
SELECT + COUNT ( * ) + + + 19 + - - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8721
SELECT DISTINCT + COUNT( * ) + + + 49 col0
----
50

skipif mysql # not compatible
query I rowsort label-8721
SELECT DISTINCT + COUNT ( * ) + + + 49 col0
----
50

query I rowsort
SELECT ALL - ( + 81 )
----
-81

query I rowsort
SELECT ALL + 9 + + 7 * - - 81 AS col1
----
576

query I rowsort
SELECT ALL - ( - 98 ) AS col2
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8725
SELECT - - 87 - 2 DIV COUNT( * ) col0
----
85

skipif mysql # not compatible
query I rowsort label-8725
SELECT - - 87 - 2 / COUNT ( * ) col0
----
85

query I rowsort
SELECT ALL + + 23 AS col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8727
SELECT DISTINCT COUNT( * ) * - 55 + 55
----
0

skipif mysql # not compatible
query I rowsort label-8727
SELECT DISTINCT COUNT ( * ) * - 55 + 55
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8728
SELECT NULLIF ( CAST( - AVG ( ( + - 1 ) ) AS SIGNED ), + + SUM( DISTINCT + + 98 ) )
----
1

skipif mysql # not compatible
query I rowsort label-8728
SELECT NULLIF ( CAST ( - AVG ( ( + - 1 ) ) AS INTEGER ), + + SUM ( DISTINCT + + 98 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8729
SELECT DISTINCT COUNT( * ) * 73 AS col2
----
73

skipif mysql # not compatible
query I rowsort label-8729
SELECT DISTINCT COUNT ( * ) * 73 AS col2
----
73

query I rowsort
SELECT DISTINCT 32 col1
----
32

query I rowsort
SELECT DISTINCT + 81 - + + 77
----
4

query I rowsort
SELECT 22 + + 57 AS col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8733
SELECT MAX( DISTINCT 25 ) * - + ( + 39 )
----
-975

skipif mysql # not compatible
query I rowsort label-8733
SELECT MAX ( DISTINCT 25 ) * - + ( + 39 )
----
-975

onlyif mysql # aggregate syntax: 
query I rowsort label-8734
SELECT - CASE 34 WHEN 4 THEN - COUNT( * ) / - 93 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8734
SELECT - CASE 34 WHEN 4 THEN - COUNT ( * ) / - 93 ELSE NULL END
----
NULL

query I rowsort
SELECT 34 * 17
----
578

query I rowsort
SELECT - 38 + + 61
----
23

query I rowsort
SELECT DISTINCT + - 94 AS col0
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8738
SELECT ALL + + ( - CAST( - MIN( - - 50 ) AS SIGNED ) )
----
50

skipif mysql # not compatible
query I rowsort label-8738
SELECT ALL + + ( - CAST ( - MIN ( - - 50 ) AS INTEGER ) )
----
50

query I rowsort
SELECT - ( + 78 ) AS col2
----
-78

query I rowsort
SELECT DISTINCT - + 51 + - 88 AS col0
----
-139

onlyif mysql # aggregate syntax: 
query I rowsort label-8741
SELECT ALL - COUNT( * ) - + 63
----
-64

skipif mysql # not compatible
query I rowsort label-8741
SELECT ALL - COUNT ( * ) - + 63
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-8742
SELECT - COUNT( * ) * - 17
----
17

skipif mysql # not compatible
query I rowsort label-8742
SELECT - COUNT ( * ) * - 17
----
17

query I rowsort
SELECT ALL + ( - - 84 )
----
84

query I rowsort
SELECT ALL - 61 * - 15
----
915

query I rowsort
SELECT - + 6 * - 5 col2
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8746
SELECT + CAST( + 66 AS SIGNED ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-8746
SELECT + CAST ( + 66 AS INTEGER ) AS col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8747
SELECT ALL - COUNT( * ) + + 7
----
6

skipif mysql # not compatible
query I rowsort label-8747
SELECT ALL - COUNT ( * ) + + 7
----
6

query I rowsort
SELECT 59 + 85
----
144

query I rowsort
SELECT + 55 col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8750
SELECT MAX( DISTINCT ( - 34 ) ) AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-8750
SELECT MAX ( DISTINCT ( - 34 ) ) AS col1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-8751
SELECT ALL + 63 - + - COUNT( * ) col2
----
64

skipif mysql # not compatible
query I rowsort label-8751
SELECT ALL + 63 - + - COUNT ( * ) col2
----
64

query II rowsort
SELECT ALL 65 col0, + ( - 34 ) AS col2
----
65
-34

query I rowsort
SELECT 84 - 19
----
65

query II rowsort
SELECT ALL 52 AS col1, 52 AS col2
----
52
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8755
SELECT COUNT( * ) + 46 * COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-8755
SELECT COUNT ( * ) + 46 * COUNT ( * )
----
47

query I rowsort
SELECT + 65 + 26 AS col0
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8757
SELECT + CAST( NULL AS SIGNED ) * + MIN( + + 32 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8757
SELECT + CAST ( NULL AS INTEGER ) * + MIN ( + + 32 ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8758
SELECT DISTINCT + AVG ( ALL CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8758
SELECT DISTINCT + AVG ( ALL CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT - + 48 + + + 0 col1
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-8760
SELECT + COUNT( * ) + - 55
----
-54

skipif mysql # not compatible
query I rowsort label-8760
SELECT + COUNT ( * ) + - 55
----
-54

query II rowsort
SELECT - ( + 41 ) * 90 * + 71 AS col1, - 34 AS col1
----
-261990
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-8762
SELECT DISTINCT COUNT( * ) + - - COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-8762
SELECT DISTINCT COUNT ( * ) + - - COUNT ( * ) AS col0
----
2

query I rowsort
SELECT + + NULLIF ( - 88, - 58 * - 0 ) + 27 AS col1
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-8764
SELECT MIN( ALL + + 66 ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-8764
SELECT MIN ( ALL + + 66 ) AS col2
----
66

query I rowsort
SELECT 0 * - 39 + 21
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-8766
SELECT + 32 DIV - 39 * - 5 col2
----
0

skipif mysql # not compatible
query I rowsort label-8766
SELECT + 32 / - 39 * - 5 col2
----
0

query I rowsort
SELECT ALL - 1 * 53
----
-53

query I rowsort
SELECT ALL + ( + ( - - 42 ) ) * 75
----
3150

onlyif mysql # aggregate syntax: 
query I rowsort label-8769
SELECT + COUNT( * ) * - - 14 AS col2
----
14

skipif mysql # not compatible
query I rowsort label-8769
SELECT + COUNT ( * ) * - - 14 AS col2
----
14

query I rowsort
SELECT 84 * + 76
----
6384

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8771
SELECT - + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8771
SELECT - + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8772
SELECT ALL + COUNT( * ) col2, - 63 AS col2
----
1
-63

skipif mysql # not compatible
query II rowsort label-8772
SELECT ALL + COUNT ( * ) col2, - 63 AS col2
----
1
-63

query I rowsort
SELECT DISTINCT - + 89 AS col1
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-8774
SELECT 84 DIV - 99 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8774
SELECT 84 / - 99 AS col2
----
0

query I rowsort
SELECT DISTINCT + 84 * + 52 AS col0
----
4368

onlyif mysql # aggregate syntax: 
query I rowsort label-8776
SELECT + - ( 85 ) + + COUNT( * ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-8776
SELECT + - ( 85 ) + + COUNT ( * ) AS col2
----
-84

query I rowsort
SELECT + ( - + 5 ) * + - 82 AS col1
----
410

onlyif mysql # aggregate syntax: 
query I rowsort label-8778
SELECT - 20 * + COUNT( * )
----
-20

skipif mysql # not compatible
query I rowsort label-8778
SELECT - 20 * + COUNT ( * )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-8779
SELECT ALL + 69 * - COUNT( * ) AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-8779
SELECT ALL + 69 * - COUNT ( * ) AS col1
----
-69

query I rowsort
SELECT DISTINCT + 52 * 42
----
2184

onlyif mysql # aggregate syntax: 
query I rowsort label-8781
SELECT ALL + COUNT( ALL - 25 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8781
SELECT ALL + COUNT ( ALL - 25 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8782
SELECT ALL - MAX( ALL + 24 )
----
-24

skipif mysql # not compatible
query I rowsort label-8782
SELECT ALL - MAX ( ALL + 24 )
----
-24

query I rowsort
SELECT ALL + 61 * 67
----
4087

onlyif mysql # aggregate syntax: 
query I rowsort label-8784
SELECT - COUNT( * ) * 37 AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-8784
SELECT - COUNT ( * ) * 37 AS col2
----
-37

query II rowsort
SELECT DISTINCT + 83 * - - 14, 35 AS col1
----
1162
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8786
SELECT ALL - SUM( + + 25 ) + - 18
----
-43

skipif mysql # not compatible
query I rowsort label-8786
SELECT ALL - SUM ( + + 25 ) + - 18
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-8787
SELECT 79 - + - ( + - COUNT( * ) )
----
78

skipif mysql # not compatible
query I rowsort label-8787
SELECT 79 - + - ( + - COUNT ( * ) )
----
78

query I rowsort
SELECT - ( - 69 ) AS col2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8789
SELECT ALL - 75 + + COUNT( * )
----
-74

skipif mysql # not compatible
query I rowsort label-8789
SELECT ALL - 75 + + COUNT ( * )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-8790
SELECT ALL - 69 * - COUNT( * )
----
69

skipif mysql # not compatible
query I rowsort label-8790
SELECT ALL - 69 * - COUNT ( * )
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8791
SELECT DISTINCT 37 DIV COUNT( * ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-8791
SELECT DISTINCT 37 / COUNT ( * ) AS col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-8792
SELECT DISTINCT - MIN( DISTINCT 30 ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-8792
SELECT DISTINCT - MIN ( DISTINCT 30 ) AS col1
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8793
SELECT DISTINCT - CAST( + 67 AS SIGNED )
----
-67

skipif mysql # not compatible
query I rowsort label-8793
SELECT DISTINCT - CAST ( + 67 AS INTEGER )
----
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8794
SELECT DISTINCT 1 DIV + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-8794
SELECT DISTINCT 1 / + COUNT ( * )
----
1

query I rowsort
SELECT 18 + - 19
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8796
SELECT ALL + ( - COUNT( * ) ) + + ( ( COUNT( * ) ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8796
SELECT ALL + ( - COUNT ( * ) ) + + ( ( COUNT ( * ) ) ) AS col1
----
0

query I rowsort
SELECT - + ( - + 38 ) AS col0
----
38

query I rowsort
SELECT DISTINCT ( + 92 ) AS col1
----
92

query I rowsort
SELECT ALL - 47 - + + 85
----
-132

query I rowsort
SELECT ALL ( 24 ) AS col1
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8801
SELECT ALL COUNT( * ) DIV ( + - 57 ) + - 38 AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-8801
SELECT ALL COUNT ( * ) / ( + - 57 ) + - 38 AS col0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-8802
SELECT ALL + MIN( - 28 )
----
-28

skipif mysql # not compatible
query I rowsort label-8802
SELECT ALL + MIN ( - 28 )
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-8803
SELECT + ( + + 15 ) AS col1, COUNT( * )
----
15
1

skipif mysql # not compatible
query II rowsort label-8803
SELECT + ( + + 15 ) AS col1, COUNT ( * )
----
15
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8804
SELECT - - MAX( ALL 17 ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-8804
SELECT - - MAX ( ALL 17 ) AS col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8805
SELECT COUNT( * ) * 10 AS col1
----
10

skipif mysql # not compatible
query I rowsort label-8805
SELECT COUNT ( * ) * 10 AS col1
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-8806
SELECT ALL - COUNT( * ) AS col0, COUNT( * ) AS col2
----
-1
1

skipif mysql # not compatible
query II rowsort label-8806
SELECT ALL - COUNT ( * ) AS col0, COUNT ( * ) AS col2
----
-1
1

query I rowsort
SELECT + + 74 col2
----
74

query I rowsort
SELECT 13 - - 75 AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8809
SELECT - SUM( + 16 )
----
-16

skipif mysql # not compatible
query I rowsort label-8809
SELECT - SUM ( + 16 )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-8810
SELECT - SUM( + 75 )
----
-75

skipif mysql # not compatible
query I rowsort label-8810
SELECT - SUM ( + 75 )
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8811
SELECT - COUNT( * ) * - - 18
----
-18

skipif mysql # not compatible
query I rowsort label-8811
SELECT - COUNT ( * ) * - - 18
----
-18

query I rowsort
SELECT - - 8 col2
----
8

query I rowsort
SELECT - 62 * + - 40
----
2480

query I rowsort
SELECT DISTINCT - 22 * + 43
----
-946

query I rowsort
SELECT + + ( + 23 )
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8816
SELECT ALL + ( + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8816
SELECT ALL + ( + + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8817
SELECT ALL - + MIN( DISTINCT 73 )
----
-73

skipif mysql # not compatible
query I rowsort label-8817
SELECT ALL - + MIN ( DISTINCT 73 )
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8818
SELECT DISTINCT - 0 AS col0, CAST( NULL AS SIGNED )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-8818
SELECT DISTINCT - 0 AS col0, CAST ( NULL AS INTEGER )
----
0
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8819
SELECT DISTINCT + 76 - + 54 AS col2, + CAST( NULL AS SIGNED ) * + + 74
----
22
NULL

skipif mysql # not compatible
query II rowsort label-8819
SELECT DISTINCT + 76 - + 54 AS col2, + CAST ( NULL AS INTEGER ) * + + 74
----
22
NULL

query I rowsort
SELECT - 47 col2
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8821
SELECT DISTINCT MAX( - + 45 )
----
-45

skipif mysql # not compatible
query I rowsort label-8821
SELECT DISTINCT MAX ( - + 45 )
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-8822
SELECT COUNT( * ) - + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8822
SELECT COUNT ( * ) - + COUNT ( * ) AS col2
----
0

query I rowsort
SELECT - + 71 AS col2
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-8824
SELECT DISTINCT COUNT( * ) + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-8824
SELECT DISTINCT COUNT ( * ) + + COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8825
SELECT 97 * + SUM( ALL 41 )
----
3977

skipif mysql # not compatible
query I rowsort label-8825
SELECT 97 * + SUM ( ALL 41 )
----
3977

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8826
SELECT 27 DIV COUNT( * ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-8826
SELECT 27 / COUNT ( * ) AS col2
----
27

query I rowsort
SELECT + - 86
----
-86

query I rowsort
SELECT DISTINCT - 44 * - + 68
----
2992

onlyif mysql # aggregate syntax: 
query II rowsort label-8829
SELECT DISTINCT + COUNT( * ) AS col0, 91
----
1
91

skipif mysql # not compatible
query II rowsort label-8829
SELECT DISTINCT + COUNT ( * ) AS col0, 91
----
1
91

query I rowsort
SELECT + 72 + 3 col1
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-8831
SELECT ALL ( - 95 ) + - + COUNT( * ), COUNT( * ) col2
----
-96
1

skipif mysql # not compatible
query II rowsort label-8831
SELECT ALL ( - 95 ) + - + COUNT ( * ), COUNT ( * ) col2
----
-96
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8832
SELECT + 2 * - - 19 + - COUNT( * ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-8832
SELECT + 2 * - - 19 + - COUNT ( * ) AS col1
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8833
SELECT ALL COUNT( * ) * CAST( NULL AS SIGNED ) + - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8833
SELECT ALL COUNT ( * ) * CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8834
SELECT - CAST( NULL AS SIGNED ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8834
SELECT - CAST ( NULL AS INTEGER ) + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8835
SELECT ALL 6 DIV + COUNT( 94 )
----
6

skipif mysql # not compatible
query I rowsort label-8835
SELECT ALL 6 / + COUNT ( 94 )
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8836
SELECT ALL + CAST( NULL AS SIGNED ) * 5
----
NULL

skipif mysql # not compatible
query I rowsort label-8836
SELECT ALL + CAST ( NULL AS INTEGER ) * 5
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8837
SELECT + COUNT( * ) * + 79
----
79

skipif mysql # not compatible
query I rowsort label-8837
SELECT + COUNT ( * ) * + 79
----
79

query I rowsort
SELECT DISTINCT + 15 col0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8839
SELECT + CAST( 36 AS SIGNED )
----
36

skipif mysql # not compatible
query I rowsort label-8839
SELECT + CAST ( 36 AS INTEGER )
----
36

query I rowsort
SELECT ALL - + 57 AS col1
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-8841
SELECT ALL 42 + + 52 + + - COUNT( - + 93 )
----
93

skipif mysql # not compatible
query I rowsort label-8841
SELECT ALL 42 + + 52 + + - COUNT ( - + 93 )
----
93

query II rowsort
SELECT + 32 AS col1, + 0 AS col0
----
32
0

query I rowsort
SELECT ALL 71 * - + 2 AS col1
----
-142

query I rowsort
SELECT ALL 72 col2
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8845
SELECT 66 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8845
SELECT 66 - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8846
SELECT ALL AVG ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8846
SELECT ALL AVG ( CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT + 22 * + + 49
----
1078

query I rowsort
SELECT + + 47 - + 76
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8849
SELECT + - CAST( - - ( + COUNT( + 4 ) ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-8849
SELECT + - CAST ( - - ( + COUNT ( + 4 ) ) AS INTEGER )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8850
SELECT - ( - - ( + - COUNT( * ) ) ) AS col1, 72 AS col2
----
1
72

skipif mysql # not compatible
query II rowsort label-8850
SELECT - ( - - ( + - COUNT ( * ) ) ) AS col1, 72 AS col2
----
1
72

query I rowsort
SELECT - ( + 97 ) AS col2
----
-97

query I rowsort
SELECT ALL - 87 - - + 67 AS col2
----
-20

query I rowsort
SELECT ALL + - 67
----
-67

query I rowsort
SELECT ( 31 ) AS col0
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8855
SELECT CAST( NULL AS SIGNED ) * - 4 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8855
SELECT CAST ( NULL AS INTEGER ) * - 4 AS col0
----
NULL

query I rowsort
SELECT 92 * + - ( 28 ) + + 30
----
-2546

onlyif mysql # DIV for integer division: 
query I rowsort label-8857
SELECT ALL 14 DIV 60 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8857
SELECT ALL 14 / 60 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8858
SELECT ( - 44 ) + + COUNT( * ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-8858
SELECT ( - 44 ) + + COUNT ( * ) AS col0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-8859
SELECT COUNT( * ) * + 38
----
38

skipif mysql # not compatible
query I rowsort label-8859
SELECT COUNT ( * ) * + 38
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8860
SELECT SUM( ( 22 ) ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-8860
SELECT SUM ( ( 22 ) ) AS col0
----
22

query I rowsort
SELECT 50 * + 86 col2
----
4300

onlyif mysql # aggregate syntax: 
query I rowsort label-8862
SELECT ALL - NULLIF ( 13, COUNT( * ) )
----
-13

skipif mysql # not compatible
query I rowsort label-8862
SELECT ALL - NULLIF ( 13, COUNT ( * ) )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-8863
SELECT DISTINCT + 37 * COUNT( * ) - 32
----
5

skipif mysql # not compatible
query I rowsort label-8863
SELECT DISTINCT + 37 * COUNT ( * ) - 32
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8864
SELECT ALL + CAST( 61 AS SIGNED )
----
61

skipif mysql # not compatible
query I rowsort label-8864
SELECT ALL + CAST ( 61 AS INTEGER )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8865
SELECT ALL + COUNT( * ) * - 1 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8865
SELECT ALL + COUNT ( * ) * - 1 AS col2
----
-1

query I rowsort
SELECT ALL + 19 * 93
----
1767

query I rowsort
SELECT DISTINCT CASE 47 WHEN 28 THEN + 51 * 99 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8868
SELECT + COUNT( * ) DIV COUNT( * ) col2
----
1

skipif mysql # not compatible
query I rowsort label-8868
SELECT + COUNT ( * ) / COUNT ( * ) col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8869
SELECT - 65 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8869
SELECT - 65 / CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 29 + - 45 col1
----
-74

query I rowsort
SELECT ALL 79 + 91
----
170

query I rowsort
SELECT DISTINCT - ( + 58 )
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8873
SELECT + + AVG ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8873
SELECT + + AVG ( - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL + ( 7 ) AS col2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8875
SELECT + COUNT( DISTINCT 57 )
----
1

skipif mysql # not compatible
query I rowsort label-8875
SELECT + COUNT ( DISTINCT 57 )
----
1

query I rowsort
SELECT ALL + - 52 AS col0
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8877
SELECT DISTINCT + + MIN( CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8877
SELECT DISTINCT + + MIN ( CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8878
SELECT DISTINCT 97 * + MIN( 96 ) AS col0
----
9312

skipif mysql # not compatible
query I rowsort label-8878
SELECT DISTINCT 97 * + MIN ( 96 ) AS col0
----
9312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8879
SELECT - CAST( + + COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8879
SELECT - CAST ( + + COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col1
----
0

query I rowsort
SELECT - 24 * - 92
----
2208

query I rowsort
SELECT - ( + 37 ) AS col2
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-8882
SELECT - COUNT( * ) * - 58 + 60 col2
----
118

skipif mysql # not compatible
query I rowsort label-8882
SELECT - COUNT ( * ) * - 58 + 60 col2
----
118

query I rowsort
SELECT 41 * 17 AS col1
----
697

onlyif mysql # DIV for integer division: 
query I rowsort label-8884
SELECT 39 DIV - + 28 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8884
SELECT 39 / - + 28 AS col1
----
-1

query I rowsort
SELECT DISTINCT 12 * + - 62
----
-744

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8886
SELECT ALL CAST( + + 81 AS SIGNED ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-8886
SELECT ALL CAST ( + + 81 AS INTEGER ) AS col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8887
SELECT ALL - SUM( + 98 ) * - 51 - ( + COUNT( * ) ) * - 22
----
5020

skipif mysql # not compatible
query I rowsort label-8887
SELECT ALL - SUM ( + 98 ) * - 51 - ( + COUNT ( * ) ) * - 22
----
5020

query I rowsort
SELECT - 80 * + 84 - - - 99
----
-6819

query I rowsort
SELECT DISTINCT - 61 col2
----
-61

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8890
SELECT ALL CAST( NULL AS DECIMAL ) + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8890
SELECT ALL CAST ( NULL AS REAL ) + + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8891
SELECT 35 * + 18 * COUNT( * ) * - 45 AS col2
----
-28350

skipif mysql # not compatible
query I rowsort label-8891
SELECT 35 * + 18 * COUNT ( * ) * - 45 AS col2
----
-28350

onlyif mysql # aggregate syntax: 
query I rowsort label-8892
SELECT + SUM( ALL + ( + + 90 ) )
----
90

skipif mysql # not compatible
query I rowsort label-8892
SELECT + SUM ( ALL + ( + + 90 ) )
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-8893
SELECT ALL + - 62 AS col0, + COUNT( * ) AS col2
----
-62
1

skipif mysql # not compatible
query II rowsort label-8893
SELECT ALL + - 62 AS col0, + COUNT ( * ) AS col2
----
-62
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8894
SELECT ALL 30 + - - COUNT( * ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-8894
SELECT ALL 30 + - - COUNT ( * ) AS col2
----
31

query II rowsort
SELECT ALL 93 AS col0, 24 AS col0
----
93
24

query I rowsort
SELECT - ( - + 60 )
----
60

query I rowsort
SELECT + 6 * + 51
----
306

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8898
SELECT DISTINCT + AVG ( + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8898
SELECT DISTINCT + AVG ( + CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8899
SELECT DISTINCT + COUNT( * ) * 39 AS col0
----
39

skipif mysql # not compatible
query I rowsort label-8899
SELECT DISTINCT + COUNT ( * ) * 39 AS col0
----
39

query I rowsort
SELECT ALL - 38 * - 13 AS col1
----
494

onlyif mysql # aggregate syntax: 
query I rowsort label-8901
SELECT DISTINCT 64 * + + COUNT( * )
----
64

skipif mysql # not compatible
query I rowsort label-8901
SELECT DISTINCT 64 * + + COUNT ( * )
----
64

query I rowsort
SELECT ALL - 63 * 60 col2
----
-3780

query I rowsort
SELECT - - 33 AS col0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-8904
SELECT ALL COUNT( - 49 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8904
SELECT ALL COUNT ( - 49 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8905
SELECT ALL COUNT( DISTINCT + 56 )
----
1

skipif mysql # not compatible
query I rowsort label-8905
SELECT ALL COUNT ( DISTINCT + 56 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8906
SELECT + - ( - + COUNT( * ) ) + - - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-8906
SELECT + - ( - + COUNT ( * ) ) + - - COUNT ( * )
----
2

query II rowsort
SELECT DISTINCT + 43 col1, + 47 AS col2
----
43
47

query I rowsort
SELECT + - 69 + - + 61
----
-130

onlyif mysql # DIV for integer division: 
query I rowsort label-8909
SELECT - 2 DIV 90
----
0

skipif mysql # not compatible
query I rowsort label-8909
SELECT - 2 / 90
----
0

query I rowsort
SELECT - 19 + + 17
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8911
SELECT - 39 * + COUNT( * )
----
-39

skipif mysql # not compatible
query I rowsort label-8911
SELECT - 39 * + COUNT ( * )
----
-39

query I rowsort
SELECT ALL + + 33 AS col0
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-8913
SELECT DISTINCT MAX( DISTINCT 38 ) * - ( + ( + + COUNT( * ) ) ), 20 col2
----
-38
20

skipif mysql # not compatible
query II rowsort label-8913
SELECT DISTINCT MAX ( DISTINCT 38 ) * - ( + ( + + COUNT ( * ) ) ), 20 col2
----
-38
20

query I rowsort
SELECT + 96 * + 30
----
2880

query I rowsort
SELECT - ( + + 93 ) AS col1
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-8916
SELECT 59 + - COUNT( * ) - + 31
----
27

skipif mysql # not compatible
query I rowsort label-8916
SELECT 59 + - COUNT ( * ) - + 31
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8917
SELECT DISTINCT - + MIN( - 1 )
----
1

skipif mysql # not compatible
query I rowsort label-8917
SELECT DISTINCT - + MIN ( - 1 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8918
SELECT - 57 * COUNT( + + 64 ) + + - MIN( 54 ) + + ( COUNT( * ) ) AS col0
----
-110

skipif mysql # not compatible
query I rowsort label-8918
SELECT - 57 * COUNT ( + + 64 ) + + - MIN ( 54 ) + + ( COUNT ( * ) ) AS col0
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-8919
SELECT ALL - - ( + + COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8919
SELECT ALL - - ( + + COUNT ( * ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8920
SELECT DISTINCT 6 col1, + COUNT( * )
----
6
1

skipif mysql # not compatible
query II rowsort label-8920
SELECT DISTINCT 6 col1, + COUNT ( * )
----
6
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8921
SELECT - 21 col1, COUNT( * )
----
-21
1

skipif mysql # not compatible
query II rowsort label-8921
SELECT - 21 col1, COUNT ( * )
----
-21
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8922
SELECT ALL MIN( - 22 ) AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-8922
SELECT ALL MIN ( - 22 ) AS col0
----
-22

query I rowsort
SELECT ( - 31 ) AS col0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-8924
SELECT DISTINCT - + MAX( ALL - 62 ) col1
----
62

skipif mysql # not compatible
query I rowsort label-8924
SELECT DISTINCT - + MAX ( ALL - 62 ) col1
----
62

query I rowsort
SELECT - 44 * + + 75 * 2 AS col1
----
-6600

query I rowsort
SELECT DISTINCT - - 92
----
92

query I rowsort
SELECT ( - 92 ) AS col0
----
-92

query I rowsort
SELECT DISTINCT - - 58 col2
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-8929
SELECT ALL - 18 DIV 18 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8929
SELECT ALL - 18 / 18 AS col0
----
-1

query I rowsort
SELECT DISTINCT - 25 col1
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-8931
SELECT + ( COUNT( * ) ) * 95 AS col1
----
95

skipif mysql # not compatible
query I rowsort label-8931
SELECT + ( COUNT ( * ) ) * 95 AS col1
----
95

query I rowsort
SELECT + + 14 col1
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8933
SELECT - COUNT( * ) * + CAST( + + COUNT( - + 93 ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-8933
SELECT - COUNT ( * ) * + CAST ( + + COUNT ( - + 93 ) AS INTEGER )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8934
SELECT - - 57 * + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8934
SELECT - - 57 * + CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT DISTINCT + 42 col2
----
42

query I rowsort
SELECT ALL - + ( 4 ) col1
----
-4

query I rowsort
SELECT 54 * + 35
----
1890

onlyif mysql # aggregate syntax: 
query I rowsort label-8938
SELECT ALL 24 * - COUNT( * ) * + 62 AS col2
----
-1488

skipif mysql # not compatible
query I rowsort label-8938
SELECT ALL 24 * - COUNT ( * ) * + 62 AS col2
----
-1488

onlyif mysql # aggregate syntax: 
query I rowsort label-8939
SELECT ALL 42 * + COUNT( * ) * + 13
----
546

skipif mysql # not compatible
query I rowsort label-8939
SELECT ALL 42 * + COUNT ( * ) * + 13
----
546

onlyif mysql # aggregate syntax: 
query I rowsort label-8940
SELECT DISTINCT - SUM( DISTINCT + 85 ) col2
----
-85

skipif mysql # not compatible
query I rowsort label-8940
SELECT DISTINCT - SUM ( DISTINCT + 85 ) col2
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-8941
SELECT ALL - - COUNT( * ) * + + COUNT( * ) + + - 99
----
-98

skipif mysql # not compatible
query I rowsort label-8941
SELECT ALL - - COUNT ( * ) * + + COUNT ( * ) + + - 99
----
-98

query I rowsort
SELECT DISTINCT 83 - - 59 AS col2
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-8943
SELECT 78 * + COUNT( * ) col1
----
78

skipif mysql # not compatible
query I rowsort label-8943
SELECT 78 * + COUNT ( * ) col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8944
SELECT DISTINCT COUNT( DISTINCT + - 69 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8944
SELECT DISTINCT COUNT ( DISTINCT + - 69 ) AS col1
----
1

query I rowsort
SELECT ALL - 56 col2
----
-56

query I rowsort
SELECT ALL + ( - 66 ) AS col0
----
-66

query I rowsort
SELECT DISTINCT + ( - 49 )
----
-49

query I rowsort
SELECT ( 1 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8949
SELECT ALL + COUNT( * ) * + - 24
----
-24

skipif mysql # not compatible
query I rowsort label-8949
SELECT ALL + COUNT ( * ) * + - 24
----
-24

query I rowsort
SELECT ALL + 57 - + 20
----
37

query I rowsort
SELECT ALL - ( 23 ) col0
----
-23

query I rowsort
SELECT + - 18 * + 89
----
-1602

onlyif mysql # aggregate syntax: 
query II rowsort label-8953
SELECT - COUNT( * ), 39 * - 70 AS col2
----
-1
-2730

skipif mysql # not compatible
query II rowsort label-8953
SELECT - COUNT ( * ), 39 * - 70 AS col2
----
-1
-2730

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8954
SELECT CAST( 42 AS SIGNED ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-8954
SELECT CAST ( 42 AS INTEGER ) AS col1
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8955
SELECT CAST( - - 43 AS SIGNED )
----
43

skipif mysql # not compatible
query I rowsort label-8955
SELECT CAST ( - - 43 AS INTEGER )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8956
SELECT ( SUM( ALL + 67 ) )
----
67

skipif mysql # not compatible
query I rowsort label-8956
SELECT ( SUM ( ALL + 67 ) )
----
67

query I rowsort
SELECT - 6 + - 28
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-8958
SELECT ALL COUNT( * ) + - 70 - - + COUNT( * )
----
-68

skipif mysql # not compatible
query I rowsort label-8958
SELECT ALL COUNT ( * ) + - 70 - - + COUNT ( * )
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-8959
SELECT DISTINCT - SUM( DISTINCT - 47 )
----
47

skipif mysql # not compatible
query I rowsort label-8959
SELECT DISTINCT - SUM ( DISTINCT - 47 )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8960
SELECT ALL - + MIN( ALL + 50 ) AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-8960
SELECT ALL - + MIN ( ALL + 50 ) AS col2
----
-50

query I rowsort
SELECT + ( + 60 ) col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8962
SELECT COUNT( * ) + - 43 AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-8962
SELECT COUNT ( * ) + - 43 AS col1
----
-42

query II rowsort
SELECT 44 AS col1, 1
----
44
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8964
SELECT ALL MIN( ALL 88 )
----
88

skipif mysql # not compatible
query I rowsort label-8964
SELECT ALL MIN ( ALL 88 )
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8965
SELECT COUNT( * ) + - CAST( NULL AS SIGNED ) / + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-8965
SELECT COUNT ( * ) + - CAST ( NULL AS INTEGER ) / + 52
----
NULL

query I rowsort
SELECT - ( - 61 )
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8967
SELECT - 88 * + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8967
SELECT - 88 * + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8968
SELECT ALL ( - SUM( 52 ) )
----
-52

skipif mysql # not compatible
query I rowsort label-8968
SELECT ALL ( - SUM ( 52 ) )
----
-52

query I rowsort
SELECT - 52 * - + 75 AS col2
----
3900

onlyif mysql # DIV for integer division: 
query I rowsort label-8970
SELECT DISTINCT + ( 72 ) DIV + 11 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-8970
SELECT DISTINCT + ( 72 ) / + 11 AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8971
SELECT - 30 + COUNT( DISTINCT + 44 )
----
-29

skipif mysql # not compatible
query I rowsort label-8971
SELECT - 30 + COUNT ( DISTINCT + 44 )
----
-29

query I rowsort
SELECT ALL + ( + - 62 ) AS col2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-8973
SELECT - + 22 + - + ( COUNT( * ) ) col0
----
-23

skipif mysql # not compatible
query I rowsort label-8973
SELECT - + 22 + - + ( COUNT ( * ) ) col0
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8974
SELECT + 55 DIV - COUNT( * )
----
-55

skipif mysql # not compatible
query I rowsort label-8974
SELECT + 55 / - COUNT ( * )
----
-55

query I rowsort
SELECT ALL + + 98 * 69 AS col1
----
6762

query II rowsort
SELECT + - 60 AS col2, + 45 AS col2
----
-60
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8977
SELECT ALL - 68 + + SUM( - 76 )
----
-144

skipif mysql # not compatible
query I rowsort label-8977
SELECT ALL - 68 + + SUM ( - 76 )
----
-144

query I rowsort
SELECT DISTINCT + 64 * - 99 AS col0
----
-6336

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8979
SELECT ALL + ( + + COUNT( * ) ) * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8979
SELECT ALL + ( + + COUNT ( * ) ) * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8980
SELECT ALL + ( + COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8980
SELECT ALL + ( + COUNT ( * ) ) AS col2
----
1

query I rowsort
SELECT - 29 + - 15 AS col0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-8982
SELECT ALL 78 * COUNT( * ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-8982
SELECT ALL 78 * COUNT ( * ) AS col2
----
78

query I rowsort
SELECT - 6 * + 49
----
-294

onlyif mysql # aggregate syntax: 
query I rowsort label-8984
SELECT - 52 + - COUNT( * )
----
-53

skipif mysql # not compatible
query I rowsort label-8984
SELECT - 52 + - COUNT ( * )
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8985
SELECT CAST( NULL AS SIGNED ) - - - MIN( - - 17 ) / + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8985
SELECT CAST ( NULL AS INTEGER ) - - - MIN ( - - 17 ) / + - COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8986
SELECT ALL CAST( NULL AS DECIMAL ) / 6 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8986
SELECT ALL CAST ( NULL AS REAL ) / 6 AS col1
----
NULL

query I rowsort
SELECT 57 + 80 col2
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-8988
SELECT - ( - COUNT( * ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-8988
SELECT - ( - COUNT ( * ) ) col0
----
1

query I rowsort
SELECT DISTINCT + 79 * 35 AS col1
----
2765

onlyif mysql # aggregate syntax: 
query I rowsort label-8990
SELECT + COUNT( - - 96 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-8990
SELECT + COUNT ( - - 96 ) col0
----
1

query I rowsort
SELECT ALL - + 32 AS col1
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-8992
SELECT ( + MIN( DISTINCT + + ( - 35 ) ) ) AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-8992
SELECT ( + MIN ( DISTINCT + + ( - 35 ) ) ) AS col1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-8993
SELECT ALL - - 36 * COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-8993
SELECT ALL - - 36 * COUNT ( * )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8994
SELECT - COUNT( * ) * MIN( + 42 ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-8994
SELECT - COUNT ( * ) * MIN ( + 42 ) AS col1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-8995
SELECT - ( - - COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8995
SELECT - ( - - COUNT ( * ) ) AS col0
----
-1

query I rowsort
SELECT ALL + - 37 AS col2
----
-37

query II rowsort
SELECT DISTINCT 23 AS col2, 95
----
23
95

query I rowsort
SELECT ( - 83 ) * 97
----
-8051

query I rowsort
SELECT DISTINCT - 7 + - + 51 AS col0
----
-58

query I rowsort
SELECT ALL - ( + ( 42 ) ) + - 68
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-9001
SELECT 35 + - + COUNT( * ) + 66
----
100

skipif mysql # not compatible
query I rowsort label-9001
SELECT 35 + - + COUNT ( * ) + 66
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-9002
SELECT ALL 18 - - - MAX( DISTINCT 57 ) col1
----
-39

skipif mysql # not compatible
query I rowsort label-9002
SELECT ALL 18 - - - MAX ( DISTINCT 57 ) col1
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9003
SELECT ALL COUNT( * ) * - + CAST( - + 13 AS SIGNED ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-9003
SELECT ALL COUNT ( * ) * - + CAST ( - + 13 AS INTEGER ) AS col0
----
13

query I rowsort
SELECT DISTINCT 10 * + 68
----
680

onlyif mysql # aggregate syntax: 
query I rowsort label-9005
SELECT 90 + COUNT( * ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-9005
SELECT 90 + COUNT ( * ) AS col1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9006
SELECT DISTINCT + + COUNT( * ) * - 42
----
-42

skipif mysql # not compatible
query I rowsort label-9006
SELECT DISTINCT + + COUNT ( * ) * - 42
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9007
SELECT ALL + SUM( DISTINCT - 13 )
----
-13

skipif mysql # not compatible
query I rowsort label-9007
SELECT ALL + SUM ( DISTINCT - 13 )
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9008
SELECT ALL COUNT( * ) DIV + 9 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9008
SELECT ALL COUNT ( * ) / + 9 AS col0
----
0

query I rowsort
SELECT DISTINCT 6 * - 15 AS col1
----
-90

query I rowsort
SELECT 66 * + 37
----
2442

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9011
SELECT + 82 DIV + COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-9011
SELECT + 82 / + COUNT ( * )
----
82

query I rowsort
SELECT DISTINCT + 99 - + 78
----
21

query I rowsort
SELECT - ( + 0 ) col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9014
SELECT - CAST( NULL AS SIGNED ) * 71
----
NULL

skipif mysql # not compatible
query I rowsort label-9014
SELECT - CAST ( NULL AS INTEGER ) * 71
----
NULL

query I rowsort
SELECT ALL + 80 * + 81
----
6480

onlyif mysql # aggregate syntax: 
query I rowsort label-9016
SELECT ALL ( - + COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9016
SELECT ALL ( - + COUNT ( * ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9017
SELECT - COUNT( * ) + - - 76
----
75

skipif mysql # not compatible
query I rowsort label-9017
SELECT - COUNT ( * ) + - - 76
----
75

query II rowsort
SELECT + - 48, 7 AS col2
----
-48
7

onlyif mysql # aggregate syntax: 
query II rowsort label-9019
SELECT DISTINCT + COUNT( * ), 91 * - 0 col0
----
1
0

skipif mysql # not compatible
query II rowsort label-9019
SELECT DISTINCT + COUNT ( * ), 91 * - 0 col0
----
1
0

query I rowsort
SELECT + ( + - 37 )
----
-37

query I rowsort
SELECT ALL 59 * - 6
----
-354

query II rowsort
SELECT - ( - 16 ) AS col2, - 51 AS col0
----
16
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9023
SELECT DISTINCT - + MAX( DISTINCT + 65 ) AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-9023
SELECT DISTINCT - + MAX ( DISTINCT + 65 ) AS col1
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-9024
SELECT ALL + COUNT( * ) - - 40 AS col1
----
41

skipif mysql # not compatible
query I rowsort label-9024
SELECT ALL + COUNT ( * ) - - 40 AS col1
----
41

query I rowsort
SELECT + ( + 78 ) AS col1
----
78

query I rowsort
SELECT DISTINCT 83 + - 68
----
15

query II rowsort
SELECT - 48 AS col2, - 17 AS col2
----
-48
-17

query I rowsort
SELECT ALL - + 72 AS col1
----
-72

query I rowsort
SELECT + 38 + - 26
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9030
SELECT 29 DIV - COUNT( * ) col0
----
-29

skipif mysql # not compatible
query I rowsort label-9030
SELECT 29 / - COUNT ( * ) col0
----
-29

query I rowsort
SELECT DISTINCT - - 79 AS col1
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-9032
SELECT DISTINCT + 40 DIV + 88 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9032
SELECT DISTINCT + 40 / + 88 AS col1
----
0

query I rowsort
SELECT 96 - 1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9034
SELECT + - COUNT( * ) * + + 75
----
-75

skipif mysql # not compatible
query I rowsort label-9034
SELECT + - COUNT ( * ) * + + 75
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9035
SELECT ALL + COUNT( * ) * + - 45 AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-9035
SELECT ALL + COUNT ( * ) * + - 45 AS col0
----
-45

query I rowsort
SELECT ALL + COALESCE ( + - 65, - 94 ) AS col2
----
-65

query I rowsort
SELECT DISTINCT 89 * - 28 + 2 AS col1
----
-2490

query I rowsort
SELECT ALL + ( + 36 ) AS col1
----
36

query I rowsort
SELECT ALL + ( + 33 )
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9040
SELECT + COUNT( + 15 ) DIV - - ( - 26 )
----
0

skipif mysql # not compatible
query I rowsort label-9040
SELECT + COUNT ( + 15 ) / - - ( - 26 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9041
SELECT ALL - 59 DIV - COUNT( * ) + 82
----
141

skipif mysql # not compatible
query I rowsort label-9041
SELECT ALL - 59 / - COUNT ( * ) + 82
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-9042
SELECT ALL - COUNT( + + 40 )
----
-1

skipif mysql # not compatible
query I rowsort label-9042
SELECT ALL - COUNT ( + + 40 )
----
-1

query I rowsort
SELECT ALL 71 - + + 62 col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9044
SELECT ALL - + COUNT( * ) * COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9044
SELECT ALL - + COUNT ( * ) * COUNT ( * ) AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9045
SELECT DISTINCT - COUNT( * ) DIV - + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-9045
SELECT DISTINCT - COUNT ( * ) / - + COUNT ( * )
----
1

query I rowsort
SELECT + COALESCE ( 35, + + 36 * 61 ) * - 47
----
-1645

onlyif mysql # aggregate syntax: 
query I rowsort label-9047
SELECT ALL + COUNT( * ) + + - 63 col2
----
-62

skipif mysql # not compatible
query I rowsort label-9047
SELECT ALL + COUNT ( * ) + + - 63 col2
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9048
SELECT + 88 * - CAST( - 9 AS SIGNED ) col2
----
792

skipif mysql # not compatible
query I rowsort label-9048
SELECT + 88 * - CAST ( - 9 AS INTEGER ) col2
----
792

query I rowsort
SELECT ALL + ( 39 ) AS col2
----
39

query I rowsort
SELECT DISTINCT - 81 * - 66 col1
----
5346

query I rowsort
SELECT - 89 + + 79 * 14
----
1017

query I rowsort
SELECT + 29 * + 29 AS col2
----
841

query I rowsort
SELECT ALL 54 * 68
----
3672

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9054
SELECT + CAST( NULL AS SIGNED ) * - 54 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9054
SELECT + CAST ( NULL AS INTEGER ) * - 54 col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9055
SELECT ALL + CAST( NULL AS SIGNED ) * + 52 * + - 55
----
NULL

skipif mysql # not compatible
query I rowsort label-9055
SELECT ALL + CAST ( NULL AS INTEGER ) * + 52 * + - 55
----
NULL

query I rowsort
SELECT DISTINCT + + 68 AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9057
SELECT + COUNT( * ) - + 10 AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-9057
SELECT + COUNT ( * ) - + 10 AS col2
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9058
SELECT MIN( + CAST( NULL AS SIGNED ) ) + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9058
SELECT MIN ( + CAST ( NULL AS INTEGER ) ) + COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9059
SELECT NULLIF ( - 62, CAST( NULL AS SIGNED ) ) * - COUNT( * ) DIV + 86 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9059
SELECT NULLIF ( - 62, CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) / + 86 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9060
SELECT ALL ( + - COUNT( * ) ) * + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9060
SELECT ALL ( + - COUNT ( * ) ) * + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT ( + - 0 ) * - 70 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9062
SELECT COUNT( * ) + + + 95 + - 59 + 9 AS col2
----
46

skipif mysql # not compatible
query I rowsort label-9062
SELECT COUNT ( * ) + + + 95 + - 59 + 9 AS col2
----
46

query I rowsort
SELECT 45 + 31 AS col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9064
SELECT + ( + MIN( ALL 20 ) )
----
20

skipif mysql # not compatible
query I rowsort label-9064
SELECT + ( + MIN ( ALL 20 ) )
----
20

query I rowsort
SELECT DISTINCT + 8 * - 75 col0
----
-600

query I rowsort
SELECT DISTINCT - + 60 AS col0
----
-60

query I rowsort
SELECT DISTINCT - - ( 86 ) AS col0
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-9068
SELECT 40 DIV - 63
----
0

skipif mysql # not compatible
query I rowsort label-9068
SELECT 40 / - 63
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9069
SELECT 30 + COUNT( * ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9069
SELECT 30 + COUNT ( * ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9070
SELECT DISTINCT COUNT( DISTINCT + 57 )
----
1

skipif mysql # not compatible
query I rowsort label-9070
SELECT DISTINCT COUNT ( DISTINCT + 57 )
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-9071
SELECT ALL ( - + 49 ), 12 DIV 18 * 94 AS col1
----
-49
0

skipif mysql # not compatible
query II rowsort label-9071
SELECT ALL ( - + 49 ), 12 / 18 * 94 AS col1
----
-49
0

query II rowsort
SELECT ( + 76 ) AS col0, 79 AS col2
----
76
79

onlyif mysql # DIV for integer division: 
query I rowsort label-9073
SELECT + 36 DIV 22
----
1

skipif mysql # not compatible
query I rowsort label-9073
SELECT + 36 / 22
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9074
SELECT - CAST( - 99 AS SIGNED )
----
99

skipif mysql # not compatible
query I rowsort label-9074
SELECT - CAST ( - 99 AS INTEGER )
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9075
SELECT - CAST( + + ( - ( + ( - ( 29 ) ) ) ) AS SIGNED ) AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-9075
SELECT - CAST ( + + ( - ( + ( - ( 29 ) ) ) ) AS INTEGER ) AS col0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-9076
SELECT MIN( - 70 )
----
-70

skipif mysql # not compatible
query I rowsort label-9076
SELECT MIN ( - 70 )
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9077
SELECT + 18 - + CAST( + 53 AS SIGNED ) AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-9077
SELECT + 18 - + CAST ( + 53 AS INTEGER ) AS col1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-9078
SELECT + MIN( ALL 65 ) * 5 col0
----
325

skipif mysql # not compatible
query I rowsort label-9078
SELECT + MIN ( ALL 65 ) * 5 col0
----
325

onlyif mysql # aggregate syntax: 
query I rowsort label-9079
SELECT MAX( DISTINCT - 34 ) AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-9079
SELECT MAX ( DISTINCT - 34 ) AS col0
----
-34

query I rowsort
SELECT ALL + 59 + - 54 AS col2
----
5

query I rowsort
SELECT 23 + 36 AS col2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9082
SELECT - COUNT( * ) * + 37 + 63 AS col2
----
26

skipif mysql # not compatible
query I rowsort label-9082
SELECT - COUNT ( * ) * + 37 + 63 AS col2
----
26

query I rowsort
SELECT DISTINCT 81 * - + 82
----
-6642

query I rowsort
SELECT CASE - 75 WHEN + 38 THEN NULL ELSE - - 88 END + - 45 col0
----
43

query I rowsort
SELECT - + ( 48 )
----
-48

query I rowsort
SELECT DISTINCT - + ( - + 63 )
----
63

query I rowsort
SELECT DISTINCT - 66 - + 16 AS col0
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9088
SELECT ALL - MIN( + - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9088
SELECT ALL - MIN ( + - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT + 36 - + - 28 + - 2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9090
SELECT ALL + MIN( ALL 22 ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-9090
SELECT ALL + MIN ( ALL 22 ) AS col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9091
SELECT ( + + SUM( + + 88 ) ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-9091
SELECT ( + + SUM ( + + 88 ) ) AS col1
----
88

query I rowsort
SELECT + ( + 43 ) col0
----
43

query I rowsort
SELECT ALL + ( - 24 )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9094
SELECT ALL SUM( DISTINCT 12 ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-9094
SELECT ALL SUM ( DISTINCT 12 ) AS col1
----
12

query I rowsort
SELECT ALL 35 * - 50
----
-1750

onlyif mysql # aggregate syntax: 
query I rowsort label-9096
SELECT ALL 58 + COUNT( * ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-9096
SELECT ALL 58 + COUNT ( * ) AS col2
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9097
SELECT DISTINCT + COUNT( * ) DIV - - 48 * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-9097
SELECT DISTINCT + COUNT ( * ) / - - 48 * COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9098
SELECT SUM( ALL - + 64 ) AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-9098
SELECT SUM ( ALL - + 64 ) AS col2
----
-64

query II rowsort
SELECT + 94 AS col1, + 28
----
94
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9100
SELECT ALL 16 + + COUNT( * ) AS col2
----
17

skipif mysql # not compatible
query I rowsort label-9100
SELECT ALL 16 + + COUNT ( * ) AS col2
----
17

query I rowsort
SELECT ALL + - 73 col0
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-9102
SELECT ( COUNT( * ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-9102
SELECT ( COUNT ( * ) ) col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9103
SELECT ALL ( + + 20 ) DIV - 86 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9103
SELECT ALL ( + + 20 ) / - 86 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9104
SELECT - CAST( + 42 AS SIGNED ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-9104
SELECT - CAST ( + 42 AS INTEGER ) AS col2
----
-42

query I rowsort
SELECT ALL 40 + + 80 AS col2
----
120

query I rowsort
SELECT + NULLIF ( - ( - 66 ), - - 71 ) col1
----
66

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9107
SELECT DISTINCT + ( + CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9107
SELECT DISTINCT + ( + CAST ( NULL AS REAL ) ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9108
SELECT ALL 15 DIV 56
----
0

skipif mysql # not compatible
query I rowsort label-9108
SELECT ALL 15 / 56
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9109
SELECT + COUNT( * ) * ( 51 )
----
51

skipif mysql # not compatible
query I rowsort label-9109
SELECT + COUNT ( * ) * ( 51 )
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9110
SELECT ALL + CAST( - 94 AS SIGNED ) AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-9110
SELECT ALL + CAST ( - 94 AS INTEGER ) AS col1
----
-94

query I rowsort
SELECT DISTINCT + 78 * + 44 + - 90 AS col1
----
3342

onlyif mysql # aggregate syntax: 
query I rowsort label-9112
SELECT + COUNT( * ) + 23 col0
----
24

skipif mysql # not compatible
query I rowsort label-9112
SELECT + COUNT ( * ) + 23 col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9113
SELECT DISTINCT 0 + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9113
SELECT DISTINCT 0 + COUNT ( * ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9114
SELECT DISTINCT - COUNT( - 42 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9114
SELECT DISTINCT - COUNT ( - 42 ) AS col2
----
-1

query I rowsort
SELECT DISTINCT - + 46 AS col2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9116
SELECT DISTINCT + - MAX( ALL - 24 ) + + 60 col0
----
84

skipif mysql # not compatible
query I rowsort label-9116
SELECT DISTINCT + - MAX ( ALL - 24 ) + + 60 col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9117
SELECT - MAX( 31 )
----
-31

skipif mysql # not compatible
query I rowsort label-9117
SELECT - MAX ( 31 )
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-9118
SELECT DISTINCT COUNT( * ) * - - 69 * COUNT( * ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-9118
SELECT DISTINCT COUNT ( * ) * - - 69 * COUNT ( * ) AS col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9119
SELECT DISTINCT MAX( DISTINCT - + ( - - 0 ) ) col0
----
0

skipif mysql # not compatible
query I rowsort label-9119
SELECT DISTINCT MAX ( DISTINCT - + ( - - 0 ) ) col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9120
SELECT - CAST( - 86 AS SIGNED ) + + - ( 51 ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-9120
SELECT - CAST ( - 86 AS INTEGER ) + + - ( 51 ) AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9121
SELECT DISTINCT - COUNT( * ) + - COUNT( * ) col0
----
-2

skipif mysql # not compatible
query I rowsort label-9121
SELECT DISTINCT - COUNT ( * ) + - COUNT ( * ) col0
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9122
SELECT ALL - CAST( - 11 AS SIGNED ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-9122
SELECT ALL - CAST ( - 11 AS INTEGER ) AS col1
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-9123
SELECT - + 76 DIV + - 52
----
1

skipif mysql # not compatible
query I rowsort label-9123
SELECT - + 76 / + - 52
----
1

query II rowsort
SELECT + 36, + 27 col0
----
36
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9125
SELECT + 83 + + + COUNT( * ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-9125
SELECT + 83 + + + COUNT ( * ) AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9126
SELECT ALL + COUNT( ALL - ( 27 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9126
SELECT ALL + COUNT ( ALL - ( 27 ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9127
SELECT DISTINCT + 54 * - - COUNT( * )
----
54

skipif mysql # not compatible
query I rowsort label-9127
SELECT DISTINCT + 54 * - - COUNT ( * )
----
54

query I rowsort
SELECT ALL ( - 3 ) AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9129
SELECT DISTINCT + - 62 * MAX( 34 ) AS col2
----
-2108

skipif mysql # not compatible
query I rowsort label-9129
SELECT DISTINCT + - 62 * MAX ( 34 ) AS col2
----
-2108

query I rowsort
SELECT + ( + 72 ) AS col2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9131
SELECT ALL MIN( ALL 61 )
----
61

skipif mysql # not compatible
query I rowsort label-9131
SELECT ALL MIN ( ALL 61 )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9132
SELECT ALL + COUNT( * ) + + - 41
----
-40

skipif mysql # not compatible
query I rowsort label-9132
SELECT ALL + COUNT ( * ) + + - 41
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9133
SELECT DISTINCT - ( - - CAST( + 49 AS SIGNED ) )
----
-49

skipif mysql # not compatible
query I rowsort label-9133
SELECT DISTINCT - ( - - CAST ( + 49 AS INTEGER ) )
----
-49

query I rowsort
SELECT ALL - 54 + + 75 AS col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9135
SELECT DISTINCT - 37 + + COUNT( * ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-9135
SELECT DISTINCT - 37 + + COUNT ( * ) AS col1
----
-36

query I rowsort
SELECT 31 * + 7
----
217

onlyif mysql # aggregate syntax: 
query I rowsort label-9137
SELECT MIN( - 69 ) * + 60
----
-4140

skipif mysql # not compatible
query I rowsort label-9137
SELECT MIN ( - 69 ) * + 60
----
-4140

onlyif mysql # aggregate syntax: 
query II rowsort label-9138
SELECT - 52, COUNT( * ) AS col1
----
-52
1

skipif mysql # not compatible
query II rowsort label-9138
SELECT - 52, COUNT ( * ) AS col1
----
-52
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9139
SELECT COUNT( * ) * ( 55 )
----
55

skipif mysql # not compatible
query I rowsort label-9139
SELECT COUNT ( * ) * ( 55 )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9140
SELECT - COUNT( 58 )
----
-1

skipif mysql # not compatible
query I rowsort label-9140
SELECT - COUNT ( 58 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9141
SELECT + SUM( DISTINCT + 56 )
----
56

skipif mysql # not compatible
query I rowsort label-9141
SELECT + SUM ( DISTINCT + 56 )
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9142
SELECT - + CAST( 20 AS SIGNED ) col0
----
-20

skipif mysql # not compatible
query I rowsort label-9142
SELECT - + CAST ( 20 AS INTEGER ) col0
----
-20

query I rowsort
SELECT ALL + 24 * 15 + 9
----
369

onlyif mysql # aggregate syntax: 
query II rowsort label-9144
SELECT DISTINCT COUNT( * ) - 24, - 86 AS col0
----
-23
-86

skipif mysql # not compatible
query II rowsort label-9144
SELECT DISTINCT COUNT ( * ) - 24, - 86 AS col0
----
-23
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-9145
SELECT - + COUNT( * ) + - - 21 AS col2
----
20

skipif mysql # not compatible
query I rowsort label-9145
SELECT - + COUNT ( * ) + - - 21 AS col2
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-9146
SELECT DISTINCT + 69 DIV - 46 - - 73
----
72

skipif mysql # not compatible
query I rowsort label-9146
SELECT DISTINCT + 69 / - 46 - - 73
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9147
SELECT CAST( - 30 AS SIGNED ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-9147
SELECT CAST ( - 30 AS INTEGER ) AS col0
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9148
SELECT + 93 DIV 26 + + - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-9148
SELECT + 93 / 26 + + - COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-9149
SELECT - 55 col0, COUNT( * ) * - 79
----
-55
-79

skipif mysql # not compatible
query II rowsort label-9149
SELECT - 55 col0, COUNT ( * ) * - 79
----
-55
-79

query II rowsort
SELECT ALL 67, + 16 AS col1
----
67
16

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9151
SELECT ALL CAST( NULL AS DECIMAL ) * + + COUNT( * ) * - - 99
----
NULL

skipif mysql # not compatible
query I rowsort label-9151
SELECT ALL CAST ( NULL AS REAL ) * + + COUNT ( * ) * - - 99
----
NULL

query I rowsort
SELECT ALL - 10 col0
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9153
SELECT ALL COUNT( ALL + + CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-9153
SELECT ALL COUNT ( ALL + + CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9154
SELECT DISTINCT + MIN( + 70 )
----
70

skipif mysql # not compatible
query I rowsort label-9154
SELECT DISTINCT + MIN ( + 70 )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9155
SELECT + SUM( 16 ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-9155
SELECT + SUM ( 16 ) AS col1
----
16

query I rowsort
SELECT ALL - 98 * - 30
----
2940

onlyif mysql # aggregate syntax: 
query I rowsort label-9157
SELECT DISTINCT SUM( + ( + 62 ) ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-9157
SELECT DISTINCT SUM ( + ( + 62 ) ) AS col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9158
SELECT ALL SUM( + 48 ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-9158
SELECT ALL SUM ( + 48 ) AS col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9159
SELECT - COUNT( * ) - + + COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-9159
SELECT - COUNT ( * ) - + + COUNT ( * )
----
-2

query I rowsort
SELECT ALL - 33 * - + 76 * 68
----
170544

onlyif mysql # aggregate syntax: 
query I rowsort label-9161
SELECT DISTINCT - + COUNT( * ) * + - COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9161
SELECT DISTINCT - + COUNT ( * ) * + - COUNT ( * ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9162
SELECT MAX( - CAST( NULL AS SIGNED ) ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9162
SELECT MAX ( - CAST ( NULL AS INTEGER ) ) * - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9163
SELECT DISTINCT - 57 + + COALESCE ( - 9, + + COUNT( * ) ) AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-9163
SELECT DISTINCT - 57 + + COALESCE ( - 9, + + COUNT ( * ) ) AS col2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9164
SELECT SUM( ( + + 13 ) ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-9164
SELECT SUM ( ( + + 13 ) ) AS col0
----
13

query I rowsort
SELECT 30 * - 29 AS col1
----
-870

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9166
SELECT CAST( + - COUNT( * ) AS SIGNED ) * + - 88
----
88

skipif mysql # not compatible
query I rowsort label-9166
SELECT CAST ( + - COUNT ( * ) AS INTEGER ) * + - 88
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-9167
SELECT - 44 AS col1, MAX( DISTINCT - ( - 72 ) ) * - COUNT( * )
----
-44
-72

skipif mysql # not compatible
query II rowsort label-9167
SELECT - 44 AS col1, MAX ( DISTINCT - ( - 72 ) ) * - COUNT ( * )
----
-44
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-9168
SELECT ALL 9 DIV + 43
----
0

skipif mysql # not compatible
query I rowsort label-9168
SELECT ALL 9 / + 43
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9169
SELECT ALL - SUM( 12 )
----
-12

skipif mysql # not compatible
query I rowsort label-9169
SELECT ALL - SUM ( 12 )
----
-12

query I rowsort
SELECT ALL + - 82
----
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9171
SELECT - - COUNT( * ) DIV + 42 + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9171
SELECT - - COUNT ( * ) / + 42 + COUNT ( * ) AS col1
----
1

query I rowsort
SELECT DISTINCT + ( 55 )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9173
SELECT ALL 98 + - COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-9173
SELECT ALL 98 + - COUNT ( * )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9174
SELECT - COUNT( * ) + + + 82 AS col1
----
81

skipif mysql # not compatible
query I rowsort label-9174
SELECT - COUNT ( * ) + + + 82 AS col1
----
81

query I rowsort
SELECT ALL + 40 - - 92
----
132

query I rowsort
SELECT DISTINCT + ( 68 ) AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9177
SELECT + - MAX( ALL + 90 ) AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-9177
SELECT + - MAX ( ALL + 90 ) AS col1
----
-90

query I rowsort
SELECT ALL ( - 22 ) AS col0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-9179
SELECT COUNT( - 9 )
----
1

skipif mysql # not compatible
query I rowsort label-9179
SELECT COUNT ( - 9 )
----
1

query I rowsort
SELECT ALL 22 + 41 AS col0
----
63

query I rowsort
SELECT ALL 87 - - ( + 37 )
----
124

query I rowsort
SELECT 71 + - + 79 + 70
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9183
SELECT DISTINCT 80 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9183
SELECT DISTINCT 80 * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9184
SELECT CAST( + + 9 AS SIGNED ) + 38 AS col0
----
47

skipif mysql # not compatible
query I rowsort label-9184
SELECT CAST ( + + 9 AS INTEGER ) + 38 AS col0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9185
SELECT + COUNT( - 50 ) + + - 79
----
-78

skipif mysql # not compatible
query I rowsort label-9185
SELECT + COUNT ( - 50 ) + + - 79
----
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-9186
SELECT - 68 AS col1, COUNT( * ) AS col1
----
-68
1

skipif mysql # not compatible
query II rowsort label-9186
SELECT - 68 AS col1, COUNT ( * ) AS col1
----
-68
1

query I rowsort
SELECT - ( - - 35 ) AS col1
----
-35

query I rowsort
SELECT 65 * - + 29 AS col1
----
-1885

query I rowsort
SELECT DISTINCT 0 col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9190
SELECT DISTINCT ( CAST( NULL AS SIGNED ) ) AS col0, + COUNT( * ) col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-9190
SELECT DISTINCT ( CAST ( NULL AS INTEGER ) ) AS col0, + COUNT ( * ) col0
----
NULL
1

query I rowsort
SELECT ALL + 60 + - 23
----
37

query I rowsort
SELECT ALL ( 55 ) AS col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9193
SELECT ALL + MAX( DISTINCT - + 27 ) AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-9193
SELECT ALL + MAX ( DISTINCT - + 27 ) AS col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-9194
SELECT ALL - COUNT( * ) + - 63
----
-64

skipif mysql # not compatible
query I rowsort label-9194
SELECT ALL - COUNT ( * ) + - 63
----
-64

query II rowsort
SELECT 36, 43 AS col0
----
36
43

query I rowsort
SELECT ( 6 ) AS col1
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9197
SELECT ALL - - ( - MIN( ALL + CAST( NULL AS SIGNED ) ) ) * + + 39
----
NULL

skipif mysql # not compatible
query I rowsort label-9197
SELECT ALL - - ( - MIN ( ALL + CAST ( NULL AS INTEGER ) ) ) * + + 39
----
NULL

query I rowsort
SELECT DISTINCT 15 * 36 AS col1
----
540

onlyif mysql # DIV for integer division: 
query I rowsort label-9199
SELECT 0 DIV + 52
----
0

skipif mysql # not compatible
query I rowsort label-9199
SELECT 0 / + 52
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9200
SELECT ALL MIN( DISTINCT + - 39 ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-9200
SELECT ALL MIN ( DISTINCT + - 39 ) AS col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-9201
SELECT ALL 45 + - COUNT( * )
----
44

skipif mysql # not compatible
query I rowsort label-9201
SELECT ALL 45 + - COUNT ( * )
----
44

query II rowsort
SELECT DISTINCT + 94 AS col0, 41 col0
----
94
41

query II rowsort
SELECT + 71 AS col2, 96
----
71
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9204
SELECT - - CAST( NULL AS SIGNED ) col0, + 14
----
NULL
14

skipif mysql # not compatible
query II rowsort label-9204
SELECT - - CAST ( NULL AS INTEGER ) col0, + 14
----
NULL
14

query I rowsort
SELECT - 51 + + 11
----
-40

query I rowsort
SELECT - 62 * 10 AS col0
----
-620

onlyif mysql # aggregate syntax: 
query II rowsort label-9207
SELECT DISTINCT - - 80 AS col1, + COUNT( * ) AS col1
----
80
1

skipif mysql # not compatible
query II rowsort label-9207
SELECT DISTINCT - - 80 AS col1, + COUNT ( * ) AS col1
----
80
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9208
SELECT ALL + COUNT( * ) - - 4 + - - ( + ( + 82 ) )
----
87

skipif mysql # not compatible
query I rowsort label-9208
SELECT ALL + COUNT ( * ) - - 4 + - - ( + ( + 82 ) )
----
87

query II rowsort
SELECT 25 * + 53, 71 AS col2
----
1325
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9210
SELECT COUNT( DISTINCT 17 ) * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9210
SELECT COUNT ( DISTINCT 17 ) * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9211
SELECT + MIN( ALL + - 37 ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-9211
SELECT + MIN ( ALL + - 37 ) AS col2
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-9212
SELECT DISTINCT SUM( - - 89 )
----
89

skipif mysql # not compatible
query I rowsort label-9212
SELECT DISTINCT SUM ( - - 89 )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9213
SELECT ALL - COUNT( * ) * + + 81 + - - 51 AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-9213
SELECT ALL - COUNT ( * ) * + + 81 + - - 51 AS col2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-9214
SELECT - 69 * - COUNT( * )
----
69

skipif mysql # not compatible
query I rowsort label-9214
SELECT - 69 * - COUNT ( * )
----
69

query I rowsort
SELECT DISTINCT + ( + 15 ) AS col1
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9216
SELECT - CAST( - - 87 AS SIGNED )
----
-87

skipif mysql # not compatible
query I rowsort label-9216
SELECT - CAST ( - - 87 AS INTEGER )
----
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-9217
SELECT COUNT( * ) col0, 91 col2
----
1
91

skipif mysql # not compatible
query II rowsort label-9217
SELECT COUNT ( * ) col0, 91 col2
----
1
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9218
SELECT - CAST( NULL AS SIGNED ) - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-9218
SELECT - CAST ( NULL AS INTEGER ) - 74
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9219
SELECT DISTINCT CAST( + 1 AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-9219
SELECT DISTINCT CAST ( + 1 AS INTEGER )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9220
SELECT - 3 DIV - 27 * + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-9220
SELECT - 3 / - 27 * + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9221
SELECT ALL + 8, - COUNT( * ) AS col0
----
8
-1

skipif mysql # not compatible
query II rowsort label-9221
SELECT ALL + 8, - COUNT ( * ) AS col0
----
8
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9222
SELECT ALL + CAST( NULL AS SIGNED ) / - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9222
SELECT ALL + CAST ( NULL AS INTEGER ) / - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL - ( 85 ) col2
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9224
SELECT ALL CAST( NULL AS SIGNED ) + + SUM( ALL 53 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9224
SELECT ALL CAST ( NULL AS INTEGER ) + + SUM ( ALL 53 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9225
SELECT ALL COUNT( * ) * COUNT( + + 17 ) + 29 AS col0
----
30

skipif mysql # not compatible
query I rowsort label-9225
SELECT ALL COUNT ( * ) * COUNT ( + + 17 ) + 29 AS col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9226
SELECT DISTINCT - MIN( DISTINCT + 14 )
----
-14

skipif mysql # not compatible
query I rowsort label-9226
SELECT DISTINCT - MIN ( DISTINCT + 14 )
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-9227
SELECT 42 AS col0, 76 * - 0 * + - COUNT( * ) AS col1
----
42
0

skipif mysql # not compatible
query II rowsort label-9227
SELECT 42 AS col0, 76 * - 0 * + - COUNT ( * ) AS col1
----
42
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9228
SELECT ALL + COUNT( * ) + - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9228
SELECT ALL + COUNT ( * ) + - COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9229
SELECT DISTINCT + COUNT( * ) * - - MAX( ALL + 45 ) * + - 57 AS col2
----
-2565

skipif mysql # not compatible
query I rowsort label-9229
SELECT DISTINCT + COUNT ( * ) * - - MAX ( ALL + 45 ) * + - 57 AS col2
----
-2565

onlyif mysql # aggregate syntax: 
query I rowsort label-9230
SELECT ALL - COUNT( * ) * 59 AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-9230
SELECT ALL - COUNT ( * ) * 59 AS col1
----
-59

query I rowsort
SELECT + + 62 + - + 33
----
29

query I rowsort
SELECT DISTINCT + 95 AS col1
----
95

query I rowsort
SELECT ( 98 ) col2
----
98

query I rowsort
SELECT - - 21 AS col0
----
21

query I rowsort
SELECT 74 col0
----
74

query I rowsort
SELECT ALL - ( - + 85 ) AS col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9237
SELECT ALL + COUNT( * ) + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-9237
SELECT ALL + COUNT ( * ) + COUNT ( * )
----
2

query I rowsort
SELECT - 27 col1
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-9239
SELECT + 45 + + COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-9239
SELECT + 45 + + COUNT ( * )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9240
SELECT - 82 * - COUNT( 36 ) + COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-9240
SELECT - 82 * - COUNT ( 36 ) + COUNT ( * )
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9241
SELECT CAST( NULL AS SIGNED ), CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9241
SELECT CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER )
----
NULL
NULL

query I rowsort
SELECT ALL - 0 col0
----
0

query I rowsort
SELECT + ( - + 68 )
----
-68

query II rowsort
SELECT - 24 AS col2, + 64
----
-24
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9245
SELECT 87 + CAST( + 8 AS SIGNED )
----
95

skipif mysql # not compatible
query I rowsort label-9245
SELECT 87 + CAST ( + 8 AS INTEGER )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9246
SELECT MIN( - 43 ) AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-9246
SELECT MIN ( - 43 ) AS col1
----
-43

query I rowsort
SELECT 88 * + 81 AS col0
----
7128

query II rowsort
SELECT 22, + 92 AS col0
----
22
92

query I rowsort
SELECT DISTINCT - 26 + - + 11 + - 16
----
-53

query I rowsort
SELECT ALL 79 + - + 36 col1
----
43

query I rowsort
SELECT ( 83 ) col1
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-9252
SELECT - 26 AS col0, - MIN( 14 )
----
-26
-14

skipif mysql # not compatible
query II rowsort label-9252
SELECT - 26 AS col0, - MIN ( 14 )
----
-26
-14

query I rowsort
SELECT + - CASE WHEN NOT ( NULL ) >= NULL THEN NULL ELSE 21 END col2
----
-21

query I rowsort
SELECT DISTINCT + - 55 AS col0
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9255
SELECT - + 28 DIV + COUNT( * )
----
-28

skipif mysql # not compatible
query I rowsort label-9255
SELECT - + 28 / + COUNT ( * )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-9256
SELECT DISTINCT + MAX( - 76 ) * + 23 col2
----
-1748

skipif mysql # not compatible
query I rowsort label-9256
SELECT DISTINCT + MAX ( - 76 ) * + 23 col2
----
-1748

onlyif mysql # aggregate syntax: 
query I rowsort label-9257
SELECT - MAX( ALL - 34 )
----
34

skipif mysql # not compatible
query I rowsort label-9257
SELECT - MAX ( ALL - 34 )
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-9258
SELECT - - 6 DIV + COALESCE ( - 34, - 20 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9258
SELECT - - 6 / + COALESCE ( - 34, - 20 ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9259
SELECT + + CAST( NULL AS SIGNED ) + + + ( + + COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9259
SELECT + + CAST ( NULL AS INTEGER ) + + + ( + + COUNT ( * ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9260
SELECT + + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9260
SELECT + + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) col0
----
NULL

query I rowsort
SELECT ALL 34 + - 3 AS col1
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9262
SELECT DISTINCT - CAST( + - NULLIF ( 80, - - 36 ) AS SIGNED ) * + COUNT( * ) + - 37
----
43

skipif mysql # not compatible
query I rowsort label-9262
SELECT DISTINCT - CAST ( + - NULLIF ( 80, - - 36 ) AS INTEGER ) * + COUNT ( * ) + - 37
----
43

query I rowsort
SELECT ALL - 99 * 81
----
-8019

query I rowsort
SELECT + + 36 AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9265
SELECT DISTINCT - 57 + + COUNT( * ) AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-9265
SELECT DISTINCT - 57 + + COUNT ( * ) AS col2
----
-56

query I rowsort
SELECT 0 * 92 AS col1
----
0

query I rowsort
SELECT DISTINCT - 48 col2
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-9268
SELECT DISTINCT - SUM( ALL + 21 ) AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-9268
SELECT DISTINCT - SUM ( ALL + 21 ) AS col0
----
-21

query I rowsort
SELECT - + 23 AS col0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-9270
SELECT ALL + - COUNT( * ) + - 16
----
-17

skipif mysql # not compatible
query I rowsort label-9270
SELECT ALL + - COUNT ( * ) + - 16
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-9271
SELECT ALL + 54 DIV - 49
----
-1

skipif mysql # not compatible
query I rowsort label-9271
SELECT ALL + 54 / - 49
----
-1

query II rowsort
SELECT ALL + ( - 22 ) * 60, - ( + 62 ) + 87 AS col2
----
-1320
25

query I rowsort
SELECT - ( - 80 )
----
80

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9274
SELECT ALL + MAX( - CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9274
SELECT ALL + MAX ( - CAST ( NULL AS REAL ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9275
SELECT ALL + 86 AS col2, COUNT( * ) AS col2
----
86
1

skipif mysql # not compatible
query II rowsort label-9275
SELECT ALL + 86 AS col2, COUNT ( * ) AS col2
----
86
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9276
SELECT CAST( NULL AS SIGNED ) AS col2, 37
----
NULL
37

skipif mysql # not compatible
query II rowsort label-9276
SELECT CAST ( NULL AS INTEGER ) AS col2, 37
----
NULL
37

query I rowsort
SELECT DISTINCT ( + 55 ) AS col1
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-9278
SELECT - - 88, + COUNT( * ) * + 94 AS col2
----
88
94

skipif mysql # not compatible
query II rowsort label-9278
SELECT - - 88, + COUNT ( * ) * + 94 AS col2
----
88
94

query II rowsort
SELECT - 36, + 63 AS col2
----
-36
63

query I rowsort
SELECT 41 + + 36 AS col1
----
77

query I rowsort
SELECT + + 69 * - 22 - - 41 AS col2
----
-1477

onlyif mysql # aggregate syntax: 
query I rowsort label-9282
SELECT DISTINCT - COALESCE ( + - COUNT( * ), + COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9282
SELECT DISTINCT - COALESCE ( + - COUNT ( * ), + COUNT ( * ) ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9283
SELECT ALL ( - CAST( - ( 14 ) AS SIGNED ) )
----
14

skipif mysql # not compatible
query I rowsort label-9283
SELECT ALL ( - CAST ( - ( 14 ) AS INTEGER ) )
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-9284
SELECT + 5 DIV - + 66
----
0

skipif mysql # not compatible
query I rowsort label-9284
SELECT + 5 / - + 66
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9285
SELECT 41 + - COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-9285
SELECT 41 + - COUNT ( * )
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9286
SELECT DISTINCT - CAST( ( + 60 ) AS SIGNED ) col2
----
-60

skipif mysql # not compatible
query I rowsort label-9286
SELECT DISTINCT - CAST ( ( + 60 ) AS INTEGER ) col2
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-9287
SELECT MAX( ALL + - 23 )
----
-23

skipif mysql # not compatible
query I rowsort label-9287
SELECT MAX ( ALL + - 23 )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-9288
SELECT - SUM( - + 14 ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-9288
SELECT - SUM ( - + 14 ) AS col1
----
14

query I rowsort
SELECT - 8 * - 98
----
784

query I rowsort
SELECT DISTINCT + + 83 AS col0
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9291
SELECT - CAST( - 28 AS SIGNED ) * + - 1 col2
----
-28

skipif mysql # not compatible
query I rowsort label-9291
SELECT - CAST ( - 28 AS INTEGER ) * + - 1 col2
----
-28

query I rowsort
SELECT + 74 * 2
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-9293
SELECT + COUNT( * ) * + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-9293
SELECT + COUNT ( * ) * + - COUNT ( * )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9294
SELECT 57 + CAST( COUNT( * ) AS SIGNED )
----
58

skipif mysql # not compatible
query I rowsort label-9294
SELECT 57 + CAST ( COUNT ( * ) AS INTEGER )
----
58

query I rowsort
SELECT + - ( + 35 )
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9296
SELECT + CAST( - + 43 AS SIGNED ) AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-9296
SELECT + CAST ( - + 43 AS INTEGER ) AS col1
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-9297
SELECT + - MAX( ALL - 71 ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-9297
SELECT + - MAX ( ALL - 71 ) AS col0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9298
SELECT ALL COUNT( 63 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9298
SELECT ALL COUNT ( 63 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9299
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-9299
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 59
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9300
SELECT ALL - MAX( + 81 ) AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-9300
SELECT ALL - MAX ( + 81 ) AS col0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9301
SELECT + - COUNT( * ) + - ( COUNT( * ) ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-9301
SELECT + - COUNT ( * ) + - ( COUNT ( * ) ) AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9302
SELECT - ( COUNT( * ) ) + + - COUNT( * ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-9302
SELECT - ( COUNT ( * ) ) + + - COUNT ( * ) AS col2
----
-2

query I rowsort
SELECT DISTINCT + 67 col1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9304
SELECT - 51 * + + ( COUNT( * ) ) * + COUNT( * )
----
-51

skipif mysql # not compatible
query I rowsort label-9304
SELECT - 51 * + + ( COUNT ( * ) ) * + COUNT ( * )
----
-51

query II rowsort
SELECT ALL + 77 AS col2, - 47
----
77
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-9306
SELECT NULLIF ( COUNT( * ), + 65 )
----
1

skipif mysql # not compatible
query I rowsort label-9306
SELECT NULLIF ( COUNT ( * ), + 65 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9307
SELECT DISTINCT COUNT( 7 )
----
1

skipif mysql # not compatible
query I rowsort label-9307
SELECT DISTINCT COUNT ( 7 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9308
SELECT + MIN( 48 ) + + + 78 + NULLIF ( + + 5, - COUNT( * ) )
----
131

skipif mysql # not compatible
query I rowsort label-9308
SELECT + MIN ( 48 ) + + + 78 + NULLIF ( + + 5, - COUNT ( * ) )
----
131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9309
SELECT ALL + CAST( 92 AS SIGNED ) DIV COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-9309
SELECT ALL + CAST ( 92 AS INTEGER ) / COUNT ( * )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9310
SELECT - ( + SUM( ALL - 21 ) )
----
21

skipif mysql # not compatible
query I rowsort label-9310
SELECT - ( + SUM ( ALL - 21 ) )
----
21

query I rowsort
SELECT + 98 - - 69
----
167

onlyif mysql # aggregate syntax: 
query I rowsort label-9312
SELECT ALL - 80 * + COUNT( * ) AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-9312
SELECT ALL - 80 * + COUNT ( * ) AS col2
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9313
SELECT COUNT( DISTINCT CAST( NULL AS SIGNED ) ) + 45 AS col1
----
45

skipif mysql # not compatible
query I rowsort label-9313
SELECT COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) + 45 AS col1
----
45

query I rowsort
SELECT - - 70 AS col1
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9315
SELECT ALL - CAST( NULL AS SIGNED ) * - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9315
SELECT ALL - CAST ( NULL AS INTEGER ) * - + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9316
SELECT ALL 15 + + 47 / - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9316
SELECT ALL 15 + + 47 / - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL - ( - ( - 96 ) )
----
-96

query I rowsort
SELECT + 27 col2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9319
SELECT ALL COUNT( * ) * 62 AS col0
----
62

skipif mysql # not compatible
query I rowsort label-9319
SELECT ALL COUNT ( * ) * 62 AS col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9320
SELECT COUNT( * ) + 92
----
93

skipif mysql # not compatible
query I rowsort label-9320
SELECT COUNT ( * ) + 92
----
93

query I rowsort
SELECT ALL 54 + + 29
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9322
SELECT ALL + COUNT( * ) - - 84 AS col0
----
85

skipif mysql # not compatible
query I rowsort label-9322
SELECT ALL + COUNT ( * ) - - 84 AS col0
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9323
SELECT DISTINCT + CAST( NULL AS SIGNED ) * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9323
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 23 col0
----
23

query I rowsort
SELECT ALL 34 * + 94 + ( 17 )
----
3213

query I rowsort
SELECT ALL + ( 7 ) AS col0
----
7

query I rowsort
SELECT ALL + ( 15 ) col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9328
SELECT DISTINCT + 41 * - COUNT( * ) - + 37
----
-78

skipif mysql # not compatible
query I rowsort label-9328
SELECT DISTINCT + 41 * - COUNT ( * ) - + 37
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-9329
SELECT DISTINCT - COUNT( * ) * - 15 AS col2
----
15

skipif mysql # not compatible
query I rowsort label-9329
SELECT DISTINCT - COUNT ( * ) * - 15 AS col2
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9330
SELECT + + 35 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9330
SELECT + + 35 / - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - + 43 AS col0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-9332
SELECT + COUNT( * ) + 12 * + 1 col1
----
13

skipif mysql # not compatible
query I rowsort label-9332
SELECT + COUNT ( * ) + 12 * + 1 col1
----
13

query I rowsort
SELECT ALL + 49 * - 49
----
-2401

onlyif mysql # aggregate syntax: 
query I rowsort label-9334
SELECT - COUNT( * ) + - - ( + ( - ( COUNT( * ) ) ) )
----
-2

skipif mysql # not compatible
query I rowsort label-9334
SELECT - COUNT ( * ) + - - ( + ( - ( COUNT ( * ) ) ) )
----
-2

query I rowsort
SELECT + - 32 col1
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-9336
SELECT DISTINCT + 51 + COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-9336
SELECT DISTINCT + 51 + COUNT ( * )
----
52

query I rowsort
SELECT - + ( - 22 )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9338
SELECT SUM( DISTINCT 3 ) * - - 91 col2
----
273

skipif mysql # not compatible
query I rowsort label-9338
SELECT SUM ( DISTINCT 3 ) * - - 91 col2
----
273

onlyif mysql # aggregate syntax: 
query I rowsort label-9339
SELECT DISTINCT + - COUNT( * ) * + - 80
----
80

skipif mysql # not compatible
query I rowsort label-9339
SELECT DISTINCT + - COUNT ( * ) * + - 80
----
80

query I rowsort
SELECT 39 * + ( - 12 ) AS col2
----
-468

onlyif mysql # aggregate syntax: 
query I rowsort label-9341
SELECT COUNT( * ) + 52 AS col2
----
53

skipif mysql # not compatible
query I rowsort label-9341
SELECT COUNT ( * ) + 52 AS col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9342
SELECT 13 * - - COUNT( * ) * - 3 AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-9342
SELECT 13 * - - COUNT ( * ) * - 3 AS col2
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-9343
SELECT ALL 89 * - + COUNT( * ) AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-9343
SELECT ALL 89 * - + COUNT ( * ) AS col1
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-9344
SELECT - SUM( + 55 ) * - 79
----
4345

skipif mysql # not compatible
query I rowsort label-9344
SELECT - SUM ( + 55 ) * - 79
----
4345

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9345
SELECT + MAX( DISTINCT CAST( - 38 AS SIGNED ) )
----
-38

skipif mysql # not compatible
query I rowsort label-9345
SELECT + MAX ( DISTINCT CAST ( - 38 AS INTEGER ) )
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-9346
SELECT - 2 + - COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-9346
SELECT - 2 + - COUNT ( * )
----
-3

query II rowsort
SELECT 30, - 54 AS col0
----
30
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-9348
SELECT ALL MIN( ALL - 48 ) col2
----
-48

skipif mysql # not compatible
query I rowsort label-9348
SELECT ALL MIN ( ALL - 48 ) col2
----
-48

query I rowsort
SELECT ALL ( + 79 ) AS col2
----
79

query I rowsort
SELECT - 43 + + 32
----
-11

query I rowsort
SELECT - + 72 + + 84
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9352
SELECT CAST( - + CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9352
SELECT CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9353
SELECT - 35 * COUNT( * ) AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-9353
SELECT - 35 * COUNT ( * ) AS col2
----
-35

query I rowsort
SELECT ALL - + 1 col2
----
-1

query I rowsort
SELECT ALL - - 54 AS col1
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9356
SELECT 88 DIV SUM( ALL - - 55 ) * + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9356
SELECT 88 / SUM ( ALL - - 55 ) * + COUNT ( * ) AS col2
----
1

query I rowsort
SELECT 38 * - 65
----
-2470

query I rowsort
SELECT - 52 * - 19 AS col1
----
988

query I rowsort
SELECT + ( - + 80 ) AS col2
----
-80

query I rowsort
SELECT ALL + + 8 * + ( + 35 )
----
280

onlyif mysql # aggregate syntax: 
query I rowsort label-9361
SELECT ALL - COUNT( * ) * - + 24
----
24

skipif mysql # not compatible
query I rowsort label-9361
SELECT ALL - COUNT ( * ) * - + 24
----
24

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9362
SELECT DISTINCT COUNT( * ) + 51 * + ( + + CAST( NULL AS DECIMAL ) ) AS col1, 83 AS col0
----
NULL
83

skipif mysql # not compatible
query II rowsort label-9362
SELECT DISTINCT COUNT ( * ) + 51 * + ( + + CAST ( NULL AS REAL ) ) AS col1, 83 AS col0
----
NULL
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9363
SELECT COUNT( * ) * + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9363
SELECT COUNT ( * ) * + COUNT ( * ) AS col2
----
1

query I rowsort
SELECT + 90 * + - 68 AS col2
----
-6120

onlyif mysql # aggregate syntax: 
query II rowsort label-9365
SELECT + COUNT( * ) + - - COUNT( * ) + - 8, 30 AS col1
----
-6
30

skipif mysql # not compatible
query II rowsort label-9365
SELECT + COUNT ( * ) + - - COUNT ( * ) + - 8, 30 AS col1
----
-6
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9366
SELECT - SUM( ALL + 48 ) + - COUNT( * ) AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-9366
SELECT - SUM ( ALL + 48 ) + - COUNT ( * ) AS col1
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-9367
SELECT ALL + MIN( DISTINCT + 57 )
----
57

skipif mysql # not compatible
query I rowsort label-9367
SELECT ALL + MIN ( DISTINCT + 57 )
----
57

query I rowsort
SELECT DISTINCT + - 5
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9369
SELECT + SUM( ALL + - 32 ) + 24
----
-8

skipif mysql # not compatible
query I rowsort label-9369
SELECT + SUM ( ALL + - 32 ) + 24
----
-8

query I rowsort
SELECT + ( - + 45 ) AS col2
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9371
SELECT CAST( + 89 AS SIGNED ) col0
----
89

skipif mysql # not compatible
query I rowsort label-9371
SELECT CAST ( + 89 AS INTEGER ) col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9372
SELECT - SUM( DISTINCT - 12 )
----
12

skipif mysql # not compatible
query I rowsort label-9372
SELECT - SUM ( DISTINCT - 12 )
----
12

query I rowsort
SELECT ALL + 72 * - 18 * + 48 AS col1
----
-62208

query I rowsort
SELECT ALL - 0 - - 59 + + 89 AS col1
----
148

query I rowsort
SELECT DISTINCT 87 col1
----
87

query I rowsort
SELECT 23 - - - 0 AS col0
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9377
SELECT DISTINCT - CAST( - 78 AS SIGNED ) * 83 * + 25
----
161850

skipif mysql # not compatible
query I rowsort label-9377
SELECT DISTINCT - CAST ( - 78 AS INTEGER ) * 83 * + 25
----
161850

onlyif mysql # aggregate syntax: 
query I rowsort label-9378
SELECT - 97 * MIN( DISTINCT + + 43 )
----
-4171

skipif mysql # not compatible
query I rowsort label-9378
SELECT - 97 * MIN ( DISTINCT + + 43 )
----
-4171

onlyif mysql # aggregate syntax: 
query I rowsort label-9379
SELECT + SUM( ALL + 42 ) col0
----
42

skipif mysql # not compatible
query I rowsort label-9379
SELECT + SUM ( ALL + 42 ) col0
----
42

query I rowsort
SELECT ALL + ( - + ( 11 ) )
----
-11

query I rowsort
SELECT + - 33 + - 64 AS col2
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9382
SELECT ALL ( + + COUNT( * ) ) - 70 + + + COUNT( * ) AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-9382
SELECT ALL ( + + COUNT ( * ) ) - 70 + + + COUNT ( * ) AS col0
----
-68

query I rowsort
SELECT - - 39 * - 33
----
-1287

query II rowsort
SELECT DISTINCT + 63 AS col2, + 94 AS col1
----
63
94

query I rowsort
SELECT - 54 * - + 81 AS col0
----
4374

query I rowsort
SELECT + 29 col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9387
SELECT 22 + + 62 + COUNT( * ) * - COUNT( * ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-9387
SELECT 22 + + 62 + COUNT ( * ) * - COUNT ( * ) AS col0
----
83

query I rowsort
SELECT DISTINCT + 60 + ( 95 ) AS col0
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-9389
SELECT ( + COUNT( * ) ) + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-9389
SELECT ( + COUNT ( * ) ) + COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9390
SELECT 99 * + + MIN( DISTINCT - 44 )
----
-4356

skipif mysql # not compatible
query I rowsort label-9390
SELECT 99 * + + MIN ( DISTINCT - 44 )
----
-4356

query II rowsort
SELECT ALL + ( - 36 ) AS col2, - 85
----
-36
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9392
SELECT ALL COUNT( ALL CAST( NULL AS SIGNED ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9392
SELECT ALL COUNT ( ALL CAST ( NULL AS INTEGER ) ) AS col0
----
0

query I rowsort
SELECT - 9 col0
----
-9

query I rowsort
SELECT ALL + 11 col0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9395
SELECT + + COUNT( DISTINCT - - 87 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-9395
SELECT + + COUNT ( DISTINCT - - 87 ) col2
----
1

query I rowsort
SELECT ALL ( - ( - 62 ) ) AS col0
----
62

query I rowsort
SELECT ALL + + 53 AS col1
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9398
SELECT + COUNT( * ) - 3
----
-2

skipif mysql # not compatible
query I rowsort label-9398
SELECT + COUNT ( * ) - 3
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9399
SELECT - 27 * + + MAX( DISTINCT - - 3 )
----
-81

skipif mysql # not compatible
query I rowsort label-9399
SELECT - 27 * + + MAX ( DISTINCT - - 3 )
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9400
SELECT + COUNT( * ) + - CAST( NULL AS SIGNED ) + - COUNT( ALL + ( - 83 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9400
SELECT + COUNT ( * ) + - CAST ( NULL AS INTEGER ) + - COUNT ( ALL + ( - 83 ) )
----
NULL

query I rowsort
SELECT + 55 * - - 24
----
1320

onlyif mysql # aggregate syntax: 
query I rowsort label-9402
SELECT - - 31 * + COUNT( * ) + + - 82 AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-9402
SELECT - - 31 * + COUNT ( * ) + + - 82 AS col1
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9403
SELECT 38 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9403
SELECT 38 * - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 61 * - 48 col2
----
-2928

onlyif mysql # aggregate syntax: 
query I rowsort label-9405
SELECT COUNT( * ) + - 31 AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-9405
SELECT COUNT ( * ) + - 31 AS col1
----
-30

query I rowsort
SELECT - + 29 col1
----
-29

query I rowsort
SELECT NULLIF ( + 87, + - ( + ( + - 53 ) ) * + 48 ) * + 32 * 60
----
167040

query I rowsort
SELECT + 98 * - + 65 * + 69 - + 83
----
-439613

query I rowsort
SELECT ALL 20 - 35 AS col0
----
-15

query I rowsort
SELECT + 69 + + 12
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9411
SELECT ALL + COUNT( * ) * + - 30 AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-9411
SELECT ALL + COUNT ( * ) * + - 30 AS col0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-9412
SELECT - ( + SUM( DISTINCT + + 77 ) ) * - 7 AS col1
----
539

skipif mysql # not compatible
query I rowsort label-9412
SELECT - ( + SUM ( DISTINCT + + 77 ) ) * - 7 AS col1
----
539

query I rowsort
SELECT NULLIF ( + 9, 15 ) col1
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9414
SELECT ALL - 98 DIV - SUM( ALL - 10 ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-9414
SELECT ALL - 98 / - SUM ( ALL - 10 ) AS col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9415
SELECT DISTINCT - + 66 + MAX( 5 )
----
-61

skipif mysql # not compatible
query I rowsort label-9415
SELECT DISTINCT - + 66 + MAX ( 5 )
----
-61

query I rowsort
SELECT ALL - 95 * 43 AS col1
----
-4085

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9417
SELECT + CAST( NULL AS SIGNED ) * - 15 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9417
SELECT + CAST ( NULL AS INTEGER ) * - 15 AS col1
----
NULL

query II rowsort
SELECT DISTINCT + 34, - 17 AS col0
----
34
-17

query I rowsort
SELECT ( - 87 ) AS col0
----
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9420
SELECT 76 * - 31 DIV - COUNT( * )
----
2356

skipif mysql # not compatible
query I rowsort label-9420
SELECT 76 * - 31 / - COUNT ( * )
----
2356

query I rowsort
SELECT DISTINCT ( - 40 ) AS col0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-9422
SELECT DISTINCT + 8 * COUNT( * ) * - COUNT( - 64 ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-9422
SELECT DISTINCT + 8 * COUNT ( * ) * - COUNT ( - 64 ) AS col2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-9423
SELECT + COUNT( * ) + - 80 AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-9423
SELECT + COUNT ( * ) + - 80 AS col2
----
-79

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9424
SELECT + CAST( NULL AS DECIMAL ) * - COUNT( * ) - + + 31
----
NULL

skipif mysql # not compatible
query I rowsort label-9424
SELECT + CAST ( NULL AS REAL ) * - COUNT ( * ) - + + 31
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9425
SELECT ALL + - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9425
SELECT ALL + - CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9426
SELECT + + COUNT( * ) * - 31 AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-9426
SELECT + + COUNT ( * ) * - 31 AS col2
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9427
SELECT + CAST( NULL AS SIGNED ) + + 19 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9427
SELECT + CAST ( NULL AS INTEGER ) + + 19 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9428
SELECT DISTINCT + MAX( DISTINCT - 10 ) AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-9428
SELECT DISTINCT + MAX ( DISTINCT - 10 ) AS col0
----
-10

query I rowsort
SELECT ( - 80 ) AS col1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-9430
SELECT - COUNT( * ) - + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-9430
SELECT - COUNT ( * ) - + - COUNT ( * )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9431
SELECT ALL + COALESCE ( - + 67, + - CAST( NULL AS SIGNED ) )
----
-67

skipif mysql # not compatible
query I rowsort label-9431
SELECT ALL + COALESCE ( - + 67, + - CAST ( NULL AS INTEGER ) )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-9432
SELECT ALL 44 + - COUNT( * ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-9432
SELECT ALL 44 + - COUNT ( * ) AS col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9433
SELECT ALL - MAX( + 88 ) col2
----
-88

skipif mysql # not compatible
query I rowsort label-9433
SELECT ALL - MAX ( + 88 ) col2
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-9434
SELECT 32 DIV - 11 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-9434
SELECT 32 / - 11 AS col0
----
-2

query I rowsort
SELECT ALL - ( + 87 ) AS col1
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-9436
SELECT DISTINCT 32 + COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-9436
SELECT DISTINCT 32 + COUNT ( * )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9437
SELECT DISTINCT - 26 - - COUNT( * ) * + + 51 col2
----
25

skipif mysql # not compatible
query I rowsort label-9437
SELECT DISTINCT - 26 - - COUNT ( * ) * + + 51 col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9438
SELECT 17 + + ( + 72 ) - 65 * + COUNT( * )
----
24

skipif mysql # not compatible
query I rowsort label-9438
SELECT 17 + + ( + 72 ) - 65 * + COUNT ( * )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9439
SELECT ( - COUNT( * ) ) + + - 33
----
-34

skipif mysql # not compatible
query I rowsort label-9439
SELECT ( - COUNT ( * ) ) + + - 33
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-9440
SELECT SUM( - 95 ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-9440
SELECT SUM ( - 95 ) AS col0
----
-95

query I rowsort
SELECT ALL 43 * - 74 + - 3 * + 29 AS col1
----
-3269

onlyif mysql # aggregate syntax: 
query I rowsort label-9442
SELECT ALL MIN( DISTINCT + 55 ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-9442
SELECT ALL MIN ( DISTINCT + 55 ) AS col0
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9443
SELECT DISTINCT SUM( DISTINCT + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9443
SELECT DISTINCT SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9444
SELECT DISTINCT SUM( 62 ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-9444
SELECT DISTINCT SUM ( 62 ) AS col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9445
SELECT ALL - ( - ( COUNT( * ) ) ) + + 38
----
39

skipif mysql # not compatible
query I rowsort label-9445
SELECT ALL - ( - ( COUNT ( * ) ) ) + + 38
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9446
SELECT - COUNT( * ) * 62 AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-9446
SELECT - COUNT ( * ) * 62 AS col0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-9447
SELECT DISTINCT - SUM( - + 38 ) col1
----
38

skipif mysql # not compatible
query I rowsort label-9447
SELECT DISTINCT - SUM ( - + 38 ) col1
----
38

query I rowsort
SELECT ALL - - 30 + + ( 77 )
----
107

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9449
SELECT ALL CAST( NULL AS SIGNED ) * 6 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9449
SELECT ALL CAST ( NULL AS INTEGER ) * 6 AS col2
----
NULL

query I rowsort
SELECT - ( + + 76 )
----
-76

query I rowsort
SELECT ALL - + 61 col0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-9452
SELECT ( + 97 ) + - - COUNT( * )
----
98

skipif mysql # not compatible
query I rowsort label-9452
SELECT ( + 97 ) + - - COUNT ( * )
----
98

query I rowsort
SELECT ( + 57 ) * + + 41 AS col2
----
2337

onlyif mysql # aggregate syntax: 
query I rowsort label-9454
SELECT 87 * ( + COUNT( * ) ) col2
----
87

skipif mysql # not compatible
query I rowsort label-9454
SELECT 87 * ( + COUNT ( * ) ) col2
----
87

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9455
SELECT ALL + 87 + - - CAST( - + AVG ( DISTINCT CAST( NULL AS SIGNED ) ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9455
SELECT ALL + 87 + - - CAST ( - + AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9456
SELECT - COUNT( * ) + + + 56
----
55

skipif mysql # not compatible
query I rowsort label-9456
SELECT - COUNT ( * ) + + + 56
----
55

query I rowsort
SELECT DISTINCT - + 88 AS col0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-9458
SELECT DISTINCT - - 81 - COUNT( * ) * 91 + - + 54 AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-9458
SELECT DISTINCT - - 81 - COUNT ( * ) * 91 + - + 54 AS col0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-9459
SELECT COUNT( * ) + 9 + + COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-9459
SELECT COUNT ( * ) + 9 + + COUNT ( * )
----
11

query I rowsort
SELECT 17 * + 56 AS col2
----
952

query I rowsort
SELECT 42 + - - 77
----
119

query I rowsort
SELECT ALL 6 + - + 18
----
-12

query I rowsort
SELECT - 53 + + 85
----
32

query I rowsort
SELECT ALL ( + - 4 ) AS col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9465
SELECT + COUNT( + + 8 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-9465
SELECT + COUNT ( + + 8 ) col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9466
SELECT ALL - COUNT( * ) DIV + 92 * - 89
----
0

skipif mysql # not compatible
query I rowsort label-9466
SELECT ALL - COUNT ( * ) / + 92 * - 89
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9467
SELECT COUNT( * ) AS col2, - ( + COUNT( * ) )
----
1
-1

skipif mysql # not compatible
query II rowsort label-9467
SELECT COUNT ( * ) AS col2, - ( + COUNT ( * ) )
----
1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9468
SELECT DISTINCT + MIN( + 10 )
----
10

skipif mysql # not compatible
query I rowsort label-9468
SELECT DISTINCT + MIN ( + 10 )
----
10

query I rowsort
SELECT ALL + 2 * - 79
----
-158

query I rowsort
SELECT + 33 + 89 AS col2
----
122

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9471
SELECT + ( - CAST( - - CAST( NULL AS SIGNED ) AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9471
SELECT + ( - CAST ( - - CAST ( NULL AS INTEGER ) AS REAL ) )
----
NULL

query I rowsort
SELECT - 14 + 69 * - 28
----
-1946

onlyif mysql # aggregate syntax: 
query I rowsort label-9473
SELECT - MAX( ( - 73 ) ) + + COUNT( * )
----
74

skipif mysql # not compatible
query I rowsort label-9473
SELECT - MAX ( ( - 73 ) ) + + COUNT ( * )
----
74

query I rowsort
SELECT ALL 43 + 65
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-9475
SELECT 45 * - COUNT( * ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-9475
SELECT 45 * - COUNT ( * ) AS col0
----
-45

query I rowsort
SELECT ALL 47 * + - 17 AS col0
----
-799

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9477
SELECT ALL - CAST( - 25 AS SIGNED )
----
25

skipif mysql # not compatible
query I rowsort label-9477
SELECT ALL - CAST ( - 25 AS INTEGER )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9478
SELECT ALL + COUNT( * ) + - - 97
----
98

skipif mysql # not compatible
query I rowsort label-9478
SELECT ALL + COUNT ( * ) + - - 97
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-9479
SELECT + 83 DIV 40
----
2

skipif mysql # not compatible
query I rowsort label-9479
SELECT + 83 / 40
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9480
SELECT ALL COUNT( ALL + - 53 )
----
1

skipif mysql # not compatible
query I rowsort label-9480
SELECT ALL COUNT ( ALL + - 53 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9481
SELECT - 72 DIV + 29
----
-2

skipif mysql # not compatible
query I rowsort label-9481
SELECT - 72 / + 29
----
-2

query I rowsort
SELECT ALL ( 62 )
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9483
SELECT ALL CAST( COUNT( * ) AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9483
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9484
SELECT ( COUNT( + - 26 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9484
SELECT ( COUNT ( + - 26 ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9485
SELECT - COUNT( - 87 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9485
SELECT - COUNT ( - 87 ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9486
SELECT - ( - - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9486
SELECT - ( - - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9487
SELECT + COUNT( * ) + + + 21
----
22

skipif mysql # not compatible
query I rowsort label-9487
SELECT + COUNT ( * ) + + + 21
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9488
SELECT DISTINCT - COUNT( * ) DIV 46
----
0

skipif mysql # not compatible
query I rowsort label-9488
SELECT DISTINCT - COUNT ( * ) / 46
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9489
SELECT ALL - COUNT( * ) + + - 10 * - + 36 DIV - - ( + CAST( + COUNT( * ) AS SIGNED ) ) - - 69
----
428

skipif mysql # not compatible
query I rowsort label-9489
SELECT ALL - COUNT ( * ) + + - 10 * - + 36 / - - ( + CAST ( + COUNT ( * ) AS INTEGER ) ) - - 69
----
428

query II rowsort
SELECT + 12 AS col2, + 1 * - 19 AS col2
----
12
-19

query I rowsort
SELECT 10 + 2 AS col1
----
12

query I rowsort
SELECT DISTINCT - - 16 AS col2
----
16

query I rowsort
SELECT 66 * 56 AS col2
----
3696

onlyif mysql # aggregate syntax: 
query I rowsort label-9494
SELECT COUNT( * ) * + + 1
----
1

skipif mysql # not compatible
query I rowsort label-9494
SELECT COUNT ( * ) * + + 1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9495
SELECT DISTINCT COUNT( * ) + - + 41 AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-9495
SELECT DISTINCT COUNT ( * ) + - + 41 AS col0
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9496
SELECT + + SUM( DISTINCT CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9496
SELECT + + SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT + + 50 AS col2
----
50

query I rowsort
SELECT 64 * - + 62 col1
----
-3968

onlyif mysql # aggregate syntax: 
query I rowsort label-9499
SELECT ALL + COUNT( * ) + - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9499
SELECT ALL + COUNT ( * ) + - COUNT ( * ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9500
SELECT ALL 77 + COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-9500
SELECT ALL 77 + COUNT ( * )
----
78

query I rowsort
SELECT ALL + 48 + - + 76
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-9502
SELECT + - MIN( + + 61 ) + + - 53 - - 3 * + COUNT( * ) + 10 + 24 AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-9502
SELECT + - MIN ( + + 61 ) + + - 53 - - 3 * + COUNT ( * ) + 10 + 24 AS col2
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9503
SELECT ALL + CAST( + 5 AS SIGNED )
----
5

skipif mysql # not compatible
query I rowsort label-9503
SELECT ALL + CAST ( + 5 AS INTEGER )
----
5

query I rowsort
SELECT + - 29 col0
----
-29

query I rowsort
SELECT ALL 51 * - 13 + ( ( 68 ) ) AS col1
----
-595

query I rowsort
SELECT DISTINCT - 34 * ( + - 99 ) * 7 + - 45 col0
----
23517

query I rowsort
SELECT ALL + 89 * + 9 * - + 59 AS col1
----
-47259

query I rowsort
SELECT DISTINCT ( - 86 ) col2
----
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9509
SELECT ALL - + COUNT( * ) DIV - 56 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9509
SELECT ALL - + COUNT ( * ) / - 56 AS col2
----
0

query I rowsort
SELECT ALL + + 11 + + 97 - 24 * NULLIF ( 68, + 93 ) AS col0
----
-1524

onlyif mysql # aggregate syntax: 
query I rowsort label-9511
SELECT ALL SUM( ALL - - 28 )
----
28

skipif mysql # not compatible
query I rowsort label-9511
SELECT ALL SUM ( ALL - - 28 )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9512
SELECT ALL 92 + COUNT( * )
----
93

skipif mysql # not compatible
query I rowsort label-9512
SELECT ALL 92 + COUNT ( * )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9513
SELECT DISTINCT COUNT( ALL + 69 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-9513
SELECT DISTINCT COUNT ( ALL + 69 ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9514
SELECT DISTINCT COUNT( * ) + - - 59
----
60

skipif mysql # not compatible
query I rowsort label-9514
SELECT DISTINCT COUNT ( * ) + - - 59
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9515
SELECT ALL CASE + MIN( ALL ( - 7 ) ) WHEN + COALESCE ( 6, 63 ) + - COUNT( * ) / 14 THEN - 94 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9515
SELECT ALL CASE + MIN ( ALL ( - 7 ) ) WHEN + COALESCE ( 6, 63 ) + - COUNT ( * ) / 14 THEN - 94 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9516
SELECT ALL - 46 + 78 - - COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-9516
SELECT ALL - 46 + 78 - - COUNT ( * )
----
33

query I rowsort
SELECT + 50 + 86 + - 36 AS col0
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-9518
SELECT - SUM( + 86 ) * - 45
----
3870

skipif mysql # not compatible
query I rowsort label-9518
SELECT - SUM ( + 86 ) * - 45
----
3870

query II rowsort
SELECT - 42 AS col1, + 56 + + 96 + + 48 col0
----
-42
200

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9520
SELECT ALL - 46 DIV + + MIN( + 58 ) * + 71 + 51
----
51

skipif mysql # not compatible
query I rowsort label-9520
SELECT ALL - 46 / + + MIN ( + 58 ) * + 71 + 51
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9521
SELECT - COUNT( * ) + COALESCE ( + 2, - 88, ( ( + COUNT( * ) ) ) - ( 37 - NULLIF ( 16, + 75 ) ) * + ( + 47 + + MIN( ALL - CAST( NULL AS SIGNED ) ) * 95 ) ) * - COUNT( * ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-9521
SELECT - COUNT ( * ) + COALESCE ( + 2, - 88, ( ( + COUNT ( * ) ) ) - ( 37 - NULLIF ( 16, + 75 ) ) * + ( + 47 + + MIN ( ALL - CAST ( NULL AS INTEGER ) ) * 95 ) ) * - COUNT ( * ) AS col2
----
-3

query I rowsort
SELECT ALL + NULLIF ( + 54, - + 93 )
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9523
SELECT DISTINCT 26 / 11 + CAST( NULL AS SIGNED ) * MAX( ALL 74 / - 41 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9523
SELECT DISTINCT 26 / 11 + CAST ( NULL AS INTEGER ) * MAX ( ALL 74 / - 41 ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + ( + 6 ) AS col0
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9525
SELECT + SUM( ALL + - ( 70 ) ) DIV - 7 + NULLIF ( - ( - 62 ), 85 * - 18 - + 50 * 89 ) DIV COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-9525
SELECT + SUM ( ALL + - ( 70 ) ) / - 7 + NULLIF ( - ( - 62 ), 85 * - 18 - + 50 * 89 ) / COUNT ( * )
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9526
SELECT DISTINCT - 56 * + CAST( - 80 AS SIGNED )
----
4480

skipif mysql # not compatible
query I rowsort label-9526
SELECT DISTINCT - 56 * + CAST ( - 80 AS INTEGER )
----
4480

onlyif mysql # DIV for integer division: 
query I rowsort label-9527
SELECT + 51 DIV + 68 + - 85
----
-85

skipif mysql # not compatible
query I rowsort label-9527
SELECT + 51 / + 68 + - 85
----
-85

query I rowsort
SELECT - 60 * - 64
----
3840

query I rowsort
SELECT - 66 * - 19 * 62
----
77748

onlyif mysql # aggregate syntax: 
query I rowsort label-9530
SELECT ALL - COUNT( * ) * 99 AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-9530
SELECT ALL - COUNT ( * ) * 99 AS col2
----
-99

query I rowsort
SELECT DISTINCT + ( 71 ) AS col1
----
71

query I rowsort
SELECT + 25 * - ( 75 ) + - 65
----
-1940

onlyif mysql # aggregate syntax: 
query I rowsort label-9533
SELECT COUNT( * ) + 35
----
36

skipif mysql # not compatible
query I rowsort label-9533
SELECT COUNT ( * ) + 35
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9534
SELECT ALL - MIN( + 87 ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-9534
SELECT ALL - MIN ( + 87 ) AS col1
----
-87

query I rowsort
SELECT + 16 * - 21 AS col2
----
-336

onlyif mysql # aggregate syntax: 
query I rowsort label-9536
SELECT ALL - + 34 * + - 17 + + + COUNT( * ) AS col1
----
579

skipif mysql # not compatible
query I rowsort label-9536
SELECT ALL - + 34 * + - 17 + + + COUNT ( * ) AS col1
----
579

onlyif mysql # aggregate syntax: 
query II rowsort label-9537
SELECT DISTINCT - + 91 AS col0, 24 * - SUM( 41 )
----
-91
-984

skipif mysql # not compatible
query II rowsort label-9537
SELECT DISTINCT - + 91 AS col0, 24 * - SUM ( 41 )
----
-91
-984

onlyif mysql # DIV for integer division: 
query I rowsort label-9538
SELECT DISTINCT 65 DIV - 12
----
-5

skipif mysql # not compatible
query I rowsort label-9538
SELECT DISTINCT 65 / - 12
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-9539
SELECT DISTINCT - COUNT( * ), MAX( - ( - 96 ) ) * 22 + COUNT( * ) AS col1
----
-1
2113

skipif mysql # not compatible
query II rowsort label-9539
SELECT DISTINCT - COUNT ( * ), MAX ( - ( - 96 ) ) * 22 + COUNT ( * ) AS col1
----
-1
2113

query I rowsort
SELECT ( 25 ) + - - 14
----
39

query I rowsort
SELECT 48 * + 10 * - + NULLIF ( + 47, - 60 )
----
-22560

onlyif mysql # DIV for integer division: 
query I rowsort label-9542
SELECT DISTINCT - - 9 DIV - 20
----
0

skipif mysql # not compatible
query I rowsort label-9542
SELECT DISTINCT - - 9 / - 20
----
0

query I rowsort
SELECT + 75 - - ( + 98 )
----
173

query I rowsort
SELECT ALL 49 * + - 84 + - + 57 * 53
----
-7137

query I rowsort
SELECT 28 + - + 15
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9546
SELECT - + MIN( DISTINCT 15 ) * + 1 - + 76 AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-9546
SELECT - + MIN ( DISTINCT 15 ) * + 1 - + 76 AS col2
----
-91

query I rowsort
SELECT ALL + 82 * 79 AS col2
----
6478

query I rowsort
SELECT + ( 48 ) + + 17
----
65

query I rowsort
SELECT ALL - NULLIF ( + + 78, + - 34 - + 39 ) * 18
----
-1404

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9550
SELECT 20 DIV COALESCE ( + COUNT( * ), - 40 DIV + 21, - 30, 10 + 3 * MAX( + 16 ) ) + 96 * 48
----
4628

skipif mysql # not compatible
query I rowsort label-9550
SELECT 20 / COALESCE ( + COUNT ( * ), - 40 / + 21, - 30, 10 + 3 * MAX ( + 16 ) ) + 96 * 48
----
4628

query I rowsort
SELECT ALL + 38 + 66
----
104

query I rowsort
SELECT DISTINCT - + 4 + - 32 + 66
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9553
SELECT 97 + 18 * 32 * SUM( DISTINCT 66 ) AS col2
----
38113

skipif mysql # not compatible
query I rowsort label-9553
SELECT 97 + 18 * 32 * SUM ( DISTINCT 66 ) AS col2
----
38113

onlyif mysql # aggregate syntax: 
query I rowsort label-9554
SELECT DISTINCT + MIN( DISTINCT - 44 )
----
-44

skipif mysql # not compatible
query I rowsort label-9554
SELECT DISTINCT + MIN ( DISTINCT - 44 )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-9555
SELECT - SUM( ALL - + 53 ) + 88 AS col1
----
141

skipif mysql # not compatible
query I rowsort label-9555
SELECT - SUM ( ALL - + 53 ) + 88 AS col1
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-9556
SELECT ALL 21 + + + SUM( ALL - 42 ) * + 55
----
-2289

skipif mysql # not compatible
query I rowsort label-9556
SELECT ALL 21 + + + SUM ( ALL - 42 ) * + 55
----
-2289

onlyif mysql # aggregate syntax: 
query II rowsort label-9557
SELECT - COUNT( * ) col1, SUM( ALL 60 ) * + 9
----
-1
540

skipif mysql # not compatible
query II rowsort label-9557
SELECT - COUNT ( * ) col1, SUM ( ALL 60 ) * + 9
----
-1
540

query I rowsort
SELECT ALL 69 + 6
----
75

query I rowsort
SELECT 34 * - + 82
----
-2788

query I rowsort
SELECT 89 + + NULLIF ( 87, - 52 )
----
176

onlyif mysql # aggregate syntax: 
query I rowsort label-9561
SELECT ALL 38 + 47 * - + 90 - - CASE WHEN NOT NULL BETWEEN NULL AND 61 THEN + NULLIF ( - 1, - 90 - + COALESCE ( - ( 72 ), - 3, 56 / 75 - 28 ) * COUNT( * ) ) * - 4 ELSE ( 0 ) END
----
-4192

skipif mysql # not compatible
query I rowsort label-9561
SELECT ALL 38 + 47 * - + 90 - - CASE WHEN NOT NULL BETWEEN NULL AND 61 THEN + NULLIF ( - 1, - 90 - + COALESCE ( - ( 72 ), - 3, 56 / 75 - 28 ) * COUNT ( * ) ) * - 4 ELSE ( 0 ) END
----
-4192

query I rowsort
SELECT DISTINCT 68 - - 91 + - 83 + + 42 - - 5 AS col0
----
123

query I rowsort
SELECT DISTINCT - 61 - ( - + 47 ) * - + 59 AS col2
----
-2834

onlyif mysql # aggregate syntax: 
query I rowsort label-9564
SELECT DISTINCT - MAX( DISTINCT - 64 )
----
64

skipif mysql # not compatible
query I rowsort label-9564
SELECT DISTINCT - MAX ( DISTINCT - 64 )
----
64

query I rowsort
SELECT 4 * - 45
----
-180

query I rowsort
SELECT 13 * NULLIF ( - ( + ( + 2 ) ), + 49 * 34 + 59 ) * 36
----
-936

query I rowsort
SELECT ALL + 80 - - - 51
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-9568
SELECT 94 DIV 74
----
1

skipif mysql # not compatible
query I rowsort label-9568
SELECT 94 / 74
----
1

query I rowsort
SELECT ALL + 71 * + 18
----
1278

query I rowsort
SELECT DISTINCT CASE + 62 WHEN ( - 52 ) THEN 42 WHEN ( - 88 ) THEN NULL END / + 10 AS col1
----
NULL

query I rowsort
SELECT ALL - 63 * + + ( + ( + - 77 ) ) AS col1
----
4851

query I rowsort
SELECT 58 * + - 30 + - + ( + 9 ) + + 73
----
-1676

onlyif mysql # aggregate syntax: 
query I rowsort label-9573
SELECT DISTINCT - NULLIF ( + + COALESCE ( + 3, - COUNT( * ) * + 67 ), + COUNT( ALL + 83 ) * + 59 + ( 63 ) ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-9573
SELECT DISTINCT - NULLIF ( + + COALESCE ( + 3, - COUNT ( * ) * + 67 ), + COUNT ( ALL + 83 ) * + 59 + ( 63 ) ) AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9574
SELECT DISTINCT - ( + CASE + COALESCE ( + - 98, 69 * 98 + 13, - 87 + - AVG ( ALL - 93 + 10 ) * ( + 71 * ( MIN( ALL + 84 ) ) + - 88 * 67 ) ) WHEN + 22 THEN + 59 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9574
SELECT DISTINCT - ( + CASE + COALESCE ( + - 98, 69 * 98 + 13, - 87 + - AVG ( ALL - 93 + 10 ) * ( + 71 * ( MIN ( ALL + 84 ) ) + - 88 * 67 ) ) WHEN + 22 THEN + 59 END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9575
SELECT ALL - 3 * - COUNT( * ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-9575
SELECT ALL - 3 * - COUNT ( * ) AS col0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9576
SELECT - + 30 * - COUNT( * ) + - - 98 + + + 49 + COUNT( - 12 ) DIV ( 36 )
----
177

skipif mysql # not compatible
query I rowsort label-9576
SELECT - + 30 * - COUNT ( * ) + - - 98 + + + 49 + COUNT ( - 12 ) / ( 36 )
----
177

query I rowsort
SELECT + + 94 * + 31 + - 27 + 98
----
2985

query I rowsort
SELECT ALL - ( - 31 ) AS col0
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9579
SELECT ALL - CASE + 45 WHEN - 76 THEN + + CAST( NULL AS SIGNED ) END + + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-9579
SELECT ALL - CASE + 45 WHEN - 76 THEN + + CAST ( NULL AS INTEGER ) END + + 10
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9580
SELECT ALL 83 + COUNT( * ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-9580
SELECT ALL 83 + COUNT ( * ) AS col1
----
84

query I rowsort
SELECT 65 * + - ( + 78 ) AS col2
----
-5070

query II rowsort
SELECT ALL + - 15 + - - 34 AS col2, 0 + + 64 AS col2
----
19
64

query I rowsort
SELECT DISTINCT NULLIF ( - + 9, + + 61 ) AS col1
----
-9

query II rowsort
SELECT ALL - 96 + + 86 col2, - 42
----
-10
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9585
SELECT - MIN( DISTINCT - 75 ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-9585
SELECT - MIN ( DISTINCT - 75 ) AS col0
----
75

query I rowsort
SELECT ALL + - 39 + 61 * - 27 + - 75
----
-1761

query I rowsort
SELECT + 89 * - 95 AS col2
----
-8455

query I rowsort
SELECT 44 * - 27 AS col0
----
-1188

query I rowsort
SELECT ALL 63 + + 60
----
123

onlyif mysql # DIV for integer division: 
query II rowsort label-9590
SELECT 41 AS col2, - 5 DIV + + 78 + - 94
----
41
-94

skipif mysql # not compatible
query II rowsort label-9590
SELECT 41 AS col2, - 5 / + + 78 + - 94
----
41
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-9591
SELECT MIN( ALL + 9 ) * + - 71 * - 8 * + ( - ( - 94 ) ) + + 34
----
480562

skipif mysql # not compatible
query I rowsort label-9591
SELECT MIN ( ALL + 9 ) * + - 71 * - 8 * + ( - ( - 94 ) ) + + 34
----
480562

query I rowsort
SELECT ALL - 83 * + 12 AS col1
----
-996

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9593
SELECT ALL - 74 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9593
SELECT ALL - 74 * CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL 92, - 18 AS col1
----
92
-18

query I rowsort
SELECT ALL + 11 - - 81 AS col1
----
92

query I rowsort
SELECT 68 + + 88
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-9597
SELECT + COALESCE ( + - MAX( + ( + - 10 ) ), + + 34 ) + + 31
----
41

skipif mysql # not compatible
query I rowsort label-9597
SELECT + COALESCE ( + - MAX ( + ( + - 10 ) ), + + 34 ) + + 31
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9598
SELECT + 43 - - 6 + + + 10 + - 21 + - 91 + - 59 * - 12 * - MIN( - 6 ) * 92 col0
----
390763

skipif mysql # not compatible
query I rowsort label-9598
SELECT + 43 - - 6 + + + 10 + - 21 + - 91 + - 59 * - 12 * - MIN ( - 6 ) * 92 col0
----
390763

query I rowsort
SELECT + CASE 64 WHEN - - 34 THEN 19 END * - 7 * - COALESCE ( 3, 37 + NULLIF ( - 40 + + 21, - 83 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9600
SELECT + 61 * COUNT( * ) col0
----
61

skipif mysql # not compatible
query I rowsort label-9600
SELECT + 61 * COUNT ( * ) col0
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-9601
SELECT + COUNT( * ) AS col0, 33 AS col2
----
1
33

skipif mysql # not compatible
query II rowsort label-9601
SELECT + COUNT ( * ) AS col0, 33 AS col2
----
1
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9602
SELECT ALL COALESCE ( + MAX( CAST( NULL AS SIGNED ) ), ( - CAST( NULL AS SIGNED ) ) ) * 22
----
NULL

skipif mysql # not compatible
query I rowsort label-9602
SELECT ALL COALESCE ( + MAX ( CAST ( NULL AS INTEGER ) ), ( - CAST ( NULL AS INTEGER ) ) ) * 22
----
NULL

query I rowsort
SELECT + 7 + 34 col1
----
41

query I rowsort
SELECT + 25 * + 37
----
925

query I rowsort
SELECT 85 * - 19 + - ( - - 2 ) AS col0
----
-1617

onlyif mysql # aggregate syntax: 
query I rowsort label-9606
SELECT ALL - - COUNT( * ) * 40 + + + 70 * COUNT( * ) + - 37 AS col1
----
73

skipif mysql # not compatible
query I rowsort label-9606
SELECT ALL - - COUNT ( * ) * 40 + + + 70 * COUNT ( * ) + - 37 AS col1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9607
SELECT + COUNT( ALL + 65 )
----
1

skipif mysql # not compatible
query I rowsort label-9607
SELECT + COUNT ( ALL + 65 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9608
SELECT ALL + 69 * 39 DIV + + 24 + - 23 + + COUNT( * ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-9608
SELECT ALL + 69 * 39 / + + 24 + - 23 + + COUNT ( * ) AS col1
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9609
SELECT - 59 / 4 - - 58 + - NULLIF ( - CAST( NULL AS SIGNED ), - 48 ) + + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-9609
SELECT - 59 / 4 - - 58 + - NULLIF ( - CAST ( NULL AS INTEGER ), - 48 ) + + 32
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9610
SELECT NULLIF ( + 10, COUNT( * ) )
----
10

skipif mysql # not compatible
query I rowsort label-9610
SELECT NULLIF ( + 10, COUNT ( * ) )
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9611
SELECT DISTINCT + 90 * - COUNT( * ) + + CAST( NULL AS DECIMAL ) * - + CAST( - + 48 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9611
SELECT DISTINCT + 90 * - COUNT ( * ) + + CAST ( NULL AS REAL ) * - + CAST ( - + 48 AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9612
SELECT + 1 / + + ( + 73 ) - - + 38 + - 35 * MIN( ALL + CAST( NULL AS SIGNED ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9612
SELECT + 1 / + + ( + 73 ) - - + 38 + - 35 * MIN ( ALL + CAST ( NULL AS INTEGER ) ) col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9613
SELECT DISTINCT + - 42 DIV ( - + 10 ) AS col0, 93
----
4
93

skipif mysql # not compatible
query II rowsort label-9613
SELECT DISTINCT + - 42 / ( - + 10 ) AS col0, 93
----
4
93

query I rowsort
SELECT - - ( + 42 ) * 54 - + + 48 AS col0
----
2220

onlyif mysql # DIV for integer division: 
query I rowsort label-9615
SELECT ALL 98 DIV ( 17 ) * + NULLIF ( - + 21, 2 * + 48 ) AS col1
----
-105

skipif mysql # not compatible
query I rowsort label-9615
SELECT ALL 98 / ( 17 ) * + NULLIF ( - + 21, 2 * + 48 ) AS col1
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-9616
SELECT - - 11 + + COUNT( * )
----
12

skipif mysql # not compatible
query I rowsort label-9616
SELECT - - 11 + + COUNT ( * )
----
12

query I rowsort
SELECT DISTINCT + COALESCE ( + 62, + ( 14 ) ) AS col2
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9618
SELECT ALL + - COUNT( * ) * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9618
SELECT ALL + - COUNT ( * ) * + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT CASE + AVG ( DISTINCT + - 26 ) WHEN + ( 68 ) THEN NULL WHEN 78 THEN - 85 END
----
NULL

query I rowsort
SELECT - 91 * - 24 + - - 17
----
2201

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9621
SELECT - MIN( ALL 20 ) - 78 * - + ( CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9621
SELECT - MIN ( ALL 20 ) - 78 * - + ( CAST ( NULL AS INTEGER ) ) col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9622
SELECT - CAST( - + 80 AS SIGNED )
----
80

skipif mysql # not compatible
query I rowsort label-9622
SELECT - CAST ( - + 80 AS INTEGER )
----
80

query I rowsort
SELECT - 17 + + + 33 AS col0
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9624
SELECT DISTINCT CAST( 47 AS SIGNED ) - + COUNT( * ) + + + 83
----
129

skipif mysql # not compatible
query I rowsort label-9624
SELECT DISTINCT CAST ( 47 AS INTEGER ) - + COUNT ( * ) + + + 83
----
129

query I rowsort
SELECT ALL ( 32 ) AS col2
----
32

query I rowsort
SELECT - ( - + 10 ) + 79 + + 18 AS col1
----
107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9627
SELECT DISTINCT CASE - - 91 WHEN - COUNT( * ) - 0 THEN COUNT( * ) WHEN 6 * ( CAST( + NULLIF ( ( 38 ), - COUNT( ALL - 37 ) + NULLIF ( COUNT( * ), - 97 + CAST( NULL AS SIGNED ) ) ) AS SIGNED ) + + COALESCE ( MIN( - ( 38 ) ) + + 64, + 51 + + CAST( NULL AS SIGNED ) / 58, + 44 ) ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9627
SELECT DISTINCT CASE - - 91 WHEN - COUNT ( * ) - 0 THEN COUNT ( * ) WHEN 6 * ( CAST ( + NULLIF ( ( 38 ), - COUNT ( ALL - 37 ) + NULLIF ( COUNT ( * ), - 97 + CAST ( NULL AS INTEGER ) ) ) AS INTEGER ) + + COALESCE ( MIN ( - ( 38 ) ) + + 64, + 51 + + CAST ( NULL AS INTEGER ) / 58, + 44 ) ) THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9628
SELECT - CAST( - + ( NULLIF ( + - 65, + 64 ) ) AS SIGNED ) + + - 60
----
-125

skipif mysql # not compatible
query I rowsort label-9628
SELECT - CAST ( - + ( NULLIF ( + - 65, + 64 ) ) AS INTEGER ) + + - 60
----
-125

query I rowsort
SELECT DISTINCT + 97 * - - 78 AS col1
----
7566

query II rowsort
SELECT 26, 80 * + ( + 79 ) col1
----
26
6320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9631
SELECT + 43 + + + CAST( + 75 AS SIGNED )
----
118

skipif mysql # not compatible
query I rowsort label-9631
SELECT + 43 + + + CAST ( + 75 AS INTEGER )
----
118

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9632
SELECT - 55 DIV + 82 * - 1 * - COUNT( + + 15 )
----
0

skipif mysql # not compatible
query I rowsort label-9632
SELECT - 55 / + 82 * - 1 * - COUNT ( + + 15 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9633
SELECT DISTINCT - 98 * - + NULLIF ( + 90, - - 84 - + 16 + + ( + COUNT( * ) ) / + 1 * 25 ) * - 79 AS col1
----
-696780

skipif mysql # not compatible
query I rowsort label-9633
SELECT DISTINCT - 98 * - + NULLIF ( + 90, - - 84 - + 16 + + ( + COUNT ( * ) ) / + 1 * 25 ) * - 79 AS col1
----
-696780

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9634
SELECT ALL 13 AS col1, 87 * + - CAST( NULL AS SIGNED )
----
13
NULL

skipif mysql # not compatible
query II rowsort label-9634
SELECT ALL 13 AS col1, 87 * + - CAST ( NULL AS INTEGER )
----
13
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9635
SELECT ALL - 80 * - CASE + - COUNT( * ) WHEN + 39 THEN NULL ELSE + COUNT( * ) + - - 30 END AS col0
----
2480

skipif mysql # not compatible
query I rowsort label-9635
SELECT ALL - 80 * - CASE + - COUNT ( * ) WHEN + 39 THEN NULL ELSE + COUNT ( * ) + - - 30 END AS col0
----
2480

onlyif mysql # aggregate syntax: 
query II rowsort label-9636
SELECT 56 AS col1, 78 * - COUNT( * ) * - 6
----
56
468

skipif mysql # not compatible
query II rowsort label-9636
SELECT 56 AS col1, 78 * - COUNT ( * ) * - 6
----
56
468

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9637
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2, 39 - 24 - - 50
----
NULL
65

skipif mysql # not compatible
query II rowsort label-9637
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2, 39 - 24 - - 50
----
NULL
65

query I rowsort
SELECT DISTINCT 54 + - + 42 + - 74
----
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9639
SELECT ALL + NULLIF ( - 41, ( 52 ) * - 76 ) DIV - COUNT( * ) + 85 * + 81
----
6926

skipif mysql # not compatible
query I rowsort label-9639
SELECT ALL + NULLIF ( - 41, ( 52 ) * - 76 ) / - COUNT ( * ) + 85 * + 81
----
6926

query II rowsort
SELECT ( + 64 ) AS col0, - 37
----
64
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-9641
SELECT + COUNT( * ) * - + 38 + + 61 * - + 27, 32 - 52 * 94 col1
----
-1685
-4856

skipif mysql # not compatible
query II rowsort label-9641
SELECT + COUNT ( * ) * - + 38 + + 61 * - + 27, 32 - 52 * 94 col1
----
-1685
-4856

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9642
SELECT - ( + 8 ) / - + CAST( NULL AS SIGNED ) - + 76 * - 89 + - - 61 + + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-9642
SELECT - ( + 8 ) / - + CAST ( NULL AS INTEGER ) - + 76 * - 89 + - - 61 + + 53
----
NULL

query I rowsort
SELECT - - 93 * + 1 + - 76 + + + 80 + + COALESCE ( - 66, 54 ) * 78 AS col0
----
-5051

query II rowsort
SELECT + 29 AS col1, 77 + - + ( - - 26 ) * - + 22 + + + 45 AS col0
----
29
694

query II rowsort
SELECT 49, - 64 AS col2
----
49
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9646
SELECT ALL - 21 DIV 56 + + COUNT( * ) * COUNT( ALL - - ( + + 5 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9646
SELECT ALL - 21 / 56 + + COUNT ( * ) * COUNT ( ALL - - ( + + 5 ) ) AS col1
----
1

query I rowsort
SELECT + - 15 + + 50 + + - 71 AS col1
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9648
SELECT ALL + COALESCE ( + 30, - CAST( - 67 AS SIGNED ) )
----
30

skipif mysql # not compatible
query I rowsort label-9648
SELECT ALL + COALESCE ( + 30, - CAST ( - 67 AS INTEGER ) )
----
30

query I rowsort
SELECT DISTINCT 87 * + + 67 col0
----
5829

onlyif mysql # aggregate syntax: 
query I rowsort label-9650
SELECT + - 81 * - - COUNT( * ) * + 88 AS col0
----
-7128

skipif mysql # not compatible
query I rowsort label-9650
SELECT + - 81 * - - COUNT ( * ) * + 88 AS col0
----
-7128

onlyif mysql # aggregate syntax: 
query I rowsort label-9651
SELECT ALL + COUNT( 28 ) * + 15 - + ( + 72 ) + - 77
----
-134

skipif mysql # not compatible
query I rowsort label-9651
SELECT ALL + COUNT ( 28 ) * + 15 - + ( + 72 ) + - 77
----
-134

query I rowsort
SELECT + 74 * - + 70 AS col1
----
-5180

query II rowsort
SELECT + + ( COALESCE ( + 48, + 26 ) ) AS col2, 21 AS col2
----
48
21

query II rowsort
SELECT + 86 AS col2, + 41 AS col0
----
86
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9655
SELECT DISTINCT - 49 * 90 + - COUNT( * ) - + - 81
----
-4330

skipif mysql # not compatible
query I rowsort label-9655
SELECT DISTINCT - 49 * 90 + - COUNT ( * ) - + - 81
----
-4330

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9656
SELECT - 62 * CAST( ( - + 28 ) AS SIGNED ) DIV 32 + + 73 * 81 AS col0
----
5967

skipif mysql # not compatible
query I rowsort label-9656
SELECT - 62 * CAST ( ( - + 28 ) AS INTEGER ) / 32 + + 73 * 81 AS col0
----
5967

onlyif mysql # aggregate syntax: 
query II rowsort label-9657
SELECT ALL + - COUNT( * ), 60 * + 57 AS col0
----
-1
3420

skipif mysql # not compatible
query II rowsort label-9657
SELECT ALL + - COUNT ( * ), 60 * + 57 AS col0
----
-1
3420

onlyif mysql # DIV for integer division: 
query I rowsort label-9658
SELECT DISTINCT - 77 DIV - 76 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9658
SELECT DISTINCT - 77 / - 76 AS col1
----
1

query II rowsort
SELECT ALL + 61 AS col2, + 28
----
61
28

query I rowsort
SELECT + - 13 * - + ( 68 )
----
884

query I rowsort
SELECT ALL - 83 * + + 71
----
-5893

onlyif mysql # DIV for integer division: 
query II rowsort label-9662
SELECT DISTINCT 45 DIV 99, + 61 AS col2
----
0
61

skipif mysql # not compatible
query II rowsort label-9662
SELECT DISTINCT 45 / 99, + 61 AS col2
----
0
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9663
SELECT ALL + 11 * ( COUNT( * ) ) * 97
----
1067

skipif mysql # not compatible
query I rowsort label-9663
SELECT ALL + 11 * ( COUNT ( * ) ) * 97
----
1067

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9664
SELECT DISTINCT MAX( - CAST( 56 AS SIGNED ) ), - CAST( NULL AS SIGNED ) * + 21 col1
----
-56
NULL

skipif mysql # not compatible
query II rowsort label-9664
SELECT DISTINCT MAX ( - CAST ( 56 AS INTEGER ) ), - CAST ( NULL AS INTEGER ) * + 21 col1
----
-56
NULL

query I rowsort
SELECT DISTINCT + 2 * + ( 64 )
----
128

query II rowsort
SELECT + 85 - 83 AS col1, 13 AS col0
----
2
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9667
SELECT CAST( + 55 AS SIGNED ) - + - 65 - 26 DIV - ( + CASE - - MIN( 25 ) WHEN + 55 * - 1 THEN NULL ELSE - 16 - + 26 * 23 END ) AS col2
----
120

skipif mysql # not compatible
query I rowsort label-9667
SELECT CAST ( + 55 AS INTEGER ) - + - 65 - 26 / - ( + CASE - - MIN ( 25 ) WHEN + 55 * - 1 THEN NULL ELSE - 16 - + 26 * 23 END ) AS col2
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-9668
SELECT ALL + COUNT( * ) * + 41 * 5 * + 13
----
2665

skipif mysql # not compatible
query I rowsort label-9668
SELECT ALL + COUNT ( * ) * + 41 * 5 * + 13
----
2665

onlyif mysql # aggregate syntax: 
query I rowsort label-9669
SELECT ALL 37 * MIN( ALL 3 )
----
111

skipif mysql # not compatible
query I rowsort label-9669
SELECT ALL 37 * MIN ( ALL 3 )
----
111

query I rowsort
SELECT ALL + 21 + + COALESCE ( - 70, + 82 * + + 47 * - + 14 + 23 + + 54 ) + 53
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9671
SELECT ALL - CAST( NULL AS SIGNED ) * - 46 * COUNT( * ) / 19 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9671
SELECT ALL - CAST ( NULL AS INTEGER ) * - 46 * COUNT ( * ) / 19 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9672
SELECT 19 DIV + 63 AS col2, 52 + - + 8 - 95 col0
----
0
-51

skipif mysql # not compatible
query II rowsort label-9672
SELECT 19 / + 63 AS col2, 52 + - + 8 - 95 col0
----
0
-51

query I rowsort
SELECT DISTINCT 13 + - 45
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-9674
SELECT 93 + - CASE 24 WHEN + - 19 THEN + 63 / - COUNT( * ) / - 9 * - 76 + + 83 END * - 73
----
NULL

skipif mysql # not compatible
query I rowsort label-9674
SELECT 93 + - CASE 24 WHEN + - 19 THEN + 63 / - COUNT ( * ) / - 9 * - 76 + + 83 END * - 73
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9675
SELECT 3 + NULLIF ( + 67, - COUNT( * ) )
----
70

skipif mysql # not compatible
query I rowsort label-9675
SELECT 3 + NULLIF ( + 67, - COUNT ( * ) )
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-9676
SELECT ALL - NULLIF ( + + 33, - COUNT( * ) ) * + 66 + - 98, 47 AS col0
----
-2276
47

skipif mysql # not compatible
query II rowsort label-9676
SELECT ALL - NULLIF ( + + 33, - COUNT ( * ) ) * + 66 + - 98, 47 AS col0
----
-2276
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9677
SELECT DISTINCT + + NULLIF ( + - CASE - COALESCE ( - 12, COUNT( * ) * - - COUNT( * ) ) WHEN + 35 THEN NULL WHEN 86 * - 25 THEN NULL WHEN 59 * + ( 30 ) THEN + 20 * + 77 + + ( 78 ) ELSE NULL END, 2 / - COUNT( * ) ) + 22
----
NULL

skipif mysql # not compatible
query I rowsort label-9677
SELECT DISTINCT + + NULLIF ( + - CASE - COALESCE ( - 12, COUNT ( * ) * - - COUNT ( * ) ) WHEN + 35 THEN NULL WHEN 86 * - 25 THEN NULL WHEN 59 * + ( 30 ) THEN + 20 * + 77 + + ( 78 ) ELSE NULL END, 2 / - COUNT ( * ) ) + 22
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9678
SELECT - 60 + + + CAST( NULL AS SIGNED ) AS col0, - 26 * + NULLIF ( 71, - 37 / - - 64 / 15 ) * - ( + 61 ) + - 17 * + 48
----
NULL
111790

skipif mysql # not compatible
query II rowsort label-9678
SELECT - 60 + + + CAST ( NULL AS INTEGER ) AS col0, - 26 * + NULLIF ( 71, - 37 / - - 64 / 15 ) * - ( + 61 ) + - 17 * + 48
----
NULL
111790

onlyif mysql # aggregate syntax: 
query I rowsort label-9679
SELECT ALL - 66 + + 19 + + COUNT( ALL - + 90 )
----
-46

skipif mysql # not compatible
query I rowsort label-9679
SELECT ALL - 66 + + 19 + + COUNT ( ALL - + 90 )
----
-46

query I rowsort
SELECT + CASE + 73 WHEN + 28 THEN + 28 WHEN 77 THEN NULL END * - ( - + 92 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9681
SELECT ALL - - COUNT( * ) * + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-9681
SELECT ALL - - COUNT ( * ) * + COUNT ( * )
----
1

query I rowsort
SELECT ALL + 91 + + - 39 col0
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-9683
SELECT 40 + 48 + 12 DIV + - 62 AS col1
----
88

skipif mysql # not compatible
query I rowsort label-9683
SELECT 40 + 48 + 12 / + - 62 AS col1
----
88

query II rowsort
SELECT DISTINCT - ( - 54 ) * 27 AS col0, 14 AS col0
----
1458
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9685
SELECT DISTINCT + - CASE + + COALESCE ( - 74, COUNT( * ) / + 85, - + 22 ) WHEN 6 THEN NULL WHEN ( 69 ) / - 44 THEN - ( 1 ) * 84 + 40 * - 9 END + 15 / AVG ( DISTINCT 56 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9685
SELECT DISTINCT + - CASE + + COALESCE ( - 74, COUNT ( * ) / + 85, - + 22 ) WHEN 6 THEN NULL WHEN ( 69 ) / - 44 THEN - ( 1 ) * 84 + 40 * - 9 END + 15 / AVG ( DISTINCT 56 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9686
SELECT ALL ( - + 22 ) DIV + 81 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9686
SELECT ALL ( - + 22 ) / + 81 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9687
SELECT DISTINCT - CAST( - + 10 AS SIGNED ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-9687
SELECT DISTINCT - CAST ( - + 10 AS INTEGER ) AS col2
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9688
SELECT ALL + CAST( NULL AS SIGNED ) - - + 26 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9688
SELECT ALL + CAST ( NULL AS INTEGER ) - - + 26 AS col2
----
NULL

query I rowsort
SELECT 20 * - 58
----
-1160

onlyif mysql # aggregate syntax: 
query I rowsort label-9690
SELECT DISTINCT + 97 - - - 85 + 23 * - COUNT( * )
----
-11

skipif mysql # not compatible
query I rowsort label-9690
SELECT DISTINCT + 97 - - - 85 + 23 * - COUNT ( * )
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9691
SELECT - 60 + - CAST( NULL AS SIGNED ) * 72
----
NULL

skipif mysql # not compatible
query I rowsort label-9691
SELECT - 60 + - CAST ( NULL AS INTEGER ) * 72
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9692
SELECT ALL + 48 * NULLIF ( 23, - COUNT( DISTINCT - - 46 ) ) + - + 61 + + 15 * - 66 AS col2
----
53

skipif mysql # not compatible
query I rowsort label-9692
SELECT ALL + 48 * NULLIF ( 23, - COUNT ( DISTINCT - - 46 ) ) + - + 61 + + 15 * - 66 AS col2
----
53

query I rowsort
SELECT + 24 * + + ( - 38 ) + - 69 + - - 4 AS col2
----
-977

query I rowsort
SELECT + 26 * 71 AS col0
----
1846

query I rowsort
SELECT ALL 66 * - 95 * - ( 39 )
----
244530

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9696
SELECT - ( + CAST( NULL AS SIGNED ) ) + + - 15 - - 23 + - + 69
----
NULL

skipif mysql # not compatible
query I rowsort label-9696
SELECT - ( + CAST ( NULL AS INTEGER ) ) + + - 15 - - 23 + - + 69
----
NULL

query I rowsort
SELECT ALL 4 * - 81 AS col2
----
-324

onlyif mysql # aggregate syntax: 
query I rowsort label-9698
SELECT ALL - SUM( - 3 ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-9698
SELECT ALL - SUM ( - 3 ) AS col1
----
3

query II rowsort
SELECT 84 col2, 69 AS col0
----
84
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9700
SELECT MIN( + + 45 ) * + 48 AS col1
----
2160

skipif mysql # not compatible
query I rowsort label-9700
SELECT MIN ( + + 45 ) * + 48 AS col1
----
2160

query I rowsort
SELECT 69 + - 59
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9702
SELECT 16 * - - 34 - + + COUNT( * )
----
543

skipif mysql # not compatible
query I rowsort label-9702
SELECT 16 * - - 34 - + + COUNT ( * )
----
543

onlyif mysql # aggregate syntax: 
query I rowsort label-9703
SELECT MAX( 75 ) + + COUNT( * )
----
76

skipif mysql # not compatible
query I rowsort label-9703
SELECT MAX ( 75 ) + + COUNT ( * )
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9704
SELECT CAST( - 93 AS SIGNED ) * - 41 - 52 - + 2 AS col2
----
3759

skipif mysql # not compatible
query I rowsort label-9704
SELECT CAST ( - 93 AS INTEGER ) * - 41 - 52 - + 2 AS col2
----
3759

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9705
SELECT ALL MAX( DISTINCT 48 ) + - COUNT( * ) DIV - - 39
----
48

skipif mysql # not compatible
query I rowsort label-9705
SELECT ALL MAX ( DISTINCT 48 ) + - COUNT ( * ) / - - 39
----
48

query I rowsort
SELECT 4 + + 5 col1
----
9

query I rowsort
SELECT ALL 90 + - 46
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9708
SELECT 0 AS col2, CASE - - 18 WHEN + 92 + - 47 * + 47 * 77 + 18 THEN COALESCE ( + 42, - 16 * - ( NULLIF ( 41, 1 / 48 ) ) ) + - 79 WHEN COUNT( * ) THEN - 85 ELSE NULL END * - CASE + 86 + CAST( NULL AS SIGNED ) * + 74 WHEN 48 * - 92 THEN NULL WHEN 63 * 13 THEN - NULLIF ( - 92, - 31 ) - COALESCE ( - 91, 83, + CAST( NULL AS DECIMAL ) * CAST( - COUNT( * ) AS DECIMAL ) + 88 * - CAST( NULL AS DECIMAL ) ) ELSE - 77 * 10 + ( 8 ) END
----
0
NULL

skipif mysql # not compatible
query II rowsort label-9708
SELECT 0 AS col2, CASE - - 18 WHEN + 92 + - 47 * + 47 * 77 + 18 THEN COALESCE ( + 42, - 16 * - ( NULLIF ( 41, 1 / 48 ) ) ) + - 79 WHEN COUNT ( * ) THEN - 85 ELSE NULL END * - CASE + 86 + CAST ( NULL AS INTEGER ) * + 74 WHEN 48 * - 92 THEN NULL WHEN 63 * 13 THEN - NULLIF ( - 92, - 31 ) - COALESCE ( - 91, 83, + CAST ( NULL AS REAL ) * CAST ( - COUNT ( * ) AS REAL ) + 88 * - CAST ( NULL AS REAL ) ) ELSE - 77 * 10 + ( 8 ) END
----
0
NULL

query I rowsort
SELECT 23 + - 75 AS col0
----
-52

query I rowsort
SELECT ALL 66 + - 98 AS col2
----
-32

query I rowsort
SELECT ALL 84 * + 48 AS col2
----
4032

onlyif mysql # aggregate syntax: 
query I rowsort label-9712
SELECT 38 + + + CASE 22 WHEN 40 THEN NULL WHEN - 24 THEN + CASE 65 WHEN COUNT( * ) * - COALESCE ( 94, + SUM( - 65 ) ) THEN NULL ELSE - 87 END * 72 + + ( - 46 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9712
SELECT 38 + + + CASE 22 WHEN 40 THEN NULL WHEN - 24 THEN + CASE 65 WHEN COUNT ( * ) * - COALESCE ( 94, + SUM ( - 65 ) ) THEN NULL ELSE - 87 END * 72 + + ( - 46 ) ELSE NULL END
----
NULL

query I rowsort
SELECT ( - 17 ) + 43 * + 59 + - - 95 * 69
----
9075

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9714
SELECT 13 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9714
SELECT 13 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9715
SELECT 48 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9715
SELECT 48 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9716
SELECT - 74 AS col1, - ( + 62 ) * SUM( - 94 ) AS col0
----
-74
5828

skipif mysql # not compatible
query II rowsort label-9716
SELECT - 74 AS col1, - ( + 62 ) * SUM ( - 94 ) AS col0
----
-74
5828

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9717
SELECT ALL + 95 + + + COALESCE ( + - 99, + 46, - COUNT( * ) * + 1 + + 20 + - 86, 85 DIV + 55 + 35 ) DIV 93 AS col1
----
94

skipif mysql # not compatible
query I rowsort label-9717
SELECT ALL + 95 + + + COALESCE ( + - 99, + 46, - COUNT ( * ) * + 1 + + 20 + - 86, 85 / + 55 + 35 ) / 93 AS col1
----
94

query I rowsort
SELECT ALL - 26 * 7 AS col1
----
-182

query I rowsort
SELECT - 81 * - 44
----
3564

onlyif mysql # aggregate syntax: 
query I rowsort label-9720
SELECT - COUNT( ALL + 63 ) + ( - 18 )
----
-19

skipif mysql # not compatible
query I rowsort label-9720
SELECT - COUNT ( ALL + 63 ) + ( - 18 )
----
-19

query I rowsort
SELECT ALL - - NULLIF ( - 59, + 60 * - - 20 ) - 4 AS col1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-9722
SELECT + COUNT( * ) * 41 AS col0
----
41

skipif mysql # not compatible
query I rowsort label-9722
SELECT + COUNT ( * ) * 41 AS col0
----
41

query I rowsort
SELECT ALL - + 0 col0
----
0

query I rowsort
SELECT + - ( 12 )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-9725
SELECT + 83 * + ( - CASE + 8 WHEN - - SUM( ALL + 29 ) THEN - - ( - 32 ) END ) * 36 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9725
SELECT + 83 * + ( - CASE + 8 WHEN - - SUM ( ALL + 29 ) THEN - - ( - 32 ) END ) * 36 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9726
SELECT + + CAST( NULL AS SIGNED ) / - - 87 + - + 43 AS col1, + 23 + 58 AS col1
----
NULL
81

skipif mysql # not compatible
query II rowsort label-9726
SELECT + + CAST ( NULL AS INTEGER ) / - - 87 + - + 43 AS col1, + 23 + 58 AS col1
----
NULL
81

query I rowsort
SELECT ALL + 77 * + + 65 AS col0
----
5005

query I rowsort
SELECT DISTINCT - + 32 AS col1
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-9729
SELECT + 22 DIV - 60 - + 89
----
-89

skipif mysql # not compatible
query I rowsort label-9729
SELECT + 22 / - 60 - + 89
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-9730
SELECT ALL - - MAX( + 79 )
----
79

skipif mysql # not compatible
query I rowsort label-9730
SELECT ALL - - MAX ( + 79 )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9731
SELECT SUM( DISTINCT - 50 )
----
-50

skipif mysql # not compatible
query I rowsort label-9731
SELECT SUM ( DISTINCT - 50 )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-9732
SELECT ALL + ( - - COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9732
SELECT ALL + ( - - COUNT ( * ) ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9733
SELECT + 68 + + - 5 DIV - + 96 AS col1
----
68

skipif mysql # not compatible
query I rowsort label-9733
SELECT + 68 + + - 5 / - + 96 AS col1
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9734
SELECT - 38 * + - COUNT( * ) DIV 57 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9734
SELECT - 38 * + - COUNT ( * ) / 57 AS col1
----
0

query I rowsort
SELECT + 44 + 65 AS col2
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-9736
SELECT ALL NULLIF ( 88, - + COUNT( * ) - 70 / + 40 * + + 82 * CASE - + MIN( - COALESCE ( 97, + 17, - 34 * 28 ) ) WHEN COALESCE ( 11, 67 * 1 ) THEN NULL ELSE COUNT( * ) * NULLIF ( 83, COUNT( * ) * 88 ) END * 66 + + 3 ) + - 14 AS col0
----
74

skipif mysql # not compatible
query I rowsort label-9736
SELECT ALL NULLIF ( 88, - + COUNT ( * ) - 70 / + 40 * + + 82 * CASE - + MIN ( - COALESCE ( 97, + 17, - 34 * 28 ) ) WHEN COALESCE ( 11, 67 * 1 ) THEN NULL ELSE COUNT ( * ) * NULLIF ( 83, COUNT ( * ) * 88 ) END * 66 + + 3 ) + - 14 AS col0
----
74

query I rowsort
SELECT DISTINCT 85 * + - ( - 64 ) AS col1
----
5440

query II rowsort
SELECT DISTINCT 49 * - + 6 col0, 19 AS col2
----
-294
19

query I rowsort
SELECT - CASE - + 70 WHEN - CASE WHEN NULL IS NOT NULL THEN 91 ELSE ( + 20 ) END THEN - - 66 - - 12 ELSE NULL END - NULLIF ( 26, 70 + 29 * 51 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9740
SELECT DISTINCT MIN( + 59 ) * - 93 * - COUNT( * ) * + 5
----
27435

skipif mysql # not compatible
query I rowsort label-9740
SELECT DISTINCT MIN ( + 59 ) * - 93 * - COUNT ( * ) * + 5
----
27435

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9741
SELECT + COUNT( * ) DIV - 66
----
0

skipif mysql # not compatible
query I rowsort label-9741
SELECT + COUNT ( * ) / - 66
----
0

query I rowsort
SELECT + 42 * - - 55 * - CASE + + 1 WHEN + 37 + 13 THEN NULL ELSE 83 END AS col2
----
-191730

query I rowsort
SELECT ALL 13 - + 60 AS col0
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-9744
SELECT DISTINCT ( + 8 ) DIV - 59
----
0

skipif mysql # not compatible
query I rowsort label-9744
SELECT DISTINCT ( + 8 ) / - 59
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9745
SELECT DISTINCT - 96 - - SUM( ALL - 91 ) - + 55 AS col0, + MAX( 31 )
----
-242
31

skipif mysql # not compatible
query II rowsort label-9745
SELECT DISTINCT - 96 - - SUM ( ALL - 91 ) - + 55 AS col0, + MAX ( 31 )
----
-242
31

query I rowsort
SELECT + - 83 + + - 91 AS col0
----
-174

query I rowsort
SELECT + + 8 + + - 66 + - 90 col0
----
-148

onlyif mysql # aggregate syntax: 
query I rowsort label-9748
SELECT - - 3 - CASE 82 WHEN 90 THEN + COUNT( + 25 ) * - - 39 WHEN + - 56 THEN 39 / 77 END * - MIN( DISTINCT + 21 - - 37 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9748
SELECT - - 3 - CASE 82 WHEN 90 THEN + COUNT ( + 25 ) * - - 39 WHEN + - 56 THEN 39 / 77 END * - MIN ( DISTINCT + 21 - - 37 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9749
SELECT NULLIF ( 47, - SUM( + 71 ) ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-9749
SELECT NULLIF ( 47, - SUM ( + 71 ) ) AS col1
----
47

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9750
SELECT + - COUNT( * ) + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9750
SELECT + - COUNT ( * ) + + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + 81 * ( - 68 )
----
-5508

query II rowsort
SELECT DISTINCT + 20 * - 82 AS col2, 94 * 41 col1
----
-1640
3854

query I rowsort
SELECT + ( - - 61 ) AS col1
----
61

query I rowsort
SELECT ALL + + 78 col1
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9755
SELECT - + 76 * + - 75 DIV + COUNT( * )
----
5700

skipif mysql # not compatible
query I rowsort label-9755
SELECT - + 76 * + - 75 / + COUNT ( * )
----
5700

query I rowsort
SELECT ( + 65 ) AS col1
----
65

query I rowsort
SELECT + 17 * - - 84 + 24 + - + 92 + - 16 AS col2
----
1344

onlyif mysql # aggregate syntax: 
query I rowsort label-9758
SELECT ALL 35 * + COUNT( * ) + + 65 AS col1
----
100

skipif mysql # not compatible
query I rowsort label-9758
SELECT ALL 35 * + COUNT ( * ) + + 65 AS col1
----
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9759
SELECT SUM( ALL 71 ) * + + CAST( NULL AS SIGNED ) - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-9759
SELECT SUM ( ALL 71 ) * + + CAST ( NULL AS INTEGER ) - 59
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9760
SELECT ALL - 6 * + COUNT( * ) / - - CASE - 55 WHEN MAX( ALL 27 ) * CAST( - - ( - - CASE CAST( NULL AS SIGNED ) WHEN 75 THEN 17 + 64 / COUNT( * ) ELSE NULL END ) AS DECIMAL ) - 75 * 1 THEN 4 ELSE NULL END + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-9760
SELECT ALL - 6 * + COUNT ( * ) / - - CASE - 55 WHEN MAX ( ALL 27 ) * CAST ( - - ( - - CASE CAST ( NULL AS INTEGER ) WHEN 75 THEN 17 + 64 / COUNT ( * ) ELSE NULL END ) AS REAL ) - 75 * 1 THEN 4 ELSE NULL END + 0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9761
SELECT - 66 * CAST( NULL AS SIGNED ) * + + 64 + + + 28 + - 85 + + 56 + - 83
----
NULL

skipif mysql # not compatible
query I rowsort label-9761
SELECT - 66 * CAST ( NULL AS INTEGER ) * + + 64 + + + 28 + - 85 + + 56 + - 83
----
NULL

query I rowsort
SELECT ALL 79 * + 99 + 95 AS col2
----
7916

onlyif mysql # aggregate syntax: 
query I rowsort label-9763
SELECT ALL + SUM( DISTINCT + 86 )
----
86

skipif mysql # not compatible
query I rowsort label-9763
SELECT ALL + SUM ( DISTINCT + 86 )
----
86

query I rowsort
SELECT DISTINCT - 80 * - 91 AS col2
----
7280

onlyif mysql # aggregate syntax: 
query I rowsort label-9765
SELECT + ( - + 24 ) * 62 * - MAX( + 82 ) + + ( + 23 ) AS col1
----
122039

skipif mysql # not compatible
query I rowsort label-9765
SELECT + ( - + 24 ) * 62 * - MAX ( + 82 ) + + ( + 23 ) AS col1
----
122039

query I rowsort
SELECT - 79 * - 5 * + 52
----
20540

onlyif mysql # aggregate syntax: 
query I rowsort label-9767
SELECT + MAX( 61 ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-9767
SELECT + MAX ( 61 ) AS col2
----
61

query I rowsort
SELECT - 49 + + 57 AS col2
----
8

query I rowsort
SELECT - 25 + - ( - 31 ) AS col0
----
6

query I rowsort
SELECT + 31 + + 10 AS col2
----
41

query I rowsort
SELECT DISTINCT ( + 12 ) AS col2
----
12

query I rowsort
SELECT ALL ( 2 ) AS col2
----
2

query I rowsort
SELECT - 19 + + 29 + 94 * + 94
----
8846

query I rowsort
SELECT DISTINCT ( - 52 ) * + 49
----
-2548

onlyif mysql # aggregate syntax: 
query II rowsort label-9775
SELECT COUNT( * ) * + 48 + - + 86, - 53 AS col0
----
-38
-53

skipif mysql # not compatible
query II rowsort label-9775
SELECT COUNT ( * ) * + 48 + - + 86, - 53 AS col0
----
-38
-53

query II rowsort
SELECT + - ( + 46 ) + - - 27 AS col0, ( 76 ) AS col1
----
-19
76

query I rowsort
SELECT ALL - 87 * 30 * - 95 - + 80
----
247870

onlyif mysql # aggregate syntax: 
query I rowsort label-9778
SELECT + 72 * + - MIN( ALL - - 32 ) AS col2
----
-2304

skipif mysql # not compatible
query I rowsort label-9778
SELECT + 72 * + - MIN ( ALL - - 32 ) AS col2
----
-2304

query I rowsort
SELECT + 99 + - 12 AS col1
----
87

query I rowsort
SELECT - 38 * + ( 63 ) AS col1
----
-2394

onlyif mysql # aggregate syntax: 
query I rowsort label-9781
SELECT + 13 + ( MAX( - + 6 ) ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-9781
SELECT + 13 + ( MAX ( - + 6 ) ) AS col1
----
7

query II rowsort
SELECT - 82 AS col0, 3 + 76
----
-82
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9783
SELECT ALL - 60 / 19 * - COUNT( * ) + - ( - 11 ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9783
SELECT ALL - 60 / 19 * - COUNT ( * ) + - ( - 11 ) * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - + 41 AS col2
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9785
SELECT + + CAST( NULL AS SIGNED ) * + 88 - + 91 AS col1, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-9785
SELECT + + CAST ( NULL AS INTEGER ) * + 88 - + 91 AS col1, COUNT ( * )
----
NULL
1

query I rowsort
SELECT ALL - 11 * - ( + 5 ) * + COALESCE ( - 81, - 75 )
----
-4455

onlyif mysql # DIV for integer division: 
query II rowsort label-9787
SELECT - 2 DIV + ( + - NULLIF ( + 50, + 19 ) ) AS col2, + 15 AS col1
----
0
15

skipif mysql # not compatible
query II rowsort label-9787
SELECT - 2 / + ( + - NULLIF ( + 50, + 19 ) ) AS col2, + 15 AS col1
----
0
15

query I rowsort
SELECT ALL 71 + 35 AS col1
----
106

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9789
SELECT + 50 DIV - + COUNT( * ) + + + ( 13 ) - + 8 * + 51
----
-445

skipif mysql # not compatible
query I rowsort label-9789
SELECT + 50 / - + COUNT ( * ) + + + ( 13 ) - + 8 * + 51
----
-445

onlyif mysql # aggregate syntax: 
query I rowsort label-9790
SELECT 66 - + 57 * + COUNT( * ) * - 75 + - + SUM( - 51 )
----
4392

skipif mysql # not compatible
query I rowsort label-9790
SELECT 66 - + 57 * + COUNT ( * ) * - 75 + - + SUM ( - 51 )
----
4392

query II rowsort
SELECT 81 AS col0, 13 + - 20
----
81
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9792
SELECT ALL 21 + + COUNT( * ) * - 59 DIV 37
----
20

skipif mysql # not compatible
query I rowsort label-9792
SELECT ALL 21 + + COUNT ( * ) * - 59 / 37
----
20

query I rowsort
SELECT DISTINCT 80 + - 98 AS col0
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9794
SELECT ALL - 93 + - 39 + + - 44 - 35 + + - CAST( NULL AS SIGNED ) * + 9 * + CAST( + 29 AS SIGNED ) - - 9 / ( + + 28 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9794
SELECT ALL - 93 + - 39 + + - 44 - 35 + + - CAST ( NULL AS INTEGER ) * + 9 * + CAST ( + 29 AS INTEGER ) - - 9 / ( + + 28 ) AS col2
----
NULL

query I rowsort
SELECT 57 * + + 1 + + 30 AS col0
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-9796
SELECT DISTINCT 15 + + 64 + + 82 - - 1 + - - 3 + 46 + 13 - + 4 DIV - + 41 * - 61 col0
----
224

skipif mysql # not compatible
query I rowsort label-9796
SELECT DISTINCT 15 + + 64 + + 82 - - 1 + - - 3 + 46 + 13 - + 4 / - + 41 * - 61 col0
----
224

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9797
SELECT ALL + CAST( NULL AS SIGNED ) + - 76 + - 83 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9797
SELECT ALL + CAST ( NULL AS INTEGER ) + - 76 + - 83 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9798
SELECT 21 / 16 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9798
SELECT 21 / 16 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9799
SELECT 39 + - 86 + 59 + + COUNT( DISTINCT - 15 ) * + 6 * + ( - 25 ) + + 15 + 32 + + 68 - 14
----
-37

skipif mysql # not compatible
query I rowsort label-9799
SELECT 39 + - 86 + 59 + + COUNT ( DISTINCT - 15 ) * + 6 * + ( - 25 ) + + 15 + 32 + + 68 - 14
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9800
SELECT ALL + COALESCE ( 30, + + SUM( ALL 39 ) ) DIV - 88 * + MIN( - 63 ) + - ( - COUNT( * ) ) AS col1, + ( + ( MAX( ALL 35 ) ) ) + 3
----
1
38

skipif mysql # not compatible
query II rowsort label-9800
SELECT ALL + COALESCE ( 30, + + SUM ( ALL 39 ) ) / - 88 * + MIN ( - 63 ) + - ( - COUNT ( * ) ) AS col1, + ( + ( MAX ( ALL 35 ) ) ) + 3
----
1
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9801
SELECT - AVG ( 8 ) * - - 23 / + + CAST( NULL AS SIGNED ) + - + 16 - + - COUNT( * ), ( - + 0 ) AS col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-9801
SELECT - AVG ( 8 ) * - - 23 / + + CAST ( NULL AS INTEGER ) + - + 16 - + - COUNT ( * ), ( - + 0 ) AS col2
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9802
SELECT ALL + SUM( + 65 ) - ( 54 )
----
11

skipif mysql # not compatible
query I rowsort label-9802
SELECT ALL + SUM ( + 65 ) - ( 54 )
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9803
SELECT ALL - CAST( NULL AS SIGNED ) * - - NULLIF ( - 21, + + 46 ) / + CASE - + COUNT( 77 ) WHEN CASE - 18 WHEN 1 * + + 75 THEN ( 18 ) END THEN NULL ELSE 94 * 63 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9803
SELECT ALL - CAST ( NULL AS INTEGER ) * - - NULLIF ( - 21, + + 46 ) / + CASE - + COUNT ( 77 ) WHEN CASE - 18 WHEN 1 * + + 75 THEN ( 18 ) END THEN NULL ELSE 94 * 63 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9804
SELECT 22 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9804
SELECT 22 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9805
SELECT DISTINCT - AVG ( CAST( NULL AS SIGNED ) ) * 47
----
NULL

skipif mysql # not compatible
query I rowsort label-9805
SELECT DISTINCT - AVG ( CAST ( NULL AS INTEGER ) ) * 47
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9806
SELECT ALL - COALESCE ( 96, 50 + - 91 + - - 59 + - + 56 - - COUNT( * ), - 83 - 33 - - - 42 + + - 20, 0 * - 28 )
----
-96

skipif mysql # not compatible
query I rowsort label-9806
SELECT ALL - COALESCE ( 96, 50 + - 91 + - - 59 + - + 56 - - COUNT ( * ), - 83 - 33 - - - 42 + + - 20, 0 * - 28 )
----
-96

query II rowsort
SELECT 18 AS col2, - 21
----
18
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-9808
SELECT ALL - COALESCE ( + 57, MAX( + 87 ) ) * - 42 - + CASE - - NULLIF ( - - 29, 30 * - 66 * + + 55 + MIN( + 88 ) ) WHEN - MIN( 71 ) + 82 THEN NULL ELSE 11 END AS col1
----
2383

skipif mysql # not compatible
query I rowsort label-9808
SELECT ALL - COALESCE ( + 57, MAX ( + 87 ) ) * - 42 - + CASE - - NULLIF ( - - 29, 30 * - 66 * + + 55 + MIN ( + 88 ) ) WHEN - MIN ( 71 ) + 82 THEN NULL ELSE 11 END AS col1
----
2383

onlyif mysql # DIV for integer division: 
query I rowsort label-9809
SELECT 54 DIV - - 73 * + + 12
----
0

skipif mysql # not compatible
query I rowsort label-9809
SELECT 54 / - - 73 * + + 12
----
0

query II rowsort
SELECT 53 * + + 84, - 69 AS col2
----
4452
-69

query I rowsort
SELECT 40 + - - 62 AS col1
----
102

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9812
SELECT - COALESCE ( + 39, + + 64, 36 + + - 95 + - CAST( NULL AS SIGNED ) DIV + + ( + 84 ) )
----
-39

skipif mysql # not compatible
query I rowsort label-9812
SELECT - COALESCE ( + 39, + + 64, 36 + + - 95 + - CAST ( NULL AS INTEGER ) / + + ( + 84 ) )
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9813
SELECT ALL COUNT( * ), SUM( DISTINCT 88 ) DIV 63 * + 6 + + 75 AS col0
----
1
81

skipif mysql # not compatible
query II rowsort label-9813
SELECT ALL COUNT ( * ), SUM ( DISTINCT 88 ) / 63 * + 6 + + 75 AS col0
----
1
81

query II rowsort
SELECT - - 71, - 69 * + 85 AS col1
----
71
-5865

query I rowsort
SELECT ALL ( + - 89 )
----
-89

query I rowsort
SELECT + 36 * + + 46 + 62
----
1718

query I rowsort
SELECT + 50 - 49 AS col2
----
1

query II rowsort
SELECT ALL + ( - - 32 ) + + ( 23 ) AS col1, - 21 * 35 AS col2
----
55
-735

query I rowsort
SELECT + 77 + + 48 AS col0
----
125

query I rowsort
SELECT ALL - 70 + - 28 col0
----
-98

query I rowsort
SELECT 89 + - 85 - - - 88 AS col1
----
-84

query I rowsort
SELECT - 43 + + 83 AS col1
----
40

query I rowsort
SELECT ALL ( + - NULLIF ( + 9, + 63 - - 42 ) ) AS col2
----
-9

query I rowsort
SELECT + 26 - - 51 col0
----
77

query II rowsort
SELECT ALL 35 AS col0, - 82
----
35
-82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9826
SELECT - CAST( NULL AS SIGNED ) AS col1, - 6
----
NULL
-6

skipif mysql # not compatible
query II rowsort label-9826
SELECT - CAST ( NULL AS INTEGER ) AS col1, - 6
----
NULL
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9827
SELECT DISTINCT - 52 + - - 12 + - - 74 * - 38 * - 99 * CASE 19 WHEN 94 + - 44 - - - CAST( + - COUNT( * ) AS DECIMAL ) + + 20 / CAST( NULL AS SIGNED ) THEN NULL WHEN - 53 - 71 THEN 44 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9827
SELECT DISTINCT - 52 + - - 12 + - - 74 * - 38 * - 99 * CASE 19 WHEN 94 + - 44 - - - CAST ( + - COUNT ( * ) AS REAL ) + + 20 / CAST ( NULL AS INTEGER ) THEN NULL WHEN - 53 - 71 THEN 44 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9828
SELECT MAX( + 57 ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-9828
SELECT MAX ( + 57 ) AS col1
----
57

query I rowsort
SELECT 97 * 28 * + 12 col0
----
32592

onlyif mysql # aggregate syntax: 
query I rowsort label-9830
SELECT DISTINCT COUNT( ALL + 93 ) - 50 + + + COALESCE ( 20, - 91 * COALESCE ( 37, COUNT( * ) + 6 + - 41 ) + - COUNT( * ) ) * 35 AS col0
----
651

skipif mysql # not compatible
query I rowsort label-9830
SELECT DISTINCT COUNT ( ALL + 93 ) - 50 + + + COALESCE ( 20, - 91 * COALESCE ( 37, COUNT ( * ) + 6 + - 41 ) + - COUNT ( * ) ) * 35 AS col0
----
651

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9831
SELECT ALL CAST( NULL AS SIGNED ) * 38
----
NULL

skipif mysql # not compatible
query I rowsort label-9831
SELECT ALL CAST ( NULL AS INTEGER ) * 38
----
NULL

query I rowsort
SELECT DISTINCT 67 * - 19 * + + 72 * + 35 AS col2
----
-3207960

onlyif mysql # aggregate syntax: 
query I rowsort label-9833
SELECT 32 * + MIN( + 94 ) AS col2
----
3008

skipif mysql # not compatible
query I rowsort label-9833
SELECT 32 * + MIN ( + 94 ) AS col2
----
3008

query I rowsort
SELECT ( - 70 ) + + 41 + + - 61 + - 82 AS col1
----
-172

query I rowsort
SELECT - 51 * - ( 14 ) + - 88 * COALESCE ( + 51, - + 17 * - CASE 69 WHEN 39 THEN NULL ELSE - 81 END - - 11, + 86 + 4 )
----
-3774

onlyif mysql # aggregate syntax: 
query I rowsort label-9836
SELECT 22 * + COUNT( ALL - 7 )
----
22

skipif mysql # not compatible
query I rowsort label-9836
SELECT 22 * + COUNT ( ALL - 7 )
----
22

query I rowsort
SELECT 36 * + 45 * - + 35 * 66 + - 87 AS col0
----
-3742287

onlyif mysql # aggregate syntax: 
query I rowsort label-9838
SELECT 64 * - - COALESCE ( + - MAX( + 75 ), 54 * + + 85 * + - COUNT( * ) * COUNT( * ) ) + 50 + + 56 * - 30 - 91 * + 41 AS col1
----
-10161

skipif mysql # not compatible
query I rowsort label-9838
SELECT 64 * - - COALESCE ( + - MAX ( + 75 ), 54 * + + 85 * + - COUNT ( * ) * COUNT ( * ) ) + 50 + + 56 * - 30 - 91 * + 41 AS col1
----
-10161

query I rowsort
SELECT 64 - - 89
----
153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9840
SELECT COUNT( * ) + + 30 + + + CAST( + ( - 24 ) AS DECIMAL ) / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9840
SELECT COUNT ( * ) + + 30 + + + CAST ( + ( - 24 ) AS REAL ) / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9841
SELECT ALL - CAST( + 73 AS SIGNED ) AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-9841
SELECT ALL - CAST ( + 73 AS INTEGER ) AS col1
----
-73

onlyif mysql # DIV for integer division: 
query II rowsort label-9842
SELECT ALL - - 72 DIV - 95 AS col2, - 11 * - ( - 11 )
----
0
-121

skipif mysql # not compatible
query II rowsort label-9842
SELECT ALL - - 72 / - 95 AS col2, - 11 * - ( - 11 )
----
0
-121

onlyif mysql # aggregate syntax: 
query II rowsort label-9843
SELECT 55 * - 67, - SUM( ALL - NULLIF ( 65, - 55 ) ) - - 48 * 65 * + 74 AS col1
----
-3685
230945

skipif mysql # not compatible
query II rowsort label-9843
SELECT 55 * - 67, - SUM ( ALL - NULLIF ( 65, - 55 ) ) - - 48 * 65 * + 74 AS col1
----
-3685
230945

query I rowsort
SELECT 99 + - + 65 AS col2
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-9845
SELECT DISTINCT - MIN( DISTINCT - 67 ), + 63 AS col1
----
67
63

skipif mysql # not compatible
query II rowsort label-9845
SELECT DISTINCT - MIN ( DISTINCT - 67 ), + 63 AS col1
----
67
63

query I rowsort
SELECT - + NULLIF ( + 57, 83 ) AS col1
----
-57

query I rowsort
SELECT ALL + + 59 + 41 + + 25 AS col0
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-9848
SELECT ALL - 60 + COUNT( * )
----
-59

skipif mysql # not compatible
query I rowsort label-9848
SELECT ALL - 60 + COUNT ( * )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9849
SELECT DISTINCT - + 29 + - CASE - 91 WHEN - - COUNT( * ) * + 54 - - - ( COUNT( * ) ) * - 41 THEN NULL ELSE + 39 + + COUNT( * ) END + - - 49
----
-20

skipif mysql # not compatible
query I rowsort label-9849
SELECT DISTINCT - + 29 + - CASE - 91 WHEN - - COUNT ( * ) * + 54 - - - ( COUNT ( * ) ) * - 41 THEN NULL ELSE + 39 + + COUNT ( * ) END + - - 49
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9850
SELECT ALL - - 79 + + COUNT( * )
----
80

skipif mysql # not compatible
query I rowsort label-9850
SELECT ALL - - 79 + + COUNT ( * )
----
80

query I rowsort
SELECT + + 94 * - - 33 + - - 69
----
3171

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9852
SELECT - - 78 + CAST( 13 AS SIGNED ) * + 17 + + + 14
----
313

skipif mysql # not compatible
query I rowsort label-9852
SELECT - - 78 + CAST ( 13 AS INTEGER ) * + 17 + + + 14
----
313

onlyif mysql # DIV for integer division: 
query I rowsort label-9853
SELECT - - COALESCE ( - 54, + - COALESCE ( 43, - 48, - 33 + + + 5, 38 * - 84 ), - 78 + ( - 17 ) ) + 34 DIV + 52
----
-54

skipif mysql # not compatible
query I rowsort label-9853
SELECT - - COALESCE ( - 54, + - COALESCE ( 43, - 48, - 33 + + + 5, 38 * - 84 ), - 78 + ( - 17 ) ) + 34 / + 52
----
-54

query I rowsort
SELECT ALL ( 78 ) AS col1
----
78

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-9855
SELECT - MAX( - + 63 ), + 50 DIV - + 62 * + COUNT( - CAST( - - 23 AS DECIMAL ) ) AS col0
----
63
0

skipif mysql # not compatible
query II rowsort label-9855
SELECT - MAX ( - + 63 ), + 50 / - + 62 * + COUNT ( - CAST ( - - 23 AS REAL ) ) AS col0
----
63
0

query I rowsort
SELECT - COALESCE ( + 75, 75 ) * - 1 AS col1
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9857
SELECT - + 39 + CAST( NULL AS SIGNED ) * + 96 * - COUNT( * ) * 53
----
NULL

skipif mysql # not compatible
query I rowsort label-9857
SELECT - + 39 + CAST ( NULL AS INTEGER ) * + 96 * - COUNT ( * ) * 53
----
NULL

query I rowsort
SELECT DISTINCT 21 + - 8
----
13

query I rowsort
SELECT ALL 73 col1
----
73

query I rowsort
SELECT - 86 + - 59 AS col1
----
-145

query I rowsort
SELECT - 56 * + 3 AS col1
----
-168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9862
SELECT - CAST( NULL AS SIGNED ) - CASE + - 50 WHEN COUNT( * ) / + 16 + + - 51 * - 12 + + 68 THEN - + 33 ELSE NULL END, + 41 AS col0
----
NULL
41

skipif mysql # not compatible
query II rowsort label-9862
SELECT - CAST ( NULL AS INTEGER ) - CASE + - 50 WHEN COUNT ( * ) / + 16 + + - 51 * - 12 + + 68 THEN - + 33 ELSE NULL END, + 41 AS col0
----
NULL
41

query I rowsort
SELECT ( - - 65 )
----
65

query I rowsort
SELECT + 14 * 35 AS col0
----
490

query I rowsort
SELECT - 26 * + - 58
----
1508

query I rowsort
SELECT 31 * + 88 + + + 34 + + 73
----
2835

query I rowsort
SELECT COALESCE ( - 85, - + 18, - 17, 84 ) AS col2
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9868
SELECT DISTINCT + CAST( - + 34 AS SIGNED ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-9868
SELECT DISTINCT + CAST ( - + 34 AS INTEGER ) AS col2
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9869
SELECT ALL + CASE MAX( 63 ) WHEN MAX( ALL - + 61 ) THEN - ( + COUNT( * ) ) - - - CAST( NULL AS SIGNED ) / + 64 * - + COUNT( * ) + 60 ELSE + 50 * - + 78 * - 29 END
----
113100

skipif mysql # not compatible
query I rowsort label-9869
SELECT ALL + CASE MAX ( 63 ) WHEN MAX ( ALL - + 61 ) THEN - ( + COUNT ( * ) ) - - - CAST ( NULL AS INTEGER ) / + 64 * - + COUNT ( * ) + 60 ELSE + 50 * - + 78 * - 29 END
----
113100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9870
SELECT + MAX( ALL - - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9870
SELECT + MAX ( ALL - - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9871
SELECT 77 DIV 24 - - + 27 AS col2
----
30

skipif mysql # not compatible
query I rowsort label-9871
SELECT 77 / 24 - - + 27 AS col2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9872
SELECT DISTINCT + CASE - 0 WHEN - MIN( + 56 ) + - 8 * 81 * - 32 THEN + 81 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9872
SELECT DISTINCT + CASE - 0 WHEN - MIN ( + 56 ) + - 8 * 81 * - 32 THEN + 81 END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9873
SELECT ALL + 83 AS col0, + 47 DIV + 83 + 64 AS col0
----
83
64

skipif mysql # not compatible
query II rowsort label-9873
SELECT ALL + 83 AS col0, + 47 / + 83 + 64 AS col0
----
83
64

onlyif mysql # DIV for integer division: 
query I rowsort label-9874
SELECT - 43 DIV 96 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9874
SELECT - 43 / 96 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9875
SELECT + COUNT( * ) * 85
----
85

skipif mysql # not compatible
query I rowsort label-9875
SELECT + COUNT ( * ) * 85
----
85

query I rowsort
SELECT COALESCE ( + 30, - - 95 )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9877
SELECT CASE 91 WHEN + - 13 THEN NULL WHEN - ( + + 28 ) THEN - 86 ELSE + 30 * MIN( ALL - 96 ) END AS col1
----
-2880

skipif mysql # not compatible
query I rowsort label-9877
SELECT CASE 91 WHEN + - 13 THEN NULL WHEN - ( + + 28 ) THEN - 86 ELSE + 30 * MIN ( ALL - 96 ) END AS col1
----
-2880

onlyif mysql # aggregate syntax: 
query I rowsort label-9878
SELECT DISTINCT ( 52 ) * - + COUNT( * )
----
-52

skipif mysql # not compatible
query I rowsort label-9878
SELECT DISTINCT ( 52 ) * - + COUNT ( * )
----
-52

query I rowsort
SELECT + 42 + + 84 AS col0
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-9880
SELECT + ( MAX( DISTINCT - COALESCE ( + 76, + 98 + - 79 ) ) ) AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-9880
SELECT + ( MAX ( DISTINCT - COALESCE ( + 76, + 98 + - 79 ) ) ) AS col2
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9881
SELECT DISTINCT + CAST( 36 AS SIGNED ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-9881
SELECT DISTINCT + CAST ( 36 AS INTEGER ) AS col1
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9882
SELECT DISTINCT + CASE + 66 WHEN + + 7 THEN ( - + 76 ) WHEN - 58 * + + ( - COUNT( * ) ) THEN NULL ELSE - 87 * CAST( NULL AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9882
SELECT DISTINCT + CASE + 66 WHEN + + 7 THEN ( - + 76 ) WHEN - 58 * + + ( - COUNT ( * ) ) THEN NULL ELSE - 87 * CAST ( NULL AS INTEGER ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9883
SELECT ALL + COUNT( * ) * - - 91 * 3 + - 93 + + 39 * 67 AS col0
----
2793

skipif mysql # not compatible
query I rowsort label-9883
SELECT ALL + COUNT ( * ) * - - 91 * 3 + - 93 + + 39 * 67 AS col0
----
2793

query I rowsort
SELECT ALL 44 * - - 76 + + 43 + - 73
----
3314

onlyif mysql # aggregate syntax: 
query I rowsort label-9885
SELECT + + COUNT( * ) * + 33 * + - 52 AS col1
----
-1716

skipif mysql # not compatible
query I rowsort label-9885
SELECT + + COUNT ( * ) * + 33 * + - 52 AS col1
----
-1716

query I rowsort
SELECT + - 23 + + 54 AS col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9887
SELECT DISTINCT + COUNT( 50 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9887
SELECT DISTINCT + COUNT ( 50 ) AS col0
----
1

query II rowsort
SELECT ALL + + ( + 49 ) - - 15 AS col0, 77 * - 53 AS col0
----
64
-4081

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9889
SELECT ALL - 77 DIV COUNT( * ) AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-9889
SELECT ALL - 77 / COUNT ( * ) AS col1
----
-77

query I rowsort
SELECT - 61 + + + 50
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-9891
SELECT DISTINCT MIN( - - 62 )
----
62

skipif mysql # not compatible
query I rowsort label-9891
SELECT DISTINCT MIN ( - - 62 )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9892
SELECT - - ( 19 ) + 30 - SUM( - 78 ) * - + 4
----
-263

skipif mysql # not compatible
query I rowsort label-9892
SELECT - - ( 19 ) + 30 - SUM ( - 78 ) * - + 4
----
-263

query I rowsort
SELECT ALL - 27 - - + 27
----
0

query I rowsort
SELECT - 62 * 56
----
-3472

onlyif mysql # aggregate syntax: 
query II rowsort label-9895
SELECT ALL COALESCE ( - COUNT( * ), 16 + ( + 52 ) ) AS col0, + 57
----
-1
57

skipif mysql # not compatible
query II rowsort label-9895
SELECT ALL COALESCE ( - COUNT ( * ), 16 + ( + 52 ) ) AS col0, + 57
----
-1
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9896
SELECT + 9 + 54 + - + COUNT( * ) * + 63 * 27
----
-1638

skipif mysql # not compatible
query I rowsort label-9896
SELECT + 9 + 54 + - + COUNT ( * ) * + 63 * 27
----
-1638

query I rowsort
SELECT DISTINCT ( + - 22 ) AS col2
----
-22

query I rowsort
SELECT 45 * + 4 + + ( - + 85 ) + 41 * - + 16
----
-561

query I rowsort
SELECT ALL - 72 * - 64 AS col2
----
4608

onlyif mysql # aggregate syntax: 
query I rowsort label-9900
SELECT - 72 * NULLIF ( - + COUNT( * ), - 57 / + MAX( ALL + 35 ) * - 29 / - 12 )
----
72

skipif mysql # not compatible
query I rowsort label-9900
SELECT - 72 * NULLIF ( - + COUNT ( * ), - 57 / + MAX ( ALL + 35 ) * - 29 / - 12 )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9901
SELECT ALL + SUM( - + 18 )
----
-18

skipif mysql # not compatible
query I rowsort label-9901
SELECT ALL + SUM ( - + 18 )
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9902
SELECT 0 DIV + COUNT( * ) + - 34 - + COUNT( * ) + - 86 + ( - ( - 30 ) ) * 19 AS col2
----
449

skipif mysql # not compatible
query I rowsort label-9902
SELECT 0 / + COUNT ( * ) + - 34 - + COUNT ( * ) + - 86 + ( - ( - 30 ) ) * 19 AS col2
----
449

onlyif mysql # aggregate syntax: 
query I rowsort label-9903
SELECT MAX( - 22 ) * + 69 * - 38 * 96 - + 18 AS col2
----
5537646

skipif mysql # not compatible
query I rowsort label-9903
SELECT MAX ( - 22 ) * + 69 * - 38 * 96 - + 18 AS col2
----
5537646

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9904
SELECT ALL + 73 * + CAST( NULL AS DECIMAL ) * + 17
----
NULL

skipif mysql # not compatible
query I rowsort label-9904
SELECT ALL + 73 * + CAST ( NULL AS REAL ) * + 17
----
NULL

query I rowsort
SELECT + NULLIF ( - 4, + 83 ) * - 42
----
168

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9906
SELECT CAST( - 38 AS SIGNED ) col1, + 29 DIV - 33 AS col1
----
-38
0

skipif mysql # not compatible
query II rowsort label-9906
SELECT CAST ( - 38 AS INTEGER ) col1, + 29 / - 33 AS col1
----
-38
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9907
SELECT CAST( + 39 AS SIGNED )
----
39

skipif mysql # not compatible
query I rowsort label-9907
SELECT CAST ( + 39 AS INTEGER )
----
39

query I rowsort
SELECT ALL + 44 * + 55 AS col1
----
2420

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9909
SELECT + 30 + + + 35 + - 73 * CAST( NULL AS SIGNED ) * - ( 7 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9909
SELECT + 30 + + + 35 + - 73 * CAST ( NULL AS INTEGER ) * - ( 7 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9910
SELECT ALL + 33 + - 25 AS col0, - COALESCE ( + - COUNT( * ), 54 ) * 3
----
8
3

skipif mysql # not compatible
query II rowsort label-9910
SELECT ALL + 33 + - 25 AS col0, - COALESCE ( + - COUNT ( * ), 54 ) * 3
----
8
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9911
SELECT - COUNT( * ) * 71 + + 75 col2
----
4

skipif mysql # not compatible
query I rowsort label-9911
SELECT - COUNT ( * ) * 71 + + 75 col2
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9912
SELECT - 8 * + + 74 + + 92 + + COUNT( * ) + + - COUNT( * ) DIV + 9 AS col1
----
-499

skipif mysql # not compatible
query I rowsort label-9912
SELECT - 8 * + + 74 + + 92 + + COUNT ( * ) + + - COUNT ( * ) / + 9 AS col1
----
-499

query I rowsort
SELECT 38 + + 51 AS col2
----
89

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9914
SELECT - 96 DIV - 99, CAST( NULL AS SIGNED ) + + + ( - 0 ) * - 97 * + - 27 AS col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-9914
SELECT - 96 / - 99, CAST ( NULL AS INTEGER ) + + + ( - 0 ) * - 97 * + - 27 AS col1
----
0
NULL

query II rowsort
SELECT DISTINCT + ( - - 14 ), - 82 AS col0
----
14
-82

query I rowsort
SELECT ALL 49 - 41
----
8

query I rowsort
SELECT ALL 6 * + 65 AS col1
----
390

query I rowsort
SELECT + 46 + 31 col0
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-9919
SELECT ALL - COUNT( - + 98 ) AS col1, + COALESCE ( + ( + COUNT( * ) ), + 94, + 98 * - 97 ) * + 86 * 50 + + 58 AS col2
----
-1
4358

skipif mysql # not compatible
query II rowsort label-9919
SELECT ALL - COUNT ( - + 98 ) AS col1, + COALESCE ( + ( + COUNT ( * ) ), + 94, + 98 * - 97 ) * + 86 * 50 + + 58 AS col2
----
-1
4358

query I rowsort
SELECT CASE + AVG ( - 18 ) WHEN - 71 THEN 45 * - 76 ELSE - - ( 35 ) * 65 + + 56 END + + 55 * + + 69 col2
----
6126

onlyif mysql # aggregate syntax: 
query I rowsort label-9921
SELECT 33 * + + COUNT( * ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-9921
SELECT 33 * + + COUNT ( * ) AS col1
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-9922
SELECT COALESCE ( + + ( - 56 ), + 1 - + 83 ) + - - 9 + - 56 * + 66 DIV 33 col1
----
-159

skipif mysql # not compatible
query I rowsort label-9922
SELECT COALESCE ( + + ( - 56 ), + 1 - + 83 ) + - - 9 + - 56 * + 66 / 33 col1
----
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-9923
SELECT ALL ( - + ( - 15 ) ) * - + 97 * - + ( + 11 ) * - COUNT( * ) AS col2
----
-16005

skipif mysql # not compatible
query I rowsort label-9923
SELECT ALL ( - + ( - 15 ) ) * - + 97 * - + ( + 11 ) * - COUNT ( * ) AS col2
----
-16005

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9924
SELECT ( + 29 ) DIV + 50 * COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9924
SELECT ( + 29 ) / + 50 * COUNT ( * ) AS col2
----
0

query I rowsort
SELECT DISTINCT ( 56 ) * + + 92
----
5152

query II rowsort
SELECT 98 AS col0, + ( 48 ) AS col0
----
98
48

query I rowsort
SELECT 48 + 83 col0
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-9928
SELECT ALL COUNT( * ) * 10 * 62 * - 27 * + - NULLIF ( + 41, + MIN( DISTINCT 22 ) / 30 * - COUNT( * ) - - 23 ) AS col1
----
686340

skipif mysql # not compatible
query I rowsort label-9928
SELECT ALL COUNT ( * ) * 10 * 62 * - 27 * + - NULLIF ( + 41, + MIN ( DISTINCT 22 ) / 30 * - COUNT ( * ) - - 23 ) AS col1
----
686340

onlyif mysql # DIV for integer division: 
query I rowsort label-9929
SELECT 38 DIV + 10
----
3

skipif mysql # not compatible
query I rowsort label-9929
SELECT 38 / + 10
----
3

query I rowsort
SELECT ( + 7 ) * 48
----
336

query I rowsort
SELECT ALL + 69 + + 29 AS col1
----
98

query II rowsort
SELECT 6, + 86 AS col0
----
6
86

query I rowsort
SELECT ALL 95 + 16 AS col0
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-9934
SELECT ALL + COUNT( * ) * - + 48 AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-9934
SELECT ALL + COUNT ( * ) * - + 48 AS col1
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-9935
SELECT ALL + 37 + - + COUNT( * ) + - 46
----
-10

skipif mysql # not compatible
query I rowsort label-9935
SELECT ALL + 37 + - + COUNT ( * ) + - 46
----
-10

query I rowsort
SELECT - 53 - + 59
----
-112

query I rowsort
SELECT + 36 * - + 43
----
-1548

onlyif mysql # aggregate syntax: 
query I rowsort label-9938
SELECT ALL - - NULLIF ( ( - SUM( ALL - + 77 ) ), + - 29 + - ( + 54 ) )
----
77

skipif mysql # not compatible
query I rowsort label-9938
SELECT ALL - - NULLIF ( ( - SUM ( ALL - + 77 ) ), + - 29 + - ( + 54 ) )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9939
SELECT DISTINCT + + 10 - COUNT( * ) col2
----
9

skipif mysql # not compatible
query I rowsort label-9939
SELECT DISTINCT + + 10 - COUNT ( * ) col2
----
9

query I rowsort
SELECT ALL + - 60 - 49
----
-109

onlyif mysql # aggregate syntax: 
query II rowsort label-9941
SELECT + ( + + 19 ) * + - 62 AS col0, + COUNT( * ) * + - 32 AS col2
----
-1178
-32

skipif mysql # not compatible
query II rowsort label-9941
SELECT + ( + + 19 ) * + - 62 AS col0, + COUNT ( * ) * + - 32 AS col2
----
-1178
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9942
SELECT DISTINCT + - 43 * + COUNT( * ) * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9942
SELECT DISTINCT + - 43 * + COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9943
SELECT ALL + 71 DIV - SUM( DISTINCT 77 ) * + COUNT( * ) + - 50
----
-50

skipif mysql # not compatible
query I rowsort label-9943
SELECT ALL + 71 / - SUM ( DISTINCT 77 ) * + COUNT ( * ) + - 50
----
-50

query I rowsort
SELECT + - ( 27 )
----
-27

query I rowsort
SELECT ALL - - 68 - + + 5 + - - ( + 25 ) + + ( + - 78 ) + + ( + 55 )
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9946
SELECT 12 + MAX( DISTINCT + + CAST( NULL AS SIGNED ) ) / + 64 * 67
----
NULL

skipif mysql # not compatible
query I rowsort label-9946
SELECT 12 + MAX ( DISTINCT + + CAST ( NULL AS INTEGER ) ) / + 64 * 67
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9947
SELECT DISTINCT - MAX( DISTINCT - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9947
SELECT DISTINCT - MAX ( DISTINCT - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9948
SELECT 2 DIV - + 83 * COUNT( * ) - 54 + - + 80 AS col0, + 86 * - + 12
----
-134
-1032

skipif mysql # not compatible
query II rowsort label-9948
SELECT 2 / - + 83 * COUNT ( * ) - 54 + - + 80 AS col0, + 86 * - + 12
----
-134
-1032

query I rowsort
SELECT - 10 + 22
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-9950
SELECT 54 AS col0, 12 * - COUNT( * )
----
54
-12

skipif mysql # not compatible
query II rowsort label-9950
SELECT 54 AS col0, 12 * - COUNT ( * )
----
54
-12

query I rowsort
SELECT 16 + 78 + - 48 AS col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9952
SELECT COALESCE ( + 36, 14 ) + - 3 * SUM( ALL - 84 ) AS col0
----
288

skipif mysql # not compatible
query I rowsort label-9952
SELECT COALESCE ( + 36, 14 ) + - 3 * SUM ( ALL - 84 ) AS col0
----
288

onlyif mysql # aggregate syntax: 
query II rowsort label-9953
SELECT DISTINCT ( 12 ) + - - 9 + + 25 * + + ( + 19 ) col2, - CASE 99 WHEN COUNT( * ) THEN NULL WHEN - + 80 + - 89 * + 82 * 72 * MIN( + 80 ) THEN 51 ELSE + 11 END
----
496
-11

skipif mysql # not compatible
query II rowsort label-9953
SELECT DISTINCT ( 12 ) + - - 9 + + 25 * + + ( + 19 ) col2, - CASE 99 WHEN COUNT ( * ) THEN NULL WHEN - + 80 + - 89 * + 82 * 72 * MIN ( + 80 ) THEN 51 ELSE + 11 END
----
496
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-9954
SELECT ( + 17 ) + CASE + + 4 WHEN - COUNT( * ) THEN - + ( + 34 ) * 61 ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9954
SELECT ( + 17 ) + CASE + + 4 WHEN - COUNT ( * ) THEN - + ( + 34 ) * 61 ELSE NULL END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9955
SELECT - MIN( + 56 )
----
-56

skipif mysql # not compatible
query I rowsort label-9955
SELECT - MIN ( + 56 )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-9956
SELECT COALESCE ( + 92, - 52, - + ( + 2 ) ) * - - MIN( DISTINCT - + 38 ) + - + CASE - 85 WHEN 61 * + - 52 + - 64 + + COUNT( + 38 ) * 81 * 80 THEN - 12 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9956
SELECT COALESCE ( + 92, - 52, - + ( + 2 ) ) * - - MIN ( DISTINCT - + 38 ) + - + CASE - 85 WHEN 61 * + - 52 + - 64 + + COUNT ( + 38 ) * 81 * 80 THEN - 12 END AS col0
----
NULL

query I rowsort
SELECT 31 + 2
----
33

query I rowsort
SELECT DISTINCT 90 + + - 84 + - 10
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9959
SELECT ( - 88 ) + + + COUNT( * )
----
-87

skipif mysql # not compatible
query I rowsort label-9959
SELECT ( - 88 ) + + + COUNT ( * )
----
-87

query I rowsort
SELECT 76 - - + 44
----
120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9961
SELECT ALL 84 + + CAST( NULL AS SIGNED ) * 14 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9961
SELECT ALL 84 + + CAST ( NULL AS INTEGER ) * 14 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9962
SELECT - MIN( ALL - 18 )
----
18

skipif mysql # not compatible
query I rowsort label-9962
SELECT - MIN ( ALL - 18 )
----
18

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9963
SELECT DISTINCT 54 + ( - - COALESCE ( + - ( - - 81 ), - + ( + 44 ) ) ) + 4 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9963
SELECT DISTINCT 54 + ( - - COALESCE ( + - ( - - 81 ), - + ( + 44 ) ) ) + 4 * + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT 66 * + - 15 AS col0
----
-990

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9965
SELECT + 42 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9965
SELECT + 42 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9966
SELECT ALL + CAST( NULL AS SIGNED ) * + + 30 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9966
SELECT ALL + CAST ( NULL AS INTEGER ) * + + 30 col2
----
NULL

query I rowsort
SELECT + + 11 + + + 11 + - - 4
----
26

query I rowsort
SELECT + - NULLIF ( - 35, - 61 + - 36 ) + 48 AS col0
----
83

query I rowsort
SELECT - + 30 * 44 + + 40 AS col0
----
-1280

onlyif mysql # aggregate syntax: 
query I rowsort label-9970
SELECT - NULLIF ( - - 91, + - 24 + + 66 ) * + 71 * COUNT( ALL - 24 ) + - 43 AS col1
----
-6504

skipif mysql # not compatible
query I rowsort label-9970
SELECT - NULLIF ( - - 91, + - 24 + + 66 ) * + 71 * COUNT ( ALL - 24 ) + - 43 AS col1
----
-6504

query I rowsort
SELECT NULLIF ( 62, - 64 ) * + 82 + - - 60
----
5144

onlyif mysql # aggregate syntax: 
query I rowsort label-9972
SELECT + + COUNT( ALL - - ( 48 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9972
SELECT + + COUNT ( ALL - - ( 48 ) )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9973
SELECT + 24 * - COUNT( * ) + 89 + - 41 AS col2, 84
----
24
84

skipif mysql # not compatible
query II rowsort label-9973
SELECT + 24 * - COUNT ( * ) + 89 + - 41 AS col2, 84
----
24
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9974
SELECT ALL + - COUNT( 87 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9974
SELECT ALL + - COUNT ( 87 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9975
SELECT DISTINCT + 6 AS col1, - NULLIF ( - COUNT( DISTINCT - 7 ), + 39 )
----
6
1

skipif mysql # not compatible
query II rowsort label-9975
SELECT DISTINCT + 6 AS col1, - NULLIF ( - COUNT ( DISTINCT - 7 ), + 39 )
----
6
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9976
SELECT + MAX( DISTINCT + 95 ) * + 4 + COALESCE ( + 2, - - COUNT( - 34 ) * - 28 + - + 30 + + 3 + + - 77, - 13, - MAX( DISTINCT + 2 ) + 34 + - 63 + COUNT( * ) DIV + 19 * 90 ) AS col0
----
382

skipif mysql # not compatible
query I rowsort label-9976
SELECT + MAX ( DISTINCT + 95 ) * + 4 + COALESCE ( + 2, - - COUNT ( - 34 ) * - 28 + - + 30 + + 3 + + - 77, - 13, - MAX ( DISTINCT + 2 ) + 34 + - 63 + COUNT ( * ) / + 19 * 90 ) AS col0
----
382

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9977
SELECT - CAST( NULL AS SIGNED ) + + - ( + - 13 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9977
SELECT - CAST ( NULL AS INTEGER ) + + - ( + - 13 )
----
NULL

query I rowsort
SELECT + + ( + 74 )
----
74

query I rowsort
SELECT - + 41 * 25 * 86 + + 0 + + - 81 col0
----
-88231

query II rowsort
SELECT 69 col1, 86 AS col0
----
69
86

onlyif mysql # DIV for integer division: 
query I rowsort label-9981
SELECT 54 * 65 * 48 DIV - 36 + - 97 * + - 81 AS col2
----
3177

skipif mysql # not compatible
query I rowsort label-9981
SELECT 54 * 65 * 48 / - 36 + - 97 * + - 81 AS col2
----
3177

onlyif mysql # aggregate syntax: 
query I rowsort label-9982
SELECT ALL - 48 * + COUNT( * ) * - 51 * - MIN( DISTINCT - 45 )
----
110160

skipif mysql # not compatible
query I rowsort label-9982
SELECT ALL - 48 * + COUNT ( * ) * - 51 * - MIN ( DISTINCT - 45 )
----
110160

query I rowsort
SELECT - 3 * 74
----
-222

onlyif mysql # DIV for integer division: 
query I rowsort label-9984
SELECT DISTINCT 73 * 30 DIV 11
----
199

skipif mysql # not compatible
query I rowsort label-9984
SELECT DISTINCT 73 * 30 / 11
----
199

query I rowsort
SELECT DISTINCT + ( + - 54 ) col1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-9986
SELECT DISTINCT SUM( 32 ) col2
----
32

skipif mysql # not compatible
query I rowsort label-9986
SELECT DISTINCT SUM ( 32 ) col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9987
SELECT ALL 50 + + MIN( + 88 )
----
138

skipif mysql # not compatible
query I rowsort label-9987
SELECT ALL 50 + + MIN ( + 88 )
----
138

query I rowsort
SELECT DISTINCT 9 + - 16 + 45
----
38

query I rowsort
SELECT - 32 * - + 61
----
1952

query II rowsort
SELECT - 44 - + + 2 col1, - 11
----
-46
-11

query I rowsort
SELECT ALL 1 * + 25
----
25

query I rowsort
SELECT DISTINCT - 69 + - 44 * 3
----
-201

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9993
SELECT + MIN( ALL 76 ) + 56 + + + 31 * - 36 * + - 42 + CAST( + 94 AS SIGNED ) AS col2
----
47098

skipif mysql # not compatible
query I rowsort label-9993
SELECT + MIN ( ALL 76 ) + 56 + + + 31 * - 36 * + - 42 + CAST ( + 94 AS INTEGER ) AS col2
----
47098

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9994
SELECT + 42 * - MAX( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9994
SELECT + 42 * - MAX ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9995
SELECT - MIN( + + 9 ) AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-9995
SELECT - MIN ( + + 9 ) AS col0
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-9996
SELECT - SUM( + 9 ) AS col1, + 85 AS col2
----
-9
85

skipif mysql # not compatible
query II rowsort label-9996
SELECT - SUM ( + 9 ) AS col1, + 85 AS col2
----
-9
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9997
SELECT - + 81 - COUNT( * )
----
-82

skipif mysql # not compatible
query I rowsort label-9997
SELECT - + 81 - COUNT ( * )
----
-82

query I rowsort
SELECT + + 76 * 55
----
4180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9999
SELECT + CAST( + CAST( - - 42 AS SIGNED ) AS SIGNED ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-9999
SELECT + CAST ( + CAST ( - - 42 AS INTEGER ) AS INTEGER ) AS col1
----
42

