sqllogictest
Artifact Content
Not logged in

Artifact c1f3a1bbaa239fc244d2107cad6ee964befcc805:


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: