sqllogictest
Artifact Content
Not logged in

Artifact c3e7b2a0597f3d18b6a8eed7209049363c169841:


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 ( - 49 )
----
-49

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

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

query I rowsort
SELECT - 87 col0
----
-87

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

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

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

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

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

query I rowsort
SELECT 96
----
96

query I rowsort
SELECT ALL 67 AS col0
----
67

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

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

query I rowsort
SELECT ALL 56
----
56

query II rowsort
SELECT ALL 18, - 42 AS col1
----
18
-42

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

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

query I rowsort
SELECT 67
----
67

query I rowsort
SELECT 48
----
48

query I rowsort
SELECT 53
----
53

query I rowsort
SELECT + 33
----
33

query I rowsort
SELECT 77 AS col2
----
77

query I rowsort
SELECT 47 AS col0
----
47

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

query I rowsort
SELECT 81
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-21
SELECT COUNT( * ) * - ( 7 ) DIV COUNT( * ) + 27 AS col1
----
20

skipif mysql # not compatible
query I rowsort label-21
SELECT COUNT ( * ) * - ( 7 ) / COUNT ( * ) + 27 AS col1
----
20

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

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

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

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

query I rowsort
SELECT ALL - 70 AS col2
----
-70

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

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

query I rowsort
SELECT ALL 46
----
46

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-34
SELECT DISTINCT + 77 AS col1, COUNT( * ) - 11
----
77
-10

skipif mysql # not compatible
query II rowsort label-34
SELECT DISTINCT + 77 AS col1, COUNT ( * ) - 11
----
77
-10

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL 88 + + 79 AS col0
----
167

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

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

query I rowsort
SELECT ALL 67
----
67

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

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

query I rowsort
SELECT ALL + 47
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-48
SELECT - MIN( - 96 ) + - 1
----
95

skipif mysql # not compatible
query I rowsort label-48
SELECT - MIN ( - 96 ) + - 1
----
95

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

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

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

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

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

query I rowsort
SELECT 45 col1
----
45

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

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

query I rowsort
SELECT ALL 51
----
51

query I rowsort
SELECT 64
----
64

query I rowsort
SELECT DISTINCT 68
----
68

query I rowsort
SELECT - 7 + + + 63 * 58 AS col2
----
3647

query I rowsort
SELECT + 96
----
96

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

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

query I rowsort
SELECT + 76
----
76

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

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

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

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

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

query I rowsort
SELECT ALL + 0 * - - 90
----
0

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

query I rowsort
SELECT ALL 74
----
74

query I rowsort
SELECT ALL 27 * + 53 AS col2
----
1431

query I rowsort
SELECT - 85
----
-85

query I rowsort
SELECT 8 + + + 16 AS col0
----
24

query I rowsort
SELECT + - 35
----
-35

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

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

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

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

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

query I rowsort
SELECT + - 75 col0
----
-75

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

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

query I rowsort
SELECT 2 AS col2
----
2

query I rowsort
SELECT ALL 95
----
95

query I rowsort
SELECT 8 AS col1
----
8

query I rowsort
SELECT ALL 52
----
52

query I rowsort
SELECT 89
----
89

query I rowsort
SELECT 94
----
94

query I rowsort
SELECT 2 col2
----
2

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

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

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

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

query I rowsort
SELECT - 83
----
-83

query I rowsort
SELECT - 37
----
-37

query I rowsort
SELECT 4
----
4

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

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

query I rowsort
SELECT ALL + 29
----
29

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

query I rowsort
SELECT 84
----
84

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

query I rowsort
SELECT ALL + - 46
----
-46

query I rowsort
SELECT + 22 col1
----
22

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-98
SELECT CAST( 80 AS SIGNED ) * - - 61 - + 1
----
4879

skipif mysql # not compatible
query I rowsort label-98
SELECT CAST ( 80 AS INTEGER ) * - - 61 - + 1
----
4879

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-99
SELECT + 10 * + + CAST( + 27 AS SIGNED ) AS col1
----
270

skipif mysql # not compatible
query I rowsort label-99
SELECT + 10 * + + CAST ( + 27 AS INTEGER ) AS col1
----
270

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

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

query I rowsort
SELECT 79
----
79

query I rowsort
SELECT 22 col0
----
22

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

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

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

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

query I rowsort
SELECT + - 66
----
-66

query I rowsort
SELECT + 5
----
5

query I rowsort
SELECT - 94 AS col0
----
-94

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

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

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

query II rowsort
SELECT - 78 col2, 79
----
-78
79

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

query I rowsort
SELECT 10 col0
----
10

query I rowsort
SELECT 13
----
13

query I rowsort
SELECT ALL - 31
----
-31

query I rowsort
SELECT 42
----
42

query I rowsort
SELECT + 65
----
65

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

query I rowsort
SELECT 29
----
29

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

query I rowsort
SELECT 37 AS col2
----
37

query I rowsort
SELECT ALL 77 AS col2
----
77

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

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

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

query I rowsort
SELECT - + 21
----
-21

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

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

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

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

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

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

query I rowsort
SELECT - 86 AS col1
----
-86

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

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

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

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

query I rowsort
SELECT - 89
----
-89

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

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

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

query I rowsort
SELECT ALL 35 AS col0
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-136
SELECT - - CAST( NULL AS SIGNED ) + COALESCE ( + 16, 14 * - 81 * - 83 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-136
SELECT - - CAST ( NULL AS INTEGER ) + COALESCE ( + 16, 14 * - 81 * - 83 ) AS col1
----
NULL

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

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

query I rowsort
SELECT ALL 31
----
31

query I rowsort
SELECT ALL + 86
----
86

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

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

query I rowsort
SELECT + 9 + - ( + 6 )
----
3

query I rowsort
SELECT DISTINCT 62
----
62

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

query I rowsort
SELECT - 42
----
-42

query I rowsort
SELECT - - 35
----
35

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

query I rowsort
SELECT 81 + 43 AS col1
----
124

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

query I rowsort
SELECT ALL - 99
----
-99

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + 66 * 28
----
1848

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

skipif mysql # not compatible
query II rowsort label-156
SELECT ALL 52 AS col2, COUNT ( * ) / + - CAST ( NULL AS REAL )
----
52
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-157
SELECT ALL - 48 * + COALESCE ( - 87, + CAST( + - 25 AS SIGNED ) - - + ( - 88 ) )
----
4176

skipif mysql # not compatible
query I rowsort label-157
SELECT ALL - 48 * + COALESCE ( - 87, + CAST ( + - 25 AS INTEGER ) - - + ( - 88 ) )
----
4176

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

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

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

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

query I rowsort
SELECT ALL 79 - + + 26 + + 57
----
110

onlyif mysql # DIV for integer division: 
query I rowsort label-162
SELECT + 32 DIV 34
----
0

skipif mysql # not compatible
query I rowsort label-162
SELECT + 32 / 34
----
0

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

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

query I rowsort
SELECT ALL 58 * + 44 AS col0
----
2552

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT + 9
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-172
SELECT - CAST( - 42 AS SIGNED ) * 36 AS col2
----
1512

skipif mysql # not compatible
query I rowsort label-172
SELECT - CAST ( - 42 AS INTEGER ) * 36 AS col2
----
1512

query I rowsort
SELECT DISTINCT + 62
----
62

query I rowsort
SELECT 32 col0
----
32

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

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

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

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

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

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

query I rowsort
SELECT 69
----
69

query I rowsort
SELECT - + 3
----
-3

query I rowsort
SELECT - 78
----
-78

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-183
SELECT ALL 26 DIV - MAX( + 45 )
----
0

skipif mysql # not compatible
query I rowsort label-183
SELECT ALL 26 / - MAX ( + 45 )
----
0

query I rowsort
SELECT ALL 25
----
25

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

query I rowsort
SELECT + + 33
----
33

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

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

query I rowsort
SELECT DISTINCT - - 56
----
56

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

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

query I rowsort
SELECT + 34
----
34

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

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

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

query I rowsort
SELECT ALL - 64
----
-64

query I rowsort
SELECT ALL 94 AS col0
----
94

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-196
SELECT MAX( - + 65 ) + 55
----
-10

skipif mysql # not compatible
query I rowsort label-196
SELECT MAX ( - + 65 ) + 55
----
-10

query I rowsort
SELECT DISTINCT 20
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-198
SELECT DISTINCT COUNT( * ) + - + COUNT( * ) + + - ( - 34 ) AS col0, 4
----
34
4

skipif mysql # not compatible
query II rowsort label-198
SELECT DISTINCT COUNT ( * ) + - + COUNT ( * ) + + - ( - 34 ) AS col0, 4
----
34
4

query I rowsort
SELECT - 21
----
-21

query I rowsort
SELECT 43
----
43

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

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

query I rowsort
SELECT 99
----
99

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

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

query I rowsort
SELECT 66 * - 71
----
-4686

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

skipif mysql # not compatible
query I rowsort label-206
SELECT - MAX ( DISTINCT - 58 )
----
58

query I rowsort
SELECT ALL 58
----
58

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

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

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

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

query I rowsort
SELECT - 23
----
-23

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

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

query II rowsort
SELECT ALL + - 16, 56 col0
----
-16
56

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

onlyif mysql # DIV for integer division: 
query I rowsort label-214
SELECT + 62 DIV + 16
----
3

skipif mysql # not compatible
query I rowsort label-214
SELECT + 62 / + 16
----
3

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

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

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

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

query II rowsort
SELECT DISTINCT 53, + 79 col0
----
53
79

query I rowsort
SELECT ALL 59
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-220
SELECT ALL MAX( ALL + 49 ) AS col2, ( - - ( + 44 ) )
----
49
44

skipif mysql # not compatible
query II rowsort label-220
SELECT ALL MAX ( ALL + 49 ) AS col2, ( - - ( + 44 ) )
----
49
44

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

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

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

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

query I rowsort
SELECT + 56 col1
----
56

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

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

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

skipif mysql # not compatible
query I rowsort label-226
SELECT + COUNT ( * ) / MAX ( ( 64 ) )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-227
SELECT 90 * - 49 AS col1, - MAX( + + 99 ) * - 72
----
-4410
7128

skipif mysql # not compatible
query II rowsort label-227
SELECT 90 * - 49 AS col1, - MAX ( + + 99 ) * - 72
----
-4410
7128

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

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

query I rowsort
SELECT 25 * + 9 AS col2
----
225

query I rowsort
SELECT ALL - 84 AS col0
----
-84

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

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

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

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

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

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

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

query I rowsort
SELECT ALL + 36 * 93 AS col2
----
3348

query I rowsort
SELECT 66
----
66

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

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

query I rowsort
SELECT 33 AS col1
----
33

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

skipif mysql # not compatible
query I rowsort label-239
SELECT 19 + - COUNT ( * ) + 8 AS col1
----
26

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

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

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

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

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

query I rowsort
SELECT DISTINCT 34 * - 66
----
-2244

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

query I rowsort
SELECT ALL + 13 * 69 col1
----
897

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

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

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

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

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

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

query I rowsort
SELECT 66 col2
----
66

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

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

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

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

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

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

query I rowsort
SELECT + 40 - - + 73
----
113

query I rowsort
SELECT - 66
----
-66

query I rowsort
SELECT 65
----
65

query I rowsort
SELECT ALL 11
----
11

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

skipif mysql # not compatible
query I rowsort label-258
SELECT ALL COUNT ( ALL + - 18 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-259
SELECT - AVG ( - CAST( NULL AS SIGNED ) ) * - 95 AS col1, + 11
----
NULL
11

skipif mysql # not compatible
query II rowsort label-259
SELECT - AVG ( - CAST ( NULL AS INTEGER ) ) * - 95 AS col1, + 11
----
NULL
11

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-264
SELECT ALL - COUNT( * ) * - 68 + + 39 AS col2
----
107

skipif mysql # not compatible
query I rowsort label-264
SELECT ALL - COUNT ( * ) * - 68 + + 39 AS col2
----
107

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL 45 + + 54 AS col2
----
99

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-274
SELECT - ( - COUNT( * ) ) * 11 + NULLIF ( 80, 6 ) col1
----
91

skipif mysql # not compatible
query I rowsort label-274
SELECT - ( - COUNT ( * ) ) * 11 + NULLIF ( 80, 6 ) col1
----
91

query I rowsort
SELECT DISTINCT - 86
----
-86

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

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

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

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

skipif mysql # not compatible
query II rowsort label-278
SELECT - CAST ( NULL AS INTEGER ) AS col1, 62 AS col0
----
NULL
62

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT 98
----
98

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

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

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

query I rowsort
SELECT + 15
----
15

query I rowsort
SELECT DISTINCT - 76
----
-76

query I rowsort
SELECT ALL - - 62 AS col2
----
62

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

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT - 73 * + 21
----
-1533

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

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

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

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

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

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

query II rowsort
SELECT + - 78 AS col1, - 9
----
-78
-9

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

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

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

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

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

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

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

query I rowsort
SELECT 49 col0
----
49

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

query I rowsort
SELECT 93
----
93

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

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

query I rowsort
SELECT ALL 11 AS col2
----
11

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

query I rowsort
SELECT ALL + 94 + - ( 86 ) AS col1
----
8

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-319
SELECT ALL - - 23 + + MAX( DISTINCT 45 ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-319
SELECT ALL - - 23 + + MAX ( DISTINCT 45 ) AS col1
----
68

query I rowsort
SELECT DISTINCT - 23
----
-23

query I rowsort
SELECT 50 AS col0
----
50

query I rowsort
SELECT ALL - 32 - + 72
----
-104

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

query I rowsort
SELECT 69 + + + 49
----
118

query I rowsort
SELECT - 51 col0
----
-51

query I rowsort
SELECT ALL 56 + - 82 AS col0
----
-26

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

query I rowsort
SELECT DISTINCT 40 + 62
----
102

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

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

query I rowsort
SELECT ALL - + 81
----
-81

query I rowsort
SELECT 4 AS col0
----
4

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

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

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

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

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

query I rowsort
SELECT - 64 AS col2
----
-64

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

skipif mysql # not compatible
query I rowsort label-338
SELECT DISTINCT SUM ( DISTINCT - 76 )
----
-76

query I rowsort
SELECT - 75 AS col0
----
-75

query I rowsort
SELECT ALL 36
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-341
SELECT ALL 31 * - 73 - CAST( - 86 AS SIGNED )
----
-2177

skipif mysql # not compatible
query I rowsort label-341
SELECT ALL 31 * - 73 - CAST ( - 86 AS INTEGER )
----
-2177

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT - 22 AS col0
----
-22

query I rowsort
SELECT DISTINCT + 60
----
60

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

query I rowsort
SELECT 5
----
5

query I rowsort
SELECT ALL 99
----
99

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

query I rowsort
SELECT + 78
----
78

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

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

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

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

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

query I rowsort
SELECT ( 53 )
----
53

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT - 54
----
-54

query I rowsort
SELECT ALL + 18
----
18

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

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

query I rowsort
SELECT 28
----
28

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

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

query I rowsort
SELECT ALL - 64 AS col2
----
-64

query I rowsort
SELECT DISTINCT + 15 * - 75 AS col2
----
-1125

query I rowsort
SELECT 6 AS col2
----
6

query I rowsort
SELECT 15
----
15

query I rowsort
SELECT 20
----
20

query I rowsort
SELECT 28 AS col1
----
28

query I rowsort
SELECT 52 AS col1
----
52

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

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

query I rowsort
SELECT - 72 AS col1
----
-72

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

skipif mysql # not compatible
query I rowsort label-380
SELECT DISTINCT 54 - + COUNT ( * ) AS col1
----
53

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

query I rowsort
SELECT DISTINCT - 89
----
-89

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

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

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

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

query I rowsort
SELECT ALL - - 44 + - 97 AS col2
----
-53

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-388
SELECT ALL - MIN( ALL - 46 ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-388
SELECT ALL - MIN ( ALL - 46 ) AS col2
----
46

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

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

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

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

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

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

query I rowsort
SELECT 64 AS col2
----
64

query I rowsort
SELECT 72 AS col0
----
72

query I rowsort
SELECT 53 AS col0
----
53

query I rowsort
SELECT + 45 - 44
----
1

query I rowsort
SELECT ALL 51 * - 98
----
-4998

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

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

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

skipif mysql # not compatible
query I rowsort label-400
SELECT ALL - 8 / + COUNT ( * )
----
-8

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

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

query I rowsort
SELECT 22 AS col0
----
22

query I rowsort
SELECT 8 + - 67 AS col1
----
-59

query I rowsort
SELECT DISTINCT - 39
----
-39

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-409
SELECT MAX( 15 ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-409
SELECT MAX ( 15 ) AS col0
----
15

query I rowsort
SELECT 17
----
17

query I rowsort
SELECT - - 54 AS col2
----
54

query I rowsort
SELECT - 98 AS col1
----
-98

query I rowsort
SELECT 36
----
36

query I rowsort
SELECT + 27 + + 8
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-415
SELECT ALL COUNT( ALL - - 63 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-415
SELECT ALL COUNT ( ALL - - 63 ) AS col1
----
1

query I rowsort
SELECT 88 - - - 35
----
53

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

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

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

query II rowsort
SELECT ALL - - 76, + 90 AS col1
----
76
90

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

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

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

query I rowsort
SELECT 7
----
7

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

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

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

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

query I rowsort
SELECT DISTINCT 96
----
96

query I rowsort
SELECT DISTINCT 47
----
47

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-428
SELECT + MIN( DISTINCT - 20 ) * - 32 - + - 28 - COUNT( * )
----
667

skipif mysql # not compatible
query I rowsort label-428
SELECT + MIN ( DISTINCT - 20 ) * - 32 - + - 28 - COUNT ( * )
----
667

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-432
SELECT - - CAST( 62 AS SIGNED ) * + 65
----
4030

skipif mysql # not compatible
query I rowsort label-432
SELECT - - CAST ( 62 AS INTEGER ) * + 65
----
4030

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

query I rowsort
SELECT 34 AS col1
----
34

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

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

query I rowsort
SELECT 98 AS col1
----
98

query I rowsort
SELECT + COALESCE ( + 52, - + ( 46 ) ) + - + 75
----
-23

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL - 98
----
-98

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

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

query I rowsort
SELECT - 6
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-447
SELECT DISTINCT - 26 col0, + CAST( NULL AS SIGNED )
----
-26
NULL

skipif mysql # not compatible
query II rowsort label-447
SELECT DISTINCT - 26 col0, + CAST ( NULL AS INTEGER )
----
-26
NULL

query I rowsort
SELECT 85 * - ( + + 68 ) AS col0
----
-5780

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

query I rowsort
SELECT 82 AS col2
----
82

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

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

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

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

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

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

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

query I rowsort
SELECT 9
----
9

query I rowsort
SELECT 23 col2
----
23

query I rowsort
SELECT ALL - 91 + - 43 AS col1
----
-134

query I rowsort
SELECT 39 AS col1
----
39

query I rowsort
SELECT - 98
----
-98

query I rowsort
SELECT ALL + 55 * + + 65 col0
----
3575

onlyif mysql # DIV for integer division: 
query I rowsort label-461
SELECT DISTINCT + 73 DIV - + 68 col1
----
-1

skipif mysql # not compatible
query I rowsort label-461
SELECT DISTINCT + 73 / - + 68 col1
----
-1

query I rowsort
SELECT - - 96 + + 34 * + - 38
----
-1196

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

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

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

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

query I rowsort
SELECT 78
----
78

query I rowsort
SELECT + 85
----
85

query I rowsort
SELECT + 46
----
46

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-469
SELECT MIN( DISTINCT 26 ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-469
SELECT MIN ( DISTINCT 26 ) AS col1
----
26

query I rowsort
SELECT DISTINCT 14 * + + 23
----
322

query I rowsort
SELECT 11 AS col0
----
11

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

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

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

query I rowsort
SELECT 24
----
24

query I rowsort
SELECT - 70
----
-70

query I rowsort
SELECT ALL + 81
----
81

query I rowsort
SELECT - 75
----
-75

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

onlyif mysql # DIV for integer division: 
query I rowsort label-479
SELECT ALL - 51 DIV - 98 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-479
SELECT ALL - 51 / - 98 AS col1
----
0

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

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

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

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

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

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

query I rowsort
SELECT - 51
----
-51

query I rowsort
SELECT - - 60
----
60

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

query I rowsort
SELECT 7 AS col0
----
7

query I rowsort
SELECT - 58 AS col0
----
-58

query I rowsort
SELECT - 31
----
-31

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

query I rowsort
SELECT 39 col0
----
39

query I rowsort
SELECT ALL - 42
----
-42

query I rowsort
SELECT 20 col1
----
20

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-495
SELECT 26 DIV - + 87
----
0

skipif mysql # not compatible
query I rowsort label-495
SELECT 26 / - + 87
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-497
SELECT DISTINCT 3 DIV + 57
----
0

skipif mysql # not compatible
query I rowsort label-497
SELECT DISTINCT 3 / + 57
----
0

query I rowsort
SELECT 49
----
49

query I rowsort
SELECT 36 AS col1
----
36

query I rowsort
SELECT + 58
----
58

query I rowsort
SELECT ALL 67 col0
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-502
SELECT DISTINCT + 45 DIV 96 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-502
SELECT DISTINCT + 45 / 96 AS col1
----
0

query I rowsort
SELECT ALL + 95 * - + 8 AS col1
----
-760

query I rowsort
SELECT - 10
----
-10

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-508
SELECT + COUNT( * ) * - 94 * NULLIF ( + 20, 51 ) col2
----
-1880

skipif mysql # not compatible
query I rowsort label-508
SELECT + COUNT ( * ) * - 94 * NULLIF ( + 20, 51 ) col2
----
-1880

onlyif mysql # aggregate syntax: 
query I rowsort label-509
SELECT ALL + COUNT( * ) * 47 + + + 89
----
136

skipif mysql # not compatible
query I rowsort label-509
SELECT ALL + COUNT ( * ) * 47 + + + 89
----
136

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-511
SELECT + + 61 + + ( COUNT( * ) ) + + + 64 * 88
----
5694

skipif mysql # not compatible
query I rowsort label-511
SELECT + + 61 + + ( COUNT ( * ) ) + + + 64 * 88
----
5694

query I rowsort
SELECT ALL + 61
----
61

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-518
SELECT ALL - SUM ( 67 )
----
-67

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

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

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

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

query I rowsort
SELECT ALL 94
----
94

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

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

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

query I rowsort
SELECT ALL + 33 * + 77 col0
----
2541

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-526
SELECT - 74 - - COUNT( * ) + COUNT( * ) DIV 39 AS col1
----
-73

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-530
SELECT ALL - 78 DIV - 84 * 28
----
0

skipif mysql # not compatible
query I rowsort label-530
SELECT ALL - 78 / - 84 * 28
----
0

query I rowsort
SELECT DISTINCT 82 col2
----
82

query I rowsort
SELECT ALL 63 * - 59 + - 97
----
-3814

onlyif mysql # aggregate syntax: 
query II rowsort label-533
SELECT 47 + - ( - COUNT( * ) ) + + + COUNT( * ) AS col0, 76 col1
----
49
76

skipif mysql # not compatible
query II rowsort label-533
SELECT 47 + - ( - COUNT ( * ) ) + + + COUNT ( * ) AS col0, 76 col1
----
49
76

query I rowsort
SELECT - 33 * 27
----
-891

onlyif mysql # aggregate syntax: 
query II rowsort label-535
SELECT + 73 + COUNT( * ) AS col0, 85 AS col0
----
74
85

skipif mysql # not compatible
query II rowsort label-535
SELECT + 73 + COUNT ( * ) AS col0, 85 AS col0
----
74
85

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

query I rowsort
SELECT + 50
----
50

query I rowsort
SELECT ALL - - 5
----
5

query I rowsort
SELECT ALL - - 32 AS col0
----
32

query I rowsort
SELECT ALL - + 72
----
-72

query I rowsort
SELECT - - 92
----
92

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

query I rowsort
SELECT 74
----
74

query I rowsort
SELECT 12 AS col1
----
12

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

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

query I rowsort
SELECT + 19 * - + 13
----
-247

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

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

query I rowsort
SELECT DISTINCT - - 45 * + 75 * - 28 AS col1
----
-94500

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-551
SELECT - 97 / CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-551
SELECT - 97 / CAST ( NULL AS INTEGER ) AS col1
----
NULL

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

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

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

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

query I rowsort
SELECT ALL 26 AS col2
----
26

query I rowsort
SELECT 81 AS col1
----
81

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-560
SELECT 55 DIV - 99 + - 23
----
-23

skipif mysql # not compatible
query I rowsort label-560
SELECT 55 / - 99 + - 23
----
-23

query I rowsort
SELECT 85
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-562
SELECT - 71 * COUNT( DISTINCT - + 65 )
----
-71

skipif mysql # not compatible
query I rowsort label-562
SELECT - 71 * COUNT ( DISTINCT - + 65 )
----
-71

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-565
SELECT + + ( + COUNT ( ALL - 11 ) ) AS col2
----
1

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-567
SELECT CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) / + + MAX( 71 ) + - - 17
----
NULL

skipif mysql # not compatible
query I rowsort label-567
SELECT CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) / + + MAX ( 71 ) + - - 17
----
NULL

query I rowsort
SELECT - 18 AS col0
----
-18

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-570
SELECT ALL + 6 * + + CAST( NULL AS DECIMAL ) - 81
----
NULL

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

query I rowsort
SELECT - + 44
----
-44

query I rowsort
SELECT - 52 AS col0
----
-52

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-575
SELECT ALL - COUNT ( * ) / + - 2 * 29
----
0

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

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

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

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

query I rowsort
SELECT 14 AS col2
----
14

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

query I rowsort
SELECT - 38 AS col1
----
-38

query I rowsort
SELECT 57 * + 29 AS col1
----
1653

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

query I rowsort
SELECT - 49 col2
----
-49

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

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

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

query I rowsort
SELECT ALL + + 22
----
22

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

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

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

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

query I rowsort
SELECT - 2 AS col0
----
-2

query I rowsort
SELECT 29 col2
----
29

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

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

query I rowsort
SELECT - - 30
----
30

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

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

query I rowsort
SELECT - + 7
----
-7

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

query I rowsort
SELECT DISTINCT + 71
----
71

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

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

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

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

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

query I rowsort
SELECT ALL + 11
----
11

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL - 34 col0
----
-34

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

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

query I rowsort
SELECT 41 * - 28 AS col2
----
-1148

query I rowsort
SELECT ALL - 15 AS col0
----
-15

query I rowsort
SELECT 54 AS col2
----
54

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

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

query I rowsort
SELECT 24 AS col0
----
24

query I rowsort
SELECT 41 AS col2
----
41

query II rowsort
SELECT 84 AS col2, 96
----
84
96

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

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

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

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

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

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

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

query I rowsort
SELECT ALL 73
----
73

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

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

query I rowsort
SELECT ALL 65
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-626
SELECT ALL 62 * 17 + + COUNT( * )
----
1055

skipif mysql # not compatible
query I rowsort label-626
SELECT ALL 62 * 17 + + COUNT ( * )
----
1055

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

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

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

query I rowsort
SELECT ALL 17 col0
----
17

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

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

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

query I rowsort
SELECT - 63
----
-63

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

skipif mysql # not compatible
query I rowsort label-633
SELECT ALL 26 + - COUNT ( * ) AS col1
----
25

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-634
SELECT ALL + ( - + 65 ) * - + CAST( NULL AS DECIMAL ) - + 74
----
NULL

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

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

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

query I rowsort
SELECT - 90 * + 37 + + 20 col2
----
-3310

query II rowsort
SELECT + 46 AS col2, + 26
----
46
26

query I rowsort
SELECT ALL - 9
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-640
SELECT - COUNT( - 2 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-640
SELECT - COUNT ( - 2 ) AS col2
----
-1

query I rowsort
SELECT - + COALESCE ( - 71, 6 ) + + 50
----
121

query I rowsort
SELECT DISTINCT 13
----
13

query I rowsort
SELECT ALL 64
----
64

query I rowsort
SELECT 32
----
32

query I rowsort
SELECT - 67 * - 89 AS col0
----
5963

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-648
SELECT - 11 * + NULLIF ( + 53, + 45 ) + - - COUNT( * ) col0
----
-582

skipif mysql # not compatible
query I rowsort label-648
SELECT - 11 * + NULLIF ( + 53, + 45 ) + - - COUNT ( * ) col0
----
-582

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

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

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

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

query I rowsort
SELECT - - 14 AS col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-653
SELECT ALL - MIN( ALL + + 2 ) col2
----
-2

skipif mysql # not compatible
query I rowsort label-653
SELECT ALL - MIN ( ALL + + 2 ) col2
----
-2

query I rowsort
SELECT - 25
----
-25

query I rowsort
SELECT ALL 81
----
81

query I rowsort
SELECT DISTINCT 67
----
67

query I rowsort
SELECT ALL 19
----
19

query I rowsort
SELECT ALL 27
----
27

query I rowsort
SELECT DISTINCT 78
----
78

query I rowsort
SELECT ALL 84
----
84

query I rowsort
SELECT 4 * 72 AS col2
----
288

query I rowsort
SELECT DISTINCT - 5 * + 40 AS col1
----
-200

query I rowsort
SELECT ALL 93
----
93

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

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

query I rowsort
SELECT - 47
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-666
SELECT 94 DIV + + 23 col0
----
4

skipif mysql # not compatible
query I rowsort label-666
SELECT 94 / + + 23 col0
----
4

query I rowsort
SELECT + 4
----
4

query I rowsort
SELECT ALL - 0 AS col0
----
0

query I rowsort
SELECT + 30 * - 88
----
-2640

query I rowsort
SELECT DISTINCT - 84 * - 86
----
7224

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

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

query I rowsort
SELECT 22
----
22

query I rowsort
SELECT ALL 79
----
79

query I rowsort
SELECT - 39
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-676
SELECT ALL - COUNT( * ) + 89
----
88

skipif mysql # not compatible
query I rowsort label-676
SELECT ALL - COUNT ( * ) + 89
----
88

query I rowsort
SELECT ALL 75 * - 42 + + 37 * + 4
----
-3002

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT 75
----
75

query I rowsort
SELECT ALL 26
----
26

query I rowsort
SELECT 94 AS col0
----
94

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

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

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

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

query I rowsort
SELECT - ( - 85 )
----
85

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

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

query I rowsort
SELECT 80 AS col0
----
80

query I rowsort
SELECT 27 AS col2
----
27

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

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

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

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

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

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

query I rowsort
SELECT + - 22
----
-22

query I rowsort
SELECT + 28
----
28

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

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

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

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

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

query II rowsort
SELECT - 15 AS col0, - 42
----
-15
-42

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

query I rowsort
SELECT ALL - 16
----
-16

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

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

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

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

query I rowsort
SELECT 11
----
11

query I rowsort
SELECT + 24
----
24

query I rowsort
SELECT 19 AS col1
----
19

query I rowsort
SELECT 54 AS col0
----
54

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-712
SELECT 39 * COUNT ( * )
----
39

query I rowsort
SELECT 19
----
19

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

query I rowsort
SELECT 62 col2
----
62

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-717
SELECT ALL + - SUM( DISTINCT 33 ) AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-717
SELECT ALL + - SUM ( DISTINCT 33 ) AS col2
----
-33

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-719
SELECT - 67 DIV + CAST( - COUNT( * ) AS SIGNED ) AS col0
----
67

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

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

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

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

query I rowsort
SELECT - COALESCE ( - 90, + 62 * 67, - - 93 )
----
90

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-724
SELECT - + CAST( NULL AS SIGNED ) / - + 9 * + 13
----
NULL

skipif mysql # not compatible
query I rowsort label-724
SELECT - + CAST ( NULL AS INTEGER ) / - + 9 * + 13
----
NULL

query I rowsort
SELECT ALL + 42
----
42

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

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

query II rowsort
SELECT ALL + 74, 68 AS col1
----
74
68

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

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

query I rowsort
SELECT - + 78
----
-78

query II rowsort
SELECT - - 60 AS col1, 6 AS col0
----
60
6

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

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

query I rowsort
SELECT - - 91
----
91

query I rowsort
SELECT ALL - 58
----
-58

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

query I rowsort
SELECT ALL - 77 AS col2
----
-77

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

query I rowsort
SELECT ALL 30 * + ( - 68 ) * 14 AS col1
----
-28560

query I rowsort
SELECT DISTINCT - 34
----
-34

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

query I rowsort
SELECT - - 80 AS col0
----
80

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

query I rowsort
SELECT - 4 AS col0
----
-4

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

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

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

skipif mysql # not compatible
query II rowsort label-745
SELECT DISTINCT 65 AS col1, - COUNT ( * ) + - - CAST ( NULL AS INTEGER )
----
65
NULL

query I rowsort
SELECT ALL - 83
----
-83

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

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

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

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

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

query I rowsort
SELECT - 94 AS col1
----
-94

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

query I rowsort
SELECT ALL 60 col1
----
60

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL 88
----
88

query I rowsort
SELECT 32 AS col1
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-764
SELECT + 62 DIV - ( MIN( 71 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-764
SELECT + 62 / - ( MIN ( 71 ) ) AS col0
----
0

query I rowsort
SELECT 45
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-766
SELECT + 26 DIV 68 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-766
SELECT + 26 / 68 AS col2
----
0

query I rowsort
SELECT ALL - 66 AS col0
----
-66

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

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

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

skipif mysql # not compatible
query I rowsort label-769
SELECT COUNT ( * ) + - ( + 87 ) * + 69 AS col2
----
-6002

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

query I rowsort
SELECT - 88
----
-88

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

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

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

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

query II rowsort
SELECT ALL 67 AS col1, 95
----
67
95

query I rowsort
SELECT 73 * 80
----
5840

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-779
SELECT ALL - COALESCE ( + - COUNT( * ), + + 56 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-779
SELECT ALL - COALESCE ( + - COUNT ( * ), + + 56 ) AS col2
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-781
SELECT ALL + 52 * + ( MIN( ALL 1 ) )
----
52

skipif mysql # not compatible
query I rowsort label-781
SELECT ALL + 52 * + ( MIN ( ALL 1 ) )
----
52

query I rowsort
SELECT 14 col0
----
14

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

query I rowsort
SELECT - 48 AS col1
----
-48

query I rowsort
SELECT DISTINCT + 63 - 54 - - 24 AS col0
----
33

query I rowsort
SELECT - 53
----
-53

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

query I rowsort
SELECT - 99
----
-99

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

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

query I rowsort
SELECT ALL + 85
----
85

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

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

query I rowsort
SELECT ALL 21
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-794
SELECT DISTINCT 80 AS col0, + MIN( - 82 ) AS col0
----
80
-82

skipif mysql # not compatible
query II rowsort label-794
SELECT DISTINCT 80 AS col0, + MIN ( - 82 ) AS col0
----
80
-82

query I rowsort
SELECT 91
----
91

query I rowsort
SELECT ALL 89
----
89

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-799
SELECT ALL COUNT( * ) DIV - 35 col1
----
0

skipif mysql # not compatible
query I rowsort label-799
SELECT ALL COUNT ( * ) / - 35 col1
----
0

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

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

query I rowsort
SELECT 45 AS col2
----
45

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

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

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

query I rowsort
SELECT + 53
----
53

query I rowsort
SELECT + 91 * + 46 AS col2
----
4186

query I rowsort
SELECT ALL - 37
----
-37

query I rowsort
SELECT DISTINCT 79
----
79

query I rowsort
SELECT 66 - + - 68 AS col2
----
134

query I rowsort
SELECT 24 col0
----
24

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

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

query I rowsort
SELECT - 98 AS col2
----
-98

query I rowsort
SELECT 98 AS col2
----
98

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

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

query I rowsort
SELECT 35 AS col1
----
35

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

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

query I rowsort
SELECT + 43
----
43

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

query I rowsort
SELECT + COALESCE ( - 21, - 27 )
----
-21

query I rowsort
SELECT DISTINCT + 8
----
8

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

skipif mysql # not compatible
query I rowsort label-821
SELECT MAX ( DISTINCT - - 72 )
----
72

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

query I rowsort
SELECT ALL 17 + + 92
----
109

query II rowsort
SELECT - 92 AS col2, 67
----
-92
67

query I rowsort
SELECT ALL - CASE WHEN NOT NULL IS NULL THEN NULL ELSE 66 END - 39
----
-105

query I rowsort
SELECT - - 13 AS col0
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-827
SELECT 43 DIV + 38 + ( + - 38 ) AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-827
SELECT 43 / + 38 + ( + - 38 ) AS col0
----
-37

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

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

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

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

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

query I rowsort
SELECT ALL + 72
----
72

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

query I rowsort
SELECT DISTINCT + 49
----
49

query I rowsort
SELECT - 37 AS col1
----
-37

query I rowsort
SELECT - - 10 AS col0
----
10

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

query I rowsort
SELECT 14 AS col1
----
14

query I rowsort
SELECT ALL 89 col1
----
89

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

query I rowsort
SELECT + 92
----
92

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

skipif mysql # not compatible
query I rowsort label-842
SELECT 1 / 7
----
0

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

query I rowsort
SELECT ALL 65 col0
----
65

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

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

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

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

query I rowsort
SELECT + 29 + - 66
----
-37

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

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

query I rowsort
SELECT ALL 7 AS col0
----
7

query I rowsort
SELECT ALL 60
----
60

query I rowsort
SELECT + 79
----
79

query I rowsort
SELECT + 82
----
82

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-856
SELECT COUNT( * ) * - CAST( NULL AS SIGNED ) AS col1, - 16 AS col1
----
NULL
-16

skipif mysql # not compatible
query II rowsort label-856
SELECT COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col1, - 16 AS col1
----
NULL
-16

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

onlyif mysql # DIV for integer division: 
query I rowsort label-858
SELECT DISTINCT + 8 DIV - 6 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-858
SELECT DISTINCT + 8 / - 6 AS col2
----
-1

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

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

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

query I rowsort
SELECT ALL 28 AS col2
----
28

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

onlyif mysql # aggregate syntax: 
query I rowsort label-863
SELECT DISTINCT - 32 + + - 14 + + ( - ( - COUNT( * ) ) )
----
-45

skipif mysql # not compatible
query I rowsort label-863
SELECT DISTINCT - 32 + + - 14 + + ( - ( - COUNT ( * ) ) )
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-864
SELECT ALL 26 DIV 41 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-864
SELECT ALL 26 / 41 AS col0
----
0

query I rowsort
SELECT ALL 14
----
14

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

query I rowsort
SELECT DISTINCT + 88
----
88

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

query I rowsort
SELECT ALL + 62
----
62

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

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

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

query I rowsort
SELECT - - 39 + + 31 - - 65 * - - 79
----
5205

query I rowsort
SELECT + - 33 - 43 AS col1
----
-76

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

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

query I rowsort
SELECT ALL 24 col2
----
24

query I rowsort
SELECT ALL - 7
----
-7

query I rowsort
SELECT - NULLIF ( 98, + AVG ( ALL + ( + 13 ) ) )
----
-98

query I rowsort
SELECT ALL + 34 * - 85 AS col1
----
-2890

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

skipif mysql # not compatible
query I rowsort label-880
SELECT 71 * + COUNT ( * ) * - - 70 AS col0
----
4970

onlyif mysql # aggregate syntax: 
query I rowsort label-881
SELECT DISTINCT - + NULLIF ( - ( + COUNT( * ) ), + 27 - - - 0 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-881
SELECT DISTINCT - + NULLIF ( - ( + COUNT ( * ) ), + 27 - - - 0 ) AS col1
----
1

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

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

query I rowsort
SELECT ALL 68 AS col2
----
68

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

query I rowsort
SELECT 71
----
71

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

query I rowsort
SELECT + 53 - + 2
----
51

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

onlyif mysql # aggregate syntax: 
query I rowsort label-889
SELECT + - 59 * + 72 + - 92 + + + 81 * + - ( - COUNT( * ) ) AS col0
----
-4259

skipif mysql # not compatible
query I rowsort label-889
SELECT + - 59 * + 72 + - 92 + + + 81 * + - ( - COUNT ( * ) ) AS col0
----
-4259

query I rowsort
SELECT ALL - 75
----
-75

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-897
SELECT + + 85 + + COUNT( + 68 )
----
86

skipif mysql # not compatible
query I rowsort label-897
SELECT + + 85 + + COUNT ( + 68 )
----
86

query I rowsort
SELECT ALL + + 3
----
3

query I rowsort
SELECT + + 3
----
3

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

skipif mysql # not compatible
query I rowsort label-900
SELECT MIN ( DISTINCT 93 )
----
93

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

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

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

query I rowsort
SELECT ALL 21 AS col2
----
21

query II rowsort
SELECT + 89 * + + 62 AS col2, 71
----
5518
71

query I rowsort
SELECT ALL 27 AS col2
----
27

query I rowsort
SELECT 25
----
25

query I rowsort
SELECT DISTINCT 14
----
14

query I rowsort
SELECT + 70
----
70

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT 12 + 73 AS col0
----
85

query I rowsort
SELECT 55 + - 23 AS col2
----
32

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

query I rowsort
SELECT DISTINCT 50 * + 63 AS col2
----
3150

query I rowsort
SELECT DISTINCT - 72
----
-72

query I rowsort
SELECT 97
----
97

query I rowsort
SELECT 35 AS col2
----
35

query I rowsort
SELECT DISTINCT - 37 + 74 AS col2
----
37

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

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

query I rowsort
SELECT + 73 col2
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-929
SELECT MAX( ALL - 90 ) * + 13 AS col2
----
-1170

skipif mysql # not compatible
query I rowsort label-929
SELECT MAX ( ALL - 90 ) * + 13 AS col2
----
-1170

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

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

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

query I rowsort
SELECT DISTINCT + 69 * 35
----
2415

query I rowsort
SELECT - 99 AS col2
----
-99

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

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

query I rowsort
SELECT - 5
----
-5

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

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

query I rowsort
SELECT + 30 + + 8 + 22 * - 28 col0
----
-578

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

query I rowsort
SELECT - 95 * - 99 AS col0
----
9405

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

query I rowsort
SELECT - 24 + + - 16
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-943
SELECT DISTINCT 30 DIV + 4 col1
----
7

skipif mysql # not compatible
query I rowsort label-943
SELECT DISTINCT 30 / + 4 col1
----
7

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

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

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

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

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

query I rowsort
SELECT + 77
----
77

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

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

query I rowsort
SELECT ALL - 90
----
-90

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

query I rowsort
SELECT ALL 57
----
57

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

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

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

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

query I rowsort
SELECT ALL + 90
----
90

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

query I rowsort
SELECT DISTINCT + 93
----
93

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

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

query I rowsort
SELECT ALL + NULLIF ( + 91, + - 62 + + 29 )
----
91

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

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

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

query I rowsort
SELECT - + 92
----
-92

query I rowsort
SELECT - - 36 AS col1
----
36

query I rowsort
SELECT ALL 78 AS col2
----
78

query I rowsort
SELECT 94 AS col2
----
94

query I rowsort
SELECT - + 92 col1
----
-92

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

query I rowsort
SELECT DISTINCT - 93
----
-93

query I rowsort
SELECT 54 * - 22
----
-1188

query I rowsort
SELECT + 90
----
90

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

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

query I rowsort
SELECT 63 * 15
----
945

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT 3
----
3

query I rowsort
SELECT ALL 55
----
55

query I rowsort
SELECT DISTINCT 6
----
6

query I rowsort
SELECT ALL 8 col2
----
8

query I rowsort
SELECT DISTINCT - NULLIF ( - 41, 75 ) AS col1
----
41

query I rowsort
SELECT ALL - 15 AS col2
----
-15

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

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

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

query I rowsort
SELECT - 86
----
-86

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

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

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

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

query I rowsort
SELECT + - 63 * - 73 AS col0
----
4599

query I rowsort
SELECT DISTINCT 61
----
61

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

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

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

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

query I rowsort
SELECT DISTINCT + 21
----
21

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

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

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

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

query I rowsort
SELECT ALL + - 71
----
-71

query I rowsort
SELECT ALL - 3 AS col0
----
-3

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

skipif mysql # not compatible
query I rowsort label-1001
SELECT - COUNT ( 2 ) / + + 90 AS col1
----
0

query I rowsort
SELECT 56 AS col1
----
56

query I rowsort
SELECT 61 AS col1
----
61

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

query I rowsort
SELECT ALL 10
----
10

query I rowsort
SELECT ALL 62
----
62

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

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

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

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

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

query I rowsort
SELECT + 64
----
64

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

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

query I rowsort
SELECT ALL - 97 AS col2
----
-97

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

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

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

query I rowsort
SELECT ALL 8
----
8

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

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT 29 AS col2
----
29

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

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

query I rowsort
SELECT 15 col2
----
15

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

skipif mysql # not compatible
query I rowsort label-1029
SELECT DISTINCT MIN ( - 51 )
----
-51

query I rowsort
SELECT - 74
----
-74

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

skipif mysql # not compatible
query I rowsort label-1031
SELECT - CAST ( NULL AS INTEGER ) - 26 / + - 43
----
NULL

query I rowsort
SELECT ALL - 88
----
-88

query I rowsort
SELECT ALL + 78
----
78

query I rowsort
SELECT 88
----
88

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

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

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1039
SELECT MIN ( ALL 51 )
----
51

query I rowsort
SELECT ALL 6
----
6

query I rowsort
SELECT 6
----
6

query I rowsort
SELECT + 11 + - 43
----
-32

query I rowsort
SELECT - 26
----
-26

query I rowsort
SELECT - 84
----
-84

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

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

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

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

query I rowsort
SELECT ALL + + 9 * - 87 AS col1
----
-783

query I rowsort
SELECT ALL + 63
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-1049
SELECT ALL 82 * - SUM( DISTINCT + 33 ) col1
----
-2706

skipif mysql # not compatible
query I rowsort label-1049
SELECT ALL 82 * - SUM ( DISTINCT + 33 ) col1
----
-2706

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

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

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

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

query I rowsort
SELECT DISTINCT - + 53
----
-53

query I rowsort
SELECT 40
----
40

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

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

query I rowsort
SELECT 39 AS col2
----
39

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

query I rowsort
SELECT ALL 80 AS col0
----
80

query I rowsort
SELECT 82
----
82

query I rowsort
SELECT - 59 * - ( - + 10 ) + 67
----
-523

query I rowsort
SELECT ALL 75 AS col0
----
75

query I rowsort
SELECT - 36 AS col0
----
-36

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

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

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

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

query I rowsort
SELECT + - 63 + 90 AS col2
----
27

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

query II rowsort
SELECT ALL - 57, 10 AS col1
----
-57
10

query I rowsort
SELECT - 8 AS col2
----
-8

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

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

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

query I rowsort
SELECT + ( + 1 ) AS col2
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1072
SELECT ( - - CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1072
SELECT ( - - CAST ( NULL AS REAL ) ) AS col0
----
NULL

query I rowsort
SELECT - 77 * + 54
----
-4158

query I rowsort
SELECT ALL + 63 col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-1075
SELECT ( + + COUNT( * ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-1075
SELECT ( + + COUNT ( * ) ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1076
SELECT - COUNT( * ) * + COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1076
SELECT - COUNT ( * ) * + COUNT ( * ) AS col0
----
-1

query I rowsort
SELECT + 32 AS col0
----
32

query I rowsort
SELECT ALL + 94
----
94

query I rowsort
SELECT - + 36
----
-36

query I rowsort
SELECT DISTINCT - 10
----
-10

query I rowsort
SELECT ALL + 74
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1082
SELECT ALL ( + + MIN( + 88 ) ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-1082
SELECT ALL ( + + MIN ( + 88 ) ) AS col1
----
88

query I rowsort
SELECT ALL - 51
----
-51

query I rowsort
SELECT 89 + - 73 AS col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1085
SELECT COUNT( * ) + + ( + 95 ) col1
----
96

skipif mysql # not compatible
query I rowsort label-1085
SELECT COUNT ( * ) + + ( + 95 ) col1
----
96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1086
SELECT 43 + - + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1086
SELECT 43 + - + CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT ALL - 94
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-1088
SELECT + COUNT( * ) + - 61 col0
----
-60

skipif mysql # not compatible
query I rowsort label-1088
SELECT + COUNT ( * ) + - 61 col0
----
-60

query I rowsort
SELECT + 93
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1090
SELECT ALL - + COUNT( * ) * 97
----
-97

skipif mysql # not compatible
query I rowsort label-1090
SELECT ALL - + COUNT ( * ) * 97
----
-97

query I rowsort
SELECT - 27
----
-27

query I rowsort
SELECT ALL 40 col1
----
40

query I rowsort
SELECT DISTINCT 45
----
45

query I rowsort
SELECT + 62
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-1095
SELECT COUNT( * ) AS col0, - 67
----
1
-67

skipif mysql # not compatible
query II rowsort label-1095
SELECT COUNT ( * ) AS col0, - 67
----
1
-67

query I rowsort
SELECT DISTINCT - ( - - 85 ) AS col1
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1097
SELECT ALL + COUNT( * ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1097
SELECT ALL + COUNT ( * ) * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 29 AS col1
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-1099
SELECT COUNT( * ) * 87 AS col1
----
87

skipif mysql # not compatible
query I rowsort label-1099
SELECT COUNT ( * ) * 87 AS col1
----
87

query I rowsort
SELECT ALL - + ( + 40 ) AS col1
----
-40

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1101
SELECT - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1101
SELECT - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1102
SELECT CAST( NULL AS DECIMAL ) * - - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-1102
SELECT CAST ( NULL AS REAL ) * - - 86
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1103
SELECT DISTINCT - COUNT( * ) AS col2, 95 - + COUNT( * ) AS col0
----
-1
94

skipif mysql # not compatible
query II rowsort label-1103
SELECT DISTINCT - COUNT ( * ) AS col2, 95 - + COUNT ( * ) AS col0
----
-1
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1104
SELECT + 30 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1104
SELECT + 30 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - 56
----
-56

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1106
SELECT + 90 AS col2, CAST( NULL AS DECIMAL ) * + 60 AS col2
----
90
NULL

skipif mysql # not compatible
query II rowsort label-1106
SELECT + 90 AS col2, CAST ( NULL AS REAL ) * + 60 AS col2
----
90
NULL

query I rowsort
SELECT - NULLIF ( 10, - - 45 ) AS col0
----
-10

query I rowsort
SELECT - 60 AS col1
----
-60

query I rowsort
SELECT - 63 AS col2
----
-63

query I rowsort
SELECT - 15 AS col1
----
-15

query I rowsort
SELECT ALL + 23
----
23

query I rowsort
SELECT 33 * ( + + 54 ) + 98 AS col2
----
1880

query I rowsort
SELECT + 5 AS col1
----
5

query I rowsort
SELECT + - 27
----
-27

query I rowsort
SELECT ALL + 70 col2
----
70

query I rowsort
SELECT ALL + ( - 48 )
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1117
SELECT DISTINCT + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1117
SELECT DISTINCT + CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT ALL + 26 AS col2
----
26

query I rowsort
SELECT - 12
----
-12

query I rowsort
SELECT 78 col0
----
78

query I rowsort
SELECT 16 AS col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1122
SELECT ALL - COUNT( - + 65 ) + COUNT( 90 )
----
0

skipif mysql # not compatible
query I rowsort label-1122
SELECT ALL - COUNT ( - + 65 ) + COUNT ( 90 )
----
0

query I rowsort
SELECT 52
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1124
SELECT - CAST( + 80 AS SIGNED ) AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-1124
SELECT - CAST ( + 80 AS INTEGER ) AS col2
----
-80

query II rowsort
SELECT 95, - 46 col1
----
95
-46

query I rowsort
SELECT DISTINCT 67 AS col2
----
67

query I rowsort
SELECT 0 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1128
SELECT ALL - CAST( NULL AS SIGNED ) + + 21 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1128
SELECT ALL - CAST ( NULL AS INTEGER ) + + 21 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1129
SELECT 31 + - COUNT( * ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-1129
SELECT 31 + - COUNT ( * ) AS col0
----
30

query I rowsort
SELECT + 2
----
2

query I rowsort
SELECT + - 54 AS col2
----
-54

query I rowsort
SELECT ALL + 87
----
87

query I rowsort
SELECT 8 * - 99
----
-792

onlyif mysql # aggregate syntax: 
query II rowsort label-1134
SELECT COUNT( * ) * - + COUNT( * ) col0, + 68
----
-1
68

skipif mysql # not compatible
query II rowsort label-1134
SELECT COUNT ( * ) * - + COUNT ( * ) col0, + 68
----
-1
68

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1135
SELECT DISTINCT 0 * - + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1135
SELECT DISTINCT 0 * - + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + 51
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1137
SELECT ALL + COUNT( * ) DIV 55 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1137
SELECT ALL + COUNT ( * ) / 55 AS col1
----
0

query I rowsort
SELECT + - 99
----
-99

query I rowsort
SELECT ALL - + 89 col1
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1140
SELECT ALL COUNT( * ) + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1140
SELECT ALL COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - + 73 AS col1
----
-73

query I rowsort
SELECT 76
----
76

query I rowsort
SELECT 29 AS col0
----
29

query I rowsort
SELECT ALL - ( + ( + 9 ) )
----
-9

query II rowsort
SELECT - 46 AS col1, 69 AS col1
----
-46
69

query I rowsort
SELECT ALL 49 AS col2
----
49

query I rowsort
SELECT 29 AS col1
----
29

query I rowsort
SELECT ALL 58 AS col2
----
58

query I rowsort
SELECT - 11 AS col2
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-1150
SELECT - ( - ( + - 23 ) ), MAX( DISTINCT + 55 ) AS col2
----
-23
55

skipif mysql # not compatible
query II rowsort label-1150
SELECT - ( - ( + - 23 ) ), MAX ( DISTINCT + 55 ) AS col2
----
-23
55

query I rowsort
SELECT + - 60
----
-60

query I rowsort
SELECT 66 AS col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1153
SELECT ALL + + COUNT( * ) col2
----
1

skipif mysql # not compatible
query I rowsort label-1153
SELECT ALL + + COUNT ( * ) col2
----
1

query I rowsort
SELECT + 48 AS col1
----
48

query I rowsort
SELECT + + 76
----
76

query I rowsort
SELECT DISTINCT 53 AS col2
----
53

query I rowsort
SELECT 92 AS col1
----
92

query I rowsort
SELECT - 67 AS col1
----
-67

query I rowsort
SELECT - + 6 AS col2
----
-6

query I rowsort
SELECT ALL - 39
----
-39

query I rowsort
SELECT - - 24 + + 38
----
62

query I rowsort
SELECT + + 54
----
54

query I rowsort
SELECT + ( 35 ) + - - 22 AS col0
----
57

query I rowsort
SELECT + - 91 * 94 AS col0
----
-8554

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1165
SELECT ALL + + MIN( ALL - CAST( + + 0 AS SIGNED ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1165
SELECT ALL + + MIN ( ALL - CAST ( + + 0 AS INTEGER ) ) AS col2
----
0

query I rowsort
SELECT ALL + 7
----
7

query I rowsort
SELECT + 8 AS col2
----
8

query I rowsort
SELECT DISTINCT - 26 AS col0
----
-26

query I rowsort
SELECT 44 * 84 AS col1
----
3696

query I rowsort
SELECT - 43 AS col0
----
-43

query I rowsort
SELECT - + 67 AS col1
----
-67

query I rowsort
SELECT DISTINCT - 41
----
-41

query I rowsort
SELECT ALL - - 84 AS col2
----
84

query I rowsort
SELECT + - 23 AS col0
----
-23

query I rowsort
SELECT ALL - 78 col1
----
-78

query I rowsort
SELECT + 54 AS col0
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1177
SELECT DISTINCT COUNT( * ) DIV - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1177
SELECT DISTINCT COUNT ( * ) / - COUNT ( * ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1178
SELECT MAX( - - 47 ) + + COUNT( * ) * + 56
----
103

skipif mysql # not compatible
query I rowsort label-1178
SELECT MAX ( - - 47 ) + + COUNT ( * ) * + 56
----
103

query I rowsort
SELECT 69 + + - 54
----
15

query II rowsort
SELECT ALL + 2 col1, 82
----
2
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1181
SELECT ALL - + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-1181
SELECT ALL - + COUNT ( * )
----
-1

query I rowsort
SELECT DISTINCT - 13
----
-13

query I rowsort
SELECT + 17 col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1184
SELECT SUM( 66 )
----
66

skipif mysql # not compatible
query I rowsort label-1184
SELECT SUM ( 66 )
----
66

query I rowsort
SELECT - 31 col1
----
-31

query I rowsort
SELECT 32 AS col0
----
32

query I rowsort
SELECT ALL 82 AS col1
----
82

query I rowsort
SELECT DISTINCT + 40 col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1189
SELECT DISTINCT COUNT( * ) col2
----
1

skipif mysql # not compatible
query I rowsort label-1189
SELECT DISTINCT COUNT ( * ) col2
----
1

query I rowsort
SELECT DISTINCT + 47 AS col0
----
47

query I rowsort
SELECT ALL + 65
----
65

query I rowsort
SELECT - 68
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1193
SELECT CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1193
SELECT CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + ( 55 ) AS col2
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1195
SELECT ALL COUNT( * ) DIV + + 30 + - ( + - COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-1195
SELECT ALL COUNT ( * ) / + + 30 + - ( + - COUNT ( * ) )
----
1

query I rowsort
SELECT DISTINCT + 3 AS col1
----
3

query I rowsort
SELECT DISTINCT + 25 AS col2
----
25

query I rowsort
SELECT ( - 32 )
----
-32

query I rowsort
SELECT - 63 * + 94
----
-5922

query I rowsort
SELECT DISTINCT + 78
----
78

query I rowsort
SELECT - - 19
----
19

query I rowsort
SELECT - 68 col0
----
-68

query I rowsort
SELECT ALL + 34 AS col1
----
34

query I rowsort
SELECT - + 24 AS col0
----
-24

query I rowsort
SELECT - CASE WHEN NOT NULL BETWEEN NULL AND NULL THEN 17 ELSE NULL END + + 12
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1206
SELECT DISTINCT 4 * COUNT( * ) * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1206
SELECT DISTINCT 4 * COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1207
SELECT + - ( COUNT( * ) ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-1207
SELECT + - ( COUNT ( * ) ) col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1208
SELECT COUNT( * ), 25 - - 48 * - - ( + COUNT( * ) ) + 56 + - COUNT( - 56 ) AS col1
----
1
128

skipif mysql # not compatible
query II rowsort label-1208
SELECT COUNT ( * ), 25 - - 48 * - - ( + COUNT ( * ) ) + 56 + - COUNT ( - 56 ) AS col1
----
1
128

query I rowsort
SELECT - ( + + 66 ) AS col0
----
-66

query I rowsort
SELECT DISTINCT 87
----
87

query I rowsort
SELECT ALL - 61 - 32 AS col0
----
-93

query I rowsort
SELECT ALL 92
----
92

query I rowsort
SELECT ALL 49
----
49

query I rowsort
SELECT - 3
----
-3

query I rowsort
SELECT ALL 4
----
4

query I rowsort
SELECT + 6
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1217
SELECT ALL MAX( - 72 ) * + 93 AS col2
----
-6696

skipif mysql # not compatible
query I rowsort label-1217
SELECT ALL MAX ( - 72 ) * + 93 AS col2
----
-6696

onlyif mysql # aggregate syntax: 
query I rowsort label-1218
SELECT COUNT( * ) * 23 AS col1
----
23

skipif mysql # not compatible
query I rowsort label-1218
SELECT COUNT ( * ) * 23 AS col1
----
23

query I rowsort
SELECT DISTINCT - 44 AS col2
----
-44

query I rowsort
SELECT ALL - 99 AS col0
----
-99

query I rowsort
SELECT 44
----
44

query I rowsort
SELECT DISTINCT 84
----
84

query I rowsort
SELECT ALL 35
----
35

query I rowsort
SELECT ALL + 40 * - 98 AS col2
----
-3920

query I rowsort
SELECT DISTINCT 10
----
10

query I rowsort
SELECT DISTINCT + 58 * + 49
----
2842

query I rowsort
SELECT 41
----
41

query I rowsort
SELECT 63 col2
----
63

query I rowsort
SELECT DISTINCT 5
----
5

query I rowsort
SELECT + 25
----
25

query I rowsort
SELECT ALL + 82 col2
----
82

query I rowsort
SELECT DISTINCT + - 87
----
-87

query I rowsort
SELECT + - 88 col0
----
-88

query I rowsort
SELECT DISTINCT - + 52 AS col0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-1235
SELECT ALL COUNT( * ) + - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1235
SELECT ALL COUNT ( * ) + - COUNT ( * ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1236
SELECT DISTINCT 69 * - - COUNT( * ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-1236
SELECT DISTINCT 69 * - - COUNT ( * ) AS col1
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1237
SELECT + COUNT( * ) DIV + + 90 + - 19 AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-1237
SELECT + COUNT ( * ) / + + 90 + - 19 AS col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-1238
SELECT + - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1238
SELECT + - COUNT ( * ) AS col0
----
-1

query I rowsort
SELECT - ( + 49 )
----
-49

query I rowsort
SELECT ALL - 33
----
-33

query I rowsort
SELECT ALL - 45
----
-45

query I rowsort
SELECT 39
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-1243
SELECT ALL - COUNT( * ), 7 col0
----
-1
7

skipif mysql # not compatible
query II rowsort label-1243
SELECT ALL - COUNT ( * ), 7 col0
----
-1
7

query I rowsort
SELECT 26
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-1245
SELECT 31 DIV - 49
----
0

skipif mysql # not compatible
query I rowsort label-1245
SELECT 31 / - 49
----
0

query I rowsort
SELECT - 65
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-1247
SELECT ALL COUNT( + + 86 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1247
SELECT ALL COUNT ( + + 86 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1248
SELECT 89 * - 95 + MIN( ALL + 89 ) + 15 * 86
----
-7076

skipif mysql # not compatible
query I rowsort label-1248
SELECT 89 * - 95 + MIN ( ALL + 89 ) + 15 * 86
----
-7076

query I rowsort
SELECT DISTINCT - 22
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-1250
SELECT DISTINCT + ( MIN( DISTINCT 31 ) ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-1250
SELECT DISTINCT + ( MIN ( DISTINCT 31 ) ) AS col1
----
31

query I rowsort
SELECT ALL + + 16
----
16

query I rowsort
SELECT + 18
----
18

query I rowsort
SELECT - ( - - 84 ) AS col1
----
-84

query I rowsort
SELECT - 52
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-1255
SELECT - COUNT( * ) * 81 + - + 64
----
-145

skipif mysql # not compatible
query I rowsort label-1255
SELECT - COUNT ( * ) * 81 + - + 64
----
-145

query I rowsort
SELECT DISTINCT 58 col2
----
58

query I rowsort
SELECT 97 AS col0
----
97

query I rowsort
SELECT ALL - 6
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1259
SELECT - + COUNT( DISTINCT - 7 )
----
-1

skipif mysql # not compatible
query I rowsort label-1259
SELECT - + COUNT ( DISTINCT - 7 )
----
-1

query I rowsort
SELECT DISTINCT - 24 AS col2
----
-24

query I rowsort
SELECT - - 58 * - 89 AS col0
----
-5162

query I rowsort
SELECT + 90 col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1263
SELECT ALL + COUNT( * ) col2
----
1

skipif mysql # not compatible
query I rowsort label-1263
SELECT ALL + COUNT ( * ) col2
----
1

query I rowsort
SELECT DISTINCT + 99 * ( - 23 )
----
-2277

onlyif mysql # aggregate syntax: 
query I rowsort label-1265
SELECT + COUNT( + 55 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1265
SELECT + COUNT ( + 55 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1266
SELECT + COUNT( 53 ) * + 86 AS col0
----
86

skipif mysql # not compatible
query I rowsort label-1266
SELECT + COUNT ( 53 ) * + 86 AS col0
----
86

query II rowsort
SELECT ALL + 86, - 44 AS col1
----
86
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1268
SELECT + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1268
SELECT + CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT DISTINCT 11 AS col0
----
11

query I rowsort
SELECT + 63 * 57 col0
----
3591

query I rowsort
SELECT DISTINCT 84 AS col0
----
84

query I rowsort
SELECT ALL + 76 + 90 AS col1
----
166

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1273
SELECT ALL + 65 DIV COUNT( DISTINCT + 38 )
----
65

skipif mysql # not compatible
query I rowsort label-1273
SELECT ALL + 65 / COUNT ( DISTINCT + 38 )
----
65

query I rowsort
SELECT + 73
----
73

query I rowsort
SELECT ALL - 0
----
0

query I rowsort
SELECT ALL 75 + + 11 col1
----
86

query I rowsort
SELECT ALL - 51 AS col2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-1278
SELECT COUNT( * ) + + 57 col0
----
58

skipif mysql # not compatible
query I rowsort label-1278
SELECT COUNT ( * ) + + 57 col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1279
SELECT SUM( 35 ) * - 67
----
-2345

skipif mysql # not compatible
query I rowsort label-1279
SELECT SUM ( 35 ) * - 67
----
-2345

onlyif mysql # aggregate syntax: 
query I rowsort label-1280
SELECT 95 + + COUNT( * ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-1280
SELECT 95 + + COUNT ( * ) AS col1
----
96

query I rowsort
SELECT ALL 91 AS col1
----
91

query I rowsort
SELECT DISTINCT + 87 AS col2
----
87

query I rowsort
SELECT - + 51
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1284
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1284
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1285
SELECT CAST( NULL AS SIGNED ) * + + COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1285
SELECT CAST ( NULL AS INTEGER ) * + + COUNT ( * ) col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1286
SELECT DISTINCT - CAST( - 58 AS SIGNED )
----
58

skipif mysql # not compatible
query I rowsort label-1286
SELECT DISTINCT - CAST ( - 58 AS INTEGER )
----
58

query I rowsort
SELECT + 58 AS col1
----
58

query I rowsort
SELECT + 61 AS col2
----
61

query I rowsort
SELECT DISTINCT + ( + + ( 36 ) ) AS col2
----
36

query I rowsort
SELECT + 63 + + + 71
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-1291
SELECT - SUM( ALL - + 82 )
----
82

skipif mysql # not compatible
query I rowsort label-1291
SELECT - SUM ( ALL - + 82 )
----
82

query I rowsort
SELECT - - 40 col0
----
40

query I rowsort
SELECT - - 48
----
48

query I rowsort
SELECT - ( + 83 ) AS col2
----
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-1295
SELECT ALL 28 AS col1, + 71 - COUNT( * ) AS col2
----
28
70

skipif mysql # not compatible
query II rowsort label-1295
SELECT ALL 28 AS col1, + 71 - COUNT ( * ) AS col2
----
28
70

query I rowsort
SELECT ALL 79 AS col0
----
79

query I rowsort
SELECT ( + 28 ) col1
----
28

query I rowsort
SELECT + ( 99 ) AS col0
----
99

query I rowsort
SELECT ALL + ( + + ( 59 ) ) AS col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1300
SELECT DISTINCT + MAX( ALL - + 46 )
----
-46

skipif mysql # not compatible
query I rowsort label-1300
SELECT DISTINCT + MAX ( ALL - + 46 )
----
-46

query I rowsort
SELECT ( 4 )
----
4

query II rowsort
SELECT + 59 AS col0, 26
----
59
26

query II rowsort
SELECT + 24 col1, - COALESCE ( + - 35, + 9 )
----
24
35

onlyif mysql # aggregate syntax: 
query I rowsort label-1304
SELECT + COUNT( * ) + - COUNT( * ) - - + 51 AS col2
----
51

skipif mysql # not compatible
query I rowsort label-1304
SELECT + COUNT ( * ) + - COUNT ( * ) - - + 51 AS col2
----
51

query I rowsort
SELECT - + 68 AS col1
----
-68

query I rowsort
SELECT ALL 10 AS col2
----
10

query I rowsort
SELECT DISTINCT 29 AS col0
----
29

query I rowsort
SELECT ALL 81 AS col2
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1309
SELECT + CAST( 50 AS SIGNED ) col0, + MAX( - - 82 ) AS col1
----
50
82

skipif mysql # not compatible
query II rowsort label-1309
SELECT + CAST ( 50 AS INTEGER ) col0, + MAX ( - - 82 ) AS col1
----
50
82

query I rowsort
SELECT DISTINCT - 98
----
-98

query I rowsort
SELECT DISTINCT 46 + 40
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1312
SELECT DISTINCT 63 DIV - COUNT( * )
----
-63

skipif mysql # not compatible
query I rowsort label-1312
SELECT DISTINCT 63 / - COUNT ( * )
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-1313
SELECT ALL 40 * - COUNT( * )
----
-40

skipif mysql # not compatible
query I rowsort label-1313
SELECT ALL 40 * - COUNT ( * )
----
-40

query I rowsort
SELECT + + 54 AS col1
----
54

query I rowsort
SELECT + 86 AS col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-1316
SELECT - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1316
SELECT - COUNT ( * ) AS col2
----
-1

query I rowsort
SELECT - + 13
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-1318
SELECT NULLIF ( + 70, COUNT( * ) )
----
70

skipif mysql # not compatible
query I rowsort label-1318
SELECT NULLIF ( + 70, COUNT ( * ) )
----
70

query I rowsort
SELECT - + 3 AS col0
----
-3

query I rowsort
SELECT - 94
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1321
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 96
----
NULL

skipif mysql # not compatible
query I rowsort label-1321
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 96
----
NULL

query I rowsort
SELECT DISTINCT 29 AS col1
----
29

query I rowsort
SELECT DISTINCT 87 AS col0
----
87

query I rowsort
SELECT + 57 AS col0
----
57

query I rowsort
SELECT 80
----
80

query I rowsort
SELECT ALL - ( - 70 ) AS col2
----
70

query I rowsort
SELECT + 50 AS col0
----
50

query I rowsort
SELECT ALL + 0
----
0

query I rowsort
SELECT ALL 30 AS col1
----
30

query I rowsort
SELECT ALL 41 AS col2
----
41

query I rowsort
SELECT ALL + 74 * - - 65 AS col0
----
4810

query I rowsort
SELECT - 55 col1
----
-55

query I rowsort
SELECT ( - - ( + 30 ) ) AS col0
----
30

query I rowsort
SELECT ALL + - 44
----
-44

query I rowsort
SELECT NULLIF ( + 66, - 85 )
----
66

query I rowsort
SELECT DISTINCT + - 18 col2
----
-18

query I rowsort
SELECT - ( - 9 )
----
9

query I rowsort
SELECT 68
----
68

query I rowsort
SELECT - 62
----
-62

query I rowsort
SELECT ALL + 88 AS col2
----
88

query I rowsort
SELECT DISTINCT - 75 + - 18 AS col0
----
-93

query I rowsort
SELECT ALL - - 26 + + 27
----
53

query I rowsort
SELECT - 17 col2
----
-17

query I rowsort
SELECT ALL + - 3 * - 75 AS col1
----
225

onlyif mysql # aggregate syntax: 
query II rowsort label-1345
SELECT + - 82 col0, COUNT( * )
----
-82
1

skipif mysql # not compatible
query II rowsort label-1345
SELECT + - 82 col0, COUNT ( * )
----
-82
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1346
SELECT + - 72 col2, - COUNT( * )
----
-72
-1

skipif mysql # not compatible
query II rowsort label-1346
SELECT + - 72 col2, - COUNT ( * )
----
-72
-1

query I rowsort
SELECT 35 AS col0
----
35

query I rowsort
SELECT ALL + 15 * - + 26
----
-390

query I rowsort
SELECT 17 AS col2
----
17

query I rowsort
SELECT - 95 AS col1
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1351
SELECT 93 + + CAST( + - 48 AS SIGNED ) * - + 61 * - 81 * - ( + COUNT( * ) )
----
237261

skipif mysql # not compatible
query I rowsort label-1351
SELECT 93 + + CAST ( + - 48 AS INTEGER ) * - + 61 * - 81 * - ( + COUNT ( * ) )
----
237261

onlyif mysql # aggregate syntax: 
query II rowsort label-1352
SELECT ALL MAX( 47 ), 94 AS col2
----
47
94

skipif mysql # not compatible
query II rowsort label-1352
SELECT ALL MAX ( 47 ), 94 AS col2
----
47
94

query II rowsort
SELECT DISTINCT - + ( - 27 ) AS col0, - 14 AS col1
----
27
-14

query I rowsort
SELECT ALL + + 29
----
29

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1355
SELECT DISTINCT + COUNT( - CAST( - + 50 AS DECIMAL ) )
----
1

skipif mysql # not compatible
query I rowsort label-1355
SELECT DISTINCT + COUNT ( - CAST ( - + 50 AS REAL ) )
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-1356
SELECT ALL + 33 AS col0, - 54 DIV 67
----
33
0

skipif mysql # not compatible
query II rowsort label-1356
SELECT ALL + 33 AS col0, - 54 / 67
----
33
0

query I rowsort
SELECT ALL 70 * + 38
----
2660

onlyif mysql # aggregate syntax: 
query I rowsort label-1358
SELECT - COUNT( * ) + - 42 AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-1358
SELECT - COUNT ( * ) + - 42 AS col2
----
-43

query I rowsort
SELECT 21
----
21

query I rowsort
SELECT ALL 52 AS col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-1361
SELECT DISTINCT + - SUM( ALL 18 )
----
-18

skipif mysql # not compatible
query I rowsort label-1361
SELECT DISTINCT + - SUM ( ALL 18 )
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1362
SELECT + 57 DIV + COUNT( * ) - ( COUNT( * ) ) * - + 48
----
105

skipif mysql # not compatible
query I rowsort label-1362
SELECT + 57 / + COUNT ( * ) - ( COUNT ( * ) ) * - + 48
----
105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1363
SELECT + CAST( + 56 AS SIGNED )
----
56

skipif mysql # not compatible
query I rowsort label-1363
SELECT + CAST ( + 56 AS INTEGER )
----
56

query I rowsort
SELECT ALL + 58 AS col2
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1365
SELECT - CAST( COUNT( * ) AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1365
SELECT - CAST ( COUNT ( * ) AS INTEGER ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1366
SELECT AVG ( ALL + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1366
SELECT AVG ( ALL + - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT - 17
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-1368
SELECT ALL - 49 DIV - - 33
----
-1

skipif mysql # not compatible
query I rowsort label-1368
SELECT ALL - 49 / - - 33
----
-1

query II rowsort
SELECT DISTINCT + 58 * - 38 AS col1, 7 col1
----
-2204
7

query I rowsort
SELECT - 77 AS col0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-1371
SELECT ALL COUNT( * ) + - 60
----
-59

skipif mysql # not compatible
query I rowsort label-1371
SELECT ALL COUNT ( * ) + - 60
----
-59

query I rowsort
SELECT ALL - 13
----
-13

query I rowsort
SELECT + 33 AS col1
----
33

query I rowsort
SELECT + 1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1375
SELECT 3 * - - COUNT( * ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-1375
SELECT 3 * - - COUNT ( * ) AS col2
----
3

query I rowsort
SELECT - 82 AS col0
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1377
SELECT - NULLIF ( CAST( NULL AS SIGNED ), 89 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1377
SELECT - NULLIF ( CAST ( NULL AS INTEGER ), 89 )
----
NULL

query I rowsort
SELECT ALL + ( 4 )
----
4

query I rowsort
SELECT ALL + 30
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1380
SELECT SUM( ALL 58 ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-1380
SELECT SUM ( ALL 58 ) AS col0
----
58

query I rowsort
SELECT ALL - 71 * 87
----
-6177

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1382
SELECT DISTINCT - 12 + + CAST( - + 17 AS SIGNED )
----
-29

skipif mysql # not compatible
query I rowsort label-1382
SELECT DISTINCT - 12 + + CAST ( - + 17 AS INTEGER )
----
-29

query I rowsort
SELECT DISTINCT 28
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-1384
SELECT + ( + - 35 ) * + COUNT( * ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-1384
SELECT + ( + - 35 ) * + COUNT ( * ) AS col0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-1385
SELECT ( + - COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1385
SELECT ( + - COUNT ( * ) )
----
-1

query I rowsort
SELECT DISTINCT + 41 AS col2
----
41

query I rowsort
SELECT 56
----
56

query I rowsort
SELECT 93 AS col1
----
93

query I rowsort
SELECT DISTINCT + 61 AS col1
----
61

query I rowsort
SELECT - 45
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-1391
SELECT - MIN( DISTINCT + 78 ) AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-1391
SELECT - MIN ( DISTINCT + 78 ) AS col0
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1392
SELECT - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1392
SELECT - CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1393
SELECT DISTINCT - SUM( DISTINCT + ( 29 ) )
----
-29

skipif mysql # not compatible
query I rowsort label-1393
SELECT DISTINCT - SUM ( DISTINCT + ( 29 ) )
----
-29

query I rowsort
SELECT - 52 AS col2
----
-52

query I rowsort
SELECT + ( 33 )
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1396
SELECT + CAST( + - 17 AS SIGNED ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-1396
SELECT + CAST ( + - 17 AS INTEGER ) AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-1397
SELECT - 36 * + SUM( ALL + - 60 ) AS col1
----
2160

skipif mysql # not compatible
query I rowsort label-1397
SELECT - 36 * + SUM ( ALL + - 60 ) AS col1
----
2160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1398
SELECT - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1398
SELECT - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - 8
----
-8

query I rowsort
SELECT DISTINCT 72
----
72

query I rowsort
SELECT 29 * 28
----
812

query I rowsort
SELECT ALL 41
----
41

query I rowsort
SELECT DISTINCT 92 AS col0
----
92

query I rowsort
SELECT DISTINCT 47 AS col0
----
47

query I rowsort
SELECT ALL 98 AS col2
----
98

query I rowsort
SELECT DISTINCT 50 AS col1
----
50

query I rowsort
SELECT 64 AS col0
----
64

query I rowsort
SELECT + 63
----
63

query I rowsort
SELECT + 64 AS col0
----
64

query I rowsort
SELECT ALL - - 24 AS col2
----
24

query I rowsort
SELECT DISTINCT - 23 AS col1
----
-23

query I rowsort
SELECT + 81
----
81

query I rowsort
SELECT ALL 15 * - 0
----
0

query I rowsort
SELECT 84 * 39 AS col0
----
3276

query I rowsort
SELECT 25 AS col1
----
25

query I rowsort
SELECT 95 AS col1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-1417
SELECT DISTINCT 46 - COUNT( * ) AS col1
----
45

skipif mysql # not compatible
query I rowsort label-1417
SELECT DISTINCT 46 - COUNT ( * ) AS col1
----
45

query I rowsort
SELECT ALL 30
----
30

query I rowsort
SELECT DISTINCT 36 AS col1
----
36

query I rowsort
SELECT ALL 87 col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1421
SELECT - COUNT( * ) + - 39 col2
----
-40

skipif mysql # not compatible
query I rowsort label-1421
SELECT - COUNT ( * ) + - 39 col2
----
-40

query I rowsort
SELECT DISTINCT + ( 62 ) AS col1
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1423
SELECT ALL + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1423
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL + 49
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-1425
SELECT - ( COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1425
SELECT - ( COUNT ( * ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1426
SELECT + 23 * COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-1426
SELECT + 23 * COUNT ( * )
----
23

query I rowsort
SELECT DISTINCT 20 AS col2
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1428
SELECT ALL - CAST( NULL AS SIGNED ) * 19
----
NULL

skipif mysql # not compatible
query I rowsort label-1428
SELECT ALL - CAST ( NULL AS INTEGER ) * 19
----
NULL

query I rowsort
SELECT DISTINCT 31 col1
----
31

query I rowsort
SELECT ALL 82 AS col0
----
82

query I rowsort
SELECT DISTINCT 88 col2
----
88

query I rowsort
SELECT - ( + 31 ) AS col2
----
-31

query I rowsort
SELECT 16 AS col2
----
16

query I rowsort
SELECT ALL 5 col2
----
5

query I rowsort
SELECT - 16 AS col0
----
-16

query I rowsort
SELECT DISTINCT + 73 AS col0
----
73

query I rowsort
SELECT - 86 AS col2
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-1438
SELECT ALL + COALESCE ( SUM( + 71 ), + COUNT( * ) )
----
71

skipif mysql # not compatible
query I rowsort label-1438
SELECT ALL + COALESCE ( SUM ( + 71 ), + COUNT ( * ) )
----
71

query I rowsort
SELECT - 19
----
-19

query I rowsort
SELECT + ( + ( - 77 ) )
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1441
SELECT ALL + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1441
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + 65 col2
----
65

query I rowsort
SELECT - ( 24 )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-1444
SELECT DISTINCT + - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1444
SELECT DISTINCT + - COUNT ( * ) AS col0
----
-1

query I rowsort
SELECT ALL + 44 * + 19 AS col1
----
836

query I rowsort
SELECT DISTINCT - 45
----
-45

query I rowsort
SELECT ALL - 83 AS col0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-1448
SELECT COUNT( * ) * + + SUM( DISTINCT 98 )
----
98

skipif mysql # not compatible
query I rowsort label-1448
SELECT COUNT ( * ) * + + SUM ( DISTINCT 98 )
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1449
SELECT DISTINCT CAST( - + 88 AS SIGNED ) DIV + COUNT( * ) col0
----
-88

skipif mysql # not compatible
query I rowsort label-1449
SELECT DISTINCT CAST ( - + 88 AS INTEGER ) / + COUNT ( * ) col0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-1450
SELECT DISTINCT COUNT( * ) + + COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-1450
SELECT DISTINCT COUNT ( * ) + + COUNT ( * ) AS col2
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1451
SELECT COUNT( * ) - - 83 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1451
SELECT COUNT ( * ) - - 83 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1452
SELECT COUNT( * ) * + + 82 AS col1
----
82

skipif mysql # not compatible
query I rowsort label-1452
SELECT COUNT ( * ) * + + 82 AS col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1453
SELECT ALL MAX( 19 ) + - 34 col2
----
-15

skipif mysql # not compatible
query I rowsort label-1453
SELECT ALL MAX ( 19 ) + - 34 col2
----
-15

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1454
SELECT + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1454
SELECT + CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT - 48
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1456
SELECT ALL - - ( - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1456
SELECT ALL - - ( - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT ALL - - 20
----
20

query I rowsort
SELECT + - 16 AS col2
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1459
SELECT DISTINCT - + CAST( + 68 AS SIGNED )
----
-68

skipif mysql # not compatible
query I rowsort label-1459
SELECT DISTINCT - + CAST ( + 68 AS INTEGER )
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-1460
SELECT MAX( ALL + + 95 ) AS col2
----
95

skipif mysql # not compatible
query I rowsort label-1460
SELECT MAX ( ALL + + 95 ) AS col2
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-1461
SELECT ALL - + MIN( ALL - 68 )
----
68

skipif mysql # not compatible
query I rowsort label-1461
SELECT ALL - + MIN ( ALL - 68 )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1462
SELECT - MIN( 33 ) - 78
----
-111

skipif mysql # not compatible
query I rowsort label-1462
SELECT - MIN ( 33 ) - 78
----
-111

query I rowsort
SELECT ALL - - 52 AS col2
----
52

query I rowsort
SELECT DISTINCT - 6
----
-6

query I rowsort
SELECT ALL - 73 AS col0
----
-73

query I rowsort
SELECT 27
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-1467
SELECT DISTINCT + 44 DIV + 88
----
0

skipif mysql # not compatible
query I rowsort label-1467
SELECT DISTINCT + 44 / + 88
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1468
SELECT ALL + 0 DIV + COUNT( * ) col1
----
0

skipif mysql # not compatible
query I rowsort label-1468
SELECT ALL + 0 / + COUNT ( * ) col1
----
0

query I rowsort
SELECT DISTINCT 10 AS col1
----
10

query I rowsort
SELECT DISTINCT + 92 AS col0
----
92

query I rowsort
SELECT 10 AS col1
----
10

query I rowsort
SELECT ALL + 8 AS col1
----
8

query I rowsort
SELECT DISTINCT + 85
----
85

query I rowsort
SELECT 7 AS col2
----
7

query I rowsort
SELECT 42 AS col1
----
42

query I rowsort
SELECT 13 AS col2
----
13

query I rowsort
SELECT 50
----
50

query I rowsort
SELECT ALL - 41 AS col1
----
-41

query I rowsort
SELECT ALL 22
----
22

query I rowsort
SELECT DISTINCT + + 66 AS col1
----
66

query I rowsort
SELECT + ( + 57 ) AS col2
----
57

query I rowsort
SELECT ALL + 11 AS col0
----
11

query I rowsort
SELECT + 45 * 96
----
4320

onlyif mysql # aggregate syntax: 
query I rowsort label-1484
SELECT ALL ( - SUM( + - 32 ) ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-1484
SELECT ALL ( - SUM ( + - 32 ) ) AS col0
----
32

query I rowsort
SELECT ALL 78
----
78

query I rowsort
SELECT - 5 AS col1
----
-5

query I rowsort
SELECT DISTINCT ( - 62 )
----
-62

query I rowsort
SELECT 50 + 17
----
67

query I rowsort
SELECT 64 AS col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1490
SELECT 53 * + COUNT( * )
----
53

skipif mysql # not compatible
query I rowsort label-1490
SELECT 53 * + COUNT ( * )
----
53

query I rowsort
SELECT ALL - 36 AS col2
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-1492
SELECT ALL + COUNT( * ) + - + 0 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1492
SELECT ALL + COUNT ( * ) + - + 0 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1493
SELECT DISTINCT SUM( - + 83 ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-1493
SELECT DISTINCT SUM ( - + 83 ) AS col2
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1494
SELECT ALL 30 + - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1494
SELECT ALL 30 + - CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT 61 AS col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1496
SELECT ALL ( - - COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-1496
SELECT ALL ( - - COUNT ( * ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1497
SELECT ALL - CAST( - 89 AS SIGNED ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-1497
SELECT ALL - CAST ( - 89 AS INTEGER ) AS col2
----
89

query I rowsort
SELECT ALL - 8
----
-8

query I rowsort
SELECT + 87 AS col0
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1500
SELECT DISTINCT - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1500
SELECT DISTINCT - CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1501
SELECT DISTINCT - ( - - COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1501
SELECT DISTINCT - ( - - COUNT ( * ) )
----
-1

query I rowsort
SELECT + 10 AS col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1503
SELECT ALL COUNT( * ) + - - 27 * + ( + + COUNT( * ) ) col1
----
28

skipif mysql # not compatible
query I rowsort label-1503
SELECT ALL COUNT ( * ) + - - 27 * + ( + + COUNT ( * ) ) col1
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-1504
SELECT ALL COUNT( * ) + - - 60 + - 48 * - 76 + + COUNT( * ) AS col0, + COUNT( * ) * 79 AS col1
----
3710
79

skipif mysql # not compatible
query II rowsort label-1504
SELECT ALL COUNT ( * ) + - - 60 + - 48 * - 76 + + COUNT ( * ) AS col0, + COUNT ( * ) * 79 AS col1
----
3710
79

query I rowsort
SELECT ALL - 64 AS col1
----
-64

query I rowsort
SELECT 31
----
31

query I rowsort
SELECT - + 80
----
-80

query I rowsort
SELECT DISTINCT 22 AS col0
----
22

query I rowsort
SELECT + NULLIF ( - ( + 29 ), 49 ) AS col2
----
-29

query I rowsort
SELECT - 10 + + - 46 AS col2
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-1511
SELECT ( + COUNT( ALL - 80 ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-1511
SELECT ( + COUNT ( ALL - 80 ) ) col0
----
1

query I rowsort
SELECT ALL + 1 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1513
SELECT ALL 57 * - COUNT( * ) AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-1513
SELECT ALL 57 * - COUNT ( * ) AS col0
----
-57

query I rowsort
SELECT ( + 36 )
----
36

query I rowsort
SELECT + 50 AS col2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-1516
SELECT ALL 92 * + 90 + + COUNT( * ) - - 6 AS col2
----
8287

skipif mysql # not compatible
query I rowsort label-1516
SELECT ALL 92 * + 90 + + COUNT ( * ) - - 6 AS col2
----
8287

query I rowsort
SELECT + 53 AS col0
----
53

query I rowsort
SELECT + - 69 AS col2
----
-69

query II rowsort
SELECT DISTINCT + 59 AS col0, - 98 AS col1
----
59
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-1520
SELECT MIN( + 61 )
----
61

skipif mysql # not compatible
query I rowsort label-1520
SELECT MIN ( + 61 )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1521
SELECT DISTINCT + 22 * + 1 * - COUNT( * ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-1521
SELECT DISTINCT + 22 * + 1 * - COUNT ( * ) AS col1
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-1522
SELECT - - 16 DIV + 69
----
0

skipif mysql # not compatible
query I rowsort label-1522
SELECT - - 16 / + 69
----
0

query I rowsort
SELECT ALL 3
----
3

query I rowsort
SELECT - 14 AS col0
----
-14

query I rowsort
SELECT 38 AS col1
----
38

query I rowsort
SELECT ALL 72
----
72

query I rowsort
SELECT ALL 75
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1528
SELECT DISTINCT MAX( ALL - 36 )
----
-36

skipif mysql # not compatible
query I rowsort label-1528
SELECT DISTINCT MAX ( ALL - 36 )
----
-36

query I rowsort
SELECT ALL + 46
----
46

query I rowsort
SELECT ALL - + 47
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-1531
SELECT - 22 * - COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-1531
SELECT - 22 * - COUNT ( * )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-1532
SELECT + COUNT( * ) col2
----
1

skipif mysql # not compatible
query I rowsort label-1532
SELECT + COUNT ( * ) col2
----
1

query I rowsort
SELECT ALL - + 19 - + 68 col2
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1534
SELECT 63 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1534
SELECT 63 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 49
----
49

query I rowsort
SELECT DISTINCT + 37 col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-1537
SELECT + COUNT( * ) * - 9 + COUNT( * )
----
-8

skipif mysql # not compatible
query I rowsort label-1537
SELECT + COUNT ( * ) * - 9 + COUNT ( * )
----
-8

query I rowsort
SELECT ALL 70
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-1539
SELECT 97 + - COUNT( * ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-1539
SELECT 97 + - COUNT ( * ) AS col1
----
96

query I rowsort
SELECT + 6 AS col0
----
6

query I rowsort
SELECT DISTINCT - 1
----
-1

query I rowsort
SELECT NULLIF ( - 31, + - 8 )
----
-31

query I rowsort
SELECT ALL - + 47 AS col1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-1544
SELECT + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-1544
SELECT + - COUNT ( * )
----
-1

query I rowsort
SELECT - 77
----
-77

query I rowsort
SELECT - ( + - 28 ) AS col2
----
28

query I rowsort
SELECT - 83 col2
----
-83

query I rowsort
SELECT ALL 16 col0
----
16

query I rowsort
SELECT - 36
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-1550
SELECT + 58, + 39 - + COUNT( * ) AS col2
----
58
38

skipif mysql # not compatible
query II rowsort label-1550
SELECT + 58, + 39 - + COUNT ( * ) AS col2
----
58
38

query I rowsort
SELECT ALL + 3
----
3

query I rowsort
SELECT ALL 68
----
68

query I rowsort
SELECT + + 23
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1554
SELECT - 46 / 15 / - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1554
SELECT - 46 / 15 / - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL + + 85
----
85

query I rowsort
SELECT ALL + 71 AS col0
----
71

query I rowsort
SELECT - 23 AS col0
----
-23

query I rowsort
SELECT ALL + 28 AS col0
----
28

query I rowsort
SELECT DISTINCT + - 92
----
-92

query I rowsort
SELECT + 32 * - 48 AS col0
----
-1536

onlyif mysql # aggregate syntax: 
query I rowsort label-1561
SELECT + - ( + COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1561
SELECT + - ( + COUNT ( * ) )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1562
SELECT COUNT( * ) DIV - 87 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1562
SELECT COUNT ( * ) / - 87 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1563
SELECT ALL 80 DIV + COUNT( * ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-1563
SELECT ALL 80 / + COUNT ( * ) AS col0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-1564
SELECT COUNT( * ) + + + 68 AS col1
----
69

skipif mysql # not compatible
query I rowsort label-1564
SELECT COUNT ( * ) + + + 68 AS col1
----
69

query I rowsort
SELECT ALL - 94 AS col1
----
-94

query I rowsort
SELECT DISTINCT - 91
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-1567
SELECT + + COUNT( * ) col2
----
1

skipif mysql # not compatible
query I rowsort label-1567
SELECT + + COUNT ( * ) col2
----
1

query I rowsort
SELECT 16 AS col1
----
16

query I rowsort
SELECT 59
----
59

query I rowsort
SELECT DISTINCT - 52
----
-52

query I rowsort
SELECT ALL 33
----
33

query I rowsort
SELECT ALL 90 AS col1
----
90

query I rowsort
SELECT 97 + - 95
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1574
SELECT 78 * COUNT( * ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-1574
SELECT 78 * COUNT ( * ) AS col2
----
78

query I rowsort
SELECT - + ( - - 47 )
----
-47

query I rowsort
SELECT + 42 col1
----
42

query I rowsort
SELECT + 59 AS col2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1578
SELECT ALL + MAX( + 79 ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-1578
SELECT ALL + MAX ( + 79 ) AS col1
----
79

query I rowsort
SELECT 47 AS col2
----
47

query I rowsort
SELECT 18 AS col0
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1581
SELECT ALL - CAST( NULL AS SIGNED ) + + 73 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1581
SELECT ALL - CAST ( NULL AS INTEGER ) + + 73 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1582
SELECT - + 44 DIV - 37 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1582
SELECT - + 44 / - 37 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1583
SELECT - ( - + COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1583
SELECT - ( - + COUNT ( * ) ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1584
SELECT - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1584
SELECT - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 24 - + + 26 AS col1
----
-50

query I rowsort
SELECT ALL 53 AS col1
----
53

query I rowsort
SELECT ( 14 )
----
14

query I rowsort
SELECT ALL 75 * 22
----
1650

query I rowsort
SELECT ( - - 26 ) AS col0
----
26

query I rowsort
SELECT ALL + 45
----
45

query I rowsort
SELECT ( + 86 )
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1592
SELECT + COUNT( * ) + CAST( + - 31 AS SIGNED ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-1592
SELECT + COUNT ( * ) + CAST ( + - 31 AS INTEGER ) AS col1
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1593
SELECT + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1593
SELECT + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - 50 * 54
----
-2700

query I rowsort
SELECT - - 61 AS col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1596
SELECT DISTINCT + COUNT( * ) * + 73 AS col1
----
73

skipif mysql # not compatible
query I rowsort label-1596
SELECT DISTINCT + COUNT ( * ) * + 73 AS col1
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1597
SELECT DISTINCT NULLIF ( CAST( + 66 AS SIGNED ), - 55 )
----
66

skipif mysql # not compatible
query I rowsort label-1597
SELECT DISTINCT NULLIF ( CAST ( + 66 AS INTEGER ), - 55 )
----
66

query I rowsort
SELECT DISTINCT 15
----
15

query I rowsort
SELECT - - 9
----
9

query I rowsort
SELECT 40 * 11
----
440

query I rowsort
SELECT DISTINCT - ( - 87 )
----
87

query I rowsort
SELECT + - 96
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-1603
SELECT 86 - COUNT( * )
----
85

skipif mysql # not compatible
query I rowsort label-1603
SELECT 86 - COUNT ( * )
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1604
SELECT DISTINCT - CAST( - + 38 AS SIGNED )
----
38

skipif mysql # not compatible
query I rowsort label-1604
SELECT DISTINCT - CAST ( - + 38 AS INTEGER )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-1605
SELECT COUNT( * ) + + 12 AS col0
----
13

skipif mysql # not compatible
query I rowsort label-1605
SELECT COUNT ( * ) + + 12 AS col0
----
13

query I rowsort
SELECT DISTINCT - 32 * 61
----
-1952

query I rowsort
SELECT - ( + 64 ) + 72 AS col2
----
8

query I rowsort
SELECT DISTINCT - - ( ( - 18 ) ) * - ( + 13 ) AS col1
----
234

query I rowsort
SELECT DISTINCT 54
----
54

query I rowsort
SELECT - 48 * - 99
----
4752

query I rowsort
SELECT ALL 44
----
44

query I rowsort
SELECT ALL + ( - 38 )
----
-38

query I rowsort
SELECT + 33 + - 60 AS col2
----
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-1614
SELECT - ( COUNT( * ) ) AS col2, 93 AS col0
----
-1
93

skipif mysql # not compatible
query II rowsort label-1614
SELECT - ( COUNT ( * ) ) AS col2, 93 AS col0
----
-1
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1615
SELECT ( + - COUNT( * ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-1615
SELECT ( + - COUNT ( * ) ) col0
----
-1

query II rowsort
SELECT ALL + - 0 * - 66 AS col1, + 9 AS col1
----
0
9

query I rowsort
SELECT + - 44 AS col1
----
-44

query I rowsort
SELECT DISTINCT 89 AS col0
----
89

query I rowsort
SELECT + 45 AS col2
----
45

query I rowsort
SELECT ALL 73 AS col0
----
73

query I rowsort
SELECT DISTINCT - 25
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-1622
SELECT - + COUNT( - 11 ) - - + COUNT( * ) + - + 7 * - COUNT( DISTINCT - 91 ) + - 63
----
-56

skipif mysql # not compatible
query I rowsort label-1622
SELECT - + COUNT ( - 11 ) - - + COUNT ( * ) + - + 7 * - COUNT ( DISTINCT - 91 ) + - 63
----
-56

query I rowsort
SELECT - ( 72 ) AS col0
----
-72

query I rowsort
SELECT ALL 12 col2
----
12

query I rowsort
SELECT DISTINCT + 83
----
83

query I rowsort
SELECT DISTINCT + 92 AS col1
----
92

query I rowsort
SELECT DISTINCT + 98
----
98

query I rowsort
SELECT - 83 AS col1
----
-83

query I rowsort
SELECT DISTINCT + 39 + 5
----
44

query I rowsort
SELECT + 93 * 82 * + 86
----
655836

onlyif mysql # aggregate syntax: 
query I rowsort label-1631
SELECT COUNT( * ) - + 37 AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-1631
SELECT COUNT ( * ) - + 37 AS col0
----
-36

query I rowsort
SELECT + 46 AS col2
----
46

query I rowsort
SELECT + - 65 AS col0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-1634
SELECT + COUNT( * ) * - 11
----
-11

skipif mysql # not compatible
query I rowsort label-1634
SELECT + COUNT ( * ) * - 11
----
-11

query I rowsort
SELECT ALL - + 20
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-1636
SELECT ALL + - COUNT( * ) + + - 81
----
-82

skipif mysql # not compatible
query I rowsort label-1636
SELECT ALL + - COUNT ( * ) + + - 81
----
-82

query I rowsort
SELECT DISTINCT 45 * - - 76
----
3420

query I rowsort
SELECT ALL 56 AS col2
----
56

query I rowsort
SELECT DISTINCT 62 col1
----
62

query I rowsort
SELECT ALL 68 AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1641
SELECT ALL COUNT( ALL - 79 )
----
1

skipif mysql # not compatible
query I rowsort label-1641
SELECT ALL COUNT ( ALL - 79 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1642
SELECT ALL COUNT( - CAST( 31 AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-1642
SELECT ALL COUNT ( - CAST ( 31 AS INTEGER ) )
----
1

query I rowsort
SELECT - 47 AS col1
----
-47

query I rowsort
SELECT + - 21
----
-21

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1645
SELECT SUM( ( + CAST( NULL AS DECIMAL ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1645
SELECT SUM ( ( + CAST ( NULL AS REAL ) ) )
----
NULL

query I rowsort
SELECT ALL 66 col1
----
66

query I rowsort
SELECT ALL 69 * 38
----
2622

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1648
SELECT DISTINCT 80 AS col1, + CAST( - 20 AS SIGNED ) DIV - ( + ( + - 11 ) )
----
80
-1

skipif mysql # not compatible
query II rowsort label-1648
SELECT DISTINCT 80 AS col1, + CAST ( - 20 AS INTEGER ) / - ( + ( + - 11 ) )
----
80
-1

query I rowsort
SELECT DISTINCT 83 AS col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1650
SELECT DISTINCT NULLIF ( + 51, + COUNT( * ) * 1 ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-1650
SELECT DISTINCT NULLIF ( + 51, + COUNT ( * ) * 1 ) AS col0
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1651
SELECT + 91 DIV COUNT( * ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-1651
SELECT + 91 / COUNT ( * ) AS col1
----
91

query I rowsort
SELECT - ( + + 43 ) AS col0
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1653
SELECT DISTINCT NULLIF ( - 19, - 18 * - CAST( NULL AS SIGNED ) ) AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-1653
SELECT DISTINCT NULLIF ( - 19, - 18 * - CAST ( NULL AS INTEGER ) ) AS col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-1654
SELECT ALL + 38 + - COUNT( * ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-1654
SELECT ALL + 38 + - COUNT ( * ) AS col2
----
37

query I rowsort
SELECT DISTINCT + 33 AS col1
----
33

query I rowsort
SELECT ALL + 79 AS col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1657
SELECT + - MIN( + - 42 ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-1657
SELECT + - MIN ( + - 42 ) AS col1
----
42

query I rowsort
SELECT ALL + + 38
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-1659
SELECT + + COUNT( * ) * + 4
----
4

skipif mysql # not compatible
query I rowsort label-1659
SELECT + + COUNT ( * ) * + 4
----
4

query I rowsort
SELECT ALL + - 4 AS col2
----
-4

query I rowsort
SELECT DISTINCT + - 22
----
-22

query I rowsort
SELECT - 57 + ( 77 ) AS col2
----
20

query I rowsort
SELECT ALL + 5 AS col2
----
5

query I rowsort
SELECT 70 * 47
----
3290

query I rowsort
SELECT ALL ( + + 51 ) AS col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1666
SELECT COUNT( * ) + - 28 AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-1666
SELECT COUNT ( * ) + - 28 AS col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-1667
SELECT ( - + 51 ) + + - 98 * + + COUNT( * )
----
-149

skipif mysql # not compatible
query I rowsort label-1667
SELECT ( - + 51 ) + + - 98 * + + COUNT ( * )
----
-149

query I rowsort
SELECT 92
----
92

query I rowsort
SELECT ALL - + 29 AS col0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-1670
SELECT 0 * ( + ( + + ( + + COUNT( * ) ) ) ) + 41 AS col1
----
41

skipif mysql # not compatible
query I rowsort label-1670
SELECT 0 * ( + ( + + ( + + COUNT ( * ) ) ) ) + 41 AS col1
----
41

query II rowsort
SELECT 56, 34 AS col1
----
56
34

query I rowsort
SELECT 37
----
37

query I rowsort
SELECT ALL - ( - 52 )
----
52

query I rowsort
SELECT ALL 79 + 93 AS col2
----
172

query I rowsort
SELECT ALL 96
----
96

query I rowsort
SELECT ALL - 78 AS col2
----
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-1677
SELECT ALL - 34, COUNT( * ) col2
----
-34
1

skipif mysql # not compatible
query II rowsort label-1677
SELECT ALL - 34, COUNT ( * ) col2
----
-34
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1678
SELECT COUNT( * ) DIV - + 6
----
0

skipif mysql # not compatible
query I rowsort label-1678
SELECT COUNT ( * ) / - + 6
----
0

query I rowsort
SELECT ALL - 27
----
-27

query II rowsort
SELECT ALL 93 * ( 13 ) + + + 41 AS col0, + 13 AS col2
----
1250
13

onlyif mysql # aggregate syntax: 
query II rowsort label-1681
SELECT COUNT( * ), 66 col1
----
1
66

skipif mysql # not compatible
query II rowsort label-1681
SELECT COUNT ( * ), 66 col1
----
1
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1682
SELECT ALL - - 55 * 32 * + SUM( + 2 ) AS col1
----
3520

skipif mysql # not compatible
query I rowsort label-1682
SELECT ALL - - 55 * 32 * + SUM ( + 2 ) AS col1
----
3520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1683
SELECT - - ( - CASE WHEN - CAST( 6 AS SIGNED ) IS NOT NULL THEN - 82 - + 98 ELSE NULL END ) AS col2
----
180

skipif mysql # not compatible
query I rowsort label-1683
SELECT - - ( - CASE WHEN - CAST ( 6 AS INTEGER ) IS NOT NULL THEN - 82 - + 98 ELSE NULL END ) AS col2
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-1684
SELECT + + 10 * - COUNT( * ) col1
----
-10

skipif mysql # not compatible
query I rowsort label-1684
SELECT + + 10 * - COUNT ( * ) col1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-1685
SELECT DISTINCT ( - + COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1685
SELECT DISTINCT ( - + COUNT ( * ) ) AS col1
----
-1

query I rowsort
SELECT - 81 + + 60
----
-21

query I rowsort
SELECT + + ( 80 ) AS col1
----
80

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1688
SELECT + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1688
SELECT + CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 20 AS col2
----
20

query I rowsort
SELECT DISTINCT + 36 col1
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1691
SELECT - CAST( MIN( DISTINCT 53 ) AS SIGNED ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-1691
SELECT - CAST ( MIN ( DISTINCT 53 ) AS INTEGER ) AS col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-1692
SELECT DISTINCT + COUNT( * ) * - - MAX( ALL 36 )
----
36

skipif mysql # not compatible
query I rowsort label-1692
SELECT DISTINCT + COUNT ( * ) * - - MAX ( ALL 36 )
----
36

query I rowsort
SELECT DISTINCT - 77
----
-77

query I rowsort
SELECT 37 col0
----
37

query I rowsort
SELECT - 39 AS col0
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1696
SELECT - + ( + CAST( NULL AS SIGNED ) ), 39 AS col0
----
NULL
39

skipif mysql # not compatible
query II rowsort label-1696
SELECT - + ( + CAST ( NULL AS INTEGER ) ), 39 AS col0
----
NULL
39

query I rowsort
SELECT ALL 14 * + 43 AS col1
----
602

query I rowsort
SELECT ALL - 59 col0
----
-59

query I rowsort
SELECT DISTINCT - 71
----
-71

query I rowsort
SELECT 12 * ( - - 92 ) AS col0
----
1104

onlyif mysql # aggregate syntax: 
query II rowsort label-1701
SELECT - - COUNT( * ) AS col1, + 38
----
1
38

skipif mysql # not compatible
query II rowsort label-1701
SELECT - - COUNT ( * ) AS col1, + 38
----
1
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1702
SELECT DISTINCT + - 78 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1702
SELECT DISTINCT + - 78 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 61 + 47 col2
----
108

query I rowsort
SELECT 89 * - 36
----
-3204

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1705
SELECT DISTINCT - COUNT( * ) * - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1705
SELECT DISTINCT - COUNT ( * ) * - CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT 79 * 33
----
2607

onlyif mysql # aggregate syntax: 
query I rowsort label-1707
SELECT 4 * COUNT( * ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-1707
SELECT 4 * COUNT ( * ) AS col2
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1708
SELECT CAST( 88 AS SIGNED ) + + 99
----
187

skipif mysql # not compatible
query I rowsort label-1708
SELECT CAST ( 88 AS INTEGER ) + + 99
----
187

query I rowsort
SELECT + + 91
----
91

query I rowsort
SELECT 91 AS col1
----
91

query I rowsort
SELECT - - ( 48 ) AS col2
----
48

query I rowsort
SELECT + 20 AS col2
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-1713
SELECT DISTINCT COUNT( * ), - 8 col1
----
1
-8

skipif mysql # not compatible
query II rowsort label-1713
SELECT DISTINCT COUNT ( * ), - 8 col1
----
1
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-1714
SELECT ALL COUNT( * ), COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-1714
SELECT ALL COUNT ( * ), COUNT ( * )
----
1
1

query I rowsort
SELECT ALL + 59 AS col1
----
59

query I rowsort
SELECT NULLIF ( - - 36, 97 )
----
36

query I rowsort
SELECT + 99
----
99

query I rowsort
SELECT DISTINCT + + 44
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-1719
SELECT + COUNT( DISTINCT 30 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1719
SELECT + COUNT ( DISTINCT 30 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1720
SELECT DISTINCT + - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1720
SELECT DISTINCT + - COUNT ( * ) AS col2
----
-1

query I rowsort
SELECT 5 AS col2
----
5

query I rowsort
SELECT ( + + 84 ) AS col1
----
84

query I rowsort
SELECT - - 81 + + 73
----
154

query I rowsort
SELECT - ( - 26 ) AS col0
----
26

query I rowsort
SELECT ALL - - 82 AS col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1726
SELECT ALL + + 97 - + - COUNT( * )
----
98

skipif mysql # not compatible
query I rowsort label-1726
SELECT ALL + + 97 - + - COUNT ( * )
----
98

query I rowsort
SELECT - 9 * + 21
----
-189

query I rowsort
SELECT + + 12 AS col2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-1729
SELECT ALL - SUM( + 33 ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-1729
SELECT ALL - SUM ( + 33 ) AS col0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-1730
SELECT ALL COUNT( * ) + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-1730
SELECT ALL COUNT ( * ) + - COUNT ( * )
----
0

query I rowsort
SELECT 92 AS col2
----
92

query I rowsort
SELECT + 97
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1733
SELECT DISTINCT - + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-1733
SELECT DISTINCT - + COUNT ( * )
----
-1

query I rowsort
SELECT DISTINCT - 84 AS col0
----
-84

query I rowsort
SELECT ALL - + 24
----
-24

query I rowsort
SELECT + + 58 AS col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1737
SELECT - SUM( 96 )
----
-96

skipif mysql # not compatible
query I rowsort label-1737
SELECT - SUM ( 96 )
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-1738
SELECT 48 * + - COUNT( * )
----
-48

skipif mysql # not compatible
query I rowsort label-1738
SELECT 48 * + - COUNT ( * )
----
-48

query I rowsort
SELECT - 95
----
-95

query I rowsort
SELECT DISTINCT + 86 col1
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-1741
SELECT + COUNT( * ) + 64
----
65

skipif mysql # not compatible
query I rowsort label-1741
SELECT + COUNT ( * ) + 64
----
65

query I rowsort
SELECT ALL + ( - - 70 )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-1743
SELECT ALL COUNT( * ) col1
----
1

skipif mysql # not compatible
query I rowsort label-1743
SELECT ALL COUNT ( * ) col1
----
1

query I rowsort
SELECT ALL 20
----
20

query I rowsort
SELECT 23
----
23

query I rowsort
SELECT ALL 43 AS col2
----
43

query I rowsort
SELECT DISTINCT 27 AS col2
----
27

query I rowsort
SELECT + + 5 col2
----
5

query I rowsort
SELECT ALL + ( + 91 ) * - 13 AS col1
----
-1183

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1750
SELECT + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1750
SELECT + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1751
SELECT + - MAX( ALL + + 61 ) col1
----
-61

skipif mysql # not compatible
query I rowsort label-1751
SELECT + - MAX ( ALL + + 61 ) col1
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-1752
SELECT ALL MIN( ALL + 47 ) * 42
----
1974

skipif mysql # not compatible
query I rowsort label-1752
SELECT ALL MIN ( ALL + 47 ) * 42
----
1974

onlyif mysql # aggregate syntax: 
query I rowsort label-1753
SELECT ALL COUNT( * ) * - 43 AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-1753
SELECT ALL COUNT ( * ) * - 43 AS col1
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-1754
SELECT + 61 * + COUNT( * ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-1754
SELECT + 61 * + COUNT ( * ) AS col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1755
SELECT COUNT( * ) + - 45
----
-44

skipif mysql # not compatible
query I rowsort label-1755
SELECT COUNT ( * ) + - 45
----
-44

query I rowsort
SELECT - 93 + 40
----
-53

query I rowsort
SELECT ALL 34 AS col2
----
34

query I rowsort
SELECT ALL + 66 + - + 57 AS col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1759
SELECT ALL - 8 + - COUNT( * )
----
-9

skipif mysql # not compatible
query I rowsort label-1759
SELECT ALL - 8 + - COUNT ( * )
----
-9

query I rowsort
SELECT DISTINCT + + 37 * 53 AS col1
----
1961

query I rowsort
SELECT ALL - 48
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-1762
SELECT COUNT( * ) + - 35 AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-1762
SELECT COUNT ( * ) + - 35 AS col2
----
-34

query I rowsort
SELECT - 35
----
-35

query I rowsort
SELECT - 38
----
-38

query I rowsort
SELECT - - 56
----
56

query I rowsort
SELECT - 1 col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1767
SELECT DISTINCT - 78 * + - COUNT( * ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-1767
SELECT DISTINCT - 78 * + - COUNT ( * ) AS col1
----
78

query I rowsort
SELECT ALL + 20 + + 12 col0
----
32

query I rowsort
SELECT - - 60 AS col1
----
60

query I rowsort
SELECT ALL - 43
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-1771
SELECT - COUNT( * ) - - COUNT( * ) * + 90 + + - 51
----
38

skipif mysql # not compatible
query I rowsort label-1771
SELECT - COUNT ( * ) - - COUNT ( * ) * + 90 + + - 51
----
38

query I rowsort
SELECT 19 AS col2
----
19

query I rowsort
SELECT + 84
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1774
SELECT + 11 - COUNT( + 39 ) col2
----
10

skipif mysql # not compatible
query I rowsort label-1774
SELECT + 11 - COUNT ( + 39 ) col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1775
SELECT + - COUNT( * ) + - 43 AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-1775
SELECT + - COUNT ( * ) + - 43 AS col2
----
-44

query I rowsort
SELECT + COALESCE ( + + ( + 86 ), 34 ) AS col1
----
86

query I rowsort
SELECT ALL + 78 AS col1
----
78

query I rowsort
SELECT DISTINCT 91
----
91

query I rowsort
SELECT - - 75 AS col1
----
75

query I rowsort
SELECT ALL 18 * + + 68 AS col0
----
1224

query I rowsort
SELECT ALL - 30
----
-30

query I rowsort
SELECT - - 20 AS col2
----
20

query I rowsort
SELECT DISTINCT 64
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1784
SELECT ALL + SUM( CAST( NULL AS SIGNED ) ) * - 83 * - 37
----
NULL

skipif mysql # not compatible
query I rowsort label-1784
SELECT ALL + SUM ( CAST ( NULL AS INTEGER ) ) * - 83 * - 37
----
NULL

query I rowsort
SELECT DISTINCT 48 col0
----
48

query I rowsort
SELECT ALL 54 AS col2
----
54

query I rowsort
SELECT 30 AS col0
----
30

query I rowsort
SELECT 73
----
73

query I rowsort
SELECT + 41 AS col0
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1790
SELECT COUNT( * ) DIV - COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1790
SELECT COUNT ( * ) / - COUNT ( * ) AS col1
----
-1

query I rowsort
SELECT ALL - 93 - 71
----
-164

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1792
SELECT + CAST( NULL AS SIGNED ) * + 25 * + 62 - - 23 / - - 67 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1792
SELECT + CAST ( NULL AS INTEGER ) * + 25 * + 62 - - 23 / - - 67 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1793
SELECT - - SUM( ALL + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1793
SELECT - - SUM ( ALL + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 51 + - 73
----
-22

query I rowsort
SELECT + 74 AS col2
----
74

query II rowsort
SELECT 85 AS col0, + 60
----
85
60

query I rowsort
SELECT DISTINCT + - 83
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-1798
SELECT ALL + COUNT( * ) col0
----
1

skipif mysql # not compatible
query I rowsort label-1798
SELECT ALL + COUNT ( * ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1799
SELECT + ( COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1799
SELECT + ( COUNT ( * ) ) AS col2
----
1

query I rowsort
SELECT - + 42 AS col2
----
-42

query I rowsort
SELECT 74 AS col0
----
74

query I rowsort
SELECT 82 AS col1
----
82

query I rowsort
SELECT 88 col1
----
88

query I rowsort
SELECT DISTINCT + 53
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1805
SELECT + ( + + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-1805
SELECT + ( + + COUNT ( * ) )
----
1

query I rowsort
SELECT DISTINCT + 23 AS col0
----
23

query I rowsort
SELECT + NULLIF ( 21, - 20 ) col1
----
21

query I rowsort
SELECT + 67
----
67

query I rowsort
SELECT DISTINCT - 54
----
-54

query I rowsort
SELECT DISTINCT - 67 + 94 + - - ( + - 36 ) AS col0
----
-9

query I rowsort
SELECT 2
----
2

query I rowsort
SELECT + ( 99 )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1813
SELECT ALL - + SUM( - + 34 )
----
34

skipif mysql # not compatible
query I rowsort label-1813
SELECT ALL - + SUM ( - + 34 )
----
34

query I rowsort
SELECT DISTINCT - 7 AS col0
----
-7

query I rowsort
SELECT + + 25
----
25

query I rowsort
SELECT DISTINCT - + 67 AS col1
----
-67

query I rowsort
SELECT ALL - - 46
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1818
SELECT DISTINCT + + COUNT( * ) * COUNT( ALL - 18 ) + - 56
----
-55

skipif mysql # not compatible
query I rowsort label-1818
SELECT DISTINCT + + COUNT ( * ) * COUNT ( ALL - 18 ) + - 56
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1819
SELECT + - 38 AS col0, CAST( NULL AS SIGNED )
----
-38
NULL

skipif mysql # not compatible
query II rowsort label-1819
SELECT + - 38 AS col0, CAST ( NULL AS INTEGER )
----
-38
NULL

query I rowsort
SELECT 99 AS col1
----
99

query I rowsort
SELECT - 51 AS col2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-1822
SELECT ALL MAX( + - 13 )
----
-13

skipif mysql # not compatible
query I rowsort label-1822
SELECT ALL MAX ( + - 13 )
----
-13

query I rowsort
SELECT ALL 63
----
63

query I rowsort
SELECT - 25 AS col0
----
-25

query I rowsort
SELECT - 36 AS col2
----
-36

query I rowsort
SELECT 17 col0
----
17

query I rowsort
SELECT + + 27
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-1828
SELECT + COUNT( * ) + + 65
----
66

skipif mysql # not compatible
query I rowsort label-1828
SELECT + COUNT ( * ) + + 65
----
66

query I rowsort
SELECT + + ( - 16 )
----
-16

query I rowsort
SELECT + 96 AS col0
----
96

query I rowsort
SELECT + - 4 AS col2
----
-4

query I rowsort
SELECT 97 AS col1
----
97

query I rowsort
SELECT 41 AS col1
----
41

query I rowsort
SELECT DISTINCT + 60 col1
----
60

query I rowsort
SELECT + 3
----
3

query I rowsort
SELECT ALL + 15
----
15

query I rowsort
SELECT 22 AS col1
----
22

query I rowsort
SELECT ALL 8 * - 95
----
-760

query I rowsort
SELECT DISTINCT + 70 + - 71
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1840
SELECT - COUNT( * ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-1840
SELECT - COUNT ( * ) col2
----
-1

query I rowsort
SELECT 0
----
0

query I rowsort
SELECT DISTINCT + 28 AS col0
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-1843
SELECT ALL 14 DIV 48 * 6
----
0

skipif mysql # not compatible
query I rowsort label-1843
SELECT ALL 14 / 48 * 6
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1844
SELECT DISTINCT MIN( + 91 ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-1844
SELECT DISTINCT MIN ( + 91 ) AS col0
----
91

query I rowsort
SELECT 8
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1846
SELECT - + ( + COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1846
SELECT - + ( + COUNT ( * ) )
----
-1

query I rowsort
SELECT ALL - - 79 AS col1
----
79

query II rowsort
SELECT ALL - 92 AS col2, 62
----
-92
62

query I rowsort
SELECT - 49 AS col1
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-1850
SELECT + + COALESCE ( 9, - COUNT( * ) ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-1850
SELECT + + COALESCE ( 9, - COUNT ( * ) ) AS col1
----
9

query I rowsort
SELECT + 13
----
13

query I rowsort
SELECT ALL 86 col2
----
86

query I rowsort
SELECT DISTINCT 42 AS col1
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-1854
SELECT - - COUNT( - 46 ) col1, 30 AS col1
----
1
30

skipif mysql # not compatible
query II rowsort label-1854
SELECT - - COUNT ( - 46 ) col1, 30 AS col1
----
1
30

query I rowsort
SELECT - 32
----
-32

query I rowsort
SELECT ALL - + 29 AS col1
----
-29

query I rowsort
SELECT ALL - + 3 AS col2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1858
SELECT ALL - COALESCE ( + CAST( 87 AS SIGNED ), 15 ) AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-1858
SELECT ALL - COALESCE ( + CAST ( 87 AS INTEGER ), 15 ) AS col0
----
-87

query I rowsort
SELECT 5 * 65
----
325

query I rowsort
SELECT ALL - ( 85 )
----
-85

query I rowsort
SELECT - 32 * ( + - 91 ) + - 83
----
2829

query I rowsort
SELECT DISTINCT 14 col0
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1863
SELECT + MIN( ALL - 15 ) * + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1863
SELECT + MIN ( ALL - 15 ) * + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1864
SELECT ALL - MIN( 70 )
----
-70

skipif mysql # not compatible
query I rowsort label-1864
SELECT ALL - MIN ( 70 )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-1865
SELECT DISTINCT MIN( 94 )
----
94

skipif mysql # not compatible
query I rowsort label-1865
SELECT DISTINCT MIN ( 94 )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1866
SELECT + + COUNT( * ) + + ( - 24 )
----
-23

skipif mysql # not compatible
query I rowsort label-1866
SELECT + + COUNT ( * ) + + ( - 24 )
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-1867
SELECT - 12 col2, COUNT( * ) + 10
----
-12
11

skipif mysql # not compatible
query II rowsort label-1867
SELECT - 12 col2, COUNT ( * ) + 10
----
-12
11

onlyif mysql # aggregate syntax: 
query I rowsort label-1868
SELECT ALL + COUNT( * ) * - - 87 + + + 76 AS col1
----
163

skipif mysql # not compatible
query I rowsort label-1868
SELECT ALL + COUNT ( * ) * - - 87 + + + 76 AS col1
----
163

query I rowsort
SELECT + ( + 82 ) AS col1
----
82

query I rowsort
SELECT DISTINCT + 59 AS col0
----
59

query I rowsort
SELECT ALL + 42 AS col1
----
42

query I rowsort
SELECT + + 85
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1873
SELECT DISTINCT CAST( - - 34 AS SIGNED )
----
34

skipif mysql # not compatible
query I rowsort label-1873
SELECT DISTINCT CAST ( - - 34 AS INTEGER )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1874
SELECT ALL + 36 + + COUNT( * )
----
37

skipif mysql # not compatible
query I rowsort label-1874
SELECT ALL + 36 + + COUNT ( * )
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1875
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-1875
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 88
----
NULL

query I rowsort
SELECT ALL 97 AS col0
----
97

query I rowsort
SELECT DISTINCT - 87 AS col0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-1878
SELECT ALL ( + COUNT( * ) ) + - 23
----
-22

skipif mysql # not compatible
query I rowsort label-1878
SELECT ALL ( + COUNT ( * ) ) + - 23
----
-22

query I rowsort
SELECT 86 + 62
----
148

query I rowsort
SELECT DISTINCT 34
----
34

query I rowsort
SELECT ALL 95 AS col1
----
95

query I rowsort
SELECT ALL 97
----
97

query I rowsort
SELECT ALL 54
----
54

query I rowsort
SELECT 68 AS col2
----
68

query I rowsort
SELECT + 16
----
16

query I rowsort
SELECT 49 AS col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-1887
SELECT DISTINCT - ( COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1887
SELECT DISTINCT - ( COUNT ( * ) )
----
-1

query I rowsort
SELECT ALL - 65 col1
----
-65

query I rowsort
SELECT 65 AS col1
----
65

query I rowsort
SELECT 40 AS col2
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1891
SELECT COUNT( * ) DIV - 90
----
0

skipif mysql # not compatible
query I rowsort label-1891
SELECT COUNT ( * ) / - 90
----
0

query I rowsort
SELECT + 45
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1893
SELECT ALL - 91 / + ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1893
SELECT ALL - 91 / + ( CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT 40 - - 64 AS col0
----
104

query I rowsort
SELECT DISTINCT - 89 AS col1
----
-89

query I rowsort
SELECT - 52 col2
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-1897
SELECT ALL + 59 + COUNT( * ) * - 34
----
25

skipif mysql # not compatible
query I rowsort label-1897
SELECT ALL + 59 + COUNT ( * ) * - 34
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1898
SELECT 89 + + COUNT( * )
----
90

skipif mysql # not compatible
query I rowsort label-1898
SELECT 89 + + COUNT ( * )
----
90

query I rowsort
SELECT DISTINCT - 48 AS col0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-1900
SELECT DISTINCT COUNT( * ) - 34 * + COUNT( * ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-1900
SELECT DISTINCT COUNT ( * ) - 34 * + COUNT ( * ) AS col0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-1901
SELECT DISTINCT COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1901
SELECT DISTINCT COUNT ( * ) AS col1
----
1

query I rowsort
SELECT - 2 * + 98
----
-196

onlyif mysql # aggregate syntax: 
query I rowsort label-1903
SELECT DISTINCT COUNT( * ) col1
----
1

skipif mysql # not compatible
query I rowsort label-1903
SELECT DISTINCT COUNT ( * ) col1
----
1

query I rowsort
SELECT DISTINCT 66 AS col0
----
66

query I rowsort
SELECT ALL + 91
----
91

query I rowsort
SELECT DISTINCT + 68
----
68

query I rowsort
SELECT ALL + 81 AS col2
----
81

query I rowsort
SELECT + - 37 + + 74 * - 16 AS col1
----
-1221

query I rowsort
SELECT ALL + 76 AS col0
----
76

query I rowsort
SELECT - 65 * + 48 * - 80 AS col2
----
249600

query I rowsort
SELECT ALL + 53
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1912
SELECT + COUNT( * ) + - 24 AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-1912
SELECT + COUNT ( * ) + - 24 AS col0
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1913
SELECT DISTINCT CAST( + + 84 AS SIGNED ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-1913
SELECT DISTINCT CAST ( + + 84 AS INTEGER ) AS col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1914
SELECT - 26 + - MIN( DISTINCT + 77 )
----
-103

skipif mysql # not compatible
query I rowsort label-1914
SELECT - 26 + - MIN ( DISTINCT + 77 )
----
-103

query I rowsort
SELECT ALL 61 col0
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1916
SELECT - CAST( NULL AS SIGNED ) AS col0, + 27 col2
----
NULL
27

skipif mysql # not compatible
query II rowsort label-1916
SELECT - CAST ( NULL AS INTEGER ) AS col0, + 27 col2
----
NULL
27

onlyif mysql # DIV for integer division: 
query I rowsort label-1917
SELECT - 43 DIV - - 53 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1917
SELECT - 43 / - - 53 AS col1
----
0

query I rowsort
SELECT - ( - + 68 ) AS col1
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1919
SELECT + 7 DIV + ( + COUNT( * ) ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-1919
SELECT + 7 / + ( + COUNT ( * ) ) AS col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1920
SELECT + COUNT( * ) * + - 74 AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-1920
SELECT + COUNT ( * ) * + - 74 AS col0
----
-74

query I rowsort
SELECT - 89 * + 37 AS col2
----
-3293

query II rowsort
SELECT + 91, + 20 AS col1
----
91
20

onlyif mysql # DIV for integer division: 
query I rowsort label-1923
SELECT ALL 95 DIV - 18 + - 27 AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-1923
SELECT ALL 95 / - 18 + - 27 AS col1
----
-32

query I rowsort
SELECT + + 55 col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1925
SELECT ALL + SUM( DISTINCT + + 17 ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-1925
SELECT ALL + SUM ( DISTINCT + + 17 ) AS col0
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1926
SELECT + CAST( - 1 AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-1926
SELECT + CAST ( - 1 AS INTEGER )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1927
SELECT + 14 AS col0, COUNT( * ) - + + 23
----
14
-22

skipif mysql # not compatible
query II rowsort label-1927
SELECT + 14 AS col0, COUNT ( * ) - + + 23
----
14
-22

query I rowsort
SELECT - 86 - + 4
----
-90

query I rowsort
SELECT - 98 col2
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-1930
SELECT DISTINCT + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-1930
SELECT DISTINCT + - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1931
SELECT COUNT( * ) + - + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-1931
SELECT COUNT ( * ) + - + COUNT ( * )
----
0

query I rowsort
SELECT DISTINCT 48 + - 77
----
-29

query I rowsort
SELECT ALL - + 51 col1
----
-51

query I rowsort
SELECT + 81 AS col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1935
SELECT ALL - MIN( + 17 )
----
-17

skipif mysql # not compatible
query I rowsort label-1935
SELECT ALL - MIN ( + 17 )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-1936
SELECT - COUNT( * ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-1936
SELECT - COUNT ( * ) col0
----
-1

query I rowsort
SELECT - 77 col2
----
-77

query I rowsort
SELECT ALL + ( - 89 ) * + 53 AS col1
----
-4717

query I rowsort
SELECT DISTINCT 6 AS col0
----
6

query I rowsort
SELECT - 79 col1
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1941
SELECT ALL 89 + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1941
SELECT ALL 89 + - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1942
SELECT DISTINCT - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1942
SELECT DISTINCT - COUNT ( * ) AS col2
----
-1

query I rowsort
SELECT + - 10 AS col2
----
-10

query I rowsort
SELECT + 77 * - 72 AS col0
----
-5544

query I rowsort
SELECT ALL + - ( - 17 )
----
17

query I rowsort
SELECT ALL + - 30 AS col2
----
-30

query I rowsort
SELECT ALL + 75
----
75

query I rowsort
SELECT 90 AS col1
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1949
SELECT ALL 66 * - MIN( - 57 ) DIV - COUNT( * ) AS col0
----
-3762

skipif mysql # not compatible
query I rowsort label-1949
SELECT ALL 66 * - MIN ( - 57 ) / - COUNT ( * ) AS col0
----
-3762

onlyif mysql # aggregate syntax: 
query I rowsort label-1950
SELECT ALL ( + COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1950
SELECT ALL ( + COUNT ( * ) ) AS col0
----
1

query I rowsort
SELECT - 35 AS col1
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-1952
SELECT - COUNT( * ) AS col2, + COUNT( * ) AS col0
----
-1
1

skipif mysql # not compatible
query II rowsort label-1952
SELECT - COUNT ( * ) AS col2, + COUNT ( * ) AS col0
----
-1
1

query I rowsort
SELECT - 16 * - + 35 AS col0
----
560

query I rowsort
SELECT DISTINCT + 69 * + + 32 AS col0
----
2208

query I rowsort
SELECT DISTINCT + ( - - ( + 63 ) )
----
63

query I rowsort
SELECT ALL + 45 AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1957
SELECT + + 89 * + COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-1957
SELECT + + 89 * + COUNT ( * )
----
89

query I rowsort
SELECT ALL + 84
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1959
SELECT + NULLIF ( - - 91, + + COUNT( * ) )
----
91

skipif mysql # not compatible
query I rowsort label-1959
SELECT + NULLIF ( - - 91, + + COUNT ( * ) )
----
91

query I rowsort
SELECT NULLIF ( + 33, + 56 )
----
33

query I rowsort
SELECT ( + 90 )
----
90

query I rowsort
SELECT - 22 AS col2
----
-22

query I rowsort
SELECT ALL 13 * + 47 AS col2
----
611

query I rowsort
SELECT ALL 68 * 66 AS col2
----
4488

query I rowsort
SELECT ALL + 72 AS col2
----
72

query I rowsort
SELECT + 94
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1967
SELECT + 34 DIV - - COUNT( * )
----
34

skipif mysql # not compatible
query I rowsort label-1967
SELECT + 34 / - - COUNT ( * )
----
34

query I rowsort
SELECT - 1 AS col0
----
-1

query I rowsort
SELECT - - 87
----
87

query I rowsort
SELECT ALL 63 AS col1
----
63

query I rowsort
SELECT ALL + 51 AS col2
----
51

query I rowsort
SELECT ALL - - 42 AS col0
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1973
SELECT CAST( NULL AS SIGNED ) / + - 33 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1973
SELECT CAST ( NULL AS INTEGER ) / + - 33 AS col0
----
NULL

query I rowsort
SELECT + 43 AS col1
----
43

query I rowsort
SELECT DISTINCT - 78 AS col1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-1976
SELECT MIN( - - ( 38 ) ) + 63
----
101

skipif mysql # not compatible
query I rowsort label-1976
SELECT MIN ( - - ( 38 ) ) + 63
----
101

query I rowsort
SELECT + 17 AS col2
----
17

query I rowsort
SELECT DISTINCT + 82 * + - 3
----
-246

query I rowsort
SELECT ALL - 25
----
-25

query I rowsort
SELECT + 28 col0
----
28

query I rowsort
SELECT ALL - 9 AS col2
----
-9

query I rowsort
SELECT - 82 AS col1
----
-82

query I rowsort
SELECT ALL - 40
----
-40

query I rowsort
SELECT - 57
----
-57

query I rowsort
SELECT ALL + 45 AS col1
----
45

query I rowsort
SELECT DISTINCT 36
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-1987
SELECT DISTINCT SUM( - + 35 )
----
-35

skipif mysql # not compatible
query I rowsort label-1987
SELECT DISTINCT SUM ( - + 35 )
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1988
SELECT ALL CAST( NULL AS SIGNED ) - + + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-1988
SELECT ALL CAST ( NULL AS INTEGER ) - + + 47
----
NULL

query I rowsort
SELECT ALL + 68 * - - 96 col2
----
6528

query I rowsort
SELECT + ( + 48 )
----
48

query I rowsort
SELECT ALL + 93
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1992
SELECT DISTINCT + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1992
SELECT DISTINCT + COUNT ( * ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1993
SELECT - 1 DIV + 42
----
0

skipif mysql # not compatible
query I rowsort label-1993
SELECT - 1 / + 42
----
0

query I rowsort
SELECT ALL + ( - 37 )
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1995
SELECT - 65 DIV - - COUNT( * )
----
-65

skipif mysql # not compatible
query I rowsort label-1995
SELECT - 65 / - - COUNT ( * )
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-1996
SELECT DISTINCT - 24 * + - COUNT( * )
----
24

skipif mysql # not compatible
query I rowsort label-1996
SELECT DISTINCT - 24 * + - COUNT ( * )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-1997
SELECT - COALESCE ( + + COUNT( * ), + - 42 * + 86 - + + COUNT( * ) ) + ( + + 88 ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-1997
SELECT - COALESCE ( + + COUNT ( * ), + - 42 * + 86 - + + COUNT ( * ) ) + ( + + 88 ) AS col2
----
87

query I rowsort
SELECT - - 24 col1
----
24

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1999
SELECT - CAST( NULL AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1999
SELECT - CAST ( NULL AS REAL ) col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2000
SELECT + 62 + + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2000
SELECT + 62 + + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2001
SELECT ALL + 28 AS col0, MIN( - 16 ) * - - 11 AS col2
----
28
-176

skipif mysql # not compatible
query II rowsort label-2001
SELECT ALL + 28 AS col0, MIN ( - 16 ) * - - 11 AS col2
----
28
-176

query I rowsort
SELECT ALL - 63
----
-63

query I rowsort
SELECT DISTINCT 40
----
40

query I rowsort
SELECT ALL 91
----
91

query I rowsort
SELECT - 2 AS col2
----
-2

query I rowsort
SELECT + 71 AS col1
----
71

query I rowsort
SELECT DISTINCT - + 86
----
-86

query I rowsort
SELECT ALL - 49 AS col1
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-2009
SELECT + COUNT( ALL - 79 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-2009
SELECT + COUNT ( ALL - 79 ) col0
----
1

query I rowsort
SELECT ALL - 97
----
-97

query I rowsort
SELECT 54 col2
----
54

query I rowsort
SELECT ALL - 74 AS col0
----
-74

query I rowsort
SELECT DISTINCT 27
----
27

query I rowsort
SELECT ALL + 31 AS col2
----
31

query I rowsort
SELECT DISTINCT 11 AS col1
----
11

query I rowsort
SELECT DISTINCT - 7 col0
----
-7

query II rowsort
SELECT - 60 AS col2, 64 AS col1
----
-60
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2018
SELECT DISTINCT MAX( ALL 83 ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-2018
SELECT DISTINCT MAX ( ALL 83 ) AS col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2019
SELECT + 89 * + COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-2019
SELECT + 89 * + COUNT ( * )
----
89

query I rowsort
SELECT ALL + 10
----
10

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2021
SELECT DISTINCT ( CAST( + - 40 AS SIGNED ) ) DIV - 88 * 75
----
0

skipif mysql # not compatible
query I rowsort label-2021
SELECT DISTINCT ( CAST ( + - 40 AS INTEGER ) ) / - 88 * 75
----
0

query I rowsort
SELECT 71 AS col2
----
71

query I rowsort
SELECT ALL 67 + 95 AS col1
----
162

query I rowsort
SELECT ALL 98
----
98

query I rowsort
SELECT 98
----
98

query I rowsort
SELECT DISTINCT 4
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2027
SELECT - CAST( - 73 AS SIGNED )
----
73

skipif mysql # not compatible
query I rowsort label-2027
SELECT - CAST ( - 73 AS INTEGER )
----
73

query I rowsort
SELECT + 60 AS col0
----
60

query I rowsort
SELECT + 22
----
22

query I rowsort
SELECT ALL + 37
----
37

query I rowsort
SELECT ALL + + 16 col1
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2032
SELECT DISTINCT - - COUNT( CAST( NULL AS SIGNED ) ) * + 4 + COUNT( * ) + + + 76 AS col2
----
77

skipif mysql # not compatible
query I rowsort label-2032
SELECT DISTINCT - - COUNT ( CAST ( NULL AS INTEGER ) ) * + 4 + COUNT ( * ) + + + 76 AS col2
----
77

query I rowsort
SELECT 8 + + - 93 AS col1
----
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-2034
SELECT ALL 71 DIV + 66
----
1

skipif mysql # not compatible
query I rowsort label-2034
SELECT ALL 71 / + 66
----
1

query I rowsort
SELECT ALL - + 37
----
-37

query I rowsort
SELECT 85 AS col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2037
SELECT ALL - - COUNT( + + 2 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2037
SELECT ALL - - COUNT ( + + 2 ) AS col0
----
1

query I rowsort
SELECT + 74
----
74

query I rowsort
SELECT DISTINCT - 78 * - 97 AS col1
----
7566

query I rowsort
SELECT - 9
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2041
SELECT ALL 30 * - + COUNT( * )
----
-30

skipif mysql # not compatible
query I rowsort label-2041
SELECT ALL 30 * - + COUNT ( * )
----
-30

query I rowsort
SELECT DISTINCT 77 * - 86 AS col0
----
-6622

query I rowsort
SELECT + 50 col2
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2044
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - - 17 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2044
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - - 17 AS col1
----
NULL

query I rowsort
SELECT ALL + 48
----
48

query I rowsort
SELECT ALL + ( 87 )
----
87

query I rowsort
SELECT + 97 * + 72
----
6984

query I rowsort
SELECT ALL + 38
----
38

query I rowsort
SELECT + 98
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2050
SELECT DISTINCT + ( + 91 ) * + COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-2050
SELECT DISTINCT + ( + 91 ) * + COUNT ( * )
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2051
SELECT - 54 DIV + ( - COUNT( * ) ) col0
----
54

skipif mysql # not compatible
query I rowsort label-2051
SELECT - 54 / + ( - COUNT ( * ) ) col0
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-2052
SELECT DISTINCT + COUNT( * ) * 62 AS col0, + ( SUM( + - 35 ) ) col0
----
62
-35

skipif mysql # not compatible
query II rowsort label-2052
SELECT DISTINCT + COUNT ( * ) * 62 AS col0, + ( SUM ( + - 35 ) ) col0
----
62
-35

query I rowsort
SELECT 34
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2054
SELECT ALL - COUNT( * ) DIV SUM( + - 5 ) DIV - 93
----
0

skipif mysql # not compatible
query I rowsort label-2054
SELECT ALL - COUNT ( * ) / SUM ( + - 5 ) / - 93
----
0

query I rowsort
SELECT - 13
----
-13

query I rowsort
SELECT - + 89 * - 96
----
8544

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2057
SELECT ALL + - 45 * - AVG ( + + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2057
SELECT ALL + - 45 * - AVG ( + + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT + 86
----
86

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2059
SELECT ALL + + CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2059
SELECT ALL + + CAST ( NULL AS REAL ) col0
----
NULL

query I rowsort
SELECT ( - 17 ) col2
----
-17

query I rowsort
SELECT ALL + 73 AS col0
----
73

query I rowsort
SELECT - 69 AS col0
----
-69

query I rowsort
SELECT - 80 + - 36
----
-116

query II rowsort
SELECT + 69 AS col0, - 51
----
69
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-2065
SELECT 83 * - - COUNT( * ) AS col1, + 6 AS col0
----
83
6

skipif mysql # not compatible
query II rowsort label-2065
SELECT 83 * - - COUNT ( * ) AS col1, + 6 AS col0
----
83
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2066
SELECT DISTINCT - COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2066
SELECT DISTINCT - COUNT ( * ) AS col1
----
-1

query I rowsort
SELECT ALL - 73 AS col2
----
-73

query I rowsort
SELECT 93 * - 70 + + 24
----
-6486

onlyif mysql # aggregate syntax: 
query I rowsort label-2069
SELECT COUNT( * ) + - 55 col2
----
-54

skipif mysql # not compatible
query I rowsort label-2069
SELECT COUNT ( * ) + - 55 col2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-2070
SELECT DISTINCT 18 + + COUNT( * ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-2070
SELECT DISTINCT 18 + + COUNT ( * ) AS col0
----
19

query I rowsort
SELECT DISTINCT + 44 * - 82 AS col0
----
-3608

query I rowsort
SELECT - 25 AS col1
----
-25

query I rowsort
SELECT ALL 53
----
53

query I rowsort
SELECT ALL + 95
----
95

query I rowsort
SELECT DISTINCT 43 AS col1
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2076
SELECT + CAST( NULL AS SIGNED ) + + + 61
----
NULL

skipif mysql # not compatible
query I rowsort label-2076
SELECT + CAST ( NULL AS INTEGER ) + + + 61
----
NULL

query I rowsort
SELECT DISTINCT - 52 AS col2
----
-52

query I rowsort
SELECT DISTINCT - + ( + 62 )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-2079
SELECT ALL - ( + COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-2079
SELECT ALL - ( + COUNT ( * ) )
----
-1

query I rowsort
SELECT DISTINCT - 60
----
-60

query I rowsort
SELECT ALL + 61 + + 40
----
101

query I rowsort
SELECT 35
----
35

query I rowsort
SELECT 48 AS col2
----
48

query I rowsort
SELECT ALL 9 col1
----
9

query I rowsort
SELECT ALL 42
----
42

query I rowsort
SELECT - + 23 AS col1
----
-23

query I rowsort
SELECT ALL - 30 * + 27
----
-810

query I rowsort
SELECT + 88 AS col1
----
88

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2089
SELECT ALL + CAST( NULL AS DECIMAL ) * - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2089
SELECT ALL + CAST ( NULL AS REAL ) * - + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2090
SELECT DISTINCT SUM( 13 )
----
13

skipif mysql # not compatible
query I rowsort label-2090
SELECT DISTINCT SUM ( 13 )
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-2091
SELECT ALL + 74 + - 87 + - - COUNT( * ) * 31 AS col0, - 67 AS col2
----
18
-67

skipif mysql # not compatible
query II rowsort label-2091
SELECT ALL + 74 + - 87 + - - COUNT ( * ) * 31 AS col0, - 67 AS col2
----
18
-67

query I rowsort
SELECT + 24 AS col2
----
24

query I rowsort
SELECT - - 31 + - 40 AS col0
----
-9

query II rowsort
SELECT ALL - 25 AS col1, + ( + 16 ) AS col2
----
-25
16

query I rowsort
SELECT + 18 + 18 AS col1
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-2096
SELECT - 58 DIV + 89 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2096
SELECT - 58 / + 89 AS col2
----
0

query I rowsort
SELECT ALL 91 col0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2098
SELECT + 31 * MAX( ALL - 45 )
----
-1395

skipif mysql # not compatible
query I rowsort label-2098
SELECT + 31 * MAX ( ALL - 45 )
----
-1395

onlyif mysql # aggregate syntax: 
query I rowsort label-2099
SELECT - COUNT( * ) * + 36 * - COUNT( * ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-2099
SELECT - COUNT ( * ) * + 36 * - COUNT ( * ) AS col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2100
SELECT ALL - COUNT( * ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-2100
SELECT ALL - COUNT ( * ) col0
----
-1

query I rowsort
SELECT ( 65 ) AS col2
----
65

query I rowsort
SELECT - - 55 AS col0
----
55

query I rowsort
SELECT - - 86 col0
----
86

query I rowsort
SELECT ALL - 29
----
-29

query I rowsort
SELECT ALL 35 AS col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2106
SELECT 11 + COUNT( * )
----
12

skipif mysql # not compatible
query I rowsort label-2106
SELECT 11 + COUNT ( * )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-2107
SELECT ALL COUNT( * ) - - 79
----
80

skipif mysql # not compatible
query I rowsort label-2107
SELECT ALL COUNT ( * ) - - 79
----
80

query I rowsort
SELECT ALL 46 AS col2
----
46

query I rowsort
SELECT ALL - 23
----
-23

query I rowsort
SELECT 50 AS col1
----
50

query I rowsort
SELECT + 68 AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2112
SELECT + ( + - COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-2112
SELECT + ( + - COUNT ( * ) )
----
-1

query I rowsort
SELECT + - 23
----
-23

query I rowsort
SELECT ALL 69
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2115
SELECT ALL CAST( 8 AS SIGNED ) + + 4 AS col1, 87
----
12
87

skipif mysql # not compatible
query II rowsort label-2115
SELECT ALL CAST ( 8 AS INTEGER ) + + 4 AS col1, 87
----
12
87

onlyif mysql # aggregate syntax: 
query II rowsort label-2116
SELECT - COUNT( * ) col1, + 23 AS col2
----
-1
23

skipif mysql # not compatible
query II rowsort label-2116
SELECT - COUNT ( * ) col1, + 23 AS col2
----
-1
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2117
SELECT DISTINCT SUM( - - 45 ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-2117
SELECT DISTINCT SUM ( - - 45 ) AS col0
----
45

query I rowsort
SELECT - 35 col0
----
-35

query I rowsort
SELECT ALL 89 AS col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2120
SELECT DISTINCT COUNT( ALL 12 )
----
1

skipif mysql # not compatible
query I rowsort label-2120
SELECT DISTINCT COUNT ( ALL 12 )
----
1

query I rowsort
SELECT - 9 col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2122
SELECT ALL + ( - - COUNT( ALL + 55 ) )
----
1

skipif mysql # not compatible
query I rowsort label-2122
SELECT ALL + ( - - COUNT ( ALL + 55 ) )
----
1

query I rowsort
SELECT ALL + 97
----
97

query I rowsort
SELECT DISTINCT + + 14 AS col0
----
14

query I rowsort
SELECT + - 59 AS col0
----
-59

query I rowsort
SELECT DISTINCT + 10 AS col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2127
SELECT ALL 95 * COUNT( - 72 ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-2127
SELECT ALL 95 * COUNT ( - 72 ) AS col0
----
95

query I rowsort
SELECT + ( - 9 )
----
-9

query I rowsort
SELECT ALL + 35 AS col2
----
35

query I rowsort
SELECT ALL 44 * + - 8 AS col2
----
-352

onlyif mysql # aggregate syntax: 
query I rowsort label-2131
SELECT + COUNT( * ) - + COUNT( * ) + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-2131
SELECT + COUNT ( * ) - + COUNT ( * ) + COUNT ( * )
----
1

query I rowsort
SELECT ALL 87 AS col1
----
87

query I rowsort
SELECT ALL 42 AS col1
----
42

query I rowsort
SELECT ALL 45 AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2135
SELECT - 35 * + + COUNT( * ) AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-2135
SELECT - 35 * + + COUNT ( * ) AS col1
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2136
SELECT ALL - 17 DIV - - 85 + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-2136
SELECT ALL - 17 / - - 85 + - COUNT ( * )
----
-1

query I rowsort
SELECT + 8
----
8

query I rowsort
SELECT ALL + + 93 AS col1
----
93

query I rowsort
SELECT ALL 29
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2140
SELECT - CAST( + 13 AS SIGNED ) col1
----
-13

skipif mysql # not compatible
query I rowsort label-2140
SELECT - CAST ( + 13 AS INTEGER ) col1
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-2141
SELECT DISTINCT + 73 + - COUNT( * ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-2141
SELECT DISTINCT + 73 + - COUNT ( * ) AS col2
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-2142
SELECT - 64 AS col2, - COUNT( * )
----
-64
-1

skipif mysql # not compatible
query II rowsort label-2142
SELECT - 64 AS col2, - COUNT ( * )
----
-64
-1

query I rowsort
SELECT + + 32 col2
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2144
SELECT COUNT( * ) DIV 71
----
0

skipif mysql # not compatible
query I rowsort label-2144
SELECT COUNT ( * ) / 71
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2145
SELECT - 40 DIV - 22
----
1

skipif mysql # not compatible
query I rowsort label-2145
SELECT - 40 / - 22
----
1

query I rowsort
SELECT DISTINCT - 4 AS col1
----
-4

query I rowsort
SELECT DISTINCT - 88
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2148
SELECT ALL + CAST( NULL AS SIGNED ) + 73 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2148
SELECT ALL + CAST ( NULL AS INTEGER ) + 73 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2149
SELECT COUNT( * ) DIV 80 * + 72 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2149
SELECT COUNT ( * ) / 80 * + 72 AS col2
----
0

query I rowsort
SELECT ALL 52 AS col2
----
52

query I rowsort
SELECT - 17 col0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2152
SELECT MIN( ALL 31 ) + - + COUNT( * ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-2152
SELECT MIN ( ALL 31 ) + - + COUNT ( * ) AS col0
----
30

query I rowsort
SELECT - - 95
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2154
SELECT ALL - CAST( - - 72 AS SIGNED )
----
-72

skipif mysql # not compatible
query I rowsort label-2154
SELECT ALL - CAST ( - - 72 AS INTEGER )
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2155
SELECT DISTINCT + ( CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2155
SELECT DISTINCT + ( CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2156
SELECT + MIN( + + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ) * + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-2156
SELECT + MIN ( + + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) * + 72
----
NULL

query I rowsort
SELECT DISTINCT - - 73 AS col0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2158
SELECT ALL + COUNT( * ) * 52 + + - 63 AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-2158
SELECT ALL + COUNT ( * ) * 52 + + - 63 AS col2
----
-11

query I rowsort
SELECT - 49 + - 58
----
-107

query I rowsort
SELECT - 52 AS col1
----
-52

query I rowsort
SELECT 43 col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-2162
SELECT ALL + COUNT( * ) * - 77 AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-2162
SELECT ALL + COUNT ( * ) * - 77 AS col0
----
-77

query I rowsort
SELECT DISTINCT NULLIF ( - - 69, + + 90 )
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2164
SELECT - 93 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2164
SELECT - 93 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL 48
----
48

query I rowsort
SELECT ALL - 48 AS col2
----
-48

query I rowsort
SELECT - 59 - - ( + 92 ) AS col1
----
33

query I rowsort
SELECT ALL + 62 * - 63 * 30 AS col0
----
-117180

query I rowsort
SELECT - - ( + 20 )
----
20

query I rowsort
SELECT ALL + 71
----
71

query I rowsort
SELECT DISTINCT + - 5 AS col2
----
-5

query I rowsort
SELECT 36 col2
----
36

query I rowsort
SELECT 74 AS col1
----
74

query I rowsort
SELECT DISTINCT + 32 AS col2
----
32

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2175
SELECT + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2175
SELECT + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2176
SELECT - ( - - COUNT( * ) ) - - - COUNT( * ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-2176
SELECT - ( - - COUNT ( * ) ) - - - COUNT ( * ) AS col0
----
-2

query I rowsort
SELECT ALL + 17 col1
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-2178
SELECT - 52 * + - COUNT( * ) AS col2, + 13
----
52
13

skipif mysql # not compatible
query II rowsort label-2178
SELECT - 52 * + - COUNT ( * ) AS col2, + 13
----
52
13

query I rowsort
SELECT 27 col1
----
27

query I rowsort
SELECT DISTINCT 50 + 22
----
72

query I rowsort
SELECT + + 99
----
99

query I rowsort
SELECT 70 AS col0
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2183
SELECT ALL - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2183
SELECT ALL - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2184
SELECT DISTINCT - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2184
SELECT DISTINCT - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2185
SELECT MAX( + 85 ) * 93
----
7905

skipif mysql # not compatible
query I rowsort label-2185
SELECT MAX ( + 85 ) * 93
----
7905

query I rowsort
SELECT - 71
----
-71

query I rowsort
SELECT + 10
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2188
SELECT - + ( - COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2188
SELECT - + ( - COUNT ( * ) ) AS col1
----
1

query I rowsort
SELECT ALL + 62 AS col0
----
62

query I rowsort
SELECT - 11 + - 30 AS col0
----
-41

query I rowsort
SELECT - 50 * 67 AS col2
----
-3350

query I rowsort
SELECT ALL 83 col1
----
83

query I rowsort
SELECT DISTINCT 56 + 97
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-2194
SELECT + MAX( - 10 ) AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-2194
SELECT + MAX ( - 10 ) AS col2
----
-10

query I rowsort
SELECT ALL - 0 + - + 67 AS col0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-2196
SELECT DISTINCT COUNT( * ) + - COUNT( * ) * 58
----
-57

skipif mysql # not compatible
query I rowsort label-2196
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) * 58
----
-57

query I rowsort
SELECT ALL + 80 AS col0
----
80

query I rowsort
SELECT ALL 47 col0
----
47

query I rowsort
SELECT DISTINCT - 21 AS col1
----
-21

query I rowsort
SELECT ALL 76
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-2201
SELECT + COUNT( * ) + + - 87
----
-86

skipif mysql # not compatible
query I rowsort label-2201
SELECT + COUNT ( * ) + + - 87
----
-86

query I rowsort
SELECT ( 23 ) col2
----
23

query I rowsort
SELECT ALL + 26 AS col0
----
26

query I rowsort
SELECT ALL + 16
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2205
SELECT - MAX( - - 47 ) + + - 93 AS col2
----
-140

skipif mysql # not compatible
query I rowsort label-2205
SELECT - MAX ( - - 47 ) + + - 93 AS col2
----
-140

query I rowsort
SELECT 97 AS col2
----
97

query I rowsort
SELECT 3
----
3

query I rowsort
SELECT ALL + - 15
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2209
SELECT ALL MIN( - - 30 )
----
30

skipif mysql # not compatible
query I rowsort label-2209
SELECT ALL MIN ( - - 30 )
----
30

query I rowsort
SELECT ALL - 97 * - + 87 * + + 87 AS col2
----
734193

onlyif mysql # aggregate syntax: 
query I rowsort label-2211
SELECT ALL + SUM( 98 ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-2211
SELECT ALL + SUM ( 98 ) AS col0
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2212
SELECT CAST( - 51 AS SIGNED ) AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-2212
SELECT CAST ( - 51 AS INTEGER ) AS col0
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2213
SELECT CAST( 1 AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-2213
SELECT CAST ( 1 AS INTEGER )
----
1

query I rowsort
SELECT DISTINCT + 56 + + - 34 AS col1
----
22

query I rowsort
SELECT + 54
----
54

query I rowsort
SELECT + 17
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-2217
SELECT DISTINCT - COUNT( * ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-2217
SELECT DISTINCT - COUNT ( * ) col2
----
-1

query I rowsort
SELECT ALL - - 61
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2219
SELECT 9 + COUNT( * ) col0
----
10

skipif mysql # not compatible
query I rowsort label-2219
SELECT 9 + COUNT ( * ) col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2220
SELECT ALL SUM( - 78 ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-2220
SELECT ALL SUM ( - 78 ) AS col2
----
-78

query I rowsort
SELECT 6 + - + ( + 10 ) AS col1
----
-4

query I rowsort
SELECT - 40
----
-40

query I rowsort
SELECT - 49
----
-49

query I rowsort
SELECT + + 10
----
10

query I rowsort
SELECT ALL + 92
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2226
SELECT ALL + COUNT( DISTINCT - 76 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2226
SELECT ALL + COUNT ( DISTINCT - 76 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2227
SELECT + + COUNT( * ), COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-2227
SELECT + + COUNT ( * ), COUNT ( * )
----
1
1

query I rowsort
SELECT ALL 20 * + 18
----
360

query I rowsort
SELECT 8 AS col0
----
8

query I rowsort
SELECT 24 AS col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2231
SELECT DISTINCT SUM( DISTINCT + 64 )
----
64

skipif mysql # not compatible
query I rowsort label-2231
SELECT DISTINCT SUM ( DISTINCT + 64 )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2232
SELECT - - 99 - COUNT( ALL - - 29 )
----
98

skipif mysql # not compatible
query I rowsort label-2232
SELECT - - 99 - COUNT ( ALL - - 29 )
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2233
SELECT ALL + COUNT( * ) DIV ( 40 )
----
0

skipif mysql # not compatible
query I rowsort label-2233
SELECT ALL + COUNT ( * ) / ( 40 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2234
SELECT - COUNT( * ) col1, - 29 + - + ( ( 45 ) ) AS col1
----
-1
-74

skipif mysql # not compatible
query II rowsort label-2234
SELECT - COUNT ( * ) col1, - 29 + - + ( ( 45 ) ) AS col1
----
-1
-74

query I rowsort
SELECT + ( - 8 ) AS col2
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2236
SELECT + CAST( + COUNT( * ) AS SIGNED ) - 89
----
-88

skipif mysql # not compatible
query I rowsort label-2236
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) - 89
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-2237
SELECT ALL 52 DIV + ( 29 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-2237
SELECT ALL 52 / + ( 29 ) col2
----
1

query I rowsort
SELECT - 60 col0
----
-60

query I rowsort
SELECT - 44 col2
----
-44

query I rowsort
SELECT + - 42
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2241
SELECT - ( - + CAST( - - COUNT( * ) AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-2241
SELECT - ( - + CAST ( - - COUNT ( * ) AS INTEGER ) )
----
1

query I rowsort
SELECT ALL - 55 AS col2
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2243
SELECT 9 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2243
SELECT 9 * + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2244
SELECT ALL - ( ( - + ( - COUNT( * ) ) ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2244
SELECT ALL - ( ( - + ( - COUNT ( * ) ) ) ) AS col2
----
-1

query I rowsort
SELECT ( 71 ) + + 75
----
146

query I rowsort
SELECT ALL 38 AS col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2247
SELECT 34 + 35 + - COUNT( * ) * - COUNT( * )
----
70

skipif mysql # not compatible
query I rowsort label-2247
SELECT 34 + 35 + - COUNT ( * ) * - COUNT ( * )
----
70

query I rowsort
SELECT ALL 47 AS col1
----
47

query I rowsort
SELECT - 58 AS col2
----
-58

query I rowsort
SELECT - 11
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-2251
SELECT ALL + 42 * - + COUNT( * ) + COUNT( * ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-2251
SELECT ALL + 42 * - + COUNT ( * ) + COUNT ( * ) AS col0
----
-41

query I rowsort
SELECT - + 37
----
-37

query I rowsort
SELECT ALL - 1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2254
SELECT MAX( ALL + 49 ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-2254
SELECT MAX ( ALL + 49 ) AS col1
----
49

query I rowsort
SELECT DISTINCT + 83 AS col2
----
83

query II rowsort
SELECT DISTINCT + 7 - + 52 AS col2, - 71
----
-45
-71

query I rowsort
SELECT ALL + 60
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2258
SELECT DISTINCT - COUNT( * ) DIV + 39 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2258
SELECT DISTINCT - COUNT ( * ) / + 39 AS col2
----
0

query I rowsort
SELECT - 58
----
-58

query I rowsort
SELECT - ( + 13 ) * 37 AS col2
----
-481

onlyif mysql # aggregate syntax: 
query I rowsort label-2261
SELECT ALL + 61 + - - COUNT( * ) col2
----
62

skipif mysql # not compatible
query I rowsort label-2261
SELECT ALL + 61 + - - COUNT ( * ) col2
----
62

query I rowsort
SELECT + 80 col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2263
SELECT ALL - MIN( + 2 )
----
-2

skipif mysql # not compatible
query I rowsort label-2263
SELECT ALL - MIN ( + 2 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2264
SELECT ALL + - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2264
SELECT ALL + - COUNT ( * ) AS col0
----
-1

query I rowsort
SELECT ALL + - ( - 81 )
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2266
SELECT + 61 - - CAST( 15 AS SIGNED )
----
76

skipif mysql # not compatible
query I rowsort label-2266
SELECT + 61 - - CAST ( 15 AS INTEGER )
----
76

query I rowsort
SELECT - 95 * - + 94
----
8930

onlyif mysql # aggregate syntax: 
query I rowsort label-2268
SELECT ALL COUNT( * ) * - ( + + 52 ) col0
----
-52

skipif mysql # not compatible
query I rowsort label-2268
SELECT ALL COUNT ( * ) * - ( + + 52 ) col0
----
-52

query I rowsort
SELECT + 59 * + + 25
----
1475

query I rowsort
SELECT - + 17 AS col1
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-2271
SELECT - - 70 DIV - 22 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-2271
SELECT - - 70 / - 22 AS col2
----
-3

query I rowsort
SELECT DISTINCT - 73 * + 18 AS col0
----
-1314

query I rowsort
SELECT DISTINCT 80
----
80

query I rowsort
SELECT DISTINCT 42
----
42

query I rowsort
SELECT DISTINCT - 47 AS col2
----
-47

query II rowsort
SELECT ALL - 60, 84 AS col0
----
-60
84

query I rowsort
SELECT ALL - 5 AS col2
----
-5

query I rowsort
SELECT 50 * + - 13 AS col1
----
-650

query I rowsort
SELECT ALL - 95 col0
----
-95

query I rowsort
SELECT ALL 80 AS col2
----
80

query II rowsort
SELECT - - 35 col2, - 55
----
35
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2282
SELECT + CAST( + + 42 AS SIGNED ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-2282
SELECT + CAST ( + + 42 AS INTEGER ) AS col1
----
42

query I rowsort
SELECT - 32 AS col2
----
-32

query I rowsort
SELECT DISTINCT 16 AS col0
----
16

query I rowsort
SELECT DISTINCT 68 AS col2
----
68

query I rowsort
SELECT ALL - 70 col1
----
-70

query I rowsort
SELECT + 78 AS col2
----
78

query I rowsort
SELECT DISTINCT - 72 col1
----
-72

query I rowsort
SELECT 63 col1
----
63

query I rowsort
SELECT ALL - - 28
----
28

query I rowsort
SELECT - 47 AS col0
----
-47

query I rowsort
SELECT - - 80
----
80

query I rowsort
SELECT - 81
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2294
SELECT + MAX( CAST( - 43 AS SIGNED ) )
----
-43

skipif mysql # not compatible
query I rowsort label-2294
SELECT + MAX ( CAST ( - 43 AS INTEGER ) )
----
-43

query I rowsort
SELECT DISTINCT 26 AS col2
----
26

query I rowsort
SELECT - - 80 AS col1
----
80

query I rowsort
SELECT - 16
----
-16

query I rowsort
SELECT ALL 65 col2
----
65

query I rowsort
SELECT ALL 16 AS col1
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2300
SELECT DISTINCT 42 / + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2300
SELECT DISTINCT 42 / + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2301
SELECT ALL + + ( CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2301
SELECT ALL + + ( CAST ( NULL AS REAL ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2302
SELECT SUM( + 56 ) col1
----
56

skipif mysql # not compatible
query I rowsort label-2302
SELECT SUM ( + 56 ) col1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-2303
SELECT ALL COUNT( * ) + + 70 col2
----
71

skipif mysql # not compatible
query I rowsort label-2303
SELECT ALL COUNT ( * ) + + 70 col2
----
71

query I rowsort
SELECT 51 AS col0
----
51

query I rowsort
SELECT - ( + ( - - 89 ) )
----
-89

query I rowsort
SELECT ALL 86 AS col0
----
86

query I rowsort
SELECT DISTINCT + 10 AS col1
----
10

query I rowsort
SELECT + + 97 col1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2309
SELECT + 73 + + + COUNT( + ( + - 57 ) )
----
74

skipif mysql # not compatible
query I rowsort label-2309
SELECT + 73 + + + COUNT ( + ( + - 57 ) )
----
74

query I rowsort
SELECT + ( - 35 ) AS col2
----
-35

query I rowsort
SELECT ALL - - 82 + - 3
----
79

query I rowsort
SELECT - - 12
----
12

query I rowsort
SELECT - 50
----
-50

query I rowsort
SELECT ALL - + 94 + + + 87
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2315
SELECT DISTINCT - COALESCE ( 47, + COUNT( * ) ) + + 59
----
12

skipif mysql # not compatible
query I rowsort label-2315
SELECT DISTINCT - COALESCE ( 47, + COUNT ( * ) ) + + 59
----
12

query I rowsort
SELECT 78 + 85
----
163

query I rowsort
SELECT ALL - 58 AS col1
----
-58

query I rowsort
SELECT ALL + 70 * + 58 AS col2
----
4060

query I rowsort
SELECT ALL - - 90
----
90

query I rowsort
SELECT ALL 13
----
13

query I rowsort
SELECT DISTINCT 18 AS col1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2322
SELECT 59 + + NULLIF ( MAX( ALL 62 ), - - 69 / 47 + + - COUNT( DISTINCT 6 ) )
----
121

skipif mysql # not compatible
query I rowsort label-2322
SELECT 59 + + NULLIF ( MAX ( ALL 62 ), - - 69 / 47 + + - COUNT ( DISTINCT 6 ) )
----
121

query II rowsort
SELECT ALL 24 AS col1, 30
----
24
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2324
SELECT MAX( ALL - + 20 ) DIV + + 89
----
0

skipif mysql # not compatible
query I rowsort label-2324
SELECT MAX ( ALL - + 20 ) / + + 89
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2325
SELECT ALL - 5 DIV - 15
----
0

skipif mysql # not compatible
query I rowsort label-2325
SELECT ALL - 5 / - 15
----
0

query I rowsort
SELECT + - ( + - 33 ) col0
----
33

query I rowsort
SELECT + + 9 + - 89 AS col1
----
-80

query II rowsort
SELECT DISTINCT + + 29, + 78 AS col0
----
29
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2329
SELECT DISTINCT - COUNT( DISTINCT + - 50 ) * + 11 AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-2329
SELECT DISTINCT - COUNT ( DISTINCT + - 50 ) * + 11 AS col2
----
-11

query I rowsort
SELECT 5 AS col0
----
5

query I rowsort
SELECT - NULLIF ( + - 48, + + 53 )
----
48

query I rowsort
SELECT DISTINCT 88
----
88

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2333
SELECT - CAST( NULL AS DECIMAL ) + + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-2333
SELECT - CAST ( NULL AS REAL ) + + 98
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2334
SELECT ALL MAX( ( ( - 47 ) ) ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-2334
SELECT ALL MAX ( ( ( - 47 ) ) ) AS col1
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2335
SELECT CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2335
SELECT CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + - 87 AS col2
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-2337
SELECT ALL + - COUNT( * ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-2337
SELECT ALL + - COUNT ( * ) col2
----
-1

query I rowsort
SELECT DISTINCT + 20 AS col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-2339
SELECT + 36 + - - COUNT( * ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-2339
SELECT + 36 + - - COUNT ( * ) AS col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2340
SELECT ALL MAX( - ( + + ( + + 73 ) ) )
----
-73

skipif mysql # not compatible
query I rowsort label-2340
SELECT ALL MAX ( - ( + + ( + + 73 ) ) )
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-2341
SELECT MAX( ALL - + 13 )
----
-13

skipif mysql # not compatible
query I rowsort label-2341
SELECT MAX ( ALL - + 13 )
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2342
SELECT + COUNT( * ) DIV - 9
----
0

skipif mysql # not compatible
query I rowsort label-2342
SELECT + COUNT ( * ) / - 9
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2343
SELECT ( - + MIN( DISTINCT + + 58 ) )
----
-58

skipif mysql # not compatible
query I rowsort label-2343
SELECT ( - + MIN ( DISTINCT + + 58 ) )
----
-58

query I rowsort
SELECT DISTINCT - 74 AS col0
----
-74

query I rowsort
SELECT + + 66
----
66

query I rowsort
SELECT + 76 * + - 89 AS col0
----
-6764

query I rowsort
SELECT DISTINCT - - 68 AS col1
----
68

query II rowsort
SELECT 52 + + 20 AS col2, ( - 40 ) AS col0
----
72
-40

query I rowsort
SELECT DISTINCT - 27 * 71 AS col2
----
-1917

query I rowsort
SELECT DISTINCT - 55
----
-55

query I rowsort
SELECT ALL 71 + + 42 AS col1
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-2352
SELECT ALL - 9 + + COUNT( ALL 82 ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-2352
SELECT ALL - 9 + + COUNT ( ALL 82 ) AS col0
----
-8

query I rowsort
SELECT - 43
----
-43

query I rowsort
SELECT - 1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2355
SELECT 55 + + 53 + - COUNT( * ) col1
----
107

skipif mysql # not compatible
query I rowsort label-2355
SELECT 55 + + 53 + - COUNT ( * ) col1
----
107

onlyif mysql # aggregate syntax: 
query II rowsort label-2356
SELECT COUNT( * ) + - 66 * - ( COUNT( * ) ), COUNT( * ) AS col2
----
67
1

skipif mysql # not compatible
query II rowsort label-2356
SELECT COUNT ( * ) + - 66 * - ( COUNT ( * ) ), COUNT ( * ) AS col2
----
67
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2357
SELECT - 15 * + + COUNT( * )
----
-15

skipif mysql # not compatible
query I rowsort label-2357
SELECT - 15 * + + COUNT ( * )
----
-15

query I rowsort
SELECT + 7 + - 44
----
-37

query I rowsort
SELECT ALL - - 35
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2360
SELECT - 74 * - COUNT( * ) col2
----
74

skipif mysql # not compatible
query I rowsort label-2360
SELECT - 74 * - COUNT ( * ) col2
----
74

query I rowsort
SELECT + - 27 AS col2
----
-27

query I rowsort
SELECT + 27 col1
----
27

query I rowsort
SELECT ALL - 42 AS col1
----
-42

query I rowsort
SELECT 9 AS col0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2365
SELECT 15 AS col0, CAST( - - 19 AS SIGNED ) * + 7 * - 56 + + 14
----
15
-7434

skipif mysql # not compatible
query II rowsort label-2365
SELECT 15 AS col0, CAST ( - - 19 AS INTEGER ) * + 7 * - 56 + + 14
----
15
-7434

query I rowsort
SELECT 39 AS col0
----
39

query I rowsort
SELECT - 7
----
-7

query I rowsort
SELECT 25 AS col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-2369
SELECT - MAX( + 93 ) AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-2369
SELECT - MAX ( + 93 ) AS col2
----
-93

query I rowsort
SELECT ALL 32
----
32

query I rowsort
SELECT + ( - 25 ) * + 54
----
-1350

query I rowsort
SELECT ( - 99 )
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2373
SELECT ALL CAST( NULL AS SIGNED ) * 41 + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2373
SELECT ALL CAST ( NULL AS INTEGER ) * 41 + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT ALL + 32
----
32

query I rowsort
SELECT + ( 6 )
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2376
SELECT + CAST( NULL AS SIGNED ) + - 57 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2376
SELECT + CAST ( NULL AS INTEGER ) + - 57 AS col0
----
NULL

query I rowsort
SELECT ALL + 67 AS col0
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2378
SELECT ALL + CAST( 40 AS SIGNED ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-2378
SELECT ALL + CAST ( 40 AS INTEGER ) AS col2
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-2379
SELECT DISTINCT - + 16 DIV 4
----
-4

skipif mysql # not compatible
query I rowsort label-2379
SELECT DISTINCT - + 16 / 4
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2380
SELECT CAST( - 79 AS SIGNED )
----
-79

skipif mysql # not compatible
query I rowsort label-2380
SELECT CAST ( - 79 AS INTEGER )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-2381
SELECT ALL ( COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2381
SELECT ALL ( COUNT ( * ) ) AS col1
----
1

query I rowsort
SELECT - - 14 + 84 AS col0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2383
SELECT ALL + 8 * + COUNT( 50 )
----
8

skipif mysql # not compatible
query I rowsort label-2383
SELECT ALL + 8 * + COUNT ( 50 )
----
8

query I rowsort
SELECT - 55
----
-55

query I rowsort
SELECT - 0
----
0

query I rowsort
SELECT + 89 AS col2
----
89

query I rowsort
SELECT DISTINCT + 7 AS col1
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2388
SELECT + ( CAST( NULL AS SIGNED ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2388
SELECT + ( CAST ( NULL AS INTEGER ) ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2389
SELECT ALL + ( + COUNT( - 71 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2389
SELECT ALL + ( + COUNT ( - 71 ) ) AS col0
----
1

query I rowsort
SELECT + 36 * + 88
----
3168

onlyif mysql # aggregate syntax: 
query I rowsort label-2391
SELECT ALL COUNT( * ) * - + COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2391
SELECT ALL COUNT ( * ) * - + COUNT ( * ) AS col0
----
-1

query I rowsort
SELECT ALL - 83 col1
----
-83

query I rowsort
SELECT ALL - 57 col2
----
-57

query I rowsort
SELECT ALL - 67
----
-67

query I rowsort
SELECT ALL - 73
----
-73

query I rowsort
SELECT DISTINCT - - 12
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-2397
SELECT + MIN( DISTINCT + 75 )
----
75

skipif mysql # not compatible
query I rowsort label-2397
SELECT + MIN ( DISTINCT + 75 )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2398
SELECT + COUNT( * ) * + 95 AS col1
----
95

skipif mysql # not compatible
query I rowsort label-2398
SELECT + COUNT ( * ) * + 95 AS col1
----
95

query I rowsort
SELECT - 39 AS col1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-2400
SELECT - + COUNT( - + 25 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2400
SELECT - + COUNT ( - + 25 ) AS col0
----
-1

query I rowsort
SELECT DISTINCT 58
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-2402
SELECT DISTINCT 6 DIV 79 * - 65
----
0

skipif mysql # not compatible
query I rowsort label-2402
SELECT DISTINCT 6 / 79 * - 65
----
0

query I rowsort
SELECT + 83
----
83

query I rowsort
SELECT 22 + - 89 AS col0
----
-67

query I rowsort
SELECT 60
----
60

query I rowsort
SELECT - 67 AS col0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-2407
SELECT COUNT( * ) * - 27
----
-27

skipif mysql # not compatible
query I rowsort label-2407
SELECT COUNT ( * ) * - 27
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-2408
SELECT ALL - MIN( ALL 31 )
----
-31

skipif mysql # not compatible
query I rowsort label-2408
SELECT ALL - MIN ( ALL 31 )
----
-31

query I rowsort
SELECT + 85 AS col2
----
85

query I rowsort
SELECT DISTINCT + ( - ( - + 56 ) ) AS col1
----
56

query I rowsort
SELECT - - 96 col1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2412
SELECT ALL 83 - - MIN( ( - 51 ) )
----
32

skipif mysql # not compatible
query I rowsort label-2412
SELECT ALL 83 - - MIN ( ( - 51 ) )
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2413
SELECT ALL + CAST( MIN( ( ( + 11 ) ) ) AS SIGNED )
----
11

skipif mysql # not compatible
query I rowsort label-2413
SELECT ALL + CAST ( MIN ( ( ( + 11 ) ) ) AS INTEGER )
----
11

query I rowsort
SELECT ALL 16 * + 20
----
320

query I rowsort
SELECT - 30 AS col2
----
-30

query I rowsort
SELECT - 92 AS col2
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-2417
SELECT - ( COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2417
SELECT - ( COUNT ( * ) ) AS col1
----
-1

query I rowsort
SELECT ALL 23 AS col1
----
23

query I rowsort
SELECT - 24 - - COALESCE ( 66, + 36 + - 71 + - 78 )
----
42

query I rowsort
SELECT ALL + 83
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2421
SELECT CAST( 91 AS SIGNED ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-2421
SELECT CAST ( 91 AS INTEGER ) AS col2
----
91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2422
SELECT CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2422
SELECT CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2423
SELECT + 5 DIV + 28 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2423
SELECT + 5 / + 28 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2424
SELECT MAX( DISTINCT - - 64 ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-2424
SELECT MAX ( DISTINCT - - 64 ) AS col1
----
64

query I rowsort
SELECT ALL + - 90 AS col0
----
-90

query I rowsort
SELECT + 14
----
14

query I rowsort
SELECT ALL + 69 AS col0
----
69

query I rowsort
SELECT - 62 + + 64
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2429
SELECT 97 + + COUNT( * ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-2429
SELECT 97 + + COUNT ( * ) AS col2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2430
SELECT COUNT( * ) * ( - 49 )
----
-49

skipif mysql # not compatible
query I rowsort label-2430
SELECT COUNT ( * ) * ( - 49 )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-2431
SELECT 93 * + COUNT( * ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-2431
SELECT 93 * + COUNT ( * ) AS col1
----
93

query I rowsort
SELECT 57
----
57

query I rowsort
SELECT 16
----
16

query I rowsort
SELECT ALL - 15
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2435
SELECT + - COALESCE ( - 5, COUNT( * ) ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-2435
SELECT + - COALESCE ( - 5, COUNT ( * ) ) AS col2
----
5

query I rowsort
SELECT + 76 AS col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-2437
SELECT + 87 * + COUNT( * )
----
87

skipif mysql # not compatible
query I rowsort label-2437
SELECT + 87 * + COUNT ( * )
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-2438
SELECT DISTINCT - 83 DIV - - 80 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2438
SELECT DISTINCT - 83 / - - 80 AS col1
----
-1

query I rowsort
SELECT ALL 13 AS col0
----
13

query I rowsort
SELECT 57 - + 13
----
44

query I rowsort
SELECT + 52
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2442
SELECT + - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2442
SELECT + - CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT ALL + 50
----
50

query I rowsort
SELECT + + 93 AS col2
----
93

query I rowsort
SELECT + 98 AS col2
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2446
SELECT DISTINCT + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2446
SELECT DISTINCT + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - - 55 * + - 5
----
-275

query I rowsort
SELECT ALL + 58 AS col0
----
58

query I rowsort
SELECT - 19 AS col1
----
-19

query I rowsort
SELECT DISTINCT 74 AS col1
----
74

query I rowsort
SELECT DISTINCT 12 + + - 16 * + 45 AS col0
----
-708

query I rowsort
SELECT 9 AS col2
----
9

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2453
SELECT ALL + + CAST( NULL AS DECIMAL ) * - + CAST( 20 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2453
SELECT ALL + + CAST ( NULL AS REAL ) * - + CAST ( 20 AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL + 21
----
21

query I rowsort
SELECT 44 AS col2
----
44

query I rowsort
SELECT ALL + + 59 AS col1
----
59

query II rowsort
SELECT DISTINCT + 62, 75 AS col0
----
62
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2458
SELECT ALL ( - COUNT( * ) ) DIV - 50
----
0

skipif mysql # not compatible
query I rowsort label-2458
SELECT ALL ( - COUNT ( * ) ) / - 50
----
0

query I rowsort
SELECT ALL 26 AS col0
----
26

query I rowsort
SELECT 56 * + 64
----
3584

query I rowsort
SELECT + - 48 AS col1
----
-48

query I rowsort
SELECT 58 col2
----
58

query I rowsort
SELECT + + 74
----
74

query I rowsort
SELECT ALL - 83 AS col1
----
-83

query I rowsort
SELECT 28 * 15 AS col0
----
420

query I rowsort
SELECT - 38 col0
----
-38

query I rowsort
SELECT DISTINCT 90 AS col2
----
90

query I rowsort
SELECT - - 94
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2469
SELECT CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2469
SELECT CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2470
SELECT ALL - + SUM( ALL - - 92 )
----
-92

skipif mysql # not compatible
query I rowsort label-2470
SELECT ALL - + SUM ( ALL - - 92 )
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2471
SELECT DISTINCT + 66 * ( ( + CAST( + 64 AS SIGNED ) ) )
----
4224

skipif mysql # not compatible
query I rowsort label-2471
SELECT DISTINCT + 66 * ( ( + CAST ( + 64 AS INTEGER ) ) )
----
4224

query I rowsort
SELECT 49 AS col1
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2473
SELECT - COUNT( 37 )
----
-1

skipif mysql # not compatible
query I rowsort label-2473
SELECT - COUNT ( 37 )
----
-1

query I rowsort
SELECT DISTINCT 1 AS col2
----
1

query I rowsort
SELECT - ( - 78 ) AS col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2476
SELECT DISTINCT COUNT( * ) * - - 29
----
29

skipif mysql # not compatible
query I rowsort label-2476
SELECT DISTINCT COUNT ( * ) * - - 29
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2477
SELECT + ( 79 ) col2, CAST( NULL AS SIGNED )
----
79
NULL

skipif mysql # not compatible
query II rowsort label-2477
SELECT + ( 79 ) col2, CAST ( NULL AS INTEGER )
----
79
NULL

query I rowsort
SELECT ( - 65 )
----
-65

query I rowsort
SELECT ALL - 90 * + 50 AS col1
----
-4500

onlyif mysql # aggregate syntax: 
query I rowsort label-2480
SELECT DISTINCT + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2480
SELECT DISTINCT + COUNT ( * ) AS col1
----
1

query I rowsort
SELECT - + ( + 25 )
----
-25

query I rowsort
SELECT 89 AS col1
----
89

query I rowsort
SELECT ALL 41 * + 82 AS col0
----
3362

query I rowsort
SELECT DISTINCT - 43 col1
----
-43

query I rowsort
SELECT DISTINCT - 20
----
-20

query I rowsort
SELECT ALL + + 75 - - 43 AS col0
----
118

query I rowsort
SELECT - 53 AS col2
----
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-2488
SELECT ALL + COUNT( * ) col2, + COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-2488
SELECT ALL + COUNT ( * ) col2, + COUNT ( * )
----
1
1

query I rowsort
SELECT ALL 2 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2490
SELECT 47 * MIN( DISTINCT + + 85 )
----
3995

skipif mysql # not compatible
query I rowsort label-2490
SELECT 47 * MIN ( DISTINCT + + 85 )
----
3995

query I rowsort
SELECT + 27 AS col2
----
27

query I rowsort
SELECT 46 col0
----
46

query I rowsort
SELECT DISTINCT 86 * + - 43 AS col2
----
-3698

query I rowsort
SELECT ALL - - ( 23 ) AS col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2495
SELECT + ( ( + + COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-2495
SELECT + ( ( + + COUNT ( * ) ) )
----
1

query I rowsort
SELECT 38
----
38

query I rowsort
SELECT - - 12 col0
----
12

query I rowsort
SELECT DISTINCT 8 AS col0
----
8

query I rowsort
SELECT DISTINCT 17
----
17

query I rowsort
SELECT DISTINCT + 23
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2501
SELECT + - SUM( ALL 81 )
----
-81

skipif mysql # not compatible
query I rowsort label-2501
SELECT + - SUM ( ALL 81 )
----
-81

query I rowsort
SELECT ALL + + 35
----
35

query I rowsort
SELECT DISTINCT + ( - - 44 )
----
44

query I rowsort
SELECT DISTINCT + 83 AS col1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2505
SELECT + COUNT( * ) * - 65 + - 6 * ( - 44 )
----
199

skipif mysql # not compatible
query I rowsort label-2505
SELECT + COUNT ( * ) * - 65 + - 6 * ( - 44 )
----
199

query I rowsort
SELECT DISTINCT + 87 + 72 col1
----
159

query I rowsort
SELECT - + 24
----
-24

query I rowsort
SELECT - ( - 37 )
----
37

query I rowsort
SELECT DISTINCT + 90 + - + 82 AS col1
----
8

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2510
SELECT - ( CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2510
SELECT - ( CAST ( NULL AS REAL ) ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 29
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-2512
SELECT ALL - 9 * + + COUNT( * ) * + ( ( - 11 ) )
----
99

skipif mysql # not compatible
query I rowsort label-2512
SELECT ALL - 9 * + + COUNT ( * ) * + ( ( - 11 ) )
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2513
SELECT ALL + - CAST( COALESCE ( - COUNT( * ), + COUNT( * ) ) AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2513
SELECT ALL + - CAST ( COALESCE ( - COUNT ( * ), + COUNT ( * ) ) AS INTEGER ) AS col1
----
1

query I rowsort
SELECT + + ( - - 80 ) AS col2
----
80

query I rowsort
SELECT - + 26 AS col0
----
-26

query I rowsort
SELECT ALL 52 * + - 86 * - 75 AS col1
----
335400

onlyif mysql # aggregate syntax: 
query I rowsort label-2517
SELECT 90 * COUNT( * ) * 32
----
2880

skipif mysql # not compatible
query I rowsort label-2517
SELECT 90 * COUNT ( * ) * 32
----
2880

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2518
SELECT ( - NULLIF ( + 14, + 43 ) ) DIV ( COUNT( * ) ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-2518
SELECT ( - NULLIF ( + 14, + 43 ) ) / ( COUNT ( * ) ) AS col0
----
-14

query I rowsort
SELECT + + 15
----
15

query I rowsort
SELECT ALL - 48 AS col1
----
-48

query I rowsort
SELECT DISTINCT - + 26
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-2522
SELECT ALL - MAX( DISTINCT - 47 ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-2522
SELECT ALL - MAX ( DISTINCT - 47 ) AS col1
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2523
SELECT DISTINCT + 27 DIV - 39 * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-2523
SELECT DISTINCT + 27 / - 39 * COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2524
SELECT 0 * + + 19 * + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2524
SELECT 0 * + + 19 * + COUNT ( * ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2525
SELECT COUNT( * ) * - + 84
----
-84

skipif mysql # not compatible
query I rowsort label-2525
SELECT COUNT ( * ) * - + 84
----
-84

query I rowsort
SELECT ALL + + 31 AS col2
----
31

query I rowsort
SELECT 14
----
14

query I rowsort
SELECT 95
----
95

query I rowsort
SELECT - 28
----
-28

query I rowsort
SELECT 1
----
1

query I rowsort
SELECT DISTINCT COALESCE ( - + 32, + 69 ) AS col1
----
-32

query I rowsort
SELECT ALL + 80
----
80

query I rowsort
SELECT + 12 AS col2
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2534
SELECT + - CAST( NULL AS SIGNED ) + - MAX( ALL - 39 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2534
SELECT + - CAST ( NULL AS INTEGER ) + - MAX ( ALL - 39 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + - 97
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2536
SELECT DISTINCT + MIN( - 86 ) * + - 76 AS col0
----
6536

skipif mysql # not compatible
query I rowsort label-2536
SELECT DISTINCT + MIN ( - 86 ) * + - 76 AS col0
----
6536

query I rowsort
SELECT + 92 AS col2
----
92

query I rowsort
SELECT + 8 AS col0
----
8

query I rowsort
SELECT DISTINCT + 37
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2540
SELECT + ( - - SUM( - 59 ) )
----
-59

skipif mysql # not compatible
query I rowsort label-2540
SELECT + ( - - SUM ( - 59 ) )
----
-59

query I rowsort
SELECT DISTINCT + 42 AS col2
----
42

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2542
SELECT - 94 - 4 + - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2542
SELECT - 94 - 4 + - CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT ALL 38 AS col2
----
38

query I rowsort
SELECT ALL ( - 31 ) AS col2
----
-31

query I rowsort
SELECT ALL ( - 84 )
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2546
SELECT DISTINCT CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2546
SELECT DISTINCT CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2547
SELECT + - COUNT( * ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-2547
SELECT + - COUNT ( * ) col0
----
-1

query I rowsort
SELECT + + 31 AS col1
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-2549
SELECT ALL - MIN( DISTINCT - ( + 0 ) ), - COUNT( * ) AS col1
----
0
-1

skipif mysql # not compatible
query II rowsort label-2549
SELECT ALL - MIN ( DISTINCT - ( + 0 ) ), - COUNT ( * ) AS col1
----
0
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2550
SELECT ALL - + ( - COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2550
SELECT ALL - + ( - COUNT ( * ) ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2551
SELECT DISTINCT - 96 DIV - 61 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2551
SELECT DISTINCT - 96 / - 61 AS col2
----
1

query I rowsort
SELECT - 92
----
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-2553
SELECT ALL - COUNT( * ) AS col1, 14
----
-1
14

skipif mysql # not compatible
query II rowsort label-2553
SELECT ALL - COUNT ( * ) AS col1, 14
----
-1
14

query I rowsort
SELECT + 59
----
59

query I rowsort
SELECT 55 AS col1
----
55

query I rowsort
SELECT ALL - ( + + 98 )
----
-98

query I rowsort
SELECT + 27
----
27

query I rowsort
SELECT DISTINCT - 61 col1
----
-61

query I rowsort
SELECT DISTINCT - 67 AS col2
----
-67

query I rowsort
SELECT - - 17 + - 31
----
-14

query I rowsort
SELECT ALL + ( - 41 ) AS col2
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-2562
SELECT ( + COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2562
SELECT ( + COUNT ( * ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2563
SELECT ALL COUNT( * ) * - + 25
----
-25

skipif mysql # not compatible
query I rowsort label-2563
SELECT ALL COUNT ( * ) * - + 25
----
-25

query I rowsort
SELECT DISTINCT - 19
----
-19

query I rowsort
SELECT ALL 87 AS col2
----
87

query II rowsort
SELECT - 31 AS col1, + 14 AS col1
----
-31
14

query I rowsort
SELECT - - 62 - ( + + 98 ) AS col0
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2568
SELECT ALL MAX( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2568
SELECT ALL MAX ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2569
SELECT DISTINCT COUNT( * ) * + 93 * - COUNT( * ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-2569
SELECT DISTINCT COUNT ( * ) * + 93 * - COUNT ( * ) AS col0
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2570
SELECT CAST( + - COUNT( * ) AS SIGNED ) AS col2, + CAST( NULL AS SIGNED ) AS col2
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-2570
SELECT CAST ( + - COUNT ( * ) AS INTEGER ) AS col2, + CAST ( NULL AS INTEGER ) AS col2
----
-1
NULL

query I rowsort
SELECT ALL + 83 AS col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2572
SELECT + 93 * + - COUNT( * )
----
-93

skipif mysql # not compatible
query I rowsort label-2572
SELECT + 93 * + - COUNT ( * )
----
-93

query I rowsort
SELECT ALL - 99 AS col2
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2574
SELECT 35 - + MIN( - 26 )
----
61

skipif mysql # not compatible
query I rowsort label-2574
SELECT 35 - + MIN ( - 26 )
----
61

query I rowsort
SELECT DISTINCT - 6 AS col0
----
-6

query I rowsort
SELECT ALL - 18
----
-18

query I rowsort
SELECT - 94 - + 15 AS col0
----
-109

onlyif mysql # aggregate syntax: 
query I rowsort label-2578
SELECT ALL + SUM( 86 )
----
86

skipif mysql # not compatible
query I rowsort label-2578
SELECT ALL + SUM ( 86 )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-2579
SELECT COUNT( * ) * + 92 AS col2
----
92

skipif mysql # not compatible
query I rowsort label-2579
SELECT COUNT ( * ) * + 92 AS col2
----
92

query I rowsort
SELECT ALL 11 AS col0
----
11

query I rowsort
SELECT ALL + 67 AS col1
----
67

query I rowsort
SELECT - + 10 AS col2
----
-10

query I rowsort
SELECT ALL - 34
----
-34

query I rowsort
SELECT ALL - + 21 AS col1
----
-21

query I rowsort
SELECT ALL - 41
----
-41

query I rowsort
SELECT DISTINCT - - 53 AS col2
----
53

query I rowsort
SELECT + 1 AS col0
----
1

query I rowsort
SELECT - + 56 AS col1
----
-56

query I rowsort
SELECT DISTINCT 65 - + - 18
----
83

query II rowsort
SELECT ALL 54 AS col1, - 3 AS col0
----
54
-3

query I rowsort
SELECT - 65 col2
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-2592
SELECT ALL COUNT( DISTINCT 23 )
----
1

skipif mysql # not compatible
query I rowsort label-2592
SELECT ALL COUNT ( DISTINCT 23 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2593
SELECT - 39 DIV - COUNT( * )
----
39

skipif mysql # not compatible
query I rowsort label-2593
SELECT - 39 / - COUNT ( * )
----
39

query I rowsort
SELECT DISTINCT 24 * - + 88 + 50 AS col1
----
-2062

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2595
SELECT ALL + CAST( 21 AS SIGNED )
----
21

skipif mysql # not compatible
query I rowsort label-2595
SELECT ALL + CAST ( 21 AS INTEGER )
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2596
SELECT + 59 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2596
SELECT + 59 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2597
SELECT - ( + 3 ) AS col1, - SUM( - - 32 ) AS col1
----
-3
-32

skipif mysql # not compatible
query II rowsort label-2597
SELECT - ( + 3 ) AS col1, - SUM ( - - 32 ) AS col1
----
-3
-32

query I rowsort
SELECT + 88 * + 55 * - 23 AS col2
----
-111320

query I rowsort
SELECT DISTINCT 66 col1
----
66

query I rowsort
SELECT ALL ( + 69 ) AS col2
----
69

query I rowsort
SELECT - 98 + - 21
----
-119

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2602
SELECT CAST( NULL AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2602
SELECT CAST ( NULL AS REAL ) col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2603
SELECT CAST( - 74 AS SIGNED )
----
-74

skipif mysql # not compatible
query I rowsort label-2603
SELECT CAST ( - 74 AS INTEGER )
----
-74

query I rowsort
SELECT - 40 AS col0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-2605
SELECT + 77 + 18 + + - MIN( - + 36 )
----
131

skipif mysql # not compatible
query I rowsort label-2605
SELECT + 77 + 18 + + - MIN ( - + 36 )
----
131

query I rowsort
SELECT DISTINCT + 88 AS col1
----
88

query I rowsort
SELECT ( + - ( + 48 ) )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-2608
SELECT ALL 93 * + COUNT( * ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-2608
SELECT ALL 93 * + COUNT ( * ) AS col2
----
93

query I rowsort
SELECT ALL 57 * 56
----
3192

query I rowsort
SELECT + 96 AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2611
SELECT ALL - - COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2611
SELECT ALL - - COUNT ( * ) AS col2
----
1

query I rowsort
SELECT ALL 51 col2
----
51

query I rowsort
SELECT ALL 5 AS col2
----
5

query I rowsort
SELECT ALL 14 AS col2
----
14

query I rowsort
SELECT - 16 col0
----
-16

query I rowsort
SELECT - - 43
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2617
SELECT ALL - - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2617
SELECT ALL - - CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT DISTINCT - + 77 AS col1
----
-77

query I rowsort
SELECT ALL - 33 AS col2
----
-33

query I rowsort
SELECT - 14 col1
----
-14

query I rowsort
SELECT - 68 AS col1
----
-68

query I rowsort
SELECT - - ( - 21 )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-2623
SELECT - 69 - - COUNT( * )
----
-68

skipif mysql # not compatible
query I rowsort label-2623
SELECT - 69 - - COUNT ( * )
----
-68

query I rowsort
SELECT - 82 - + 99
----
-181

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2625
SELECT + - ( + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2625
SELECT + - ( + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2626
SELECT + COUNT( * ) * 31
----
31

skipif mysql # not compatible
query I rowsort label-2626
SELECT + COUNT ( * ) * 31
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2627
SELECT SUM( ALL + 9 ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-2627
SELECT SUM ( ALL + 9 ) AS col2
----
9

query I rowsort
SELECT ALL 69 AS col0
----
69

query I rowsort
SELECT DISTINCT 21
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2630
SELECT DISTINCT ( COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-2630
SELECT DISTINCT ( COUNT ( * ) )
----
1

query I rowsort
SELECT ( - + 99 )
----
-99

query I rowsort
SELECT ALL - 1 AS col1
----
-1

query I rowsort
SELECT DISTINCT - 31
----
-31

query I rowsort
SELECT ALL + 23 + - 52
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-2635
SELECT 57 DIV + 89 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2635
SELECT 57 / + 89 AS col1
----
0

query II rowsort
SELECT 82 * + 40, + 25 AS col1
----
3280
25

query I rowsort
SELECT 83
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2638
SELECT - + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2638
SELECT - + CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT ALL 6 AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2640
SELECT - SUM( ALL 37 ) AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-2640
SELECT - SUM ( ALL 37 ) AS col0
----
-37

query I rowsort
SELECT DISTINCT - - 73
----
73

query II rowsort
SELECT + 54 AS col1, 78 * - + 41 AS col1
----
54
-3198

query I rowsort
SELECT + 22 col0
----
22

query I rowsort
SELECT DISTINCT - 40
----
-40

query I rowsort
SELECT 17 + 32 AS col2
----
49

query I rowsort
SELECT + 33 AS col2
----
33

query I rowsort
SELECT DISTINCT + 14 * - 48
----
-672

query I rowsort
SELECT - + 76 + - + 7 col0
----
-83

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2649
SELECT DISTINCT + CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2649
SELECT DISTINCT + CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL + 8
----
8

query I rowsort
SELECT + ( + 60 )
----
60

query I rowsort
SELECT + 20
----
20

query I rowsort
SELECT ALL + 33
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2654
SELECT - - COUNT( - ( 93 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2654
SELECT - - COUNT ( - ( 93 ) ) AS col2
----
1

query I rowsort
SELECT ALL 25 AS col1
----
25

query I rowsort
SELECT DISTINCT 90
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2657
SELECT DISTINCT CAST( - COALESCE ( - 57, 73 ) AS SIGNED )
----
57

skipif mysql # not compatible
query I rowsort label-2657
SELECT DISTINCT CAST ( - COALESCE ( - 57, 73 ) AS INTEGER )
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2658
SELECT + CAST( NULL AS SIGNED ) - + AVG ( DISTINCT 60 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2658
SELECT + CAST ( NULL AS INTEGER ) - + AVG ( DISTINCT 60 )
----
NULL

query I rowsort
SELECT + ( - 7 )
----
-7

query I rowsort
SELECT ALL + 43 AS col1
----
43

query I rowsort
SELECT - - 21
----
21

query I rowsort
SELECT - 54 AS col2
----
-54

query II rowsort
SELECT 46 AS col2, 18
----
46
18

query I rowsort
SELECT DISTINCT - 65 AS col1
----
-65

query I rowsort
SELECT 75
----
75

query I rowsort
SELECT - 26 AS col2
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2667
SELECT DISTINCT CAST( NULL AS SIGNED ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2667
SELECT DISTINCT CAST ( NULL AS INTEGER ) * COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT 97
----
97

query II rowsort
SELECT DISTINCT + 19 * - 59, 81 AS col1
----
-1121
81

query I rowsort
SELECT + 19
----
19

query I rowsort
SELECT DISTINCT + 55
----
55

query I rowsort
SELECT DISTINCT + 84
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2673
SELECT + 56 + - MAX( + 67 ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-2673
SELECT + 56 + - MAX ( + 67 ) AS col1
----
-11

query I rowsort
SELECT ALL + 2
----
2

query I rowsort
SELECT DISTINCT + 66 AS col2
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2676
SELECT + CAST( NULL AS SIGNED ) + + 48 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2676
SELECT + CAST ( NULL AS INTEGER ) + + 48 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2677
SELECT + 82 + - + COUNT( * )
----
81

skipif mysql # not compatible
query I rowsort label-2677
SELECT + 82 + - + COUNT ( * )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2678
SELECT ALL + COUNT( * ) + + ( COUNT( DISTINCT 94 ) )
----
2

skipif mysql # not compatible
query I rowsort label-2678
SELECT ALL + COUNT ( * ) + + ( COUNT ( DISTINCT 94 ) )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2679
SELECT DISTINCT + CAST( NULL AS SIGNED ) - + 87 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2679
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - + 87 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2680
SELECT COUNT( * ) AS col0, ( + 12 ) + - + 17
----
1
-5

skipif mysql # not compatible
query II rowsort label-2680
SELECT COUNT ( * ) AS col0, ( + 12 ) + - + 17
----
1
-5

query I rowsort
SELECT ALL + - 43
----
-43

query I rowsort
SELECT ALL - + ( - 52 ) * - 84 + 48 - + + 7 AS col0
----
-4327

query I rowsort
SELECT + 37 AS col2
----
37

query I rowsort
SELECT ALL + - 63 col0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-2685
SELECT DISTINCT + + COUNT( - 17 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-2685
SELECT DISTINCT + + COUNT ( - 17 ) col0
----
1

query I rowsort
SELECT - + ( - 95 ) AS col2
----
95

query I rowsort
SELECT 16 + + - ( 17 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2688
SELECT DISTINCT 49 * + + COUNT( * ) * - COUNT( * ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-2688
SELECT DISTINCT 49 * + + COUNT ( * ) * - COUNT ( * ) AS col0
----
-49

query I rowsort
SELECT ALL - + 28 AS col2
----
-28

query I rowsort
SELECT + ( 69 ) AS col1
----
69

query I rowsort
SELECT ( 67 )
----
67

query I rowsort
SELECT - 66 AS col1
----
-66

query I rowsort
SELECT ALL - - 60
----
60

query I rowsort
SELECT - 49 * - 72 col0
----
3528

query I rowsort
SELECT DISTINCT + 87 + - - 8 AS col0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2696
SELECT ALL + 32 + - - MIN( ALL - ( + 60 ) )
----
-28

skipif mysql # not compatible
query I rowsort label-2696
SELECT ALL + 32 + - - MIN ( ALL - ( + 60 ) )
----
-28

query I rowsort
SELECT ALL 45
----
45

query I rowsort
SELECT ALL 0
----
0

query I rowsort
SELECT DISTINCT 51
----
51

query I rowsort
SELECT ALL 3 AS col2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2701
SELECT COUNT( * ) + - 71 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2701
SELECT COUNT ( * ) + - 71 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL 57 AS col2
----
57

query I rowsort
SELECT DISTINCT 60 AS col0
----
60

query I rowsort
SELECT DISTINCT 74 AS col0
----
74

query I rowsort
SELECT DISTINCT - + 27
----
-27

query I rowsort
SELECT DISTINCT - 18 AS col0
----
-18

query I rowsort
SELECT ALL - 25 AS col2
----
-25

query I rowsort
SELECT - 29
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-2709
SELECT DISTINCT - + ( - COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-2709
SELECT DISTINCT - + ( - COUNT ( * ) )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2710
SELECT ALL - 66 DIV 86 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2710
SELECT ALL - 66 / 86 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2711
SELECT ALL SUM( + 52 )
----
52

skipif mysql # not compatible
query I rowsort label-2711
SELECT ALL SUM ( + 52 )
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-2712
SELECT DISTINCT SUM( - - 39 ) AS col0, + 33 AS col1
----
39
33

skipif mysql # not compatible
query II rowsort label-2712
SELECT DISTINCT SUM ( - - 39 ) AS col0, + 33 AS col1
----
39
33

query I rowsort
SELECT - 80 col1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2714
SELECT ALL - COUNT( * ) + + 37
----
36

skipif mysql # not compatible
query I rowsort label-2714
SELECT ALL - COUNT ( * ) + + 37
----
36

query I rowsort
SELECT DISTINCT + - 9 * - 85 AS col1
----
765

query I rowsort
SELECT + ( + 45 )
----
45

query I rowsort
SELECT ALL + 52 AS col2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2718
SELECT ALL + MIN( - ( - 65 ) )
----
65

skipif mysql # not compatible
query I rowsort label-2718
SELECT ALL + MIN ( - ( - 65 ) )
----
65

query I rowsort
SELECT ALL 64 col2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2720
SELECT - ( COUNT( * ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-2720
SELECT - ( COUNT ( * ) ) col0
----
-1

query I rowsort
SELECT DISTINCT + 76 AS col1
----
76

query I rowsort
SELECT + 68
----
68

query I rowsort
SELECT ALL - 17
----
-17

query I rowsort
SELECT - 57 AS col1
----
-57

query I rowsort
SELECT DISTINCT + ( + 13 ) * - + 24 + + 64 col1
----
-248

query I rowsort
SELECT ALL - - 13 AS col1
----
13

query I rowsort
SELECT ALL - 80 - - + 27
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-2728
SELECT COUNT( * ) * 87
----
87

skipif mysql # not compatible
query I rowsort label-2728
SELECT COUNT ( * ) * 87
----
87

query I rowsort
SELECT + 41
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2730
SELECT DISTINCT ( + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2730
SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 76
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2732
SELECT 29 * - CAST( NULL AS SIGNED ) - + 25 + 89 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2732
SELECT 29 * - CAST ( NULL AS INTEGER ) - + 25 + 89 AS col0
----
NULL

query I rowsort
SELECT 41 AS col0
----
41

query I rowsort
SELECT ALL - 52
----
-52

query I rowsort
SELECT 27 AS col0
----
27

query I rowsort
SELECT DISTINCT - 70 * + - 65
----
4550

query I rowsort
SELECT 40 AS col1
----
40

query I rowsort
SELECT 21 AS col1
----
21

query I rowsort
SELECT 56 AS col0
----
56

query I rowsort
SELECT + 73 AS col0
----
73

query I rowsort
SELECT 51
----
51

query I rowsort
SELECT ALL - 96 AS col2
----
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-2743
SELECT ALL + + 65 - - 17 AS col0, - COUNT( * )
----
82
-1

skipif mysql # not compatible
query II rowsort label-2743
SELECT ALL + + 65 - - 17 AS col0, - COUNT ( * )
----
82
-1

query I rowsort
SELECT DISTINCT + 31
----
31

query I rowsort
SELECT ALL - 38 AS col0
----
-38

query I rowsort
SELECT DISTINCT - 79 AS col1
----
-79

query I rowsort
SELECT + 29 AS col0
----
29

query I rowsort
SELECT ALL + 92 AS col2
----
92

query I rowsort
SELECT + 25 col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-2750
SELECT ALL + + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2750
SELECT ALL + + COUNT ( * ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2751
SELECT - MAX( ALL + - 40 ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-2751
SELECT - MAX ( ALL + - 40 ) AS col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2752
SELECT - SUM( ALL + 35 )
----
-35

skipif mysql # not compatible
query I rowsort label-2752
SELECT - SUM ( ALL + 35 )
----
-35

query I rowsort
SELECT ALL ( 6 ) AS col1
----
6

query I rowsort
SELECT ALL - 84 AS col2
----
-84

query I rowsort
SELECT ALL 23 * + 69
----
1587

query I rowsort
SELECT ALL 36 + 16 AS col2
----
52

query I rowsort
SELECT + + 7 - + 45 AS col0
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2758
SELECT DISTINCT COUNT( * ) DIV 18
----
0

skipif mysql # not compatible
query I rowsort label-2758
SELECT DISTINCT COUNT ( * ) / 18
----
0

query I rowsort
SELECT - + 52 AS col1
----
-52

query II rowsort
SELECT ALL 84, 13 AS col2
----
84
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2761
SELECT 26 - - CAST( 89 AS SIGNED ) AS col0
----
115

skipif mysql # not compatible
query I rowsort label-2761
SELECT 26 - - CAST ( 89 AS INTEGER ) AS col0
----
115

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2762
SELECT 35 * + CAST( + 34 AS SIGNED ) * - 5 AS col1
----
-5950

skipif mysql # not compatible
query I rowsort label-2762
SELECT 35 * + CAST ( + 34 AS INTEGER ) * - 5 AS col1
----
-5950

query I rowsort
SELECT 72
----
72

query I rowsort
SELECT 75 AS col0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2765
SELECT MIN( DISTINCT - - 56 ) * + - COUNT( * )
----
-56

skipif mysql # not compatible
query I rowsort label-2765
SELECT MIN ( DISTINCT - - 56 ) * + - COUNT ( * )
----
-56

query I rowsort
SELECT + 25 AS col2
----
25

query I rowsort
SELECT + 94 * 28 * 28 AS col1
----
73696

onlyif mysql # aggregate syntax: 
query I rowsort label-2768
SELECT COUNT( * ) * + 8
----
8

skipif mysql # not compatible
query I rowsort label-2768
SELECT COUNT ( * ) * + 8
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2769
SELECT ALL + COUNT( * ) + 58 AS col2
----
59

skipif mysql # not compatible
query I rowsort label-2769
SELECT ALL + COUNT ( * ) + 58 AS col2
----
59

query I rowsort
SELECT ALL + 95 AS col2
----
95

query I rowsort
SELECT ALL 38 AS col0
----
38

query I rowsort
SELECT DISTINCT 97 AS col2
----
97

query I rowsort
SELECT - 60 AS col2
----
-60

query I rowsort
SELECT - 14 col2
----
-14

query I rowsort
SELECT + 22 AS col2
----
22

query I rowsort
SELECT + 25 AS col0
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2777
SELECT ALL + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2777
SELECT ALL + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 73 + 83
----
156

query I rowsort
SELECT DISTINCT 13 AS col0
----
13

query I rowsort
SELECT ALL 81 AS col1
----
81

query I rowsort
SELECT ALL 92 AS col2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2782
SELECT ALL NULLIF ( - + COUNT( * ), 9 )
----
-1

skipif mysql # not compatible
query I rowsort label-2782
SELECT ALL NULLIF ( - + COUNT ( * ), 9 )
----
-1

query I rowsort
SELECT DISTINCT 50
----
50

query I rowsort
SELECT DISTINCT ( - 9 ) AS col0
----
-9

query I rowsort
SELECT + 77 AS col2
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2786
SELECT ALL 7 * - + CAST( - - ( - COUNT( * ) ) AS SIGNED )
----
7

skipif mysql # not compatible
query I rowsort label-2786
SELECT ALL 7 * - + CAST ( - - ( - COUNT ( * ) ) AS INTEGER )
----
7

query I rowsort
SELECT DISTINCT + 45 col1
----
45

query I rowsort
SELECT ALL + + 40 AS col0
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2789
SELECT - + CAST( NULL AS SIGNED ) * - 44 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2789
SELECT - + CAST ( NULL AS INTEGER ) * - 44 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2790
SELECT - COUNT( * ) - + - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2790
SELECT - COUNT ( * ) - + - COUNT ( * ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2791
SELECT + COUNT( + - 25 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2791
SELECT + COUNT ( + - 25 ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2792
SELECT + 11 DIV - 19
----
0

skipif mysql # not compatible
query I rowsort label-2792
SELECT + 11 / - 19
----
0

query I rowsort
SELECT 96 AS col1
----
96

query I rowsort
SELECT 67 AS col2
----
67

query I rowsort
SELECT DISTINCT - 45 * 13
----
-585

query I rowsort
SELECT ALL - NULLIF ( + 25, + - ( - 31 ) ) + - 63 AS col2
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-2797
SELECT COUNT( * ) * + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-2797
SELECT COUNT ( * ) * + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2798
SELECT DISTINCT - MIN( DISTINCT - 32 ) DIV - 48 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2798
SELECT DISTINCT - MIN ( DISTINCT - 32 ) / - 48 AS col2
----
0

query I rowsort
SELECT ALL - ( 12 )
----
-12

query I rowsort
SELECT 80 + 20 AS col1
----
100

query I rowsort
SELECT DISTINCT 46
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2802
SELECT ( COUNT( * ) ) + 76 AS col2
----
77

skipif mysql # not compatible
query I rowsort label-2802
SELECT ( COUNT ( * ) ) + 76 AS col2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2803
SELECT COUNT( * ) + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-2803
SELECT COUNT ( * ) + + COUNT ( * )
----
2

query I rowsort
SELECT 11 + 28 * + 73 AS col2
----
2055

query I rowsort
SELECT DISTINCT + 59
----
59

query I rowsort
SELECT ALL 80 AS col1
----
80

query I rowsort
SELECT - 39 * 62
----
-2418

query I rowsort
SELECT 66 AS col2
----
66

query I rowsort
SELECT ALL - 85 AS col2
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-2810
SELECT - MIN( ALL + 88 )
----
-88

skipif mysql # not compatible
query I rowsort label-2810
SELECT - MIN ( ALL + 88 )
----
-88

query I rowsort
SELECT ALL - 35 AS col1
----
-35

query I rowsort
SELECT ALL - 41 col2
----
-41

query I rowsort
SELECT 21 col2
----
21

query I rowsort
SELECT 54 AS col1
----
54

query I rowsort
SELECT ALL - 38
----
-38

query I rowsort
SELECT 79 AS col0
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2817
SELECT 67 DIV NULLIF ( + COUNT( * ), + 39 ) + 77
----
144

skipif mysql # not compatible
query I rowsort label-2817
SELECT 67 / NULLIF ( + COUNT ( * ), + 39 ) + 77
----
144

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2818
SELECT + CAST( NULL AS DECIMAL ) / - 64
----
NULL

skipif mysql # not compatible
query I rowsort label-2818
SELECT + CAST ( NULL AS REAL ) / - 64
----
NULL

query I rowsort
SELECT + ( - - 17 )
----
17

query I rowsort
SELECT ALL + 31 col1
----
31

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2821
SELECT + NULLIF ( - CAST( NULL AS DECIMAL ), 87 ) * 95
----
NULL

skipif mysql # not compatible
query I rowsort label-2821
SELECT + NULLIF ( - CAST ( NULL AS REAL ), 87 ) * 95
----
NULL

query I rowsort
SELECT - 64
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-2823
SELECT DISTINCT COUNT( * ) - 52
----
-51

skipif mysql # not compatible
query I rowsort label-2823
SELECT DISTINCT COUNT ( * ) - 52
----
-51

query I rowsort
SELECT ALL - 84
----
-84

query I rowsort
SELECT DISTINCT - 47
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-2826
SELECT ALL 93 + - ( 86 ) * + COUNT( * ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-2826
SELECT ALL 93 + - ( 86 ) * + COUNT ( * ) AS col1
----
7

query I rowsort
SELECT ALL - 66
----
-66

query I rowsort
SELECT 11 * - 29
----
-319

query I rowsort
SELECT DISTINCT - 78
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-2830
SELECT COUNT( * ) + - + 28
----
-27

skipif mysql # not compatible
query I rowsort label-2830
SELECT COUNT ( * ) + - + 28
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-2831
SELECT - COUNT( * ) * + 56 * - + 60 * COUNT( * ) AS col1
----
3360

skipif mysql # not compatible
query I rowsort label-2831
SELECT - COUNT ( * ) * + 56 * - + 60 * COUNT ( * ) AS col1
----
3360

query I rowsort
SELECT ALL - 56 AS col1
----
-56

query I rowsort
SELECT ALL - 1 AS col0
----
-1

query I rowsort
SELECT - 93 AS col1
----
-93

query I rowsort
SELECT + 26 * 28 + + - ( - 99 )
----
827

query I rowsort
SELECT DISTINCT + + 93 + 52
----
145

query I rowsort
SELECT DISTINCT ( - - 6 )
----
6

query I rowsort
SELECT ALL + 54 - + 96 AS col0
----
-42

query I rowsort
SELECT DISTINCT + 43 col1
----
43

query I rowsort
SELECT 89 col1
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-2841
SELECT - 63 AS col2, 57 - COUNT( * )
----
-63
56

skipif mysql # not compatible
query II rowsort label-2841
SELECT - 63 AS col2, 57 - COUNT ( * )
----
-63
56

onlyif mysql # aggregate syntax: 
query I rowsort label-2842
SELECT + COUNT( * ) * COUNT( * ) col0
----
1

skipif mysql # not compatible
query I rowsort label-2842
SELECT + COUNT ( * ) * COUNT ( * ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2843
SELECT + NULLIF ( COUNT( * ), + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2843
SELECT + NULLIF ( COUNT ( * ), + COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2844
SELECT ALL - 99 AS col2, MIN( + + 97 ) AS col0
----
-99
97

skipif mysql # not compatible
query II rowsort label-2844
SELECT ALL - 99 AS col2, MIN ( + + 97 ) AS col0
----
-99
97

query I rowsort
SELECT DISTINCT 85
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2846
SELECT CAST( - CAST( + COUNT( * ) AS SIGNED ) AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2846
SELECT CAST ( - CAST ( + COUNT ( * ) AS INTEGER ) AS INTEGER ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2847
SELECT ( ( - CAST( + - ( - CAST( NULL AS SIGNED ) ) AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2847
SELECT ( ( - CAST ( + - ( - CAST ( NULL AS INTEGER ) ) AS INTEGER ) ) )
----
NULL

query I rowsort
SELECT ALL + 78 AS col0
----
78

query I rowsort
SELECT ALL 9 AS col0
----
9

query I rowsort
SELECT + 65 col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2851
SELECT ALL 85 + - + ( + - COUNT( * ) ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-2851
SELECT ALL 85 + - + ( + - COUNT ( * ) ) AS col0
----
86

query II rowsort
SELECT + + 24, 41 AS col1
----
24
41

query I rowsort
SELECT + 85 AS col1
----
85

query I rowsort
SELECT + 2 col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2855
SELECT - CASE + + COUNT( * ) WHEN COUNT( * ) + - 30 THEN + - 96 + - 86 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2855
SELECT - CASE + + COUNT ( * ) WHEN COUNT ( * ) + - 30 THEN + - 96 + - 86 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2856
SELECT + CAST( 34 AS SIGNED ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-2856
SELECT + CAST ( 34 AS INTEGER ) AS col2
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2857
SELECT ( + + 6 ) + + 12 * + 82 - - CAST( - + 63 AS SIGNED ) AS col2
----
927

skipif mysql # not compatible
query I rowsort label-2857
SELECT ( + + 6 ) + + 12 * + 82 - - CAST ( - + 63 AS INTEGER ) AS col2
----
927

query I rowsort
SELECT ALL + - ( - - 27 ) * + + 20 col0
----
-540

onlyif mysql # aggregate syntax: 
query I rowsort label-2859
SELECT COUNT( * ) * COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2859
SELECT COUNT ( * ) * COUNT ( * ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-2860
SELECT DISTINCT - 5 DIV - 34 AS col0, - 44 * + 57 AS col1
----
0
-2508

skipif mysql # not compatible
query II rowsort label-2860
SELECT DISTINCT - 5 / - 34 AS col0, - 44 * + 57 AS col1
----
0
-2508

query I rowsort
SELECT DISTINCT 92 col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2862
SELECT ALL SUM( - 95 ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-2862
SELECT ALL SUM ( - 95 ) AS col2
----
-95

query I rowsort
SELECT + 13 AS col0
----
13

query I rowsort
SELECT + 47 AS col0
----
47

query I rowsort
SELECT + ( - 87 ) AS col0
----
-87

query I rowsort
SELECT ALL + 0 AS col2
----
0

query I rowsort
SELECT 86 AS col1
----
86

query I rowsort
SELECT DISTINCT 81
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2869
SELECT - ( + + NULLIF ( ( 61 ), - CAST( COUNT( * ) AS SIGNED ) + 56 ) )
----
-61

skipif mysql # not compatible
query I rowsort label-2869
SELECT - ( + + NULLIF ( ( 61 ), - CAST ( COUNT ( * ) AS INTEGER ) + 56 ) )
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-2870
SELECT - ( - COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2870
SELECT - ( - COUNT ( * ) ) AS col2
----
1

query I rowsort
SELECT ALL + + 23 AS col0
----
23

query I rowsort
SELECT - ( - 22 ) AS col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2873
SELECT ALL COUNT( DISTINCT ( 86 ) )
----
1

skipif mysql # not compatible
query I rowsort label-2873
SELECT ALL COUNT ( DISTINCT ( 86 ) )
----
1

query I rowsort
SELECT ALL 8 AS col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2875
SELECT + COUNT( * ) * - 64 col2
----
-64

skipif mysql # not compatible
query I rowsort label-2875
SELECT + COUNT ( * ) * - 64 col2
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-2876
SELECT ALL COUNT( - - ( - + 55 ) )
----
1

skipif mysql # not compatible
query I rowsort label-2876
SELECT ALL COUNT ( - - ( - + 55 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2877
SELECT DISTINCT - + MIN( 11 ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-2877
SELECT DISTINCT - + MIN ( 11 ) AS col0
----
-11

query I rowsort
SELECT + 66 col0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2879
SELECT CAST( NULL AS SIGNED ) * + AVG ( DISTINCT 74 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2879
SELECT CAST ( NULL AS INTEGER ) * + AVG ( DISTINCT 74 )
----
NULL

query I rowsort
SELECT ALL - 62
----
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2881
SELECT COUNT( * ) DIV - + 32
----
0

skipif mysql # not compatible
query I rowsort label-2881
SELECT COUNT ( * ) / - + 32
----
0

query I rowsort
SELECT DISTINCT 46 AS col0
----
46

query I rowsort
SELECT ALL - 66 * - 95
----
6270

query I rowsort
SELECT ALL - 60 AS col2
----
-60

query I rowsort
SELECT ALL 4 AS col0
----
4

query I rowsort
SELECT + - 19 AS col0
----
-19

query I rowsort
SELECT + - 8 AS col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-2888
SELECT - COUNT( * ) - + 96
----
-97

skipif mysql # not compatible
query I rowsort label-2888
SELECT - COUNT ( * ) - + 96
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2889
SELECT SUM( 52 )
----
52

skipif mysql # not compatible
query I rowsort label-2889
SELECT SUM ( 52 )
----
52

query I rowsort
SELECT ALL - 75 AS col2
----
-75

query I rowsort
SELECT - 14 AS col1
----
-14

query I rowsort
SELECT - 71 AS col2
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2893
SELECT DISTINCT + NULLIF ( + ( - CAST( NULL AS SIGNED ) ), + 2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2893
SELECT DISTINCT + NULLIF ( + ( - CAST ( NULL AS INTEGER ) ), + 2 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2894
SELECT ALL SUM( DISTINCT ( - - 21 ) ) + - - COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-2894
SELECT ALL SUM ( DISTINCT ( - - 21 ) ) + - - COUNT ( * )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2895
SELECT - MIN( DISTINCT + 27 )
----
-27

skipif mysql # not compatible
query I rowsort label-2895
SELECT - MIN ( DISTINCT + 27 )
----
-27

query I rowsort
SELECT - 6 AS col2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2897
SELECT DISTINCT MAX( ALL - 28 ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-2897
SELECT DISTINCT MAX ( ALL - 28 ) AS col0
----
-28

query I rowsort
SELECT ALL 81 * + 18 AS col2
----
1458

query I rowsort
SELECT DISTINCT + 75 AS col0
----
75

query I rowsort
SELECT DISTINCT + 90 AS col0
----
90

query I rowsort
SELECT + 1 AS col1
----
1

query I rowsort
SELECT - 59 AS col2
----
-59

query I rowsort
SELECT DISTINCT 79 AS col2
----
79

query I rowsort
SELECT ALL - 23 AS col2
----
-23

query I rowsort
SELECT + + ( 97 )
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2906
SELECT ALL + CAST( + 95 AS SIGNED )
----
95

skipif mysql # not compatible
query I rowsort label-2906
SELECT ALL + CAST ( + 95 AS INTEGER )
----
95

query I rowsort
SELECT - 87 + - 2 AS col2
----
-89

query I rowsort
SELECT ALL - 53
----
-53

query I rowsort
SELECT DISTINCT - 84 AS col2
----
-84

query I rowsort
SELECT 74 * - 57 AS col1
----
-4218

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2911
SELECT SUM( ALL 86 ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2911
SELECT SUM ( ALL 86 ) * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 2 AS col2
----
2

query II rowsort
SELECT + 68 AS col0, + 2
----
68
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2914
SELECT DISTINCT ( - COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-2914
SELECT DISTINCT ( - COUNT ( * ) )
----
-1

query I rowsort
SELECT ALL - 21
----
-21

query I rowsort
SELECT DISTINCT + 19
----
19

query I rowsort
SELECT - + 83 + + 77 AS col0
----
-6

query I rowsort
SELECT DISTINCT + - 92 AS col2
----
-92

query I rowsort
SELECT 12 AS col2
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2920
SELECT DISTINCT + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2920
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL COALESCE ( - 27, - 16 )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-2922
SELECT ALL - COUNT( * ) * - - 87
----
-87

skipif mysql # not compatible
query I rowsort label-2922
SELECT ALL - COUNT ( * ) * - - 87
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2923
SELECT - AVG ( DISTINCT - + ( - + CAST( NULL AS SIGNED ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2923
SELECT - AVG ( DISTINCT - + ( - + CAST ( NULL AS INTEGER ) ) ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 8
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-2925
SELECT + 75 + + NULLIF ( + - ( - MAX( ALL + 72 ) ), + + 37 ) * - 27 col1
----
-1869

skipif mysql # not compatible
query I rowsort label-2925
SELECT + 75 + + NULLIF ( + - ( - MAX ( ALL + 72 ) ), + + 37 ) * - 27 col1
----
-1869

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2926
SELECT DISTINCT + MIN( - COALESCE ( + - CAST( NULL AS SIGNED ), + 1 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-2926
SELECT DISTINCT + MIN ( - COALESCE ( + - CAST ( NULL AS INTEGER ), + 1 ) )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2927
SELECT + CAST( + 74 AS SIGNED ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-2927
SELECT + CAST ( + 74 AS INTEGER ) AS col1
----
74

query I rowsort
SELECT + 7
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2929
SELECT - COUNT( * ) * + 66
----
-66

skipif mysql # not compatible
query I rowsort label-2929
SELECT - COUNT ( * ) * + 66
----
-66

query I rowsort
SELECT ALL + - ( - - 98 ) AS col1
----
-98

query I rowsort
SELECT ALL 5
----
5

query I rowsort
SELECT ALL 77
----
77

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2933
SELECT DISTINCT - COUNT( * ) + - NULLIF ( COUNT( * ), - - ( - - CAST( NULL AS DECIMAL ) ) )
----
-2

skipif mysql # not compatible
query I rowsort label-2933
SELECT DISTINCT - COUNT ( * ) + - NULLIF ( COUNT ( * ), - - ( - - CAST ( NULL AS REAL ) ) )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2934
SELECT ALL + - COUNT( * ) + - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-2934
SELECT ALL + - COUNT ( * ) + - COUNT ( * )
----
-2

query I rowsort
SELECT 4 AS col2
----
4

query I rowsort
SELECT DISTINCT - 99
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2937
SELECT DISTINCT + - 68 + COUNT( * ) * - + 63 AS col0
----
-131

skipif mysql # not compatible
query I rowsort label-2937
SELECT DISTINCT + - 68 + COUNT ( * ) * - + 63 AS col0
----
-131

query I rowsort
SELECT ALL + ( 58 )
----
58

query I rowsort
SELECT ALL 72 AS col0
----
72

query I rowsort
SELECT DISTINCT 23
----
23

query I rowsort
SELECT ALL + 48 + - + 30
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2942
SELECT DISTINCT MIN( ALL - - 71 )
----
71

skipif mysql # not compatible
query I rowsort label-2942
SELECT DISTINCT MIN ( ALL - - 71 )
----
71

query I rowsort
SELECT DISTINCT 35
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2944
SELECT COUNT( * ) * + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-2944
SELECT COUNT ( * ) * + - COUNT ( * )
----
-1

query I rowsort
SELECT + 16 AS col2
----
16

query I rowsort
SELECT 37 col1
----
37

query I rowsort
SELECT + 51 AS col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2948
SELECT + - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2948
SELECT + - COUNT ( * ) AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2949
SELECT ALL + 53 DIV - 47 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2949
SELECT ALL + 53 / - 47 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2950
SELECT DISTINCT 51 - COUNT( * ) col2
----
50

skipif mysql # not compatible
query I rowsort label-2950
SELECT DISTINCT 51 - COUNT ( * ) col2
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2951
SELECT ALL + 62 DIV + ( - MIN( ALL + 67 ) )
----
0

skipif mysql # not compatible
query I rowsort label-2951
SELECT ALL + 62 / + ( - MIN ( ALL + 67 ) )
----
0

query I rowsort
SELECT 21 AS col2
----
21

query I rowsort
SELECT - 4
----
-4

query I rowsort
SELECT - 61
----
-61

query I rowsort
SELECT DISTINCT ( + + 33 )
----
33

query I rowsort
SELECT ALL + + 36 AS col2
----
36

query I rowsort
SELECT 14 AS col0
----
14

query I rowsort
SELECT ALL + - 3
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2959
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * - - 4 / - + 65 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2959
SELECT DISTINCT + CAST ( NULL AS REAL ) * - - 4 / - + 65 AS col0
----
NULL

query I rowsort
SELECT ALL + 36 AS col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2961
SELECT + MIN( 65 ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-2961
SELECT + MIN ( 65 ) AS col1
----
65

query I rowsort
SELECT ALL 28
----
28

query I rowsort
SELECT - ( - - ( - 69 ) )
----
69

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2964
SELECT ALL - 59 + CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2964
SELECT ALL - 59 + CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2965
SELECT DISTINCT MIN( + 90 ) col1
----
90

skipif mysql # not compatible
query I rowsort label-2965
SELECT DISTINCT MIN ( + 90 ) col1
----
90

query I rowsort
SELECT - 84 + 37 + 27 * 54
----
1411

query I rowsort
SELECT 87
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2968
SELECT + NULLIF ( ( + 97 ), - COUNT( * ) ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-2968
SELECT + NULLIF ( ( + 97 ), - COUNT ( * ) ) AS col1
----
97

query I rowsort
SELECT DISTINCT - 74
----
-74

query I rowsort
SELECT + - 92 col2
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-2971
SELECT ALL - MAX( - 46 ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-2971
SELECT ALL - MAX ( - 46 ) AS col1
----
46

query I rowsort
SELECT DISTINCT - 44 * - 63
----
2772

query I rowsort
SELECT - - 86 AS col1
----
86

query I rowsort
SELECT - NULLIF ( + 0, - 7 + + - 24 ) * 41 AS col1
----
0

query I rowsort
SELECT ALL - - 21
----
21

query I rowsort
SELECT ALL - + 48 AS col1
----
-48

query I rowsort
SELECT ALL - 57 AS col2
----
-57

query I rowsort
SELECT 18
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-2979
SELECT 37 DIV - ( - 13 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-2979
SELECT 37 / - ( - 13 ) AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2980
SELECT ALL + SUM( ALL 91 ) + - 87
----
4

skipif mysql # not compatible
query I rowsort label-2980
SELECT ALL + SUM ( ALL 91 ) + - 87
----
4

query I rowsort
SELECT DISTINCT 46 col2
----
46

query I rowsort
SELECT + 75
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2983
SELECT + + 34 * + COUNT( * )
----
34

skipif mysql # not compatible
query I rowsort label-2983
SELECT + + 34 * + COUNT ( * )
----
34

query I rowsort
SELECT + 26 AS col1
----
26

query I rowsort
SELECT + ( + + 61 ) col2
----
61

query I rowsort
SELECT DISTINCT 86 * + ( - 46 ) AS col0
----
-3956

query I rowsort
SELECT DISTINCT + 79 AS col2
----
79

query I rowsort
SELECT + 44
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-2989
SELECT ALL + SUM( + 50 ) * + 0, 80 col2
----
0
80

skipif mysql # not compatible
query II rowsort label-2989
SELECT ALL + SUM ( + 50 ) * + 0, 80 col2
----
0
80

query I rowsort
SELECT + 58 col2
----
58

query I rowsort
SELECT - - 0 AS col1
----
0

query I rowsort
SELECT - - 15
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2993
SELECT ALL - COUNT( ALL 91 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2993
SELECT ALL - COUNT ( ALL 91 ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2994
SELECT - - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2994
SELECT - - CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2995
SELECT CAST( COUNT( * ) AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2995
SELECT CAST ( COUNT ( * ) AS INTEGER ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2996
SELECT + CAST( - + 2 AS SIGNED ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-2996
SELECT + CAST ( - + 2 AS INTEGER ) AS col0
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2997
SELECT CAST( COUNT( * ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-2997
SELECT CAST ( COUNT ( * ) AS INTEGER )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2998
SELECT - COUNT( DISTINCT - ( + 85 ) ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-2998
SELECT - COUNT ( DISTINCT - ( + 85 ) ) col1
----
-1

query I rowsort
SELECT ALL - ( + 63 ) col1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-3000
SELECT 94 * COUNT( * ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-3000
SELECT 94 * COUNT ( * ) AS col2
----
94

query I rowsort
SELECT + 84 + - ( 44 ) col2
----
40

query I rowsort
SELECT ALL + 71 + 90 AS col2
----
161

query I rowsort
SELECT DISTINCT - 69
----
-69

query I rowsort
SELECT + 32
----
32

query I rowsort
SELECT DISTINCT - 98 AS col1
----
-98

query I rowsort
SELECT DISTINCT - 4 col2
----
-4

query I rowsort
SELECT 42 AS col2
----
42

query I rowsort
SELECT + 6 AS col1
----
6

query I rowsort
SELECT + 11
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3010
SELECT ALL - 24 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3010
SELECT ALL - 24 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3011
SELECT + MIN( + 88 ) * + - 35 DIV COUNT( * ) AS col1
----
-3080

skipif mysql # not compatible
query I rowsort label-3011
SELECT + MIN ( + 88 ) * + - 35 / COUNT ( * ) AS col1
----
-3080

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3012
SELECT ALL 65 + - ( + ( + + COALESCE ( + + CAST( NULL AS SIGNED ), - + 19 ) ) )
----
84

skipif mysql # not compatible
query I rowsort label-3012
SELECT ALL 65 + - ( + ( + + COALESCE ( + + CAST ( NULL AS INTEGER ), - + 19 ) ) )
----
84

query I rowsort
SELECT - + 70 col2
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-3014
SELECT DISTINCT - SUM( - 29 ) * + + COUNT( * ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-3014
SELECT DISTINCT - SUM ( - 29 ) * + + COUNT ( * ) AS col2
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3015
SELECT DISTINCT + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3015
SELECT DISTINCT + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3016
SELECT DISTINCT + 86 * + ( NULLIF ( 32, - - CAST( - - 17 AS SIGNED ) ) ) - + NULLIF ( + - CAST( NULL AS SIGNED ), - + 79 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3016
SELECT DISTINCT + 86 * + ( NULLIF ( 32, - - CAST ( - - 17 AS INTEGER ) ) ) - + NULLIF ( + - CAST ( NULL AS INTEGER ), - + 79 )
----
NULL

query I rowsort
SELECT + 98 AS col0
----
98

query I rowsort
SELECT + 61 AS col0
----
61

query I rowsort
SELECT + 63 AS col1
----
63

query I rowsort
SELECT + + 67 AS col2
----
67

query I rowsort
SELECT 99 AS col2
----
99

query I rowsort
SELECT ALL 17 AS col1
----
17

query I rowsort
SELECT DISTINCT 76 AS col0
----
76

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3024
SELECT CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3024
SELECT CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT + 62 AS col2
----
62

query I rowsort
SELECT + - 46 AS col2
----
-46

query I rowsort
SELECT - 46 AS col1
----
-46

query I rowsort
SELECT DISTINCT 57
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3029
SELECT - CAST( NULL AS SIGNED ) * + + 92 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3029
SELECT - CAST ( NULL AS INTEGER ) * + + 92 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3030
SELECT NULLIF ( + - 60, + + 37 ) DIV - + 83 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3030
SELECT NULLIF ( + - 60, + + 37 ) / - + 83 AS col0
----
0

query I rowsort
SELECT 46 - + 24
----
22

query I rowsort
SELECT ALL - 16 AS col2
----
-16

query I rowsort
SELECT + ( + 61 )
----
61

query I rowsort
SELECT 22 * + 4
----
88

query I rowsort
SELECT ALL 37 AS col1
----
37

query I rowsort
SELECT ALL 16
----
16

query I rowsort
SELECT ALL 24 col1
----
24

query I rowsort
SELECT 30 * + + 48 AS col1
----
1440

query II rowsort
SELECT - 83 AS col0, - 1 col0
----
-83
-1

query I rowsort
SELECT - 35 AS col2
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3041
SELECT ALL + 20 + - 34 AS col1, + CAST( - 85 AS SIGNED ) AS col2
----
-14
-85

skipif mysql # not compatible
query II rowsort label-3041
SELECT ALL + 20 + - 34 AS col1, + CAST ( - 85 AS INTEGER ) AS col2
----
-14
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-3042
SELECT + 60 col2, 98 - + 91 + COUNT( * ) + 36 AS col2
----
60
44

skipif mysql # not compatible
query II rowsort label-3042
SELECT + 60 col2, 98 - + 91 + COUNT ( * ) + 36 AS col2
----
60
44

query II rowsort
SELECT DISTINCT + 5 * - - 36 col1, 74 AS col0
----
180
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3044
SELECT + ( - + COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3044
SELECT + ( - + COUNT ( * ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3045
SELECT ALL + + ( COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-3045
SELECT ALL + + ( COUNT ( * ) )
----
1

query I rowsort
SELECT DISTINCT + 98 AS col0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3047
SELECT ALL - + 19 * ( COUNT( * ) )
----
-19

skipif mysql # not compatible
query I rowsort label-3047
SELECT ALL - + 19 * ( COUNT ( * ) )
----
-19

query I rowsort
SELECT ALL + + 68
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3049
SELECT ALL + - COUNT( + 11 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3049
SELECT ALL + - COUNT ( + 11 ) AS col1
----
-1

query I rowsort
SELECT 88 AS col0
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-3051
SELECT - 56 DIV 42 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3051
SELECT - 56 / 42 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3052
SELECT - ( - - MIN( - 35 ) )
----
35

skipif mysql # not compatible
query I rowsort label-3052
SELECT - ( - - MIN ( - 35 ) )
----
35

query I rowsort
SELECT 26 AS col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3054
SELECT DISTINCT + 9 - ( - COUNT( * ) ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-3054
SELECT DISTINCT + 9 - ( - COUNT ( * ) ) AS col0
----
10

query I rowsort
SELECT ALL 86
----
86

query I rowsort
SELECT 18 AS col2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3057
SELECT DISTINCT + + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3057
SELECT DISTINCT + + COUNT ( * ) AS col2
----
1

query I rowsort
SELECT - ( + 55 )
----
-55

query I rowsort
SELECT DISTINCT 83 AS col0
----
83

query I rowsort
SELECT 84 AS col2
----
84

query I rowsort
SELECT - 2
----
-2

query I rowsort
SELECT DISTINCT NULLIF ( - 54, 71 ) col2
----
-54

query I rowsort
SELECT DISTINCT 59
----
59

query I rowsort
SELECT ALL - 49
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3065
SELECT DISTINCT - - 10 * - 17 * + CAST( NULL AS SIGNED ) * + ( MIN( DISTINCT + + 79 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3065
SELECT DISTINCT - - 10 * - 17 * + CAST ( NULL AS INTEGER ) * + ( MIN ( DISTINCT + + 79 ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3066
SELECT COUNT( * ) DIV + 67 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3066
SELECT COUNT ( * ) / + 67 AS col2
----
0

query I rowsort
SELECT ALL - 30 AS col2
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3068
SELECT 81 * - + 3, + CAST( NULL AS SIGNED ) AS col2
----
-243
NULL

skipif mysql # not compatible
query II rowsort label-3068
SELECT 81 * - + 3, + CAST ( NULL AS INTEGER ) AS col2
----
-243
NULL

query I rowsort
SELECT DISTINCT 31 * - + 69 AS col0
----
-2139

query I rowsort
SELECT - + 27
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3071
SELECT DISTINCT + SUM( DISTINCT - 81 )
----
-81

skipif mysql # not compatible
query I rowsort label-3071
SELECT DISTINCT + SUM ( DISTINCT - 81 )
----
-81

query I rowsort
SELECT ALL - 30 AS col1
----
-30

query I rowsort
SELECT DISTINCT - 7
----
-7

query I rowsort
SELECT ALL - 20 AS col2
----
-20

query I rowsort
SELECT 64 * - 74
----
-4736

onlyif mysql # aggregate syntax: 
query I rowsort label-3076
SELECT ALL + 30 * + COUNT( * ) col2
----
30

skipif mysql # not compatible
query I rowsort label-3076
SELECT ALL + 30 * + COUNT ( * ) col2
----
30

query I rowsort
SELECT 28 AS col2
----
28

query I rowsort
SELECT - 1 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3079
SELECT ALL MAX( DISTINCT + 15 ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-3079
SELECT ALL MAX ( DISTINCT + 15 ) AS col2
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-3080
SELECT + 70 DIV 14 DIV 62
----
0

skipif mysql # not compatible
query I rowsort label-3080
SELECT + 70 / 14 / 62
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3081
SELECT + COUNT( * ) + + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-3081
SELECT + COUNT ( * ) + + - COUNT ( * )
----
0

query I rowsort
SELECT + - 41 * - - 13
----
-533

query I rowsort
SELECT 99 col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3084
SELECT - SUM( DISTINCT + - 79 )
----
79

skipif mysql # not compatible
query I rowsort label-3084
SELECT - SUM ( DISTINCT + - 79 )
----
79

query I rowsort
SELECT ALL + 35 AS col0
----
35

query I rowsort
SELECT ALL + ( - 80 ) AS col1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3087
SELECT DISTINCT - - 23 - - ( + COUNT( * ) )
----
24

skipif mysql # not compatible
query I rowsort label-3087
SELECT DISTINCT - - 23 - - ( + COUNT ( * ) )
----
24

query I rowsort
SELECT + 70 + + ( - 36 ) * 98
----
-3458

onlyif mysql # DIV for integer division: 
query I rowsort label-3089
SELECT + 15 DIV - - 44
----
0

skipif mysql # not compatible
query I rowsort label-3089
SELECT + 15 / - - 44
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3090
SELECT + CAST( 83 AS SIGNED ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-3090
SELECT + CAST ( 83 AS INTEGER ) AS col2
----
83

query I rowsort
SELECT ALL + 25
----
25

query I rowsort
SELECT DISTINCT + 32
----
32

query I rowsort
SELECT ALL + 20 + - 70 * - 20 * + 64 * 67
----
6003220

onlyif mysql # aggregate syntax: 
query I rowsort label-3094
SELECT DISTINCT + COUNT( ALL - 24 )
----
1

skipif mysql # not compatible
query I rowsort label-3094
SELECT DISTINCT + COUNT ( ALL - 24 )
----
1

query I rowsort
SELECT ALL + 5 - 99
----
-94

query I rowsort
SELECT - + 84
----
-84

query I rowsort
SELECT - 69
----
-69

query I rowsort
SELECT ALL + 43
----
43

query I rowsort
SELECT DISTINCT 3 AS col1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3100
SELECT SUM( 66 ) + - 47 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3100
SELECT SUM ( 66 ) + - 47 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT DISTINCT 64, - 30 AS col0
----
64
-30

query I rowsort
SELECT 74 - - - 34
----
40

query I rowsort
SELECT DISTINCT - ( - 57 ) AS col0
----
57

query I rowsort
SELECT ALL - 19 AS col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-3105
SELECT 90 * + COUNT( * ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-3105
SELECT 90 * + COUNT ( * ) AS col2
----
90

query I rowsort
SELECT DISTINCT 20 * - ( - - 2 )
----
-40

query I rowsort
SELECT + 37
----
37

query I rowsort
SELECT 63
----
63

query I rowsort
SELECT ALL - ( - 74 ) col0
----
74

query I rowsort
SELECT 30 AS col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3111
SELECT 94 + COUNT( * ) col0
----
95

skipif mysql # not compatible
query I rowsort label-3111
SELECT 94 + COUNT ( * ) col0
----
95

query I rowsort
SELECT DISTINCT 22
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-3113
SELECT ALL COALESCE ( + 7, 97 * + - 14 ) AS col1, COUNT( * )
----
7
1

skipif mysql # not compatible
query II rowsort label-3113
SELECT ALL COALESCE ( + 7, 97 * + - 14 ) AS col1, COUNT ( * )
----
7
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3114
SELECT ALL + MIN( 47 )
----
47

skipif mysql # not compatible
query I rowsort label-3114
SELECT ALL + MIN ( 47 )
----
47

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3115
SELECT DISTINCT - 18 * - 34 + + + ( + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3115
SELECT DISTINCT - 18 * - 34 + + + ( + CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3116
SELECT + + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3116
SELECT + + COUNT ( * ) AS col2
----
1

query I rowsort
SELECT DISTINCT + 9
----
9

query I rowsort
SELECT ALL + + 26 AS col1
----
26

query I rowsort
SELECT DISTINCT 98 col0
----
98

query I rowsort
SELECT + 87
----
87

query I rowsort
SELECT DISTINCT + 98 + + + 18 AS col2
----
116

query I rowsort
SELECT - ( 7 ) AS col2
----
-7

query I rowsort
SELECT - 55 + - 53
----
-108

query I rowsort
SELECT - 34
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3125
SELECT - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3125
SELECT - CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT ALL + 70
----
70

query I rowsort
SELECT ALL + 54 AS col2
----
54

query I rowsort
SELECT + 56
----
56

query I rowsort
SELECT 86
----
86

query I rowsort
SELECT ALL + 95 AS col1
----
95

query I rowsort
SELECT ALL + + 33
----
33

query I rowsort
SELECT ALL 50 + - ( - 55 ) AS col2
----
105

query I rowsort
SELECT DISTINCT 61 + - + 63 + 40 AS col1
----
38

query I rowsort
SELECT ALL - 89
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-3135
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3135
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) AS col0
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3136
SELECT - 71 * - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3136
SELECT - 71 * - - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL - + 99 + 94
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3138
SELECT ALL - CAST( - ( - COUNT( * ) ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-3138
SELECT ALL - CAST ( - ( - COUNT ( * ) ) AS INTEGER )
----
-1

query I rowsort
SELECT DISTINCT 70 AS col2
----
70

query I rowsort
SELECT DISTINCT 30
----
30

query I rowsort
SELECT DISTINCT 81 AS col0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3142
SELECT + CAST( ( - - 8 ) AS SIGNED ) + + 77 AS col1
----
85

skipif mysql # not compatible
query I rowsort label-3142
SELECT + CAST ( ( - - 8 ) AS INTEGER ) + + 77 AS col1
----
85

query I rowsort
SELECT + - 43 AS col1
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3144
SELECT DISTINCT - SUM( - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3144
SELECT DISTINCT - SUM ( - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3145
SELECT CAST( NULL AS SIGNED ) / + - COUNT( * ) + + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-3145
SELECT CAST ( NULL AS INTEGER ) / + - COUNT ( * ) + + 67
----
NULL

query I rowsort
SELECT 31 AS col1
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-3147
SELECT ALL COUNT( * ) AS col0, ( - 15 )
----
1
-15

skipif mysql # not compatible
query II rowsort label-3147
SELECT ALL COUNT ( * ) AS col0, ( - 15 )
----
1
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3148
SELECT ALL ( + - COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3148
SELECT ALL ( + - COUNT ( * ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3149
SELECT ALL SUM( - 75 ) AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-3149
SELECT ALL SUM ( - 75 ) AS col2
----
-75

query I rowsort
SELECT ALL + 70 AS col2
----
70

query I rowsort
SELECT - 0 AS col0
----
0

query I rowsort
SELECT ALL 50 * + - 62 AS col1
----
-3100

query I rowsort
SELECT + - 29 AS col0
----
-29

query I rowsort
SELECT ALL + 19 AS col1
----
19

query I rowsort
SELECT DISTINCT + 9 * + 89 AS col2
----
801

query I rowsort
SELECT ALL 37 * - - 25
----
925

query I rowsort
SELECT - 40 AS col2
----
-40

query I rowsort
SELECT ALL ( + + 47 ) AS col0
----
47

query I rowsort
SELECT - + 49 AS col2
----
-49

query I rowsort
SELECT 88 AS col2
----
88

query I rowsort
SELECT ALL 29 AS col2
----
29

query I rowsort
SELECT + + 98 AS col2
----
98

query I rowsort
SELECT + 91
----
91

query I rowsort
SELECT 5 AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3165
SELECT DISTINCT COUNT( * ) * COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-3165
SELECT DISTINCT COUNT ( * ) * COUNT ( * )
----
1

query I rowsort
SELECT DISTINCT - 57
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-3167
SELECT ALL 60 + + COUNT( * ) col1
----
61

skipif mysql # not compatible
query I rowsort label-3167
SELECT ALL 60 + + COUNT ( * ) col1
----
61

query I rowsort
SELECT ALL + 60 * - ( 53 )
----
-3180

query I rowsort
SELECT 20 * + ( + - 87 ) + - 51 col0
----
-1791

query I rowsort
SELECT ALL 1 AS col1
----
1

query I rowsort
SELECT - 12 AS col1
----
-12

query I rowsort
SELECT DISTINCT - 10 AS col2
----
-10

query I rowsort
SELECT 4 col0
----
4

query I rowsort
SELECT ALL - ( 87 )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-3175
SELECT DISTINCT + COUNT( * ) + + COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-3175
SELECT DISTINCT + COUNT ( * ) + + COUNT ( * ) AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3176
SELECT DISTINCT - MIN( ALL + 23 )
----
-23

skipif mysql # not compatible
query I rowsort label-3176
SELECT DISTINCT - MIN ( ALL + 23 )
----
-23

query I rowsort
SELECT + 38 AS col2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3178
SELECT DISTINCT COUNT( * ) col0
----
1

skipif mysql # not compatible
query I rowsort label-3178
SELECT DISTINCT COUNT ( * ) col0
----
1

query I rowsort
SELECT 71 AS col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3180
SELECT ALL + SUM( ALL + 95 ) AS col2
----
95

skipif mysql # not compatible
query I rowsort label-3180
SELECT ALL + SUM ( ALL + 95 ) AS col2
----
95

query I rowsort
SELECT - + 22 AS col1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-3182
SELECT + COUNT( - 71 ) + - - 22 - 77 col1
----
-54

skipif mysql # not compatible
query I rowsort label-3182
SELECT + COUNT ( - 71 ) + - - 22 - 77 col1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-3183
SELECT + COUNT( * ) col0
----
1

skipif mysql # not compatible
query I rowsort label-3183
SELECT + COUNT ( * ) col0
----
1

query I rowsort
SELECT - + 12 AS col2
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3185
SELECT ALL - CAST( + COUNT( * ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-3185
SELECT ALL - CAST ( + COUNT ( * ) AS INTEGER )
----
-1

query I rowsort
SELECT 3 AS col1
----
3

query I rowsort
SELECT ALL + 69
----
69

query I rowsort
SELECT ALL + 14
----
14

query I rowsort
SELECT + 36 AS col0
----
36

query I rowsort
SELECT - 60 * - - 33
----
-1980

onlyif mysql # aggregate syntax: 
query I rowsort label-3191
SELECT - COUNT( * ) + - MAX( ALL - 64 ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-3191
SELECT - COUNT ( * ) + - MAX ( ALL - 64 ) AS col1
----
63

query I rowsort
SELECT - 7 + - 7
----
-14

query I rowsort
SELECT ALL - 60 col2
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-3194
SELECT ALL - 85 DIV + 37
----
-2

skipif mysql # not compatible
query I rowsort label-3194
SELECT ALL - 85 / + 37
----
-2

query I rowsort
SELECT - + 75
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3196
SELECT + CAST( + COUNT( * ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3196
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3197
SELECT CAST( + 3 AS SIGNED ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-3197
SELECT CAST ( + 3 AS INTEGER ) AS col0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3198
SELECT ALL + COUNT( * ) AS col2, 32 AS col0
----
1
32

skipif mysql # not compatible
query II rowsort label-3198
SELECT ALL + COUNT ( * ) AS col2, 32 AS col0
----
1
32

query I rowsort
SELECT ALL + 62 AS col2
----
62

query I rowsort
SELECT - - 67
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3201
SELECT - - COUNT( - 38 )
----
1

skipif mysql # not compatible
query I rowsort label-3201
SELECT - - COUNT ( - 38 )
----
1

query I rowsort
SELECT 57 AS col0
----
57

query I rowsort
SELECT + ( 44 ) - - - 55 col1
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-3204
SELECT + 66 * 48 AS col0, + COUNT( 21 ) - - + COUNT( * )
----
3168
2

skipif mysql # not compatible
query II rowsort label-3204
SELECT + 66 * 48 AS col0, + COUNT ( 21 ) - - + COUNT ( * )
----
3168
2

query I rowsort
SELECT - 93 AS col0
----
-93

query I rowsort
SELECT - 12 AS col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-3207
SELECT 61 * COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-3207
SELECT 61 * COUNT ( * )
----
61

query I rowsort
SELECT ALL 2 AS col1
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3209
SELECT ALL - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3209
SELECT ALL - CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT ALL - 97 AS col0
----
-97

query I rowsort
SELECT ALL + ( - - 42 ) AS col1
----
42

query I rowsort
SELECT + 44 AS col2
----
44

query I rowsort
SELECT + 55 AS col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-3214
SELECT ALL COUNT( * ) * + 8 + 89 AS col1
----
97

skipif mysql # not compatible
query I rowsort label-3214
SELECT ALL COUNT ( * ) * + 8 + 89 AS col1
----
97

query I rowsort
SELECT ALL + 74 AS col0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3216
SELECT MAX( + 92 )
----
92

skipif mysql # not compatible
query I rowsort label-3216
SELECT MAX ( + 92 )
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3217
SELECT - CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) - - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3217
SELECT - CAST ( CAST ( NULL AS INTEGER ) AS REAL ) - - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT 58
----
58

query I rowsort
SELECT ALL 12 AS col0
----
12

query I rowsort
SELECT - 14 * 22 AS col0
----
-308

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3221
SELECT - CAST( 44 AS SIGNED ) AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-3221
SELECT - CAST ( 44 AS INTEGER ) AS col1
----
-44

query I rowsort
SELECT ALL 77 col2
----
77

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3223
SELECT CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3223
SELECT CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3224
SELECT ALL COUNT( * ) DIV - 48 + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-3224
SELECT ALL COUNT ( * ) / - 48 + COUNT ( * )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3225
SELECT - CAST( NULL AS SIGNED ) + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3225
SELECT - CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + + 45 AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3227
SELECT - 84 + COUNT( * ) * COUNT( * ) col0
----
-83

skipif mysql # not compatible
query I rowsort label-3227
SELECT - 84 + COUNT ( * ) * COUNT ( * ) col0
----
-83

query I rowsort
SELECT - 24 * 26 AS col1
----
-624

query I rowsort
SELECT + + 67 AS col0
----
67

query I rowsort
SELECT - + 75 AS col1
----
-75

query I rowsort
SELECT 60 AS col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3232
SELECT DISTINCT MAX( + 75 ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-3232
SELECT DISTINCT MAX ( + 75 ) AS col0
----
75

query I rowsort
SELECT + 78 AS col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3234
SELECT ALL - + COUNT( * ) * - - 1 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3234
SELECT ALL - + COUNT ( * ) * - - 1 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3235
SELECT + + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3235
SELECT + + COUNT ( * ) AS col0
----
1

query I rowsort
SELECT 79 AS col1
----
79

query I rowsort
SELECT ALL - 54 AS col1
----
-54

query I rowsort
SELECT DISTINCT - + 36
----
-36

query I rowsort
SELECT ALL - 56
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-3240
SELECT 69 * - COUNT( * )
----
-69

skipif mysql # not compatible
query I rowsort label-3240
SELECT 69 * - COUNT ( * )
----
-69

query I rowsort
SELECT - 29 AS col2
----
-29

query I rowsort
SELECT - 87
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-3243
SELECT COUNT( * ) - + 17
----
-16

skipif mysql # not compatible
query I rowsort label-3243
SELECT COUNT ( * ) - + 17
----
-16

query I rowsort
SELECT - 40 col0
----
-40

query I rowsort
SELECT - 95 col0
----
-95

query I rowsort
SELECT ALL - + 83
----
-83

query I rowsort
SELECT 63 AS col0
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3248
SELECT - NULLIF ( 79, + 84 ) + - CAST( 85 AS SIGNED )
----
-164

skipif mysql # not compatible
query I rowsort label-3248
SELECT - NULLIF ( 79, + 84 ) + - CAST ( 85 AS INTEGER )
----
-164

query I rowsort
SELECT + 48 AS col0
----
48

query I rowsort
SELECT ALL - - 75
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3251
SELECT DISTINCT NULLIF ( COUNT( * ), - 98 )
----
1

skipif mysql # not compatible
query I rowsort label-3251
SELECT DISTINCT NULLIF ( COUNT ( * ), - 98 )
----
1

query I rowsort
SELECT 36 AS col0
----
36

query I rowsort
SELECT ALL + 58 * + - 50
----
-2900

query I rowsort
SELECT - 96 AS col1
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3255
SELECT - AVG ( DISTINCT - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3255
SELECT - AVG ( DISTINCT - + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3256
SELECT SUM( ALL + + 48 ) AS col0
----
48

skipif mysql # not compatible
query I rowsort label-3256
SELECT SUM ( ALL + + 48 ) AS col0
----
48

query I rowsort
SELECT ALL ( - ( - 12 ) )
----
12

query I rowsort
SELECT ALL + ( - - 96 ) col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3259
SELECT ALL - 47 * COUNT( * ) AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-3259
SELECT ALL - 47 * COUNT ( * ) AS col2
----
-47

query I rowsort
SELECT DISTINCT + 6 AS col2
----
6

query I rowsort
SELECT ALL + - 48
----
-48

query I rowsort
SELECT + ( - 93 )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3263
SELECT DISTINCT - 4 * + - COUNT( * ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-3263
SELECT DISTINCT - 4 * + - COUNT ( * ) AS col0
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3264
SELECT 87 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3264
SELECT 87 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3265
SELECT 93 + - COUNT( * ) + + SUM( DISTINCT - + 34 ) * + COUNT( DISTINCT 70 ) * - 16 AS col0
----
636

skipif mysql # not compatible
query I rowsort label-3265
SELECT 93 + - COUNT ( * ) + + SUM ( DISTINCT - + 34 ) * + COUNT ( DISTINCT 70 ) * - 16 AS col0
----
636

onlyif mysql # aggregate syntax: 
query I rowsort label-3266
SELECT ( - + COUNT( * ) ) - + 9
----
-10

skipif mysql # not compatible
query I rowsort label-3266
SELECT ( - + COUNT ( * ) ) - + 9
----
-10

query I rowsort
SELECT ALL 32 col0
----
32

query I rowsort
SELECT ALL - 77 col2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3269
SELECT ( + 31 ) + - - COUNT( * ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-3269
SELECT ( + 31 ) + - - COUNT ( * ) AS col0
----
32

query I rowsort
SELECT DISTINCT - 35
----
-35

query I rowsort
SELECT ALL - 42 AS col0
----
-42

query I rowsort
SELECT DISTINCT - 80
----
-80

query I rowsort
SELECT 32 * 6 AS col1
----
192

query I rowsort
SELECT ALL 24 * 75 AS col1
----
1800

query I rowsort
SELECT ALL - 12
----
-12

query I rowsort
SELECT ALL 34
----
34

query I rowsort
SELECT + 96 col0
----
96

query I rowsort
SELECT ALL + + 19 col2
----
19

query I rowsort
SELECT ALL + 58
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3280
SELECT + MIN( ALL + - 60 )
----
-60

skipif mysql # not compatible
query I rowsort label-3280
SELECT + MIN ( ALL + - 60 )
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-3281
SELECT ALL + 52 DIV 46 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3281
SELECT ALL + 52 / 46 AS col0
----
1

query I rowsort
SELECT - ( + 99 )
----
-99

query I rowsort
SELECT + 13 - - 70
----
83

query I rowsort
SELECT ALL + 76
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3285
SELECT ALL - - COUNT( * ) DIV - 53 + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-3285
SELECT ALL - - COUNT ( * ) / - 53 + - COUNT ( * )
----
-1

query I rowsort
SELECT - - 11 AS col1
----
11

query I rowsort
SELECT ALL 79 col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3288
SELECT - 57 + + COUNT( * ) AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-3288
SELECT - 57 + + COUNT ( * ) AS col1
----
-56

query I rowsort
SELECT - 31 * - 17 * - 99 AS col0
----
-52173

query I rowsort
SELECT - - 59 AS col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3291
SELECT ALL 1 * + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3291
SELECT ALL 1 * + COUNT ( * ) AS col2
----
1

query I rowsort
SELECT 54
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3293
SELECT DISTINCT - 86 * + COUNT( * )
----
-86

skipif mysql # not compatible
query I rowsort label-3293
SELECT DISTINCT - 86 * + COUNT ( * )
----
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3294
SELECT ( + - CAST( 97 AS SIGNED ) ) + - 53 col2
----
-150

skipif mysql # not compatible
query I rowsort label-3294
SELECT ( + - CAST ( 97 AS INTEGER ) ) + - 53 col2
----
-150

query I rowsort
SELECT + 89
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3296
SELECT ALL COUNT( * ) + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-3296
SELECT ALL COUNT ( * ) + + COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3297
SELECT ALL - ( + COUNT( * ) ) * 20
----
-20

skipif mysql # not compatible
query I rowsort label-3297
SELECT ALL - ( + COUNT ( * ) ) * 20
----
-20

query I rowsort
SELECT DISTINCT + 31 AS col2
----
31

query I rowsort
SELECT ALL - 38 col0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-3300
SELECT ALL COUNT( - 77 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3300
SELECT ALL COUNT ( - 77 ) AS col0
----
1

query I rowsort
SELECT COALESCE ( + 81, 96 ) AS col1
----
81

query I rowsort
SELECT ALL - ( 36 )
----
-36

query I rowsort
SELECT + - 2
----
-2

query II rowsort
SELECT ALL + + 3 AS col2, + 51 col0
----
3
51

query I rowsort
SELECT DISTINCT 98 AS col0
----
98

query I rowsort
SELECT - - 74 AS col0
----
74

query I rowsort
SELECT 74 col1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3308
SELECT - 20 * + MAX( DISTINCT + - 82 )
----
1640

skipif mysql # not compatible
query I rowsort label-3308
SELECT - 20 * + MAX ( DISTINCT + - 82 )
----
1640

query I rowsort
SELECT - 84 - 53 col1
----
-137

query I rowsort
SELECT DISTINCT NULLIF ( + 89, + + 77 * - 73 ) AS col1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3311
SELECT - ( - + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-3311
SELECT - ( - + COUNT ( * ) )
----
1

query I rowsort
SELECT ALL - 78 + - 55 AS col1
----
-133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3313
SELECT - 77 + - COUNT( * ) + - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3313
SELECT - 77 + - COUNT ( * ) + - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + 93 AS col0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3315
SELECT ALL COUNT( * ) * - COUNT( * ) * + 86 + + 87
----
1

skipif mysql # not compatible
query I rowsort label-3315
SELECT ALL COUNT ( * ) * - COUNT ( * ) * + 86 + + 87
----
1

query I rowsort
SELECT ALL 50 col0
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3317
SELECT + 96 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3317
SELECT + 96 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 73 AS col0
----
73

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3319
SELECT CAST( NULL AS DECIMAL ) * - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3319
SELECT CAST ( NULL AS REAL ) * - COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 27 AS col2
----
-27

query I rowsort
SELECT DISTINCT - 6 AS col2
----
-6

query I rowsort
SELECT ALL + - 94 * 67 AS col2
----
-6298

onlyif mysql # aggregate syntax: 
query I rowsort label-3323
SELECT COALESCE ( 57, + - 22, - COUNT( * ) )
----
57

skipif mysql # not compatible
query I rowsort label-3323
SELECT COALESCE ( 57, + - 22, - COUNT ( * ) )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3324
SELECT ALL - MIN( DISTINCT - 28 ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-3324
SELECT ALL - MIN ( DISTINCT - 28 ) AS col1
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3325
SELECT DISTINCT - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3325
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3326
SELECT - NULLIF ( + COUNT( * ), 48 * - CAST( NULL AS SIGNED ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3326
SELECT - NULLIF ( + COUNT ( * ), 48 * - CAST ( NULL AS INTEGER ) ) AS col1
----
-1

query I rowsort
SELECT ALL 48 col1
----
48

query I rowsort
SELECT - 70 col0
----
-70

query I rowsort
SELECT DISTINCT 30 AS col0
----
30

query I rowsort
SELECT ALL 82 AS col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3331
SELECT DISTINCT + 41 * COUNT( - - 57 ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-3331
SELECT DISTINCT + 41 * COUNT ( - - 57 ) AS col1
----
41

query I rowsort
SELECT DISTINCT - + 40 col2
----
-40

query I rowsort
SELECT DISTINCT - + 54 col2
----
-54

query I rowsort
SELECT + + 74 AS col0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3335
SELECT ALL - + COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3335
SELECT ALL - + COUNT ( * ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3336
SELECT ( + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-3336
SELECT ( + COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3337
SELECT ALL - 55 * - COUNT( * ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-3337
SELECT ALL - 55 * - COUNT ( * ) AS col2
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-3338
SELECT 3 AS col1, - MAX( 1 ) + - 25
----
3
-26

skipif mysql # not compatible
query II rowsort label-3338
SELECT 3 AS col1, - MAX ( 1 ) + - 25
----
3
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-3339
SELECT DISTINCT COUNT( - + 33 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3339
SELECT DISTINCT COUNT ( - + 33 ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3340
SELECT + CAST( NULL AS SIGNED ) * - 70
----
NULL

skipif mysql # not compatible
query I rowsort label-3340
SELECT + CAST ( NULL AS INTEGER ) * - 70
----
NULL

query I rowsort
SELECT - - 71 AS col2
----
71

query I rowsort
SELECT DISTINCT + 73 AS col1
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-3343
SELECT + 94 DIV + + 2 AS col0
----
47

skipif mysql # not compatible
query I rowsort label-3343
SELECT + 94 / + + 2 AS col0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3344
SELECT - COUNT( * ) * 26
----
-26

skipif mysql # not compatible
query I rowsort label-3344
SELECT - COUNT ( * ) * 26
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-3345
SELECT COUNT( + 72 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3345
SELECT COUNT ( + 72 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3346
SELECT ALL + ( + - COUNT( * ) ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3346
SELECT ALL + ( + - COUNT ( * ) ) * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - 18
----
-18

query I rowsort
SELECT DISTINCT - 8 AS col2
----
-8

query I rowsort
SELECT ALL 6 + 52 AS col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3350
SELECT SUM( 31 ) * - 40
----
-1240

skipif mysql # not compatible
query I rowsort label-3350
SELECT SUM ( 31 ) * - 40
----
-1240

onlyif mysql # aggregate syntax: 
query I rowsort label-3351
SELECT ALL + COUNT( * ) * COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-3351
SELECT ALL + COUNT ( * ) * COUNT ( * )
----
1

query I rowsort
SELECT DISTINCT - 75 AS col1
----
-75

query I rowsort
SELECT + 12 AS col1
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3354
SELECT ALL + CAST( + + 59 AS SIGNED ) * - 34 * 22
----
-44132

skipif mysql # not compatible
query I rowsort label-3354
SELECT ALL + CAST ( + + 59 AS INTEGER ) * - 34 * 22
----
-44132

onlyif mysql # aggregate syntax: 
query I rowsort label-3355
SELECT 60 * + COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-3355
SELECT 60 * + COUNT ( * )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3356
SELECT - 34 * + COUNT( * ) * CASE + ( - 31 ) WHEN 23 THEN + + 51 * + 13 END + COUNT( * ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3356
SELECT - 34 * + COUNT ( * ) * CASE + ( - 31 ) WHEN 23 THEN + + 51 * + 13 END + COUNT ( * ) + COUNT ( * )
----
NULL

query I rowsort
SELECT 57 AS col2
----
57

query I rowsort
SELECT 50 * + 1 AS col0
----
50

query I rowsort
SELECT DISTINCT 84 * - 1
----
-84

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3360
SELECT 30, CAST( NULL AS DECIMAL ) AS col2
----
30
NULL

skipif mysql # not compatible
query II rowsort label-3360
SELECT 30, CAST ( NULL AS REAL ) AS col2
----
30
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3361
SELECT + 22 AS col1, CAST( NULL AS SIGNED ) * - 3 AS col0
----
22
NULL

skipif mysql # not compatible
query II rowsort label-3361
SELECT + 22 AS col1, CAST ( NULL AS INTEGER ) * - 3 AS col0
----
22
NULL

query I rowsort
SELECT + 76 col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3363
SELECT ALL 83 * + + COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-3363
SELECT ALL 83 * + + COUNT ( * )
----
83

query I rowsort
SELECT + 32 AS col2
----
32

query II rowsort
SELECT - 87 AS col2, 16 AS col1
----
-87
16

query I rowsort
SELECT - + 61 AS col0
----
-61

query I rowsort
SELECT ALL + 5
----
5

query I rowsort
SELECT ALL 64 AS col1
----
64

query I rowsort
SELECT - + 43 AS col1
----
-43

query I rowsort
SELECT DISTINCT - 47 * - - 15 * 51 AS col0
----
-35955

query I rowsort
SELECT + 20 col2
----
20

query I rowsort
SELECT ALL + 30 AS col0
----
30

query I rowsort
SELECT DISTINCT + 43
----
43

query I rowsort
SELECT ALL + 20
----
20

query I rowsort
SELECT - - ( 4 ) AS col0
----
4

query I rowsort
SELECT - - 45 - - 6
----
51

query I rowsort
SELECT ALL - 14 AS col1
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3378
SELECT CAST( + COUNT( ALL - 88 ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-3378
SELECT CAST ( + COUNT ( ALL - 88 ) AS INTEGER )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3379
SELECT CAST( - + 52 AS SIGNED )
----
-52

skipif mysql # not compatible
query I rowsort label-3379
SELECT CAST ( - + 52 AS INTEGER )
----
-52

query I rowsort
SELECT DISTINCT + 7
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3381
SELECT + CAST( - 72 AS SIGNED )
----
-72

skipif mysql # not compatible
query I rowsort label-3381
SELECT + CAST ( - 72 AS INTEGER )
----
-72

query I rowsort
SELECT ALL 4 col1
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3383
SELECT ALL + 5 + - CAST( - - COUNT( * ) AS SIGNED )
----
4

skipif mysql # not compatible
query I rowsort label-3383
SELECT ALL + 5 + - CAST ( - - COUNT ( * ) AS INTEGER )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3384
SELECT ALL COUNT( * ) + + 13 AS col2
----
14

skipif mysql # not compatible
query I rowsort label-3384
SELECT ALL COUNT ( * ) + + 13 AS col2
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3385
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - COUNT( * ) * + 75 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3385
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - COUNT ( * ) * + 75 AS col1
----
NULL

query I rowsort
SELECT ALL - 40 AS col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-3387
SELECT ALL - MAX( DISTINCT + 72 ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-3387
SELECT ALL - MAX ( DISTINCT + 72 ) AS col2
----
-72

query I rowsort
SELECT + 30
----
30

query I rowsort
SELECT ALL - 55 AS col0
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-3390
SELECT 95 DIV + 33 col2
----
2

skipif mysql # not compatible
query I rowsort label-3390
SELECT 95 / + 33 col2
----
2

query I rowsort
SELECT - ( - 16 ) AS col1
----
16

query I rowsort
SELECT DISTINCT 43
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-3393
SELECT 75 * - COUNT( * ) AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-3393
SELECT 75 * - COUNT ( * ) AS col2
----
-75

query I rowsort
SELECT ALL - + 74
----
-74

query I rowsort
SELECT + 76 AS col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3396
SELECT DISTINCT + - COUNT( ALL 62 )
----
-1

skipif mysql # not compatible
query I rowsort label-3396
SELECT DISTINCT + - COUNT ( ALL 62 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3397
SELECT 60 * - 68 + - COUNT( * ) AS col2
----
-4081

skipif mysql # not compatible
query I rowsort label-3397
SELECT 60 * - 68 + - COUNT ( * ) AS col2
----
-4081

query I rowsort
SELECT + - 41 AS col0
----
-41

query I rowsort
SELECT + + 84 AS col1
----
84

query I rowsort
SELECT + 78 col0
----
78

query I rowsort
SELECT ALL + 66 AS col2
----
66

query I rowsort
SELECT 98 col0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3403
SELECT ALL MAX( - 23 ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-3403
SELECT ALL MAX ( - 23 ) AS col1
----
-23

query I rowsort
SELECT DISTINCT + + 46
----
46

query I rowsort
SELECT + - 73 * + 46
----
-3358

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3406
SELECT + - SUM( CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3406
SELECT + - SUM ( CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 53 AS col1
----
53

query I rowsort
SELECT ALL 39
----
39

query I rowsort
SELECT ALL 90
----
90

query I rowsort
SELECT 56 col0
----
56

query I rowsort
SELECT 7 AS col1
----
7

query I rowsort
SELECT 13 AS col1
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-3413
SELECT ALL + 81 + - - COUNT( * ), - COUNT( * ) AS col0
----
82
-1

skipif mysql # not compatible
query II rowsort label-3413
SELECT ALL + 81 + - - COUNT ( * ), - COUNT ( * ) AS col0
----
82
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3414
SELECT + - MAX( 16 ) col1
----
-16

skipif mysql # not compatible
query I rowsort label-3414
SELECT + - MAX ( 16 ) col1
----
-16

query I rowsort
SELECT ( 78 ) AS col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3416
SELECT MIN( DISTINCT 52 ) - - + COUNT( * ) + + + ( - - 86 ) * - - 26
----
2289

skipif mysql # not compatible
query I rowsort label-3416
SELECT MIN ( DISTINCT 52 ) - - + COUNT ( * ) + + + ( - - 86 ) * - - 26
----
2289

query I rowsort
SELECT 84 + + 77
----
161

onlyif mysql # aggregate syntax: 
query I rowsort label-3418
SELECT COUNT( * ) + + 48
----
49

skipif mysql # not compatible
query I rowsort label-3418
SELECT COUNT ( * ) + + 48
----
49

query I rowsort
SELECT ALL + 49 + + 75 AS col0
----
124

onlyif mysql # DIV for integer division: 
query I rowsort label-3420
SELECT 3 DIV - - 72 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3420
SELECT 3 / - - 72 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3421
SELECT ALL 43 + - - COUNT( * )
----
44

skipif mysql # not compatible
query I rowsort label-3421
SELECT ALL 43 + - - COUNT ( * )
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3422
SELECT DISTINCT 70 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3422
SELECT DISTINCT 70 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 69 AS col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3424
SELECT - 45 * - 4 + + COUNT( * ) AS col0
----
181

skipif mysql # not compatible
query I rowsort label-3424
SELECT - 45 * - 4 + + COUNT ( * ) AS col0
----
181

onlyif mysql # aggregate syntax: 
query I rowsort label-3425
SELECT + + COUNT( * ) col1
----
1

skipif mysql # not compatible
query I rowsort label-3425
SELECT + + COUNT ( * ) col1
----
1

query I rowsort
SELECT + 3 AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3427
SELECT ALL - MAX( DISTINCT - 61 )
----
61

skipif mysql # not compatible
query I rowsort label-3427
SELECT ALL - MAX ( DISTINCT - 61 )
----
61

query I rowsort
SELECT DISTINCT - - 77 AS col0
----
77

query I rowsort
SELECT DISTINCT - 98 * - 72 AS col2
----
7056

query I rowsort
SELECT 3 col2
----
3

query II rowsort
SELECT + 2, - ( - + 57 ) AS col2
----
2
57

onlyif mysql # DIV for integer division: 
query I rowsort label-3432
SELECT 13 DIV 2
----
6

skipif mysql # not compatible
query I rowsort label-3432
SELECT 13 / 2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3433
SELECT DISTINCT + COUNT( * ) + 80 AS col2
----
81

skipif mysql # not compatible
query I rowsort label-3433
SELECT DISTINCT + COUNT ( * ) + 80 AS col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3434
SELECT - MAX( DISTINCT - + 81 ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-3434
SELECT - MAX ( DISTINCT - + 81 ) AS col1
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-3435
SELECT ALL 79 AS col2, SUM( - 33 ) - + 85 AS col1
----
79
-118

skipif mysql # not compatible
query II rowsort label-3435
SELECT ALL 79 AS col2, SUM ( - 33 ) - + 85 AS col1
----
79
-118

query I rowsort
SELECT - - 38 AS col0
----
38

query I rowsort
SELECT - 58 + + 99 AS col1
----
41

query I rowsort
SELECT + 0
----
0

query I rowsort
SELECT DISTINCT + 45 AS col2
----
45

query I rowsort
SELECT ALL + 89
----
89

query I rowsort
SELECT DISTINCT + 30
----
30

query I rowsort
SELECT DISTINCT + + 15
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3443
SELECT + COALESCE ( + COUNT( * ), 73 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-3443
SELECT + COALESCE ( + COUNT ( * ), 73 ) col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3444
SELECT CAST( 74 AS SIGNED )
----
74

skipif mysql # not compatible
query I rowsort label-3444
SELECT CAST ( 74 AS INTEGER )
----
74

query I rowsort
SELECT DISTINCT + 96
----
96

query I rowsort
SELECT - - 60 AS col2
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3447
SELECT ALL - CAST( 17 AS SIGNED ) AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-3447
SELECT ALL - CAST ( 17 AS INTEGER ) AS col0
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3448
SELECT DISTINCT - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3448
SELECT DISTINCT - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3449
SELECT ALL + SUM( ALL 81 ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-3449
SELECT ALL + SUM ( ALL 81 ) AS col1
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3450
SELECT ALL CAST( NULL AS SIGNED ) + + ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3450
SELECT ALL CAST ( NULL AS INTEGER ) + + ( - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT 48 AS col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3452
SELECT 48 * COUNT( * )
----
48

skipif mysql # not compatible
query I rowsort label-3452
SELECT 48 * COUNT ( * )
----
48

query I rowsort
SELECT - - 6 col1
----
6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3454
SELECT + NULLIF ( - CAST( NULL AS DECIMAL ), + 2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3454
SELECT + NULLIF ( - CAST ( NULL AS REAL ), + 2 )
----
NULL

query I rowsort
SELECT - 99 AS col1
----
-99

query I rowsort
SELECT ALL 61 AS col1
----
61

query I rowsort
SELECT 22 col2
----
22

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3458
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * - COUNT( * ) * - 51 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3458
SELECT DISTINCT - CAST ( NULL AS REAL ) * - COUNT ( * ) * - 51 AS col0
----
NULL

query I rowsort
SELECT ALL - 27 * + 92 AS col2
----
-2484

query I rowsort
SELECT ALL + 41
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3461
SELECT DISTINCT - + 75 + COUNT( * ) AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-3461
SELECT DISTINCT - + 75 + COUNT ( * ) AS col2
----
-74

query I rowsort
SELECT - + 33
----
-33

query I rowsort
SELECT - + 23 AS col2
----
-23

query I rowsort
SELECT 56 col1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3465
SELECT ALL 96 * COUNT( * ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-3465
SELECT ALL 96 * COUNT ( * ) AS col0
----
96

query I rowsort
SELECT - 60 * 4
----
-240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3467
SELECT CAST( MIN( 83 ) AS SIGNED ) col2
----
83

skipif mysql # not compatible
query I rowsort label-3467
SELECT CAST ( MIN ( 83 ) AS INTEGER ) col2
----
83

query I rowsort
SELECT ( - + 61 ) AS col1
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-3469
SELECT DISTINCT + COUNT( * ) AS col2, 61
----
1
61

skipif mysql # not compatible
query II rowsort label-3469
SELECT DISTINCT + COUNT ( * ) AS col2, 61
----
1
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3470
SELECT ALL + CASE - 88 WHEN COUNT( * ) THEN + - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3470
SELECT ALL + CASE - 88 WHEN COUNT ( * ) THEN + - COUNT ( * ) END
----
NULL

query I rowsort
SELECT DISTINCT + 68 col1
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3472
SELECT COUNT( * ) DIV - - 26 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3472
SELECT COUNT ( * ) / - - 26 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3473
SELECT COUNT( * ) * - 8
----
-8

skipif mysql # not compatible
query I rowsort label-3473
SELECT COUNT ( * ) * - 8
----
-8

query I rowsort
SELECT DISTINCT - + 58 AS col0
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-3475
SELECT DISTINCT + + 87 DIV + + 74
----
1

skipif mysql # not compatible
query I rowsort label-3475
SELECT DISTINCT + + 87 / + + 74
----
1

query I rowsort
SELECT + + 6
----
6

query I rowsort
SELECT ALL - + 39
----
-39

query I rowsort
SELECT ALL + 44
----
44

query I rowsort
SELECT - 97
----
-97

query I rowsort
SELECT - - 78 col0
----
78

query I rowsort
SELECT ALL 37 AS col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3482
SELECT + COUNT( + 50 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3482
SELECT + COUNT ( + 50 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3483
SELECT ALL COUNT( * ) * + + ( - + 31 ) + - COUNT( * ) * + 24 * + 2 AS col0, ( + 69 ) AS col2
----
-79
69

skipif mysql # not compatible
query II rowsort label-3483
SELECT ALL COUNT ( * ) * + + ( - + 31 ) + - COUNT ( * ) * + 24 * + 2 AS col0, ( + 69 ) AS col2
----
-79
69

query I rowsort
SELECT ALL - 92
----
-92

query I rowsort
SELECT DISTINCT - 5 AS col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3486
SELECT + ( + + COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3486
SELECT + ( + + COUNT ( * ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3487
SELECT ALL COUNT( * ) * + 55
----
55

skipif mysql # not compatible
query I rowsort label-3487
SELECT ALL COUNT ( * ) * + 55
----
55

query I rowsort
SELECT - 79 + - + 69 AS col2
----
-148

onlyif mysql # aggregate syntax: 
query I rowsort label-3489
SELECT ALL + - ( - - COUNT( * ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-3489
SELECT ALL + - ( - - COUNT ( * ) ) col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3490
SELECT MAX( 46 ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-3490
SELECT MAX ( 46 ) AS col2
----
46

query I rowsort
SELECT DISTINCT + + 72
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3492
SELECT ALL - MAX( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3492
SELECT ALL - MAX ( - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL - 45 * + 18
----
-810

query I rowsort
SELECT DISTINCT 86 AS col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3495
SELECT - COUNT( * ) * + 93
----
-93

skipif mysql # not compatible
query I rowsort label-3495
SELECT - COUNT ( * ) * + 93
----
-93

query I rowsort
SELECT DISTINCT - 28 + 19 AS col1
----
-9

query I rowsort
SELECT DISTINCT + + 76
----
76

query I rowsort
SELECT ALL + 10 AS col2
----
10

query I rowsort
SELECT DISTINCT + + 3 col1
----
3

query I rowsort
SELECT ALL + ( 9 )
----
9

query I rowsort
SELECT DISTINCT + 51 AS col2
----
51

query II rowsort
SELECT ALL + ( - 40 ) AS col2, 83
----
-40
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3503
SELECT + ( MAX( ALL - 21 ) ) col2
----
-21

skipif mysql # not compatible
query I rowsort label-3503
SELECT + ( MAX ( ALL - 21 ) ) col2
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-3504
SELECT COUNT( - 14 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3504
SELECT COUNT ( - 14 ) AS col1
----
1

query I rowsort
SELECT ALL 44 AS col0
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3506
SELECT + 42 + - 34 + + CAST( NULL AS SIGNED ) * - 61 + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3506
SELECT + 42 + - 34 + + CAST ( NULL AS INTEGER ) * - 61 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3507
SELECT ALL CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3507
SELECT ALL CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3508
SELECT - - COUNT( * ) col2
----
1

skipif mysql # not compatible
query I rowsort label-3508
SELECT - - COUNT ( * ) col2
----
1

query I rowsort
SELECT ALL - - 17
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3510
SELECT ALL + + 91 + ( ( COUNT( * ) ) ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-3510
SELECT ALL + + 91 + ( ( COUNT ( * ) ) ) AS col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3511
SELECT DISTINCT + COUNT( * ) + - 11 AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-3511
SELECT DISTINCT + COUNT ( * ) + - 11 AS col2
----
-10

query I rowsort
SELECT DISTINCT 5 col1
----
5

query I rowsort
SELECT - 19 col1
----
-19

query I rowsort
SELECT 82 * 65
----
5330

query I rowsort
SELECT 52 - + 34 AS col0
----
18

query I rowsort
SELECT ALL 76 * - - 92
----
6992

query I rowsort
SELECT DISTINCT - 1 AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3518
SELECT 60 + + + 64 * + 89 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3518
SELECT 60 + + + 64 * + 89 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - + 75 AS col2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3520
SELECT ALL - COUNT( * ) + + + 33
----
32

skipif mysql # not compatible
query I rowsort label-3520
SELECT ALL - COUNT ( * ) + + + 33
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3521
SELECT NULLIF ( - + ( COUNT( * ) ), 77 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3521
SELECT NULLIF ( - + ( COUNT ( * ) ), 77 ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3522
SELECT ALL + ( 35 ) / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3522
SELECT ALL + ( 35 ) / + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 54 AS col1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-3524
SELECT ALL NULLIF ( - COUNT( * ), - COUNT( * ) * - - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3524
SELECT ALL NULLIF ( - COUNT ( * ), - COUNT ( * ) * - - COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3525
SELECT ALL COUNT( * ) * - + 17
----
-17

skipif mysql # not compatible
query I rowsort label-3525
SELECT ALL COUNT ( * ) * - + 17
----
-17

query I rowsort
SELECT DISTINCT + 23 AS col1
----
23

query I rowsort
SELECT ALL - 87
----
-87

query I rowsort
SELECT 90
----
90

query I rowsort
SELECT ALL + 22
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3530
SELECT ALL + CAST( - - 95 AS SIGNED )
----
95

skipif mysql # not compatible
query I rowsort label-3530
SELECT ALL + CAST ( - - 95 AS INTEGER )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3531
SELECT DISTINCT + 41 + COUNT( + 82 ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-3531
SELECT DISTINCT + 41 + COUNT ( + 82 ) AS col1
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3532
SELECT ALL + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3532
SELECT ALL + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3533
SELECT + 66 + + 79 + - - COUNT( 60 )
----
146

skipif mysql # not compatible
query I rowsort label-3533
SELECT + 66 + + 79 + - - COUNT ( 60 )
----
146

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3534
SELECT ALL + CAST( COUNT( * ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-3534
SELECT ALL + CAST ( COUNT ( * ) AS INTEGER )
----
1

query I rowsort
SELECT ALL 7 * + - 7 AS col0
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3536
SELECT CAST( 32 AS SIGNED )
----
32

skipif mysql # not compatible
query I rowsort label-3536
SELECT CAST ( 32 AS INTEGER )
----
32

query I rowsort
SELECT DISTINCT - 30 AS col0
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3538
SELECT 68 DIV + COUNT( * )
----
68

skipif mysql # not compatible
query I rowsort label-3538
SELECT 68 / + COUNT ( * )
----
68

query I rowsort
SELECT ALL - 86 col1
----
-86

query I rowsort
SELECT + 74 AS col1
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3541
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3541
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 53 AS col1
----
53

query I rowsort
SELECT 66 * COALESCE ( + 47, + + 43 ) AS col2
----
3102

onlyif mysql # DIV for integer division: 
query I rowsort label-3544
SELECT DISTINCT 65 DIV 1
----
65

skipif mysql # not compatible
query I rowsort label-3544
SELECT DISTINCT 65 / 1
----
65

query I rowsort
SELECT 59 AS col2
----
59

query I rowsort
SELECT 45 col2
----
45

query I rowsort
SELECT DISTINCT - 80 AS col0
----
-80

query I rowsort
SELECT 59 AS col1
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3549
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col0, - COUNT( * ) - - 37
----
NULL
36

skipif mysql # not compatible
query II rowsort label-3549
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0, - COUNT ( * ) - - 37
----
NULL
36

query I rowsort
SELECT DISTINCT 75 col0
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3551
SELECT ALL + COUNT( * ) DIV + + 55 col2
----
0

skipif mysql # not compatible
query I rowsort label-3551
SELECT ALL + COUNT ( * ) / + + 55 col2
----
0

query II rowsort
SELECT DISTINCT 83, + 56 AS col1
----
83
56

query I rowsort
SELECT ALL - 27 col1
----
-27

query I rowsort
SELECT ALL + 17
----
17

query I rowsort
SELECT ALL + ( - 93 ) AS col2
----
-93

query I rowsort
SELECT ALL + 72 AS col0
----
72

query I rowsort
SELECT ALL - 74
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3558
SELECT + CAST( + 95 AS SIGNED ) * - + 87 col2
----
-8265

skipif mysql # not compatible
query I rowsort label-3558
SELECT + CAST ( + 95 AS INTEGER ) * - + 87 col2
----
-8265

query I rowsort
SELECT + 54 + + - 47
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-3560
SELECT DISTINCT MIN( - 33 ) AS col0, - COUNT( * )
----
-33
-1

skipif mysql # not compatible
query II rowsort label-3560
SELECT DISTINCT MIN ( - 33 ) AS col0, - COUNT ( * )
----
-33
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3561
SELECT DISTINCT + COUNT( - 52 )
----
1

skipif mysql # not compatible
query I rowsort label-3561
SELECT DISTINCT + COUNT ( - 52 )
----
1

query I rowsort
SELECT DISTINCT + + 37
----
37

query I rowsort
SELECT + 42 AS col1
----
42

query I rowsort
SELECT DISTINCT + 2
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-3565
SELECT DISTINCT - 15 DIV 67 DIV - 25
----
0

skipif mysql # not compatible
query I rowsort label-3565
SELECT DISTINCT - 15 / 67 / - 25
----
0

query I rowsort
SELECT ALL 76 AS col1
----
76

query I rowsort
SELECT DISTINCT - - 5 AS col2
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-3568
SELECT + COUNT( * ) AS col0, + 28
----
1
28

skipif mysql # not compatible
query II rowsort label-3568
SELECT + COUNT ( * ) AS col0, + 28
----
1
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3569
SELECT ALL - MIN( 55 )
----
-55

skipif mysql # not compatible
query I rowsort label-3569
SELECT ALL - MIN ( 55 )
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-3570
SELECT DISTINCT + - MAX( + + 62 ) + - - 92 AS col1
----
30

skipif mysql # not compatible
query I rowsort label-3570
SELECT DISTINCT + - MAX ( + + 62 ) + - - 92 AS col1
----
30

query I rowsort
SELECT + 5 AS col0
----
5

query I rowsort
SELECT ALL + 75 + + - 88 AS col2
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3573
SELECT 40 DIV + COUNT( * ) + - 11
----
29

skipif mysql # not compatible
query I rowsort label-3573
SELECT 40 / + COUNT ( * ) + - 11
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3574
SELECT DISTINCT - 88 * + COUNT( * ) AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-3574
SELECT DISTINCT - 88 * + COUNT ( * ) AS col2
----
-88

query I rowsort
SELECT + + 67 col2
----
67

query I rowsort
SELECT DISTINCT + 65
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3577
SELECT ALL MIN( 11 ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-3577
SELECT ALL MIN ( 11 ) AS col1
----
11

query I rowsort
SELECT - 66 * + 71 AS col0
----
-4686

query I rowsort
SELECT ALL - ( 44 ) * + - 21 col2
----
924

query I rowsort
SELECT 32 AS col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3581
SELECT ALL MIN( - 93 )
----
-93

skipif mysql # not compatible
query I rowsort label-3581
SELECT ALL MIN ( - 93 )
----
-93

query II rowsort
SELECT - 9, 27 AS col1
----
-9
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3583
SELECT - 70 * - COUNT( * )
----
70

skipif mysql # not compatible
query I rowsort label-3583
SELECT - 70 * - COUNT ( * )
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3584
SELECT + + CAST( NULL AS SIGNED ) * + 46 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3584
SELECT + + CAST ( NULL AS INTEGER ) * + 46 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3585
SELECT ALL + - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3585
SELECT ALL + - COUNT ( * ) AS col2
----
-1

query I rowsort
SELECT ALL 90 * + 20 AS col2
----
1800

onlyif mysql # aggregate syntax: 
query I rowsort label-3587
SELECT COUNT( - 46 )
----
1

skipif mysql # not compatible
query I rowsort label-3587
SELECT COUNT ( - 46 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3588
SELECT COUNT( + 41 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3588
SELECT COUNT ( + 41 ) AS col2
----
1

query I rowsort
SELECT ALL 99 AS col1
----
99

query I rowsort
SELECT ALL 50 AS col0
----
50

query I rowsort
SELECT ALL + 79 + - 48
----
31

query I rowsort
SELECT + ( - 3 ) AS col0
----
-3

query I rowsort
SELECT ALL - 12 AS col1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-3594
SELECT COUNT( * ) * + ( - 42 ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-3594
SELECT COUNT ( * ) * + ( - 42 ) AS col0
----
-42

query I rowsort
SELECT ALL - 9 AS col0
----
-9

query I rowsort
SELECT - 62 AS col0
----
-62

query I rowsort
SELECT - - 19 col0
----
19

query I rowsort
SELECT + 46 col2
----
46

query I rowsort
SELECT ALL - 58 AS col0
----
-58

query I rowsort
SELECT + 26
----
26

query I rowsort
SELECT 24 AS col1
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3602
SELECT DISTINCT - CAST( - COUNT( * ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-3602
SELECT DISTINCT - CAST ( - COUNT ( * ) AS INTEGER )
----
1

query I rowsort
SELECT - 71 AS col0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-3604
SELECT + + COUNT( * ) - - - 69
----
-68

skipif mysql # not compatible
query I rowsort label-3604
SELECT + + COUNT ( * ) - - - 69
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-3605
SELECT ALL MIN( + 26 )
----
26

skipif mysql # not compatible
query I rowsort label-3605
SELECT ALL MIN ( + 26 )
----
26

query I rowsort
SELECT - 90 AS col1
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3607
SELECT - COUNT( DISTINCT 74 )
----
-1

skipif mysql # not compatible
query I rowsort label-3607
SELECT - COUNT ( DISTINCT 74 )
----
-1

query I rowsort
SELECT ALL + 93 AS col2
----
93

query I rowsort
SELECT DISTINCT + 49 AS col1
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3610
SELECT + 59 * CAST( + - COUNT( * ) AS SIGNED ) AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-3610
SELECT + 59 * CAST ( + - COUNT ( * ) AS INTEGER ) AS col1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3611
SELECT MIN( - 76 ) AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-3611
SELECT MIN ( - 76 ) AS col0
----
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3612
SELECT - COUNT( * ) DIV 52 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3612
SELECT - COUNT ( * ) / 52 AS col0
----
0

query I rowsort
SELECT - - 31 + 74 col2
----
105

query I rowsort
SELECT - 46 AS col0
----
-46

query I rowsort
SELECT - + 82
----
-82

query I rowsort
SELECT - 15 col1
----
-15

query I rowsort
SELECT + ( - 10 ) AS col1
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3618
SELECT CAST( - 61 AS SIGNED )
----
-61

skipif mysql # not compatible
query I rowsort label-3618
SELECT CAST ( - 61 AS INTEGER )
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3619
SELECT CAST( - 63 AS SIGNED ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-3619
SELECT CAST ( - 63 AS INTEGER ) AS col0
----
-63

query I rowsort
SELECT DISTINCT - 3
----
-3

query I rowsort
SELECT 5 * 64
----
320

query I rowsort
SELECT 11 - + 59 AS col1
----
-48

query I rowsort
SELECT ALL - 71 AS col2
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3624
SELECT 10 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3624
SELECT 10 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 26 AS col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3626
SELECT COUNT( * ) * 51
----
51

skipif mysql # not compatible
query I rowsort label-3626
SELECT COUNT ( * ) * 51
----
51

query I rowsort
SELECT + 53 AS col1
----
53

query I rowsort
SELECT + 11 AS col2
----
11

query I rowsort
SELECT + 64 AS col2
----
64

query I rowsort
SELECT 93 AS col0
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-3631
SELECT - 69 DIV 13 AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-3631
SELECT - 69 / 13 AS col2
----
-5

query I rowsort
SELECT - - 37 col0
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3633
SELECT ALL ( 6 ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3633
SELECT ALL ( 6 ) + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 35 AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3635
SELECT ALL COUNT( * ) * - ( + COUNT( * ) ) - COUNT( * ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-3635
SELECT ALL COUNT ( * ) * - ( + COUNT ( * ) ) - COUNT ( * ) AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3636
SELECT SUM( DISTINCT - 90 ) AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-3636
SELECT SUM ( DISTINCT - 90 ) AS col0
----
-90

query I rowsort
SELECT ALL + 24 AS col1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3638
SELECT ( - - COUNT( * ) ) * - 23 - - 19
----
-4

skipif mysql # not compatible
query I rowsort label-3638
SELECT ( - - COUNT ( * ) ) * - 23 - - 19
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3639
SELECT ALL + ( - COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3639
SELECT ALL + ( - COUNT ( * ) ) AS col2
----
-1

query I rowsort
SELECT ALL 17
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3641
SELECT + 56 + + COUNT( * ) - + 90
----
-33

skipif mysql # not compatible
query I rowsort label-3641
SELECT + 56 + + COUNT ( * ) - + 90
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-3642
SELECT ALL 30 - COUNT( * ) * + + ( COUNT( * ) ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-3642
SELECT ALL 30 - COUNT ( * ) * + + ( COUNT ( * ) ) AS col1
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3643
SELECT CAST( + COUNT( * ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-3643
SELECT CAST ( + COUNT ( * ) AS INTEGER )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3644
SELECT + CAST( 94 AS SIGNED )
----
94

skipif mysql # not compatible
query I rowsort label-3644
SELECT + CAST ( 94 AS INTEGER )
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3645
SELECT - COALESCE ( + 85, - - 24 ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3645
SELECT - COALESCE ( + 85, - - 24 ) + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ( + + 96 )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3647
SELECT ALL - COUNT( * ) * - 92 * + COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-3647
SELECT ALL - COUNT ( * ) * - 92 * + COUNT ( * )
----
92

query I rowsort
SELECT ALL + - 35
----
-35

query I rowsort
SELECT - + 51 AS col0
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3650
SELECT ALL + CAST( NULL AS SIGNED ) * 69 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3650
SELECT ALL + CAST ( NULL AS INTEGER ) * 69 col1
----
NULL

query I rowsort
SELECT ( 47 ) AS col0
----
47

query I rowsort
SELECT - ( - + 7 ) col2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3653
SELECT DISTINCT COUNT( DISTINCT 15 ) * 40 AS col2
----
40

skipif mysql # not compatible
query I rowsort label-3653
SELECT DISTINCT COUNT ( DISTINCT 15 ) * 40 AS col2
----
40

query I rowsort
SELECT 44 + - + 44 AS col2
----
0

query I rowsort
SELECT 51 * 39 * + 71 col1
----
141219

onlyif mysql # aggregate syntax: 
query I rowsort label-3656
SELECT ALL - SUM( DISTINCT - + 38 ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-3656
SELECT ALL - SUM ( DISTINCT - + 38 ) AS col1
----
38

query I rowsort
SELECT ALL 75 + 95 AS col0
----
170

query I rowsort
SELECT DISTINCT - 37 AS col1
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-3659
SELECT ALL - - COUNT( * ) col2
----
1

skipif mysql # not compatible
query I rowsort label-3659
SELECT ALL - - COUNT ( * ) col2
----
1

query I rowsort
SELECT ALL 63 AS col2
----
63

query I rowsort
SELECT DISTINCT 23 AS col2
----
23

query I rowsort
SELECT DISTINCT 95 * - 10 AS col0
----
-950

query I rowsort
SELECT ALL 38
----
38

query I rowsort
SELECT 69 * - 34 AS col2
----
-2346

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3665
SELECT DISTINCT - CAST( 34 AS SIGNED ) AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-3665
SELECT DISTINCT - CAST ( 34 AS INTEGER ) AS col0
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-3666
SELECT 58 DIV - 5 AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-3666
SELECT 58 / - 5 AS col2
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3667
SELECT CAST( - + COUNT( * ) AS SIGNED ) * + SUM( - 31 ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-3667
SELECT CAST ( - + COUNT ( * ) AS INTEGER ) * + SUM ( - 31 ) AS col2
----
31

query I rowsort
SELECT ALL - - 39
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3669
SELECT - 16 * + COUNT( * ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3669
SELECT - 16 * + COUNT ( * ) + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 36 + - + 41 AS col1
----
-77

query I rowsort
SELECT - 81 col0
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3672
SELECT ALL COALESCE ( 0, + + CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-3672
SELECT ALL COALESCE ( 0, + + CAST ( NULL AS INTEGER ) )
----
0

query I rowsort
SELECT - 52 col0
----
-52

query I rowsort
SELECT ALL + 13 AS col0
----
13

query I rowsort
SELECT DISTINCT + + 5
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3676
SELECT + COUNT( * ) + 14 AS col1
----
15

skipif mysql # not compatible
query I rowsort label-3676
SELECT + COUNT ( * ) + 14 AS col1
----
15

query I rowsort
SELECT 3 col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3678
SELECT + COUNT( * ) + + 18
----
19

skipif mysql # not compatible
query I rowsort label-3678
SELECT + COUNT ( * ) + + 18
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3679
SELECT ALL MIN( DISTINCT 1 )
----
1

skipif mysql # not compatible
query I rowsort label-3679
SELECT ALL MIN ( DISTINCT 1 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3680
SELECT - CAST( + 70 AS SIGNED )
----
-70

skipif mysql # not compatible
query I rowsort label-3680
SELECT - CAST ( + 70 AS INTEGER )
----
-70

query I rowsort
SELECT - 98 + 31 * - 86 AS col2
----
-2764

query I rowsort
SELECT 33 AS col2
----
33

query I rowsort
SELECT ALL 13 col1
----
13

query I rowsort
SELECT ALL + 15 AS col1
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-3685
SELECT ALL + ( ( 82 ) ) AS col0, - SUM( ALL + - 62 )
----
82
62

skipif mysql # not compatible
query II rowsort label-3685
SELECT ALL + ( ( 82 ) ) AS col0, - SUM ( ALL + - 62 )
----
82
62

query I rowsort
SELECT ALL + + 79 col0
----
79

query I rowsort
SELECT ALL - 31 AS col1
----
-31

query I rowsort
SELECT 20 + + ( + + 65 ) AS col2
----
85

query I rowsort
SELECT ALL 18 + 50
----
68

query I rowsort
SELECT ALL - 44 AS col1
----
-44

query I rowsort
SELECT DISTINCT - + 80 * - 99 AS col2
----
7920

query I rowsort
SELECT ALL - - 38 * - 45
----
-1710

query I rowsort
SELECT DISTINCT - - 90 AS col1
----
90

query I rowsort
SELECT ALL - 91 AS col2
----
-91

query I rowsort
SELECT 96 AS col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3696
SELECT ALL - ( + + COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3696
SELECT ALL - ( + + COUNT ( * ) )
----
-1

query I rowsort
SELECT 15 col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3698
SELECT ALL - COUNT( * ) * + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-3698
SELECT ALL - COUNT ( * ) * + COUNT ( * )
----
-1

query I rowsort
SELECT ALL - NULLIF ( + 71, - 46 ) AS col2
----
-71

query I rowsort
SELECT 53 AS col2
----
53

query I rowsort
SELECT 58 AS col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3702
SELECT ALL - COUNT( * ) - + COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-3702
SELECT ALL - COUNT ( * ) - + COUNT ( * )
----
-2

query I rowsort
SELECT DISTINCT 49 col1
----
49

query I rowsort
SELECT - 28 col0
----
-28

query I rowsort
SELECT ALL + 54
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3706
SELECT - CAST( 1 AS SIGNED ) * 30
----
-30

skipif mysql # not compatible
query I rowsort label-3706
SELECT - CAST ( 1 AS INTEGER ) * 30
----
-30

query I rowsort
SELECT ALL 15
----
15

query I rowsort
SELECT NULLIF ( - 86, - 62 * 47 + - 63 + + 41 / - + 45 ) AS col1
----
-86

query I rowsort
SELECT - - 16
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3710
SELECT - + COUNT( * ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-3710
SELECT - + COUNT ( * ) col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3711
SELECT ALL - MIN( - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3711
SELECT ALL - MIN ( - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT ALL 90 * 93 col0
----
8370

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3713
SELECT - + COUNT( * ) * + + ( AVG ( ALL CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3713
SELECT - + COUNT ( * ) * + + ( AVG ( ALL CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3714
SELECT + ( - COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3714
SELECT + ( - COUNT ( * ) ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3715
SELECT ALL + CAST( + + 31 AS SIGNED )
----
31

skipif mysql # not compatible
query I rowsort label-3715
SELECT ALL + CAST ( + + 31 AS INTEGER )
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3716
SELECT CAST( + 30 AS SIGNED ) col2
----
30

skipif mysql # not compatible
query I rowsort label-3716
SELECT CAST ( + 30 AS INTEGER ) col2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3717
SELECT ALL COUNT( * ) * - - ( COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3717
SELECT ALL COUNT ( * ) * - - ( COUNT ( * ) ) AS col2
----
1

query I rowsort
SELECT + 40 * - 63 AS col0
----
-2520

query II rowsort
SELECT DISTINCT + 75, 49 AS col1
----
75
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3720
SELECT ALL - + CAST( NULL AS SIGNED ) + - 98 + - 8 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3720
SELECT ALL - + CAST ( NULL AS INTEGER ) + - 98 + - 8 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3721
SELECT DISTINCT - COUNT( + 38 ) + - 55
----
-56

skipif mysql # not compatible
query I rowsort label-3721
SELECT DISTINCT - COUNT ( + 38 ) + - 55
----
-56

query I rowsort
SELECT DISTINCT + + 94 + + 31 AS col2
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-3723
SELECT + ( - 89 ) + + + COUNT( * ) AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-3723
SELECT + ( - 89 ) + + + COUNT ( * ) AS col2
----
-88

onlyif mysql # aggregate syntax: 
query II rowsort label-3724
SELECT - + COUNT( * ) col2, 36
----
-1
36

skipif mysql # not compatible
query II rowsort label-3724
SELECT - + COUNT ( * ) col2, 36
----
-1
36

query I rowsort
SELECT ALL - 69
----
-69

query I rowsort
SELECT DISTINCT - 55 - - - 18 + + + 57 AS col1
----
-16

query I rowsort
SELECT 69 AS col0
----
69

query I rowsort
SELECT 55 AS col0
----
55

query I rowsort
SELECT ALL - 79 AS col0
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-3730
SELECT ALL COUNT( ALL 68 ) + + NULLIF ( - - 55, + - 0 * COUNT( * ) - MAX( ALL - 58 ) )
----
56

skipif mysql # not compatible
query I rowsort label-3730
SELECT ALL COUNT ( ALL 68 ) + + NULLIF ( - - 55, + - 0 * COUNT ( * ) - MAX ( ALL - 58 ) )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3731
SELECT ALL COUNT( * ) * + 53
----
53

skipif mysql # not compatible
query I rowsort label-3731
SELECT ALL COUNT ( * ) * + 53
----
53

query I rowsort
SELECT DISTINCT - + 1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3733
SELECT DISTINCT - CAST( - + 65 AS SIGNED )
----
65

skipif mysql # not compatible
query I rowsort label-3733
SELECT DISTINCT - CAST ( - + 65 AS INTEGER )
----
65

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3734
SELECT ALL CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3734
SELECT ALL CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3735
SELECT CAST( 82 AS SIGNED ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-3735
SELECT CAST ( 82 AS INTEGER ) AS col1
----
82

query I rowsort
SELECT - 96 AS col2
----
-96

query I rowsort
SELECT + 12
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3738
SELECT DISTINCT - MIN( 79 )
----
-79

skipif mysql # not compatible
query I rowsort label-3738
SELECT DISTINCT - MIN ( 79 )
----
-79

query I rowsort
SELECT ALL 58 AS col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3740
SELECT - + ( COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3740
SELECT - + ( COUNT ( * ) )
----
-1

query I rowsort
SELECT ALL 92 col0
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-3742
SELECT DISTINCT COUNT( * ) AS col1, - COUNT( * ) * + COUNT( * )
----
1
-1

skipif mysql # not compatible
query II rowsort label-3742
SELECT DISTINCT COUNT ( * ) AS col1, - COUNT ( * ) * + COUNT ( * )
----
1
-1

query I rowsort
SELECT + 60
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3744
SELECT + COUNT( * ) * 50 AS col2
----
50

skipif mysql # not compatible
query I rowsort label-3744
SELECT + COUNT ( * ) * 50 AS col2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3745
SELECT ALL + SUM( + 15 ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-3745
SELECT ALL + SUM ( + 15 ) AS col1
----
15

query I rowsort
SELECT DISTINCT 41 * 41 AS col2
----
1681

query I rowsort
SELECT ALL - ( - + 75 ) AS col1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3748
SELECT DISTINCT MIN( ALL + - 25 )
----
-25

skipif mysql # not compatible
query I rowsort label-3748
SELECT DISTINCT MIN ( ALL + - 25 )
----
-25

query I rowsort
SELECT ALL + ( 61 )
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-3750
SELECT - 39 DIV - 94 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3750
SELECT - 39 / - 94 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3751
SELECT DISTINCT + CAST( 19 AS SIGNED )
----
19

skipif mysql # not compatible
query I rowsort label-3751
SELECT DISTINCT + CAST ( 19 AS INTEGER )
----
19

query I rowsort
SELECT ALL + + 20 * + 94 AS col1
----
1880

query I rowsort
SELECT ALL + 85 AS col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3754
SELECT - COUNT( DISTINCT + 76 )
----
-1

skipif mysql # not compatible
query I rowsort label-3754
SELECT - COUNT ( DISTINCT + 76 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3755
SELECT DISTINCT 93 * - CAST( 49 AS SIGNED )
----
-4557

skipif mysql # not compatible
query I rowsort label-3755
SELECT DISTINCT 93 * - CAST ( 49 AS INTEGER )
----
-4557

query I rowsort
SELECT ALL 29 AS col1
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3757
SELECT DISTINCT CAST( NULL AS SIGNED ) / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3757
SELECT DISTINCT CAST ( NULL AS INTEGER ) / COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT - 91 AS col0
----
-91

query I rowsort
SELECT + NULLIF ( + 81, - 64 / + 1 )
----
81

query I rowsort
SELECT ALL - + 52
----
-52

query II rowsort
SELECT ALL - - 19 AS col0, 80 AS col0
----
19
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3762
SELECT + 71 - COUNT( * ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-3762
SELECT + 71 - COUNT ( * ) AS col2
----
70

query I rowsort
SELECT + - 89
----
-89

query II rowsort
SELECT DISTINCT + 23 AS col1, + NULLIF ( 29, 25 )
----
23
29

query I rowsort
SELECT DISTINCT 18 AS col2
----
18

query I rowsort
SELECT DISTINCT 44 AS col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3767
SELECT MIN( - 50 ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-3767
SELECT MIN ( - 50 ) AS col0
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3768
SELECT COUNT( - 47 ) DIV + 77 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3768
SELECT COUNT ( - 47 ) / + 77 AS col2
----
0

query I rowsort
SELECT DISTINCT - + 85
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-3770
SELECT + - MIN( - 10 ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-3770
SELECT + - MIN ( - 10 ) AS col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3771
SELECT ALL - 48 * + - COUNT( * ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-3771
SELECT ALL - 48 * + - COUNT ( * ) AS col2
----
48

query I rowsort
SELECT + 77 AS col1
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3773
SELECT + CAST( - ( COUNT( * ) ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-3773
SELECT + CAST ( - ( COUNT ( * ) ) AS INTEGER )
----
-1

query I rowsort
SELECT ALL + 37 AS col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3775
SELECT + + 51 * + ( - 12 ) + COUNT( * )
----
-611

skipif mysql # not compatible
query I rowsort label-3775
SELECT + + 51 * + ( - 12 ) + COUNT ( * )
----
-611

query I rowsort
SELECT ALL + 82 AS col1
----
82

query I rowsort
SELECT ALL 64 * + + 33
----
2112

onlyif mysql # aggregate syntax: 
query I rowsort label-3778
SELECT - 28 * MAX( - + 87 ) * + 95
----
231420

skipif mysql # not compatible
query I rowsort label-3778
SELECT - 28 * MAX ( - + 87 ) * + 95
----
231420

onlyif mysql # aggregate syntax: 
query I rowsort label-3779
SELECT COUNT( 43 )
----
1

skipif mysql # not compatible
query I rowsort label-3779
SELECT COUNT ( 43 )
----
1

query I rowsort
SELECT ALL ( - 43 ) AS col1
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3781
SELECT DISTINCT CAST( - - 8 AS SIGNED ) col0
----
8

skipif mysql # not compatible
query I rowsort label-3781
SELECT DISTINCT CAST ( - - 8 AS INTEGER ) col0
----
8

query I rowsort
SELECT - 55 AS col2
----
-55

query I rowsort
SELECT ALL - 75 AS col1
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3784
SELECT DISTINCT + COUNT( * ) col2
----
1

skipif mysql # not compatible
query I rowsort label-3784
SELECT DISTINCT + COUNT ( * ) col2
----
1

query I rowsort
SELECT DISTINCT + 5 AS col0
----
5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3786
SELECT + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3786
SELECT + - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT DISTINCT + 54
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3788
SELECT COUNT( * ) * 52
----
52

skipif mysql # not compatible
query I rowsort label-3788
SELECT COUNT ( * ) * 52
----
52

query I rowsort
SELECT 52 * - 92 col1
----
-4784

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3790
SELECT ALL + COUNT( * ) DIV - - SUM( - 29 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3790
SELECT ALL + COUNT ( * ) / - - SUM ( - 29 ) AS col1
----
0

query I rowsort
SELECT - + 77
----
-77

query I rowsort
SELECT + 35
----
35

query I rowsort
SELECT + 55 + ( + 96 )
----
151

query I rowsort
SELECT + - 51 AS col2
----
-51

query I rowsort
SELECT ( + + 44 )
----
44

query I rowsort
SELECT ALL - 17 AS col1
----
-17

query I rowsort
SELECT + 23 AS col1
----
23

query I rowsort
SELECT DISTINCT - 94
----
-94

query I rowsort
SELECT ALL - 7 AS col1
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3800
SELECT COUNT( * ) * + - ( + + 73 ) + - CAST( CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3800
SELECT COUNT ( * ) * + - ( + + 73 ) + - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

query I rowsort
SELECT 33
----
33

query I rowsort
SELECT + 88 col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3803
SELECT ALL COUNT( * ) + 1
----
2

skipif mysql # not compatible
query I rowsort label-3803
SELECT ALL COUNT ( * ) + 1
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3804
SELECT + CAST( - 70 AS SIGNED )
----
-70

skipif mysql # not compatible
query I rowsort label-3804
SELECT + CAST ( - 70 AS INTEGER )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-3805
SELECT - 6 + 95 * COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-3805
SELECT - 6 + 95 * COUNT ( * )
----
89

query I rowsort
SELECT + 73 col1
----
73

query I rowsort
SELECT DISTINCT + 29 AS col1
----
29

query I rowsort
SELECT + 41 AS col1
----
41

query I rowsort
SELECT ALL + + 20 - - 64 AS col2
----
84

query I rowsort
SELECT - + 65 AS col2
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3811
SELECT CAST( + 94 AS SIGNED ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-3811
SELECT CAST ( + 94 AS INTEGER ) AS col2
----
94

query I rowsort
SELECT + ( + 1 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3813
SELECT CAST( - - 21 AS SIGNED ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-3813
SELECT CAST ( - - 21 AS INTEGER ) AS col0
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3814
SELECT DISTINCT - + 55 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3814
SELECT DISTINCT - + 55 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - - 34
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3816
SELECT COUNT( * ) * ( + - COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3816
SELECT COUNT ( * ) * ( + - COUNT ( * ) )
----
-1

query I rowsort
SELECT 77 * 27 AS col0
----
2079

query I rowsort
SELECT 79 AS col2
----
79

query I rowsort
SELECT + 37 AS col0
----
37

query I rowsort
SELECT 60 AS col2
----
60

query I rowsort
SELECT 65 col2
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-3822
SELECT + 5 DIV - 3 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3822
SELECT + 5 / - 3 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3823
SELECT ALL - + 78 + - + COUNT( * ) col1
----
-79

skipif mysql # not compatible
query I rowsort label-3823
SELECT ALL - + 78 + - + COUNT ( * ) col1
----
-79

query II rowsort
SELECT + 27, 52 col0
----
27
52

query I rowsort
SELECT 20 + - 3 AS col2
----
17

query I rowsort
SELECT - 72 AS col0
----
-72

query I rowsort
SELECT - 26 col0
----
-26

query I rowsort
SELECT DISTINCT + 75 * - 89 AS col2
----
-6675

onlyif mysql # aggregate syntax: 
query I rowsort label-3829
SELECT SUM( DISTINCT - + 85 ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-3829
SELECT SUM ( DISTINCT - + 85 ) AS col1
----
-85

query I rowsort
SELECT DISTINCT + 99 AS col0
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3831
SELECT + COUNT( * ) * - - CAST( + 19 AS SIGNED )
----
19

skipif mysql # not compatible
query I rowsort label-3831
SELECT + COUNT ( * ) * - - CAST ( + 19 AS INTEGER )
----
19

query I rowsort
SELECT - - 9 + 86
----
95

query I rowsort
SELECT ( + 81 ) AS col0
----
81

query I rowsort
SELECT ALL 59 AS col0
----
59

query I rowsort
SELECT DISTINCT NULLIF ( + - 16, 29 ) AS col1
----
-16

query I rowsort
SELECT DISTINCT 87 * - 92
----
-8004

query I rowsort
SELECT DISTINCT + 34 AS col1
----
34

query I rowsort
SELECT ( + + 34 )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3839
SELECT DISTINCT + MIN( ALL + 75 ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-3839
SELECT DISTINCT + MIN ( ALL + 75 ) AS col0
----
75

query I rowsort
SELECT - 62 * + + 15
----
-930

query I rowsort
SELECT + - 63 AS col1
----
-63

query I rowsort
SELECT + 48
----
48

query I rowsort
SELECT ALL + + 71
----
71

onlyif mysql # aggregate syntax: 
query II rowsort label-3844
SELECT DISTINCT COUNT( * ) AS col0, 93
----
1
93

skipif mysql # not compatible
query II rowsort label-3844
SELECT DISTINCT COUNT ( * ) AS col0, 93
----
1
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3845
SELECT + MAX( + 2 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-3845
SELECT + MAX ( + 2 ) AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3846
SELECT - ( + COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3846
SELECT - ( + COUNT ( * ) )
----
-1

query II rowsort
SELECT 90 col0, - 27
----
90
-27

query I rowsort
SELECT 60 col1
----
60

query I rowsort
SELECT ALL 46 * - ( 66 )
----
-3036

query I rowsort
SELECT DISTINCT 37
----
37

query I rowsort
SELECT NULLIF ( 18, 2 )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3852
SELECT DISTINCT - + COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3852
SELECT DISTINCT - + COUNT ( * ) AS col0
----
-1

query I rowsort
SELECT + 84 col2
----
84

query I rowsort
SELECT ALL 24
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3855
SELECT DISTINCT COUNT( * ) + - COUNT( * ) * - 96 col2
----
97

skipif mysql # not compatible
query I rowsort label-3855
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) * - 96 col2
----
97

query I rowsort
SELECT ALL + 1 * - + 35
----
-35

query I rowsort
SELECT DISTINCT - 47 * + 51 AS col2
----
-2397

query I rowsort
SELECT 52 AS col0
----
52

query I rowsort
SELECT + 39 + 71
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-3860
SELECT ALL MIN( + + 21 ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-3860
SELECT ALL MIN ( + + 21 ) AS col1
----
21

query II rowsort
SELECT ALL + - 53 AS col0, - ( + 88 ) AS col0
----
-53
-88

query I rowsort
SELECT ALL + 76 col0
----
76

query I rowsort
SELECT DISTINCT + ( + - 12 )
----
-12

query I rowsort
SELECT ALL + 68 AS col0
----
68

query I rowsort
SELECT + ( - - 45 ) AS col0
----
45

query I rowsort
SELECT DISTINCT + 44 AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3867
SELECT MAX( - 31 )
----
-31

skipif mysql # not compatible
query I rowsort label-3867
SELECT MAX ( - 31 )
----
-31

query I rowsort
SELECT - + 98 AS col1
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-3869
SELECT - + CASE - 58 WHEN + 37 THEN - COUNT( * ) - + 1 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3869
SELECT - + CASE - 58 WHEN + 37 THEN - COUNT ( * ) - + 1 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3870
SELECT DISTINCT ( SUM( + 86 ) )
----
86

skipif mysql # not compatible
query I rowsort label-3870
SELECT DISTINCT ( SUM ( + 86 ) )
----
86

query I rowsort
SELECT + - ( + 51 ) AS col0
----
-51

query I rowsort
SELECT ALL + - 87
----
-87

query I rowsort
SELECT ALL - 76
----
-76

query I rowsort
SELECT ALL - 66 AS col2
----
-66

query I rowsort
SELECT 5 + - + 5
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3876
SELECT ALL COUNT( * ) + - - 39 AS col2
----
40

skipif mysql # not compatible
query I rowsort label-3876
SELECT ALL COUNT ( * ) + - - 39 AS col2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3877
SELECT COUNT( * ) + COUNT( - - 53 )
----
2

skipif mysql # not compatible
query I rowsort label-3877
SELECT COUNT ( * ) + COUNT ( - - 53 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3878
SELECT ( + 31 ) * - - COUNT( * ) - - 60 AS col1
----
91

skipif mysql # not compatible
query I rowsort label-3878
SELECT ( + 31 ) * - - COUNT ( * ) - - 60 AS col1
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-3879
SELECT 70 DIV ( - 26 )
----
-2

skipif mysql # not compatible
query I rowsort label-3879
SELECT 70 / ( - 26 )
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3880
SELECT DISTINCT - 18 / + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3880
SELECT DISTINCT - 18 / + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - - 86 + + 90 + - 48
----
128

query I rowsort
SELECT 55
----
55

query I rowsort
SELECT 38 AS col2
----
38

query I rowsort
SELECT + ( - 95 )
----
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-3885
SELECT ALL 60, COUNT( * ) AS col0
----
60
1

skipif mysql # not compatible
query II rowsort label-3885
SELECT ALL 60, COUNT ( * ) AS col0
----
60
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3886
SELECT DISTINCT NULLIF ( + SUM( - 33 ), + - 21 ) DIV 94
----
0

skipif mysql # not compatible
query I rowsort label-3886
SELECT DISTINCT NULLIF ( + SUM ( - 33 ), + - 21 ) / 94
----
0

query I rowsort
SELECT DISTINCT + 44 AS col1
----
44

query I rowsort
SELECT DISTINCT + 72
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3889
SELECT ALL + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3889
SELECT ALL + CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT + 95
----
95

query I rowsort
SELECT - 21 + + - ( - 71 ) * + 79
----
5588

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3892
SELECT DISTINCT + ( + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3892
SELECT DISTINCT + ( + CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT - + 55 AS col0
----
-55

query I rowsort
SELECT DISTINCT 22 AS col1
----
22

query I rowsort
SELECT DISTINCT - 96 AS col0
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3896
SELECT - + CAST( + + 47 AS SIGNED ) AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-3896
SELECT - + CAST ( + + 47 AS INTEGER ) AS col2
----
-47

query I rowsort
SELECT - - 47 col0
----
47

query I rowsort
SELECT 46
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3899
SELECT + 87 * + COUNT( * ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-3899
SELECT + 87 * + COUNT ( * ) AS col2
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3900
SELECT ( - + COALESCE ( 5, - COUNT( * ) * - 60 ) ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-3900
SELECT ( - + COALESCE ( 5, - COUNT ( * ) * - 60 ) ) AS col1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3901
SELECT ALL + COUNT( + 7 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3901
SELECT ALL + COUNT ( + 7 ) AS col2
----
1

query I rowsort
SELECT ( + + CASE WHEN NOT ( NULL ) IS NULL THEN + 70 ELSE NULL END ) AS col2
----
NULL

query I rowsort
SELECT + + 78 AS col1
----
78

query I rowsort
SELECT ALL - 11
----
-11

query I rowsort
SELECT - + ( + 17 ) - - 11 AS col1
----
-6

query II rowsort
SELECT ALL 6 AS col1, + 3 AS col2
----
6
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3907
SELECT COUNT( * ) * - 37 AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-3907
SELECT COUNT ( * ) * - 37 AS col0
----
-37

query I rowsort
SELECT ALL - 5 AS col0
----
-5

query I rowsort
SELECT ALL - 95
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-3910
SELECT 40 + 35 - + COUNT( * ) col2
----
74

skipif mysql # not compatible
query I rowsort label-3910
SELECT 40 + 35 - + COUNT ( * ) col2
----
74

query I rowsort
SELECT DISTINCT - 23 AS col2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3912
SELECT ( + COUNT( * ) ) * ( + + COUNT( * ) ) - + MIN( 45 ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-3912
SELECT ( + COUNT ( * ) ) * ( + + COUNT ( * ) ) - + MIN ( 45 ) AS col2
----
-44

query I rowsort
SELECT + - 90
----
-90

query I rowsort
SELECT DISTINCT + 21 AS col0
----
21

query I rowsort
SELECT - - 39
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3916
SELECT ALL + 33 * - 3 * - COUNT( * ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-3916
SELECT ALL + 33 * - 3 * - COUNT ( * ) AS col0
----
99

query I rowsort
SELECT ALL - + ( + 16 ) * - - 30 AS col2
----
-480

query I rowsort
SELECT ALL + + 50 AS col1
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3919
SELECT + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3919
SELECT + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3920
SELECT ALL COUNT( * ) * + 59
----
59

skipif mysql # not compatible
query I rowsort label-3920
SELECT ALL COUNT ( * ) * + 59
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3921
SELECT ALL CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3921
SELECT ALL CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL 54 col2
----
54

query I rowsort
SELECT DISTINCT 5 AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3924
SELECT - ( + - 66 ) * COUNT( * ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-3924
SELECT - ( + - 66 ) * COUNT ( * ) AS col0
----
66

query I rowsort
SELECT + 90 AS col1
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3926
SELECT ALL + CAST( - ( 65 ) AS SIGNED )
----
-65

skipif mysql # not compatible
query I rowsort label-3926
SELECT ALL + CAST ( - ( 65 ) AS INTEGER )
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-3927
SELECT - NULLIF ( - COUNT( * ), + 55 * + 80 )
----
1

skipif mysql # not compatible
query I rowsort label-3927
SELECT - NULLIF ( - COUNT ( * ), + 55 * + 80 )
----
1

query I rowsort
SELECT ALL 75 col0
----
75

query I rowsort
SELECT ALL - 24 col2
----
-24

query I rowsort
SELECT 70 AS col2
----
70

query I rowsort
SELECT - 81 AS col0
----
-81

query I rowsort
SELECT ALL - + 39 AS col2
----
-39

query I rowsort
SELECT 26 col2
----
26

query I rowsort
SELECT + + 95
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3935
SELECT ALL - + CAST( NULL AS SIGNED ) + + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-3935
SELECT ALL - + CAST ( NULL AS INTEGER ) + + 23
----
NULL

query I rowsort
SELECT 30 * - 11 AS col2
----
-330

query I rowsort
SELECT DISTINCT 12 AS col1
----
12

query I rowsort
SELECT DISTINCT 70 AS col0
----
70

query I rowsort
SELECT ALL 27 * + 49 AS col0
----
1323

onlyif mysql # aggregate syntax: 
query I rowsort label-3940
SELECT ALL 3 * + + 56 * + COUNT( * ) * - 81
----
-13608

skipif mysql # not compatible
query I rowsort label-3940
SELECT ALL 3 * + + 56 * + COUNT ( * ) * - 81
----
-13608

query I rowsort
SELECT ALL 21 - 29 AS col1
----
-8

query I rowsort
SELECT - 54 + + 63
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3943
SELECT DISTINCT + COUNT( * ) + + 50 AS col0
----
51

skipif mysql # not compatible
query I rowsort label-3943
SELECT DISTINCT + COUNT ( * ) + + 50 AS col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3944
SELECT ALL COUNT( * ) + - - 7
----
8

skipif mysql # not compatible
query I rowsort label-3944
SELECT ALL COUNT ( * ) + - - 7
----
8

query I rowsort
SELECT 33 col0
----
33

query I rowsort
SELECT - 18 AS col2
----
-18

query I rowsort
SELECT 49 AS col0
----
49

query I rowsort
SELECT ALL + - 66 AS col1
----
-66

query I rowsort
SELECT + 61 AS col1
----
61

query I rowsort
SELECT - 71 AS col1
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-3951
SELECT ALL - 25 + + - COUNT( * ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-3951
SELECT ALL - 25 + + - COUNT ( * ) AS col0
----
-26

query I rowsort
SELECT - 48 AS col2
----
-48

query I rowsort
SELECT - 76 AS col0
----
-76

query I rowsort
SELECT DISTINCT - 22 + 91
----
69

query I rowsort
SELECT ALL + + 8 + + 5 AS col1
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-3956
SELECT ( COALESCE ( + 13, + COUNT( * ) ) ), - 51 AS col2
----
13
-51

skipif mysql # not compatible
query II rowsort label-3956
SELECT ( COALESCE ( + 13, + COUNT ( * ) ) ), - 51 AS col2
----
13
-51

query I rowsort
SELECT ALL + 20 AS col1
----
20

query I rowsort
SELECT ( - 70 ) AS col1
----
-70

query II rowsort
SELECT DISTINCT - 32 AS col0, + 52
----
-32
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3960
SELECT COUNT( * ) + + 64
----
65

skipif mysql # not compatible
query I rowsort label-3960
SELECT COUNT ( * ) + + 64
----
65

query I rowsort
SELECT - + 60 AS col0
----
-60

query I rowsort
SELECT 75 + - - 97 * 0 AS col0
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3963
SELECT - ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3963
SELECT - ( CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT 30 AS col2
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-3965
SELECT ALL - 42 * COUNT( * ), 48 AS col1
----
-42
48

skipif mysql # not compatible
query II rowsort label-3965
SELECT ALL - 42 * COUNT ( * ), 48 AS col1
----
-42
48

query I rowsort
SELECT 68 AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3967
SELECT DISTINCT - 25 + + COUNT( * ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-3967
SELECT DISTINCT - 25 + + COUNT ( * ) AS col2
----
-24

query I rowsort
SELECT - 46
----
-46

query I rowsort
SELECT ALL 2 + + + 85
----
87

query I rowsort
SELECT ALL - 42 + - 96 AS col2
----
-138

query I rowsort
SELECT - + 5
----
-5

query I rowsort
SELECT ALL - 5 * - 74
----
370

onlyif mysql # aggregate syntax: 
query II rowsort label-3973
SELECT COUNT( * ), + COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-3973
SELECT COUNT ( * ), + COUNT ( * )
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3974
SELECT DISTINCT + COUNT( * ) * + ( 70 ) + + + ( + COUNT( * ) ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-3974
SELECT DISTINCT + COUNT ( * ) * + ( 70 ) + + + ( + COUNT ( * ) ) AS col0
----
71

query I rowsort
SELECT 89 AS col0
----
89

query I rowsort
SELECT ALL + ( + + 57 )
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3977
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3977
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL 54 AS col0
----
54

query I rowsort
SELECT ALL + 19 AS col2
----
19

query I rowsort
SELECT + 23
----
23

query I rowsort
SELECT + 30 AS col1
----
30

query I rowsort
SELECT ALL - 54
----
-54

query I rowsort
SELECT DISTINCT + 0 * - - 25
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3984
SELECT ALL + COUNT( * ) + - ( + + 28 ) AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-3984
SELECT ALL + COUNT ( * ) + - ( + + 28 ) AS col0
----
-27

query I rowsort
SELECT DISTINCT 38 AS col1
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3986
SELECT ALL MIN( ALL + CAST( + 89 AS SIGNED ) )
----
89

skipif mysql # not compatible
query I rowsort label-3986
SELECT ALL MIN ( ALL + CAST ( + 89 AS INTEGER ) )
----
89

query I rowsort
SELECT - 18
----
-18

query II rowsort
SELECT + 75, 53 * 96 AS col1
----
75
5088

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3989
SELECT DISTINCT - CAST( + ( - + MAX( ALL + ( + - CAST( NULL AS SIGNED ) ) ) ) AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3989
SELECT DISTINCT - CAST ( + ( - + MAX ( ALL + ( + - CAST ( NULL AS INTEGER ) ) ) ) AS REAL ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 91 * - 88
----
-8008

onlyif mysql # aggregate syntax: 
query I rowsort label-3991
SELECT 18 - - + COUNT( * ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-3991
SELECT 18 - - + COUNT ( * ) AS col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3992
SELECT MAX( DISTINCT + - 10 ) * - 96
----
960

skipif mysql # not compatible
query I rowsort label-3992
SELECT MAX ( DISTINCT + - 10 ) * - 96
----
960

query I rowsort
SELECT 24 * 82
----
1968

query I rowsort
SELECT ALL - - 88 AS col1
----
88

query I rowsort
SELECT - 65 AS col1
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3996
SELECT + CAST( 51 AS SIGNED ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-3996
SELECT + CAST ( 51 AS INTEGER ) AS col0
----
51

query I rowsort
SELECT 22 AS col2
----
22

query I rowsort
SELECT DISTINCT 11
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3999
SELECT ALL + COUNT( * ) * + - 14 AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-3999
SELECT ALL + COUNT ( * ) * + - 14 AS col1
----
-14

query I rowsort
SELECT ALL + - 72
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4001
SELECT DISTINCT SUM( + - 19 ) AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-4001
SELECT DISTINCT SUM ( + - 19 ) AS col2
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4002
SELECT - CAST( + COUNT( ALL - 97 ) AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4002
SELECT - CAST ( + COUNT ( ALL - 97 ) AS INTEGER ) AS col1
----
-1

query I rowsort
SELECT - 29 AS col1
----
-29

query I rowsort
SELECT DISTINCT - 17 + + 80 AS col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4005
SELECT DISTINCT - MIN( 53 )
----
-53

skipif mysql # not compatible
query I rowsort label-4005
SELECT DISTINCT - MIN ( 53 )
----
-53

query I rowsort
SELECT - 24 AS col1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4007
SELECT ( - COUNT( * ) ) + - COUNT( * ) + - + 84
----
-86

skipif mysql # not compatible
query I rowsort label-4007
SELECT ( - COUNT ( * ) ) + - COUNT ( * ) + - + 84
----
-86

query I rowsort
SELECT - - 26
----
26

query I rowsort
SELECT DISTINCT - 34 AS col2
----
-34

query I rowsort
SELECT ALL - - 23 AS col1
----
23

query I rowsort
SELECT - 41
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-4012
SELECT DISTINCT - COUNT( DISTINCT + 52 )
----
-1

skipif mysql # not compatible
query I rowsort label-4012
SELECT DISTINCT - COUNT ( DISTINCT + 52 )
----
-1

query I rowsort
SELECT 11 AS col1
----
11

query I rowsort
SELECT DISTINCT - 17 + 30 AS col0
----
13

query I rowsort
SELECT ALL + ( + + 8 ) + + ( 12 ) AS col2
----
20

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4016
SELECT - 2 / CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4016
SELECT - 2 / CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 55
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4018
SELECT - SUM( DISTINCT 39 )
----
-39

skipif mysql # not compatible
query I rowsort label-4018
SELECT - SUM ( DISTINCT 39 )
----
-39

query I rowsort
SELECT ALL + 48 AS col2
----
48

query I rowsort
SELECT ALL 40 * 51
----
2040

onlyif mysql # aggregate syntax: 
query I rowsort label-4021
SELECT + ( + COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4021
SELECT + ( + COUNT ( * ) ) AS col0
----
1

query I rowsort
SELECT DISTINCT + 66 AS col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4023
SELECT DISTINCT SUM( DISTINCT 28 ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-4023
SELECT DISTINCT SUM ( DISTINCT 28 ) AS col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4024
SELECT ALL - COUNT( * ) + + 4 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-4024
SELECT ALL - COUNT ( * ) + + 4 AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4025
SELECT + 32 + MIN( 21 ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-4025
SELECT + 32 + MIN ( 21 ) AS col0
----
53

query I rowsort
SELECT - 80 AS col2
----
-80

query I rowsort
SELECT ALL + 97 AS col1
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4028
SELECT ALL 68 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4028
SELECT ALL 68 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4029
SELECT ALL COUNT( * ) * ( COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-4029
SELECT ALL COUNT ( * ) * ( COUNT ( * ) )
----
1

query I rowsort
SELECT ( + - 34 )
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4031
SELECT - COUNT( * ) * - 86 + + 66
----
152

skipif mysql # not compatible
query I rowsort label-4031
SELECT - COUNT ( * ) * - 86 + + 66
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-4032
SELECT ALL + ( COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-4032
SELECT ALL + ( COUNT ( * ) )
----
1

query I rowsort
SELECT DISTINCT - 50
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-4034
SELECT ALL - SUM( + 23 )
----
-23

skipif mysql # not compatible
query I rowsort label-4034
SELECT ALL - SUM ( + 23 )
----
-23

query I rowsort
SELECT - 41 AS col2
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4036
SELECT 95 DIV + COUNT( * ) col2
----
95

skipif mysql # not compatible
query I rowsort label-4036
SELECT 95 / + COUNT ( * ) col2
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4037
SELECT DISTINCT - COUNT( * ) * - 26
----
26

skipif mysql # not compatible
query I rowsort label-4037
SELECT DISTINCT - COUNT ( * ) * - 26
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4038
SELECT ALL - CAST( + + 12 AS SIGNED )
----
-12

skipif mysql # not compatible
query I rowsort label-4038
SELECT ALL - CAST ( + + 12 AS INTEGER )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4039
SELECT DISTINCT ( + - COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4039
SELECT DISTINCT ( + - COUNT ( * ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4040
SELECT - ( - COUNT( * ) ) + + 14 + + 97
----
112

skipif mysql # not compatible
query I rowsort label-4040
SELECT - ( - COUNT ( * ) ) + + 14 + + 97
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-4041
SELECT 13 + COUNT( * ) AS col0
----
14

skipif mysql # not compatible
query I rowsort label-4041
SELECT 13 + COUNT ( * ) AS col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4042
SELECT ALL + 73 * - 70 + + COUNT( * ) AS col1
----
-5109

skipif mysql # not compatible
query I rowsort label-4042
SELECT ALL + 73 * - 70 + + COUNT ( * ) AS col1
----
-5109

query I rowsort
SELECT + 10 AS col1
----
10

query I rowsort
SELECT + 65 AS col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4045
SELECT - COUNT( * ) + + 5 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-4045
SELECT - COUNT ( * ) + + 5 AS col0
----
4

query I rowsort
SELECT + 36 AS col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4047
SELECT DISTINCT + MAX( - + 22 ) + - - ( + + 99 ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-4047
SELECT DISTINCT + MAX ( - + 22 ) + - - ( + + 99 ) AS col1
----
77

query I rowsort
SELECT - - 90 AS col2
----
90

query I rowsort
SELECT ALL 43 AS col1
----
43

query I rowsort
SELECT ( - 40 ) AS col0
----
-40

query I rowsort
SELECT + 63 AS col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4052
SELECT DISTINCT + COUNT( * ) col0
----
1

skipif mysql # not compatible
query I rowsort label-4052
SELECT DISTINCT + COUNT ( * ) col0
----
1

query I rowsort
SELECT + 31 AS col2
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4054
SELECT + CAST( - - COUNT( * ) AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4054
SELECT + CAST ( - - COUNT ( * ) AS INTEGER ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4055
SELECT - 96 DIV + 78
----
-1

skipif mysql # not compatible
query I rowsort label-4055
SELECT - 96 / + 78
----
-1

query I rowsort
SELECT ALL + 68 AS col2
----
68

query I rowsort
SELECT - ( + 6 ) AS col0
----
-6

query I rowsort
SELECT ALL - 27 AS col1
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-4059
SELECT ALL COUNT( * ) + 67
----
68

skipif mysql # not compatible
query I rowsort label-4059
SELECT ALL COUNT ( * ) + 67
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4060
SELECT ( ( - + COUNT( * ) ) ) + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4060
SELECT ( ( - + COUNT ( * ) ) ) + COUNT ( * )
----
0

query I rowsort
SELECT DISTINCT - 14 AS col1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4062
SELECT 73 + + COUNT( * ) + - 97 AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-4062
SELECT 73 + + COUNT ( * ) + - 97 AS col2
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4063
SELECT ALL COALESCE ( - COUNT( * ), - CAST( NULL AS SIGNED ) * - - ( - 29 ), - COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4063
SELECT ALL COALESCE ( - COUNT ( * ), - CAST ( NULL AS INTEGER ) * - - ( - 29 ), - COUNT ( * ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4064
SELECT - 53 DIV - + COUNT( * ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-4064
SELECT - 53 / - + COUNT ( * ) AS col0
----
53

query I rowsort
SELECT 55 + + 88 + + - 55
----
88

query I rowsort
SELECT + 26 col0
----
26

query I rowsort
SELECT + 29 AS col2
----
29

query I rowsort
SELECT ALL 42 AS col2
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-4069
SELECT ALL + 81 DIV - 72 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4069
SELECT ALL + 81 / - 72 AS col1
----
-1

query I rowsort
SELECT DISTINCT 97 AS col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4071
SELECT - COUNT( - + 94 ) * + 43
----
-43

skipif mysql # not compatible
query I rowsort label-4071
SELECT - COUNT ( - + 94 ) * + 43
----
-43

query I rowsort
SELECT - 59 AS col0
----
-59

query I rowsort
SELECT - 17 AS col1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4074
SELECT ALL ( - + COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4074
SELECT ALL ( - + COUNT ( * ) ) AS col0
----
-1

query II rowsort
SELECT - 28 col0, + ( + 90 ) AS col2
----
-28
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4076
SELECT ALL + 92 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4076
SELECT ALL + 92 * - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 82 AS col0
----
82

query I rowsort
SELECT ALL + + 24
----
24

query I rowsort
SELECT ALL - 60 * 22 AS col0
----
-1320

query I rowsort
SELECT ALL + - 91
----
-91

query I rowsort
SELECT - ( - - NULLIF ( - + 42, + 58 ) ) AS col1
----
42

query I rowsort
SELECT 96 col1
----
96

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4083
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4083
SELECT DISTINCT - CAST ( NULL AS REAL ) * COUNT ( * )
----
NULL

query I rowsort
SELECT + + 73 AS col1
----
73

query I rowsort
SELECT ALL + - 22 AS col1
----
-22

query I rowsort
SELECT DISTINCT - 48
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4087
SELECT + + ( - COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4087
SELECT + + ( - COUNT ( * ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4088
SELECT 46 + + COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-4088
SELECT 46 + + COUNT ( * )
----
47

query I rowsort
SELECT ALL 38 - + 97 col0
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4090
SELECT + 98, CAST( NULL AS SIGNED ) AS col1
----
98
NULL

skipif mysql # not compatible
query II rowsort label-4090
SELECT + 98, CAST ( NULL AS INTEGER ) AS col1
----
98
NULL

query I rowsort
SELECT ALL - - 80
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4092
SELECT DISTINCT - - ( + SUM( - ( - 41 ) ) )
----
41

skipif mysql # not compatible
query I rowsort label-4092
SELECT DISTINCT - - ( + SUM ( - ( - 41 ) ) )
----
41

query I rowsort
SELECT 16 col2
----
16

query I rowsort
SELECT DISTINCT 8
----
8

query I rowsort
SELECT - 10 AS col1
----
-10

query I rowsort
SELECT - 13 AS col2
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-4097
SELECT COUNT( * ) * 63 * 17 AS col1
----
1071

skipif mysql # not compatible
query I rowsort label-4097
SELECT COUNT ( * ) * 63 * 17 AS col1
----
1071

query I rowsort
SELECT - 75 col2
----
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-4099
SELECT - COUNT( * ), 61 AS col1
----
-1
61

skipif mysql # not compatible
query II rowsort label-4099
SELECT - COUNT ( * ), 61 AS col1
----
-1
61

query I rowsort
SELECT ALL + ( + 23 ) AS col0
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4101
SELECT ALL + 73 * - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4101
SELECT ALL + 73 * - CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4102
SELECT DISTINCT - COUNT( * ) + - 2 - - 80
----
77

skipif mysql # not compatible
query I rowsort label-4102
SELECT DISTINCT - COUNT ( * ) + - 2 - - 80
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4103
SELECT ALL + SUM( DISTINCT 12 ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-4103
SELECT ALL + SUM ( DISTINCT 12 ) AS col0
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4104
SELECT ALL 99 DIV COUNT( * ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-4104
SELECT ALL 99 / COUNT ( * ) AS col1
----
99

query I rowsort
SELECT NULLIF ( + + 37, - - 92 )
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4106
SELECT ALL + ( + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4106
SELECT ALL + ( + - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4107
SELECT - 91 + + COUNT( * ) AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-4107
SELECT - 91 + + COUNT ( * ) AS col1
----
-90

query I rowsort
SELECT ALL 37
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4109
SELECT - MAX( ALL 96 ) AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-4109
SELECT - MAX ( ALL 96 ) AS col0
----
-96

query I rowsort
SELECT DISTINCT 27 AS col1
----
27

query I rowsort
SELECT DISTINCT + 71 col0
----
71

query I rowsort
SELECT ALL - 18 + - 0 * 12 AS col0
----
-18

query I rowsort
SELECT - 39 AS col2
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4114
SELECT ALL - NULLIF ( - + COUNT( * ), 86 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4114
SELECT ALL - NULLIF ( - + COUNT ( * ), 86 ) AS col1
----
1

query I rowsort
SELECT DISTINCT - 77 AS col0
----
-77

query I rowsort
SELECT 75 AS col1
----
75

query I rowsort
SELECT + ( - + 57 ) + 52 AS col1
----
-5

query I rowsort
SELECT - 22
----
-22

query I rowsort
SELECT ALL - 44 AS col0
----
-44

query I rowsort
SELECT DISTINCT - 21
----
-21

query I rowsort
SELECT - - 3
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4122
SELECT ALL - MAX( DISTINCT 56 )
----
-56

skipif mysql # not compatible
query I rowsort label-4122
SELECT ALL - MAX ( DISTINCT 56 )
----
-56

query I rowsort
SELECT DISTINCT + 67 AS col0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4124
SELECT + COUNT( * ) + 29
----
30

skipif mysql # not compatible
query I rowsort label-4124
SELECT + COUNT ( * ) + 29
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4125
SELECT MAX( 6 ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-4125
SELECT MAX ( 6 ) AS col2
----
6

query I rowsort
SELECT - 67
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-4127
SELECT + COUNT( * ) * - 92
----
-92

skipif mysql # not compatible
query I rowsort label-4127
SELECT + COUNT ( * ) * - 92
----
-92

query I rowsort
SELECT - ( - + ( - - 98 ) )
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-4129
SELECT - 38 DIV 25
----
-1

skipif mysql # not compatible
query I rowsort label-4129
SELECT - 38 / 25
----
-1

query I rowsort
SELECT ( - + 40 )
----
-40

query I rowsort
SELECT - + 66
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-4132
SELECT DISTINCT + NULLIF ( COUNT( * ), COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4132
SELECT DISTINCT + NULLIF ( COUNT ( * ), COUNT ( * ) )
----
NULL

query I rowsort
SELECT DISTINCT 42 AS col0
----
42

query I rowsort
SELECT + - 89 AS col0
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4135
SELECT DISTINCT - - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4135
SELECT DISTINCT - - COUNT ( * )
----
1

query I rowsort
SELECT - 20
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-4137
SELECT ALL - 25 + + + 40 * COUNT( * ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-4137
SELECT ALL - 25 + + + 40 * COUNT ( * ) AS col0
----
15

query II rowsort
SELECT - 36, + 78 AS col0
----
-36
78

query I rowsort
SELECT ALL + 84 * + 79
----
6636

query I rowsort
SELECT + + 1
----
1

query I rowsort
SELECT ALL - 24 AS col1
----
-24

query I rowsort
SELECT ALL - - 74
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4143
SELECT DISTINCT - 40 + - COUNT( * ) AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-4143
SELECT DISTINCT - 40 + - COUNT ( * ) AS col2
----
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-4144
SELECT DISTINCT + 5 * + COUNT( * ) + 63 AS col1, + 94 AS col0
----
68
94

skipif mysql # not compatible
query II rowsort label-4144
SELECT DISTINCT + 5 * + COUNT ( * ) + 63 AS col1, + 94 AS col0
----
68
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4145
SELECT DISTINCT - COUNT( * ) * + - 96 AS col2
----
96

skipif mysql # not compatible
query I rowsort label-4145
SELECT DISTINCT - COUNT ( * ) * + - 96 AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4146
SELECT + ( COUNT( * ) ) + 23
----
24

skipif mysql # not compatible
query I rowsort label-4146
SELECT + ( COUNT ( * ) ) + 23
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-4147
SELECT + 78 DIV + 12
----
6

skipif mysql # not compatible
query I rowsort label-4147
SELECT + 78 / + 12
----
6

query I rowsort
SELECT - 48 * + 95 AS col0
----
-4560

query I rowsort
SELECT + + 51 col0
----
51

query I rowsort
SELECT ALL + + 53
----
53

query I rowsort
SELECT + + 21 + + 75
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4152
SELECT ALL MAX( - - 51 ) * - MAX( DISTINCT + 29 ) AS col2
----
-1479

skipif mysql # not compatible
query I rowsort label-4152
SELECT ALL MAX ( - - 51 ) * - MAX ( DISTINCT + 29 ) AS col2
----
-1479

query I rowsort
SELECT DISTINCT 7 AS col0
----
7

query I rowsort
SELECT ALL - + 59 col2
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4155
SELECT DISTINCT + 19 - - COUNT( * ) + - 83
----
-63

skipif mysql # not compatible
query I rowsort label-4155
SELECT DISTINCT + 19 - - COUNT ( * ) + - 83
----
-63

query I rowsort
SELECT - 38 * + + 34 * + + 28 + + - COALESCE ( + + 1, - 69 )
----
-36177

onlyif mysql # aggregate syntax: 
query I rowsort label-4157
SELECT 25 * + COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-4157
SELECT 25 * + COUNT ( * )
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4158
SELECT ( + - COUNT( * ) ) - ( - - SUM( ALL + 2 ) ) DIV - NULLIF ( + 44, 35 ) * + 26 AS col0, 81 AS col1
----
-1
81

skipif mysql # not compatible
query II rowsort label-4158
SELECT ( + - COUNT ( * ) ) - ( - - SUM ( ALL + 2 ) ) / - NULLIF ( + 44, 35 ) * + 26 AS col0, 81 AS col1
----
-1
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4159
SELECT - 67 + - MIN( DISTINCT 12 )
----
-79

skipif mysql # not compatible
query I rowsort label-4159
SELECT - 67 + - MIN ( DISTINCT 12 )
----
-79

query I rowsort
SELECT + - 58
----
-58

query I rowsort
SELECT + - ( + + 73 )
----
-73

query I rowsort
SELECT ( + + 77 ) AS col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4163
SELECT ALL + COUNT( * ) * 1 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4163
SELECT ALL + COUNT ( * ) * 1 AS col1
----
1

query I rowsort
SELECT + - 6 AS col1
----
-6

query I rowsort
SELECT 10
----
10

query I rowsort
SELECT + 39 AS col2
----
39

query I rowsort
SELECT - 8 AS col1
----
-8

query I rowsort
SELECT 64 col0
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4169
SELECT 50 * + + ( - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4169
SELECT 50 * + + ( - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT - 19 col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4171
SELECT ALL MIN( + NULLIF ( 31, - + 36 ) ) + ( 62 ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-4171
SELECT ALL MIN ( + NULLIF ( 31, - + 36 ) ) + ( 62 ) AS col0
----
93

query I rowsort
SELECT DISTINCT 86 + - 51 AS col1
----
35

query I rowsort
SELECT + 91 * - 37
----
-3367

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4174
SELECT NULLIF ( CAST( NULL AS DECIMAL ), COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4174
SELECT NULLIF ( CAST ( NULL AS REAL ), COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4175
SELECT - - MIN( + 94 )
----
94

skipif mysql # not compatible
query I rowsort label-4175
SELECT - - MIN ( + 94 )
----
94

query I rowsort
SELECT DISTINCT + + 32 AS col2
----
32

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4177
SELECT AVG ( + + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4177
SELECT AVG ( + + CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT ALL + ( + ( + 47 ) ) AS col0
----
47

query I rowsort
SELECT ALL + 9
----
9

query I rowsort
SELECT ( 23 ) * + - 11 + + 53 col1
----
-200

onlyif mysql # DIV for integer division: 
query I rowsort label-4181
SELECT DISTINCT - 46 DIV + 50
----
0

skipif mysql # not compatible
query I rowsort label-4181
SELECT DISTINCT - 46 / + 50
----
0

query I rowsort
SELECT DISTINCT + 83 - 49 AS col2
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4183
SELECT DISTINCT ( - + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4183
SELECT DISTINCT ( - + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4184
SELECT ALL SUM( DISTINCT + 62 ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-4184
SELECT ALL SUM ( DISTINCT + 62 ) AS col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4185
SELECT ALL - 90 * + COUNT( * ) AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-4185
SELECT ALL - 90 * + COUNT ( * ) AS col2
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-4186
SELECT COUNT( * ) * 37 - + 22 AS col0
----
15

skipif mysql # not compatible
query I rowsort label-4186
SELECT COUNT ( * ) * 37 - + 22 AS col0
----
15

query I rowsort
SELECT DISTINCT + 27
----
27

query I rowsort
SELECT ALL + 4
----
4

query I rowsort
SELECT DISTINCT + 17 AS col0
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4190
SELECT - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4190
SELECT - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4191
SELECT COUNT( * ) + 83 AS col2
----
84

skipif mysql # not compatible
query I rowsort label-4191
SELECT COUNT ( * ) + 83 AS col2
----
84

query I rowsort
SELECT ALL - 35 AS col2
----
-35

query I rowsort
SELECT + 51 - 39 AS col0
----
12

query I rowsort
SELECT ALL - ( 20 )
----
-20

query I rowsort
SELECT ALL - 39 AS col2
----
-39

query I rowsort
SELECT DISTINCT - 30 AS col1
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4197
SELECT CAST( NULL AS SIGNED ) * + 64 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4197
SELECT CAST ( NULL AS INTEGER ) * + 64 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4198
SELECT COUNT( * ) AS col2, - ( + - 5 )
----
1
5

skipif mysql # not compatible
query II rowsort label-4198
SELECT COUNT ( * ) AS col2, - ( + - 5 )
----
1
5

query I rowsort
SELECT + 94 AS col0
----
94

query I rowsort
SELECT ALL - 39 col1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4201
SELECT SUM( 11 ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-4201
SELECT SUM ( 11 ) AS col2
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-4202
SELECT ALL + COUNT( * ), + 94 col0
----
1
94

skipif mysql # not compatible
query II rowsort label-4202
SELECT ALL + COUNT ( * ), + 94 col0
----
1
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4203
SELECT COUNT( ALL 40 )
----
1

skipif mysql # not compatible
query I rowsort label-4203
SELECT COUNT ( ALL 40 )
----
1

query I rowsort
SELECT - - 72
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4205
SELECT - COUNT( * ), 52 DIV 68 AS col2
----
-1
0

skipif mysql # not compatible
query II rowsort label-4205
SELECT - COUNT ( * ), 52 / 68 AS col2
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4206
SELECT + ( + COUNT( * ) ) - - 71 AS col0
----
72

skipif mysql # not compatible
query I rowsort label-4206
SELECT + ( + COUNT ( * ) ) - - 71 AS col0
----
72

query I rowsort
SELECT DISTINCT 95
----
95

query I rowsort
SELECT DISTINCT + 45 col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4209
SELECT - COUNT( * ) + - 33
----
-34

skipif mysql # not compatible
query I rowsort label-4209
SELECT - COUNT ( * ) + - 33
----
-34

query I rowsort
SELECT - 27 AS col1
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-4211
SELECT + + 94 + - COUNT( * ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-4211
SELECT + + 94 + - COUNT ( * ) AS col2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4212
SELECT + - 69 * - COUNT( * ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-4212
SELECT + - 69 * - COUNT ( * ) AS col2
----
69

query II rowsort
SELECT ALL 62 - - ( 92 ) AS col2, 39 AS col1
----
154
39

query I rowsort
SELECT DISTINCT 82
----
82

query I rowsort
SELECT DISTINCT 48
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4216
SELECT 13 * + 38 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4216
SELECT 13 * + 38 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 52 AS col0
----
-52

query I rowsort
SELECT DISTINCT 95 AS col1
----
95

query I rowsort
SELECT - + 27 AS col1
----
-27

query II rowsort
SELECT + 51 AS col0, + 65 AS col0
----
51
65

query I rowsort
SELECT ALL 85
----
85

query I rowsort
SELECT 98 * - - 51
----
4998

query I rowsort
SELECT ALL 47 * + + 18
----
846

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4224
SELECT ALL - + CAST( NULL AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4224
SELECT ALL - + CAST ( NULL AS REAL ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4225
SELECT DISTINCT MIN( ALL + + 40 )
----
40

skipif mysql # not compatible
query I rowsort label-4225
SELECT DISTINCT MIN ( ALL + + 40 )
----
40

query I rowsort
SELECT DISTINCT + 3 col1
----
3

query I rowsort
SELECT DISTINCT + ( 17 ) AS col1
----
17

query I rowsort
SELECT + - 85 AS col2
----
-85

query I rowsort
SELECT ALL + 52
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4230
SELECT DISTINCT + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4230
SELECT DISTINCT + + COUNT ( * )
----
1

query I rowsort
SELECT ALL + - 17 AS col0
----
-17

query II rowsort
SELECT + 36, 15 AS col2
----
36
15

query I rowsort
SELECT DISTINCT + + 26 AS col2
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4234
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4234
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4235
SELECT ALL + COUNT( * ) DIV - COUNT( * ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-4235
SELECT ALL + COUNT ( * ) / - COUNT ( * ) col0
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4236
SELECT + CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4236
SELECT + CAST ( NULL AS REAL ) col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4237
SELECT MAX( DISTINCT - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4237
SELECT MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 44
----
44

query I rowsort
SELECT ALL + 19 + - + 11 AS col2
----
8

query I rowsort
SELECT 87 col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4241
SELECT ALL ( - COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4241
SELECT ALL ( - COUNT ( * ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4242
SELECT ALL + COUNT( * ) - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4242
SELECT ALL + COUNT ( * ) - COUNT ( * )
----
0

query I rowsort
SELECT ALL 12
----
12

query I rowsort
SELECT ALL 40 AS col2
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4245
SELECT DISTINCT CAST( + + ( 35 ) AS SIGNED ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-4245
SELECT DISTINCT CAST ( + + ( 35 ) AS INTEGER ) AS col2
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4246
SELECT ALL - ( CAST( - + 39 AS SIGNED ) ) * - + 62 * 41 AS col0
----
-99138

skipif mysql # not compatible
query I rowsort label-4246
SELECT ALL - ( CAST ( - + 39 AS INTEGER ) ) * - + 62 * 41 AS col0
----
-99138

onlyif mysql # aggregate syntax: 
query I rowsort label-4247
SELECT + COUNT( * ) + 81
----
82

skipif mysql # not compatible
query I rowsort label-4247
SELECT + COUNT ( * ) + 81
----
82

query I rowsort
SELECT DISTINCT + 20 col2
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4249
SELECT ALL 92 DIV COUNT( * ) col0
----
92

skipif mysql # not compatible
query I rowsort label-4249
SELECT ALL 92 / COUNT ( * ) col0
----
92

query I rowsort
SELECT ALL + - 32
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4251
SELECT + CAST( 88 AS SIGNED )
----
88

skipif mysql # not compatible
query I rowsort label-4251
SELECT + CAST ( 88 AS INTEGER )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4252
SELECT ALL 36 - 80 * - 54 + - COUNT( * ) AS col0
----
4355

skipif mysql # not compatible
query I rowsort label-4252
SELECT ALL 36 - 80 * - 54 + - COUNT ( * ) AS col0
----
4355

query I rowsort
SELECT ALL 29 AS col0
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4254
SELECT CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4254
SELECT CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT + 91 AS col1
----
91

query I rowsort
SELECT DISTINCT - 43 AS col0
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4257
SELECT DISTINCT - + CAST( + 1 AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-4257
SELECT DISTINCT - + CAST ( + 1 AS INTEGER )
----
-1

query I rowsort
SELECT DISTINCT - 66 AS col1
----
-66

query I rowsort
SELECT + + 17 AS col0
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-4260
SELECT ALL - COUNT( * ) * + + SUM( + + 85 ), + 86 AS col1
----
-85
86

skipif mysql # not compatible
query II rowsort label-4260
SELECT ALL - COUNT ( * ) * + + SUM ( + + 85 ), + 86 AS col1
----
-85
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4261
SELECT + COUNT( * ) * ( 67 )
----
67

skipif mysql # not compatible
query I rowsort label-4261
SELECT + COUNT ( * ) * ( 67 )
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4262
SELECT 94 * - CAST( - MIN( 69 ) AS SIGNED )
----
6486

skipif mysql # not compatible
query I rowsort label-4262
SELECT 94 * - CAST ( - MIN ( 69 ) AS INTEGER )
----
6486

query I rowsort
SELECT - + 37 AS col2
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-4264
SELECT COUNT( * ) + 31
----
32

skipif mysql # not compatible
query I rowsort label-4264
SELECT COUNT ( * ) + 31
----
32

query I rowsort
SELECT + 20 AS col0
----
20

query I rowsort
SELECT + + 42
----
42

query II rowsort
SELECT + 54 AS col1, 63 AS col0
----
54
63

query I rowsort
SELECT ALL + + 77 AS col1
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4269
SELECT ALL - 24 * 77 DIV + COUNT( * ) AS col1
----
-1848

skipif mysql # not compatible
query I rowsort label-4269
SELECT ALL - 24 * 77 / + COUNT ( * ) AS col1
----
-1848

query I rowsort
SELECT ALL + ( 29 )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4271
SELECT + COUNT( DISTINCT - 75 ) + + MIN( 28 ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-4271
SELECT + COUNT ( DISTINCT - 75 ) + + MIN ( 28 ) AS col2
----
29

query I rowsort
SELECT ALL + ( ( 58 ) )
----
58

query I rowsort
SELECT + 49
----
49

query I rowsort
SELECT 17 AS col0
----
17

query I rowsort
SELECT DISTINCT ( - 3 )
----
-3

query I rowsort
SELECT DISTINCT 48 AS col2
----
48

query I rowsort
SELECT - 76
----
-76

query I rowsort
SELECT + 42 * - + 55
----
-2310

query I rowsort
SELECT ALL - 65 col2
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-4280
SELECT - + COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4280
SELECT - + COUNT ( * ) AS col0
----
-1

query I rowsort
SELECT + 10 AS col0
----
10

query I rowsort
SELECT ALL + 98
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-4283
SELECT ALL - 0 DIV - 98 + + 41 AS col1
----
41

skipif mysql # not compatible
query I rowsort label-4283
SELECT ALL - 0 / - 98 + + 41 AS col1
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4284
SELECT + CAST( + + 13 AS SIGNED ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-4284
SELECT + CAST ( + + 13 AS INTEGER ) AS col0
----
13

query I rowsort
SELECT ALL + 58 col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4286
SELECT - COUNT( * ) - - 90 AS col0
----
89

skipif mysql # not compatible
query I rowsort label-4286
SELECT - COUNT ( * ) - - 90 AS col0
----
89

query I rowsort
SELECT + ( - 92 ) AS col2
----
-92

query I rowsort
SELECT DISTINCT + 61 col0
----
61

query I rowsort
SELECT ( + + 98 )
----
98

query I rowsort
SELECT ALL + 77 AS col0
----
77

query I rowsort
SELECT + 60 * 78 AS col1
----
4680

query I rowsort
SELECT ALL - 59 AS col1
----
-59

query I rowsort
SELECT + 39 AS col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4294
SELECT ALL - SUM( ALL + - 17 )
----
17

skipif mysql # not compatible
query I rowsort label-4294
SELECT ALL - SUM ( ALL + - 17 )
----
17

query I rowsort
SELECT ALL - 58 AS col2
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4296
SELECT ALL - CAST( COUNT( * ) AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4296
SELECT ALL - CAST ( COUNT ( * ) AS INTEGER ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4297
SELECT ALL CAST( NULL AS SIGNED ) - + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-4297
SELECT ALL CAST ( NULL AS INTEGER ) - + 48
----
NULL

query I rowsort
SELECT 38 + - 85
----
-47

query I rowsort
SELECT ALL 84 AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4300
SELECT ALL SUM( + - 43 )
----
-43

skipif mysql # not compatible
query I rowsort label-4300
SELECT ALL SUM ( + - 43 )
----
-43

query I rowsort
SELECT ALL 31 AS col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4302
SELECT COUNT( * ) + 4 + - 58
----
-53

skipif mysql # not compatible
query I rowsort label-4302
SELECT COUNT ( * ) + 4 + - 58
----
-53

query I rowsort
SELECT + 42
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4304
SELECT MIN( ALL + + 61 ) col2
----
61

skipif mysql # not compatible
query I rowsort label-4304
SELECT MIN ( ALL + + 61 ) col2
----
61

query I rowsort
SELECT + 68 AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4306
SELECT - COUNT( * ) * - COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4306
SELECT - COUNT ( * ) * - COUNT ( * ) AS col1
----
1

query I rowsort
SELECT ALL - 22 AS col1
----
-22

query I rowsort
SELECT - - 83 - 2
----
81

query I rowsort
SELECT ALL 75 AS col2
----
75

query I rowsort
SELECT DISTINCT 84 AS col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4311
SELECT + COUNT( * ) col1
----
1

skipif mysql # not compatible
query I rowsort label-4311
SELECT + COUNT ( * ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4312
SELECT + COALESCE ( 58, + + MIN( - 72 ), + - 62 ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-4312
SELECT + COALESCE ( 58, + + MIN ( - 72 ), + - 62 ) AS col1
----
58

query I rowsort
SELECT + + 70 AS col1
----
70

query I rowsort
SELECT ALL - 3
----
-3

query I rowsort
SELECT 52 AS col2
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4316
SELECT - CAST( - - 67 AS SIGNED )
----
-67

skipif mysql # not compatible
query I rowsort label-4316
SELECT - CAST ( - - 67 AS INTEGER )
----
-67

query I rowsort
SELECT DISTINCT - 72 col0
----
-72

query I rowsort
SELECT ALL - 62 * COALESCE ( 68, + 37 ) AS col2
----
-4216

query I rowsort
SELECT ALL - - 26 AS col0
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4320
SELECT - CAST( + 13 AS SIGNED ) + - + COUNT( * )
----
-14

skipif mysql # not compatible
query I rowsort label-4320
SELECT - CAST ( + 13 AS INTEGER ) + - + COUNT ( * )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4321
SELECT 51 * - + COUNT( * ) AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-4321
SELECT 51 * - + COUNT ( * ) AS col2
----
-51

query I rowsort
SELECT ALL 97 AS col1
----
97

query I rowsort
SELECT ALL - 17 AS col2
----
-17

query I rowsort
SELECT + - 7 AS col0
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4325
SELECT ALL - ( CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4325
SELECT ALL - ( CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4326
SELECT MAX( DISTINCT 99 )
----
99

skipif mysql # not compatible
query I rowsort label-4326
SELECT MAX ( DISTINCT 99 )
----
99

query I rowsort
SELECT + 59 AS col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4328
SELECT ALL + COUNT( * ) + + 27 AS col2
----
28

skipif mysql # not compatible
query I rowsort label-4328
SELECT ALL + COUNT ( * ) + + 27 AS col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4329
SELECT ALL - 65 + - ( COUNT( * ) ) + + 73 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-4329
SELECT ALL - 65 + - ( COUNT ( * ) ) + + 73 AS col2
----
7

query I rowsort
SELECT - 74 col0
----
-74

query I rowsort
SELECT DISTINCT 86 AS col2
----
86

query II rowsort
SELECT 33 AS col1, ( + - 38 )
----
33
-38

query I rowsort
SELECT ALL + 96
----
96

query I rowsort
SELECT 25 col2
----
25

query I rowsort
SELECT 11 AS col2
----
11

query I rowsort
SELECT - 15 AS col2
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4337
SELECT - 50 + - 45 + + COUNT( * ) * + 64 - - 84 AS col0
----
53

skipif mysql # not compatible
query I rowsort label-4337
SELECT - 50 + - 45 + + COUNT ( * ) * + 64 - - 84 AS col0
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4338
SELECT + + MAX( ALL 93 ) DIV - COUNT( * ) AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-4338
SELECT + + MAX ( ALL 93 ) / - COUNT ( * ) AS col2
----
-93

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4339
SELECT DISTINCT + 9 DIV - 25 + - + CAST( + 40 AS SIGNED ) + + + 34 * - ( 82 )
----
-2828

skipif mysql # not compatible
query I rowsort label-4339
SELECT DISTINCT + 9 / - 25 + - + CAST ( + 40 AS INTEGER ) + + + 34 * - ( 82 )
----
-2828

query I rowsort
SELECT + + 72
----
72

query I rowsort
SELECT DISTINCT - 19 AS col2
----
-19

query I rowsort
SELECT ( - 86 ) + 95
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4343
SELECT DISTINCT + COUNT( * ) + + 90 AS col0
----
91

skipif mysql # not compatible
query I rowsort label-4343
SELECT DISTINCT + COUNT ( * ) + + 90 AS col0
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4344
SELECT DISTINCT - CAST( + + NULLIF ( ( 66 ), - 87 + + COUNT( * ) * + COUNT( * ) ) AS SIGNED ) + - ( CAST( NULL AS SIGNED ) ) AS col0, + COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4344
SELECT DISTINCT - CAST ( + + NULLIF ( ( 66 ), - 87 + + COUNT ( * ) * + COUNT ( * ) ) AS INTEGER ) + - ( CAST ( NULL AS INTEGER ) ) AS col0, + COUNT ( * )
----
NULL
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4345
SELECT CAST( NULL AS DECIMAL ) * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4345
SELECT CAST ( NULL AS REAL ) * - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL - ( + 14 ) AS col2
----
-14

query I rowsort
SELECT DISTINCT - 9
----
-9

query I rowsort
SELECT 31 AS col2
----
31

query I rowsort
SELECT + 88 AS col2
----
88

query I rowsort
SELECT - 99 col0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4351
SELECT ALL COUNT( * ) + - 64
----
-63

skipif mysql # not compatible
query I rowsort label-4351
SELECT ALL COUNT ( * ) + - 64
----
-63

query I rowsort
SELECT ALL 55 AS col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4353
SELECT + 34 + + + COUNT( * )
----
35

skipif mysql # not compatible
query I rowsort label-4353
SELECT + 34 + + + COUNT ( * )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4354
SELECT ALL NULLIF ( + COUNT( * ), + - COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-4354
SELECT ALL NULLIF ( + COUNT ( * ), + - COUNT ( * ) )
----
1

query I rowsort
SELECT ALL + + 7 AS col0
----
7

query II rowsort
SELECT ALL + 41 col2, - 43 AS col0
----
41
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-4357
SELECT DISTINCT + 49 * - COUNT( * ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-4357
SELECT DISTINCT + 49 * - COUNT ( * ) AS col0
----
-49

query I rowsort
SELECT DISTINCT + 14 AS col0
----
14

query I rowsort
SELECT - 73 col0
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4360
SELECT ALL CAST( 49 AS SIGNED ) col1
----
49

skipif mysql # not compatible
query I rowsort label-4360
SELECT ALL CAST ( 49 AS INTEGER ) col1
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4361
SELECT ALL + SUM( + 66 ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-4361
SELECT ALL + SUM ( + 66 ) AS col1
----
66

query I rowsort
SELECT - 7 AS col1
----
-7

query I rowsort
SELECT ALL 41 col1
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4364
SELECT + + 20 DIV - - SUM( DISTINCT - 96 )
----
0

skipif mysql # not compatible
query I rowsort label-4364
SELECT + + 20 / - - SUM ( DISTINCT - 96 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4365
SELECT ALL + COUNT( * ) DIV - - 53
----
0

skipif mysql # not compatible
query I rowsort label-4365
SELECT ALL + COUNT ( * ) / - - 53
----
0

query I rowsort
SELECT ALL + 12 AS col2
----
12

query I rowsort
SELECT ( - 69 )
----
-69

query I rowsort
SELECT ( - 55 ) AS col0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-4369
SELECT - - 16 + + COUNT( * ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-4369
SELECT - - 16 + + COUNT ( * ) AS col0
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4370
SELECT 2 * 44 * - + CAST( - 86 AS SIGNED )
----
7568

skipif mysql # not compatible
query I rowsort label-4370
SELECT 2 * 44 * - + CAST ( - 86 AS INTEGER )
----
7568

onlyif mysql # aggregate syntax: 
query I rowsort label-4371
SELECT DISTINCT 14 * + COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-4371
SELECT DISTINCT 14 * + COUNT ( * )
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-4372
SELECT ALL 43 DIV + 59 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4372
SELECT ALL 43 / + 59 AS col1
----
0

query I rowsort
SELECT ALL - 65
----
-65

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4374
SELECT DISTINCT - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4374
SELECT DISTINCT - CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT - ( - 18 ) AS col1
----
18

query I rowsort
SELECT + 42 AS col2
----
42

query I rowsort
SELECT ALL - 20 col0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-4378
SELECT - + MIN( DISTINCT - 68 ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-4378
SELECT - + MIN ( DISTINCT - 68 ) AS col1
----
68

query I rowsort
SELECT DISTINCT 69
----
69

query I rowsort
SELECT ALL 73 * - 1
----
-73

query I rowsort
SELECT ALL - ( - 9 ) AS col0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4382
SELECT DISTINCT - CAST( 75 AS SIGNED ) AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-4382
SELECT DISTINCT - CAST ( 75 AS INTEGER ) AS col0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4383
SELECT COUNT( + 68 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4383
SELECT COUNT ( + 68 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4384
SELECT + MAX( 41 )
----
41

skipif mysql # not compatible
query I rowsort label-4384
SELECT + MAX ( 41 )
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4385
SELECT COUNT( * ) DIV 34
----
0

skipif mysql # not compatible
query I rowsort label-4385
SELECT COUNT ( * ) / 34
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4386
SELECT MAX( - 41 ) AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-4386
SELECT MAX ( - 41 ) AS col1
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4387
SELECT ALL + CAST( 79 AS SIGNED )
----
79

skipif mysql # not compatible
query I rowsort label-4387
SELECT ALL + CAST ( 79 AS INTEGER )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4388
SELECT ( + COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4388
SELECT ( + COUNT ( * ) ) AS col1
----
1

query I rowsort
SELECT DISTINCT + 49 AS col2
----
49

query I rowsort
SELECT ALL + 79 * - 33
----
-2607

onlyif mysql # aggregate syntax: 
query I rowsort label-4391
SELECT - COUNT( * ) * 13 * - - 59 AS col0
----
-767

skipif mysql # not compatible
query I rowsort label-4391
SELECT - COUNT ( * ) * 13 * - - 59 AS col0
----
-767

query II rowsort
SELECT ALL + ( + + 82 ), 83 AS col1
----
82
83

query I rowsort
SELECT DISTINCT + - 10 AS col0
----
-10

query I rowsort
SELECT + - 1
----
-1

query I rowsort
SELECT 87 AS col2
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4396
SELECT - CAST( NULL AS SIGNED ) * - + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-4396
SELECT - CAST ( NULL AS INTEGER ) * - + 35
----
NULL

query I rowsort
SELECT - 61 AS col0
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4398
SELECT + CAST( NULL AS SIGNED ) + - - 36 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4398
SELECT + CAST ( NULL AS INTEGER ) + - - 36 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4399
SELECT - COUNT( * ) + + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4399
SELECT - COUNT ( * ) + + COUNT ( * ) AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4400
SELECT + 72 DIV + 79
----
0

skipif mysql # not compatible
query I rowsort label-4400
SELECT + 72 / + 79
----
0

query I rowsort
SELECT DISTINCT 46 + 94
----
140

query I rowsort
SELECT 60 + - 31 col2
----
29

query I rowsort
SELECT ALL 69 AS col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4404
SELECT 85 * COUNT( * )
----
85

skipif mysql # not compatible
query I rowsort label-4404
SELECT 85 * COUNT ( * )
----
85

query I rowsort
SELECT ALL 80
----
80

query I rowsort
SELECT - 91
----
-91

query I rowsort
SELECT ( - 0 ) * ( 37 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4408
SELECT ALL COUNT( * ) + - 20
----
-19

skipif mysql # not compatible
query I rowsort label-4408
SELECT ALL COUNT ( * ) + - 20
----
-19

query I rowsort
SELECT ( 14 ) AS col0
----
14

query I rowsort
SELECT ALL - - 87
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-4411
SELECT DISTINCT 28 + + 95 DIV 76 AS col1
----
29

skipif mysql # not compatible
query I rowsort label-4411
SELECT DISTINCT 28 + + 95 / 76 AS col1
----
29

query I rowsort
SELECT ALL - 33 col2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-4413
SELECT + + MAX( DISTINCT + 79 )
----
79

skipif mysql # not compatible
query I rowsort label-4413
SELECT + + MAX ( DISTINCT + 79 )
----
79

query I rowsort
SELECT DISTINCT - + 95
----
-95

query I rowsort
SELECT 45 AS col1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4416
SELECT ALL SUM( + 34 )
----
34

skipif mysql # not compatible
query I rowsort label-4416
SELECT ALL SUM ( + 34 )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4417
SELECT ALL MIN( ALL + + 23 ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-4417
SELECT ALL MIN ( ALL + + 23 ) AS col0
----
23

query I rowsort
SELECT 49 * 3
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-4419
SELECT ALL - 11 + + COUNT( * ) + - 19
----
-29

skipif mysql # not compatible
query I rowsort label-4419
SELECT ALL - 11 + + COUNT ( * ) + - 19
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-4420
SELECT ALL + COUNT( ALL + 65 )
----
1

skipif mysql # not compatible
query I rowsort label-4420
SELECT ALL + COUNT ( ALL + 65 )
----
1

query I rowsort
SELECT 69 AS col2
----
69

query I rowsort
SELECT DISTINCT + 19 col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4423
SELECT DISTINCT + ( - - COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-4423
SELECT DISTINCT + ( - - COUNT ( * ) )
----
1

query I rowsort
SELECT + - 48 - + 28
----
-76

query I rowsort
SELECT 75 AS col2
----
75

query I rowsort
SELECT DISTINCT + 35
----
35

query I rowsort
SELECT ALL + 40 AS col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4428
SELECT ALL + COUNT( - 1 )
----
1

skipif mysql # not compatible
query I rowsort label-4428
SELECT ALL + COUNT ( - 1 )
----
1

query I rowsort
SELECT DISTINCT + 46
----
46

query I rowsort
SELECT ALL - 52 + + + 1 * + 84 AS col2
----
32

query I rowsort
SELECT - ( + 54 )
----
-54

query I rowsort
SELECT - ( - 57 ) + - 27 * + 79 AS col0
----
-2076

query I rowsort
SELECT ALL + ( 85 )
----
85

query I rowsort
SELECT + - 19 * 3
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-4435
SELECT + 52 + COUNT( * )
----
53

skipif mysql # not compatible
query I rowsort label-4435
SELECT + 52 + COUNT ( * )
----
53

query I rowsort
SELECT DISTINCT + 3
----
3

query I rowsort
SELECT 20 - 39
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4438
SELECT COUNT( * ) * + + 47 AS col0
----
47

skipif mysql # not compatible
query I rowsort label-4438
SELECT COUNT ( * ) * + + 47 AS col0
----
47

query I rowsort
SELECT ALL - - 6 AS col0
----
6

query I rowsort
SELECT 10 AS col2
----
10

query I rowsort
SELECT ALL - 68
----
-68

query I rowsort
SELECT 47
----
47

query I rowsort
SELECT - 0 AS col1
----
0

query I rowsort
SELECT - + 69 AS col2
----
-69

query I rowsort
SELECT DISTINCT 93 AS col0
----
93

query I rowsort
SELECT + 72 col2
----
72

query I rowsort
SELECT ALL + ( - 3 )
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-4448
SELECT DISTINCT + COUNT( * ) AS col1, COUNT( DISTINCT 63 )
----
1
1

skipif mysql # not compatible
query II rowsort label-4448
SELECT DISTINCT + COUNT ( * ) AS col1, COUNT ( DISTINCT 63 )
----
1
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4449
SELECT ALL + COUNT( * ), COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-4449
SELECT ALL + COUNT ( * ), COUNT ( * )
----
1
1

query I rowsort
SELECT + 95 AS col1
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4451
SELECT + CAST( NULL AS SIGNED ) * - + COUNT( * ) * - - 97 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4451
SELECT + CAST ( NULL AS INTEGER ) * - + COUNT ( * ) * - - 97 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4452
SELECT - 0 - - 8 DIV - COUNT( * ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-4452
SELECT - 0 - - 8 / - COUNT ( * ) AS col2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4453
SELECT + 12 + - COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-4453
SELECT + 12 + - COUNT ( * )
----
11

query I rowsort
SELECT ALL 39 AS col0
----
39

query I rowsort
SELECT 83 AS col0
----
83

query I rowsort
SELECT ALL + 74 AS col1
----
74

query I rowsort
SELECT ALL + 19 AS col0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4458
SELECT + 7 * MAX( DISTINCT - 84 )
----
-588

skipif mysql # not compatible
query I rowsort label-4458
SELECT + 7 * MAX ( DISTINCT - 84 )
----
-588

onlyif mysql # DIV for integer division: 
query I rowsort label-4459
SELECT + 24 DIV + 84 * 65
----
0

skipif mysql # not compatible
query I rowsort label-4459
SELECT + 24 / + 84 * 65
----
0

query I rowsort
SELECT + 93 AS col2
----
93

query I rowsort
SELECT ALL + ( - + 15 ) AS col1
----
-15

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4462
SELECT ALL + ( COUNT( * ) ) AS col1, CAST( NULL AS DECIMAL )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-4462
SELECT ALL + ( COUNT ( * ) ) AS col1, CAST ( NULL AS REAL )
----
1
NULL

query I rowsort
SELECT ALL - 93 AS col1
----
-93

query I rowsort
SELECT DISTINCT 17 * - - 25
----
425

query II rowsort
SELECT DISTINCT - 81 AS col1, 25
----
-81
25

onlyif mysql # DIV for integer division: 
query I rowsort label-4466
SELECT ALL 55 DIV 3
----
18

skipif mysql # not compatible
query I rowsort label-4466
SELECT ALL 55 / 3
----
18

query I rowsort
SELECT ALL - 44 AS col2
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-4468
SELECT ALL - 68 + + COUNT( * ) col0
----
-67

skipif mysql # not compatible
query I rowsort label-4468
SELECT ALL - 68 + + COUNT ( * ) col0
----
-67

query I rowsort
SELECT + 4 AS col0
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4470
SELECT - + CAST( + - 47 AS SIGNED )
----
47

skipif mysql # not compatible
query I rowsort label-4470
SELECT - + CAST ( + - 47 AS INTEGER )
----
47

query I rowsort
SELECT 94 AS col1
----
94

query I rowsort
SELECT 69 + + + 29
----
98

query I rowsort
SELECT DISTINCT 1 col2
----
1

query I rowsort
SELECT DISTINCT 64 col0
----
64

query I rowsort
SELECT ALL 15 AS col2
----
15

query I rowsort
SELECT DISTINCT 14 * + 79 AS col0
----
1106

query I rowsort
SELECT - 26 AS col1
----
-26

query I rowsort
SELECT + 83 AS col2
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4479
SELECT 93 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4479
SELECT 93 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 60 AS col0
----
-60

query I rowsort
SELECT + 2 AS col0
----
2

query I rowsort
SELECT DISTINCT - 84
----
-84

query I rowsort
SELECT ALL - + 41
----
-41

query I rowsort
SELECT ALL - 64 * 54 AS col0
----
-3456

query I rowsort
SELECT ALL - 53 + 11 AS col1
----
-42

query I rowsort
SELECT DISTINCT - + 89 AS col2
----
-89

query I rowsort
SELECT - - 81
----
81

query I rowsort
SELECT DISTINCT 74 AS col2
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4489
SELECT - 79 col2, ( - SUM( - CAST( NULL AS SIGNED ) ) )
----
-79
NULL

skipif mysql # not compatible
query II rowsort label-4489
SELECT - 79 col2, ( - SUM ( - CAST ( NULL AS INTEGER ) ) )
----
-79
NULL

query I rowsort
SELECT + 89 AS col0
----
89

query I rowsort
SELECT ( - 96 ) AS col1
----
-96

query I rowsort
SELECT ( - - 8 )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4493
SELECT ALL + - COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4493
SELECT ALL + - COUNT ( * ) AS col1
----
-1

query I rowsort
SELECT 73 AS col1
----
73

query I rowsort
SELECT ALL + 27 AS col0
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-4496
SELECT ALL + COUNT( * ) AS col2, + 91 AS col2
----
1
91

skipif mysql # not compatible
query II rowsort label-4496
SELECT ALL + COUNT ( * ) AS col2, + 91 AS col2
----
1
91

query I rowsort
SELECT DISTINCT - + 34 AS col2
----
-34

query I rowsort
SELECT 62
----
62

query II rowsort
SELECT ALL - + 19 AS col0, + 50
----
-19
50

query I rowsort
SELECT 99 + - 17 AS col2
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4501
SELECT DISTINCT COUNT( * ) DIV + + 8 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4501
SELECT DISTINCT COUNT ( * ) / + + 8 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4502
SELECT MIN( DISTINCT + 28 ) DIV 98 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4502
SELECT MIN ( DISTINCT + 28 ) / 98 AS col2
----
0

query I rowsort
SELECT 41 * 31 AS col2
----
1271

query I rowsort
SELECT DISTINCT - - 19 AS col0
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4505
SELECT 0 DIV + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4505
SELECT 0 / + COUNT ( * )
----
0

query I rowsort
SELECT - 43 AS col2
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-4507
SELECT - 98, COUNT( * ) AS col2
----
-98
1

skipif mysql # not compatible
query II rowsort label-4507
SELECT - 98, COUNT ( * ) AS col2
----
-98
1

query I rowsort
SELECT - 45 * + 62
----
-2790

query I rowsort
SELECT - ( + 8 )
----
-8

query I rowsort
SELECT ALL + 19
----
19

query I rowsort
SELECT 37 AS col0
----
37

query II rowsort
SELECT ALL ( - 86 ) AS col0, + 63 AS col0
----
-86
63

query I rowsort
SELECT + 71
----
71

query I rowsort
SELECT + - 88
----
-88

query I rowsort
SELECT DISTINCT + + 70 AS col2
----
70

query I rowsort
SELECT DISTINCT + 34
----
34

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4517
SELECT ALL + CAST( NULL AS DECIMAL ) + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-4517
SELECT ALL + CAST ( NULL AS REAL ) + 68
----
NULL

query I rowsort
SELECT - - 42
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4519
SELECT ALL - COUNT( * ) - - - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-4519
SELECT ALL - COUNT ( * ) - - - COUNT ( * )
----
-2

query I rowsort
SELECT DISTINCT - 77 * + ( + + 34 )
----
-2618

query I rowsort
SELECT 52 col1
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4522
SELECT DISTINCT 83 + - CAST( + COUNT( * ) AS SIGNED )
----
82

skipif mysql # not compatible
query I rowsort label-4522
SELECT DISTINCT 83 + - CAST ( + COUNT ( * ) AS INTEGER )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4523
SELECT COUNT( * ) / NULLIF ( + 1, - - COUNT( * ) ) * 57 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4523
SELECT COUNT ( * ) / NULLIF ( + 1, - - COUNT ( * ) ) * 57 AS col2
----
NULL

query I rowsort
SELECT ALL - 69 col2
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-4525
SELECT - + COUNT( * ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-4525
SELECT - + COUNT ( * ) col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4526
SELECT DISTINCT COUNT( * ) + + 51 AS col1
----
52

skipif mysql # not compatible
query I rowsort label-4526
SELECT DISTINCT COUNT ( * ) + + 51 AS col1
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4527
SELECT + 55 DIV MAX( 61 )
----
0

skipif mysql # not compatible
query I rowsort label-4527
SELECT + 55 / MAX ( 61 )
----
0

query I rowsort
SELECT - + 48 AS col2
----
-48

query I rowsort
SELECT DISTINCT - 45 AS col1
----
-45

query I rowsort
SELECT - + 97 col1
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4531
SELECT + + MIN( - 14 ) + + COUNT( * ) AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-4531
SELECT + + MIN ( - 14 ) + + COUNT ( * ) AS col2
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-4532
SELECT + ( - - 50 ) DIV 2
----
25

skipif mysql # not compatible
query I rowsort label-4532
SELECT + ( - - 50 ) / 2
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4533
SELECT ALL + CAST( - 99 AS SIGNED ) AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-4533
SELECT ALL + CAST ( - 99 AS INTEGER ) AS col2
----
-99

query I rowsort
SELECT + 47
----
47

query I rowsort
SELECT ( 20 )
----
20

query I rowsort
SELECT + 56 AS col2
----
56

query I rowsort
SELECT - + ( + 9 ) AS col2
----
-9

query I rowsort
SELECT ALL - 60
----
-60

query I rowsort
SELECT DISTINCT 73 col1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4540
SELECT - SUM( ALL - 63 ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-4540
SELECT - SUM ( ALL - 63 ) AS col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4541
SELECT ALL - ( COUNT( * ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-4541
SELECT ALL - ( COUNT ( * ) ) col2
----
-1

query I rowsort
SELECT ALL - - 6
----
6

query I rowsort
SELECT DISTINCT - 47 AS col0
----
-47

query I rowsort
SELECT ALL - - 47
----
47

query I rowsort
SELECT DISTINCT + 39 AS col0
----
39

query I rowsort
SELECT DISTINCT 80 AS col1
----
80

query I rowsort
SELECT - 6 - ( 84 ) AS col1
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-4548
SELECT - 46 * + COUNT( * ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-4548
SELECT - 46 * + COUNT ( * ) AS col2
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-4549
SELECT ALL 10 AS col1, - ( COUNT( * ) ) col2
----
10
-1

skipif mysql # not compatible
query II rowsort label-4549
SELECT ALL 10 AS col1, - ( COUNT ( * ) ) col2
----
10
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4550
SELECT ALL + 33 - - COUNT( * ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-4550
SELECT ALL + 33 - - COUNT ( * ) AS col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4551
SELECT COUNT( - 39 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4551
SELECT COUNT ( - 39 ) AS col1
----
1

query I rowsort
SELECT 82 - 35 * 3
----
-23

query I rowsort
SELECT - 40 + - - 55
----
15

query I rowsort
SELECT 87 col1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4555
SELECT ALL - 1 - - MIN( DISTINCT 92 )
----
91

skipif mysql # not compatible
query I rowsort label-4555
SELECT ALL - 1 - - MIN ( DISTINCT 92 )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4556
SELECT ALL SUM( + 30 )
----
30

skipif mysql # not compatible
query I rowsort label-4556
SELECT ALL SUM ( + 30 )
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4557
SELECT - 6 DIV + SUM( ALL - 67 )
----
0

skipif mysql # not compatible
query I rowsort label-4557
SELECT - 6 / + SUM ( ALL - 67 )
----
0

query I rowsort
SELECT ( 76 )
----
76

query I rowsort
SELECT DISTINCT + - 50
----
-50

query I rowsort
SELECT DISTINCT + - 25
----
-25

query I rowsort
SELECT ALL + 84 AS col1
----
84

query I rowsort
SELECT + 21 AS col0
----
21

query I rowsort
SELECT + - 17
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4564
SELECT + COUNT( * ) * - + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-4564
SELECT + COUNT ( * ) * - + COUNT ( * )
----
-1

query I rowsort
SELECT ( 21 )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4566
SELECT MIN( - 88 ) AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-4566
SELECT MIN ( - 88 ) AS col1
----
-88

query I rowsort
SELECT ALL 65 AS col0
----
65

query I rowsort
SELECT DISTINCT 17 AS col2
----
17

query I rowsort
SELECT DISTINCT 68 AS col1
----
68

query I rowsort
SELECT - 82 + - 25 AS col1
----
-107

query I rowsort
SELECT - 88 AS col2
----
-88

query I rowsort
SELECT ALL + 73
----
73

query I rowsort
SELECT - 76 AS col1
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4574
SELECT + CAST( ( - 23 ) AS SIGNED )
----
-23

skipif mysql # not compatible
query I rowsort label-4574
SELECT + CAST ( ( - 23 ) AS INTEGER )
----
-23

query I rowsort
SELECT + + 96
----
96

query I rowsort
SELECT 11 * - 78
----
-858

onlyif mysql # aggregate syntax: 
query I rowsort label-4577
SELECT ALL - - MAX( DISTINCT + 50 )
----
50

skipif mysql # not compatible
query I rowsort label-4577
SELECT ALL - - MAX ( DISTINCT + 50 )
----
50

query I rowsort
SELECT - 43 AS col1
----
-43

query I rowsort
SELECT DISTINCT - - 71 col1
----
71

query I rowsort
SELECT ALL - 16 AS col0
----
-16

query I rowsort
SELECT 46 AS col0
----
46

query I rowsort
SELECT 36 * - 90 * - 51 AS col0
----
165240

query I rowsort
SELECT - 75 col1
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4584
SELECT DISTINCT AVG ( + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4584
SELECT DISTINCT AVG ( + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT - 49 AS col2
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-4586
SELECT ALL 62 + + COUNT( * ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-4586
SELECT ALL 62 + + COUNT ( * ) AS col2
----
63

query I rowsort
SELECT DISTINCT - ( - 72 )
----
72

query I rowsort
SELECT ALL + + 37 AS col1
----
37

query I rowsort
SELECT DISTINCT + + 69 AS col2
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-4590
SELECT + 48 * 62 AS col1, COUNT( * )
----
2976
1

skipif mysql # not compatible
query II rowsort label-4590
SELECT + 48 * 62 AS col1, COUNT ( * )
----
2976
1

query I rowsort
SELECT + 46 AS col1
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-4592
SELECT COUNT( * ) AS col0, - COUNT( * )
----
1
-1

skipif mysql # not compatible
query II rowsort label-4592
SELECT COUNT ( * ) AS col0, - COUNT ( * )
----
1
-1

query I rowsort
SELECT ALL 71 AS col1
----
71

query I rowsort
SELECT DISTINCT - 67 + + + 58 AS col1
----
-9

query I rowsort
SELECT 18 col2
----
18

query I rowsort
SELECT - - 25
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4597
SELECT + 7 * CAST( - 14 AS SIGNED ) col0
----
-98

skipif mysql # not compatible
query I rowsort label-4597
SELECT + 7 * CAST ( - 14 AS INTEGER ) col0
----
-98

query I rowsort
SELECT DISTINCT + 13 AS col1
----
13

query I rowsort
SELECT ALL - 42 AS col2
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-4600
SELECT ALL COUNT( * ) AS col2, - 92 col2
----
1
-92

skipif mysql # not compatible
query II rowsort label-4600
SELECT ALL COUNT ( * ) AS col2, - 92 col2
----
1
-92

query I rowsort
SELECT + - 80 col2
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4602
SELECT ALL COUNT( * ) + - - COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-4602
SELECT ALL COUNT ( * ) + - - COUNT ( * ) AS col2
----
2

query I rowsort
SELECT + 34 AS col2
----
34

query I rowsort
SELECT - 92 AS col0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4605
SELECT ALL - + COUNT( * ) - - - ( - 40 ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-4605
SELECT ALL - + COUNT ( * ) - - - ( - 40 ) AS col1
----
39

query I rowsort
SELECT - + 11 AS col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4607
SELECT - COUNT( * ) * - 97 AS col1
----
97

skipif mysql # not compatible
query I rowsort label-4607
SELECT - COUNT ( * ) * - 97 AS col1
----
97

query I rowsort
SELECT ALL + 70 * + 24 + - + 61 AS col1
----
1619

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4609
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * - ( + + 60 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4609
SELECT DISTINCT + CAST ( NULL AS REAL ) * - ( + + 60 ) AS col1
----
NULL

query I rowsort
SELECT + 24 AS col0
----
24

query I rowsort
SELECT DISTINCT + 72 * + - 16 AS col2
----
-1152

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4612
SELECT ALL + 63 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4612
SELECT ALL + 63 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - 90
----
-90

query I rowsort
SELECT DISTINCT + ( - 13 )
----
-13

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4615
SELECT - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4615
SELECT - - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT - + 97
----
-97

query I rowsort
SELECT DISTINCT 51 AS col0
----
51

query I rowsort
SELECT + ( - + 34 )
----
-34

query II rowsort
SELECT ALL + ( 69 ) col0, 45 * + 27
----
69
1215

onlyif mysql # aggregate syntax: 
query I rowsort label-4620
SELECT NULLIF ( - 94, - COUNT( * ) + COUNT( * ) )
----
-94

skipif mysql # not compatible
query I rowsort label-4620
SELECT NULLIF ( - 94, - COUNT ( * ) + COUNT ( * ) )
----
-94

query I rowsort
SELECT ( + 6 )
----
6

query I rowsort
SELECT ALL + + 52 AS col0
----
52

query I rowsort
SELECT - + 32
----
-32

query I rowsort
SELECT ( - 53 )
----
-53

query I rowsort
SELECT ALL 94 AS col2
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4626
SELECT ALL SUM( ALL + 83 ) - - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4626
SELECT ALL SUM ( ALL + 83 ) - - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4627
SELECT DISTINCT MAX( ALL 30 )
----
30

skipif mysql # not compatible
query I rowsort label-4627
SELECT DISTINCT MAX ( ALL 30 )
----
30

query I rowsort
SELECT ALL - 42 col0
----
-42

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4629
SELECT 86 * - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4629
SELECT 86 * - CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - - 93 col1
----
93

query I rowsort
SELECT ALL - 81
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4632
SELECT ALL - - COUNT( * ) - - 9 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-4632
SELECT ALL - - COUNT ( * ) - - 9 AS col0
----
10

query I rowsort
SELECT ALL 12 * + ( ( - + 47 ) ) AS col1
----
-564

query II rowsort
SELECT + 75, - 24 + + 69 AS col0
----
75
45

query I rowsort
SELECT + 40
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4636
SELECT ( + COUNT( * ) ) - + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4636
SELECT ( + COUNT ( * ) ) - + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4637
SELECT 68 AS col1, COUNT( * )
----
68
1

skipif mysql # not compatible
query II rowsort label-4637
SELECT 68 AS col1, COUNT ( * )
----
68
1

query I rowsort
SELECT - + ( + 15 )
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4639
SELECT ALL + CAST( + + 64 AS SIGNED )
----
64

skipif mysql # not compatible
query I rowsort label-4639
SELECT ALL + CAST ( + + 64 AS INTEGER )
----
64

query I rowsort
SELECT 36 AS col2
----
36

query I rowsort
SELECT DISTINCT + 90 + - 23 * - 71 AS col0
----
1723

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4642
SELECT ALL CASE - 69 WHEN COUNT( * ) THEN + CAST( NULL AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4642
SELECT ALL CASE - 69 WHEN COUNT ( * ) THEN + CAST ( NULL AS INTEGER ) END AS col2
----
NULL

query I rowsort
SELECT + + 18
----
18

query I rowsort
SELECT + - 95
----
-95

query I rowsort
SELECT 1 AS col0
----
1

query I rowsort
SELECT ALL + - 82 col2
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-4647
SELECT ALL 9 DIV - 17 - - 19 AS col2
----
19

skipif mysql # not compatible
query I rowsort label-4647
SELECT ALL 9 / - 17 - - 19 AS col2
----
19

query I rowsort
SELECT ALL + - 22 col2
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4649
SELECT ALL + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4649
SELECT ALL + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4650
SELECT ALL MAX( 62 ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-4650
SELECT ALL MAX ( 62 ) AS col0
----
62

query I rowsort
SELECT 70 col0
----
70

query I rowsort
SELECT - 41 + 82 AS col1
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4653
SELECT - CAST( + COUNT( * ) AS SIGNED ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-4653
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) col0
----
-1

query I rowsort
SELECT 26 AS col0
----
26

query I rowsort
SELECT - 23 + 3 AS col0
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4656
SELECT + SUM( ALL + + CAST( + 46 AS SIGNED ) ) col2
----
46

skipif mysql # not compatible
query I rowsort label-4656
SELECT + SUM ( ALL + + CAST ( + 46 AS INTEGER ) ) col2
----
46

query I rowsort
SELECT + 73 AS col1
----
73

query I rowsort
SELECT - + 67 + - 0 AS col0
----
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-4659
SELECT ALL - + 23 DIV - 22 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4659
SELECT ALL - + 23 / - 22 AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4660
SELECT ALL 82 * ( - 17 ), COUNT( * ) + - 43 + - 10 + + COUNT( * ) AS col1
----
-1394
-51

skipif mysql # not compatible
query II rowsort label-4660
SELECT ALL 82 * ( - 17 ), COUNT ( * ) + - 43 + - 10 + + COUNT ( * ) AS col1
----
-1394
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4661
SELECT COUNT( * ) + + + ( - - SUM( DISTINCT - CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4661
SELECT COUNT ( * ) + + + ( - - SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) )
----
NULL

query I rowsort
SELECT - 14
----
-14

query I rowsort
SELECT + 31 col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4664
SELECT ALL + SUM( DISTINCT + 9 ) * - 82
----
-738

skipif mysql # not compatible
query I rowsort label-4664
SELECT ALL + SUM ( DISTINCT + 9 ) * - 82
----
-738

query I rowsort
SELECT ALL 53 + - 8 + 83 * - + 81
----
-6678

query I rowsort
SELECT - - 32 AS col0
----
32

query I rowsort
SELECT - 90
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-4668
SELECT DISTINCT - - COUNT( ALL + - 20 )
----
1

skipif mysql # not compatible
query I rowsort label-4668
SELECT DISTINCT - - COUNT ( ALL + - 20 )
----
1

query I rowsort
SELECT DISTINCT - ( + 67 )
----
-67

query I rowsort
SELECT 31 * - 82
----
-2542

query I rowsort
SELECT 50 + - 6 * - + ( - 80 )
----
-430

query I rowsort
SELECT 70 + + ( - - 57 ) AS col0
----
127

query I rowsort
SELECT ALL - 59
----
-59

query I rowsort
SELECT + 43 AS col2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4675
SELECT + 61 * + COUNT( * ) * + + 76
----
4636

skipif mysql # not compatible
query I rowsort label-4675
SELECT + 61 * + COUNT ( * ) * + + 76
----
4636

query I rowsort
SELECT ALL + 67
----
67

query II rowsort
SELECT ALL + 34, + 67 AS col0
----
34
67

onlyif mysql # aggregate syntax: 
query II rowsort label-4678
SELECT COUNT( * ) AS col2, COUNT( * ) AS col1
----
1
1

skipif mysql # not compatible
query II rowsort label-4678
SELECT COUNT ( * ) AS col2, COUNT ( * ) AS col1
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4679
SELECT + 46 * - COUNT( * )
----
-46

skipif mysql # not compatible
query I rowsort label-4679
SELECT + 46 * - COUNT ( * )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4680
SELECT DISTINCT ( + COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4680
SELECT DISTINCT ( + COUNT ( * ) ) AS col1
----
1

query I rowsort
SELECT - - 93 * 1 AS col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4682
SELECT DISTINCT + + 12 + + 80 * COUNT( * ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-4682
SELECT DISTINCT + + 12 + + 80 * COUNT ( * ) AS col0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4683
SELECT NULLIF ( + 51, COUNT( * ) ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-4683
SELECT NULLIF ( + 51, COUNT ( * ) ) AS col1
----
51

query II rowsort
SELECT ALL ( + 74 ), + 74 AS col2
----
74
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4685
SELECT - - CAST( + - 13 AS SIGNED )
----
-13

skipif mysql # not compatible
query I rowsort label-4685
SELECT - - CAST ( + - 13 AS INTEGER )
----
-13

query I rowsort
SELECT ALL - 20
----
-20

query I rowsort
SELECT + 35 AS col0
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4688
SELECT DISTINCT COUNT( * ) + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4688
SELECT DISTINCT COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + 37 AS col1
----
37

query I rowsort
SELECT ALL - 11 AS col0
----
-11

query I rowsort
SELECT 45 + - 45
----
0

query I rowsort
SELECT DISTINCT - 52 AS col1
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4693
SELECT ALL - 72 - - COUNT( * ) DIV + 76 + 12
----
-60

skipif mysql # not compatible
query I rowsort label-4693
SELECT ALL - 72 - - COUNT ( * ) / + 76 + 12
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-4694
SELECT + COUNT( * ) + - ( + - 92 ) + - + 76
----
17

skipif mysql # not compatible
query I rowsort label-4694
SELECT + COUNT ( * ) + - ( + - 92 ) + - + 76
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-4695
SELECT DISTINCT + 59 * + 66 + + 52 DIV 33 * + 47
----
3941

skipif mysql # not compatible
query I rowsort label-4695
SELECT DISTINCT + 59 * + 66 + + 52 / 33 * + 47
----
3941

query I rowsort
SELECT ( + ( - + 7 ) )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4697
SELECT + SUM( - + 54 ) col0
----
-54

skipif mysql # not compatible
query I rowsort label-4697
SELECT + SUM ( - + 54 ) col0
----
-54

query I rowsort
SELECT COALESCE ( - 16, - 8 ) AS col0
----
-16

query I rowsort
SELECT ALL + - 16 col0
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4700
SELECT - CAST( COUNT( ALL + 81 ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-4700
SELECT - CAST ( COUNT ( ALL + 81 ) AS INTEGER )
----
-1

query I rowsort
SELECT - 91 AS col2
----
-91

query I rowsort
SELECT DISTINCT - 51
----
-51

query I rowsort
SELECT ALL - - 49
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4704
SELECT ALL - + COUNT( ALL + 47 )
----
-1

skipif mysql # not compatible
query I rowsort label-4704
SELECT ALL - + COUNT ( ALL + 47 )
----
-1

query I rowsort
SELECT DISTINCT + ( - 17 ) * + 70
----
-1190

query I rowsort
SELECT ALL 46 - 64
----
-18

query I rowsort
SELECT + 84 AS col2
----
84

query I rowsort
SELECT DISTINCT - - 20
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-4709
SELECT - ( + 54 ) DIV + + 11
----
-4

skipif mysql # not compatible
query I rowsort label-4709
SELECT - ( + 54 ) / + + 11
----
-4

query I rowsort
SELECT ALL - + 88 AS col1
----
-88

query I rowsort
SELECT + + 39 AS col0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4712
SELECT DISTINCT 48 + - COUNT( * ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-4712
SELECT DISTINCT 48 + - COUNT ( * ) AS col1
----
47

query I rowsort
SELECT ALL 48 AS col2
----
48

query I rowsort
SELECT - 4 col0
----
-4

query I rowsort
SELECT DISTINCT + 16
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4716
SELECT ALL + 26 * - CAST( + 26 AS SIGNED )
----
-676

skipif mysql # not compatible
query I rowsort label-4716
SELECT ALL + 26 * - CAST ( + 26 AS INTEGER )
----
-676

query I rowsort
SELECT + ( + 49 )
----
49

query I rowsort
SELECT DISTINCT 43 AS col2
----
43

query I rowsort
SELECT 88 AS col1
----
88

query I rowsort
SELECT DISTINCT + + 65
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4721
SELECT CAST( 21 AS SIGNED ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-4721
SELECT CAST ( 21 AS INTEGER ) AS col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4722
SELECT ALL 23 * - - COUNT( * ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-4722
SELECT ALL 23 * - - COUNT ( * ) AS col0
----
23

query I rowsort
SELECT 94 * + - 36
----
-3384

query I rowsort
SELECT DISTINCT - + 16 * 3
----
-48

query I rowsort
SELECT DISTINCT 98 * 76
----
7448

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4726
SELECT CAST( NULL AS DECIMAL ) + - ( + MAX( DISTINCT 57 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4726
SELECT CAST ( NULL AS REAL ) + - ( + MAX ( DISTINCT 57 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4727
SELECT COUNT( * ) + - - 2 col0
----
3

skipif mysql # not compatible
query I rowsort label-4727
SELECT COUNT ( * ) + - - 2 col0
----
3

query II rowsort
SELECT 13 AS col2, + 55
----
13
55

query I rowsort
SELECT 43 col2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4730
SELECT 9 + 77 * - COUNT( * )
----
-68

skipif mysql # not compatible
query I rowsort label-4730
SELECT 9 + 77 * - COUNT ( * )
----
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4731
SELECT MAX( + + 78 ) DIV 50 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4731
SELECT MAX ( + + 78 ) / 50 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4732
SELECT ALL COALESCE ( + - 48, ( - - SUM( - 91 ) ) ) + - - ( COUNT( * ) ) + COUNT( * )
----
-46

skipif mysql # not compatible
query I rowsort label-4732
SELECT ALL COALESCE ( + - 48, ( - - SUM ( - 91 ) ) ) + - - ( COUNT ( * ) ) + COUNT ( * )
----
-46

query I rowsort
SELECT ALL 78 + 46 AS col0
----
124

query I rowsort
SELECT DISTINCT + - 73 col0
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4735
SELECT DISTINCT - 36 + - 91 * COUNT( * ) - 27 AS col0
----
-154

skipif mysql # not compatible
query I rowsort label-4735
SELECT DISTINCT - 36 + - 91 * COUNT ( * ) - 27 AS col0
----
-154

query I rowsort
SELECT 28 col1
----
28

query I rowsort
SELECT - 30
----
-30

query I rowsort
SELECT DISTINCT + COALESCE ( + + 37, + 38 )
----
37

query I rowsort
SELECT ALL 33 col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4740
SELECT - SUM( ALL + - 93 )
----
93

skipif mysql # not compatible
query I rowsort label-4740
SELECT - SUM ( ALL + - 93 )
----
93

query I rowsort
SELECT + - 28 * + 88
----
-2464

query I rowsort
SELECT ALL 57 col0
----
57

query I rowsort
SELECT + - 46
----
-46

query I rowsort
SELECT - 30 AS col0
----
-30

query I rowsort
SELECT + ( - 70 )
----
-70

query I rowsort
SELECT ( - + 20 ) AS col0
----
-20

query I rowsort
SELECT ALL + 13 AS col2
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4748
SELECT + COUNT( * ) * - ( - + 84 ) + - - CAST( 1 AS SIGNED ) * + ( - COUNT( * ) ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-4748
SELECT + COUNT ( * ) * - ( - + 84 ) + - - CAST ( 1 AS INTEGER ) * + ( - COUNT ( * ) ) AS col2
----
83

query I rowsort
SELECT ALL + 64
----
64

query I rowsort
SELECT - 27 * 99
----
-2673

onlyif mysql # aggregate syntax: 
query II rowsort label-4751
SELECT ALL + 10 AS col0, COUNT( * )
----
10
1

skipif mysql # not compatible
query II rowsort label-4751
SELECT ALL + 10 AS col0, COUNT ( * )
----
10
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4752
SELECT ALL - - COUNT( * ) * - - ( - 54 ) col2
----
-54

skipif mysql # not compatible
query I rowsort label-4752
SELECT ALL - - COUNT ( * ) * - - ( - 54 ) col2
----
-54

query I rowsort
SELECT - ( 66 )
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4754
SELECT DISTINCT - 71 + - + 91 DIV + + 59 * + COUNT( * ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-4754
SELECT DISTINCT - 71 + - + 91 / + + 59 * + COUNT ( * ) AS col2
----
-72

query I rowsort
SELECT DISTINCT - 51 AS col1
----
-51

query I rowsort
SELECT DISTINCT - 64
----
-64

query I rowsort
SELECT DISTINCT - 54 AS col1
----
-54

query I rowsort
SELECT ALL + 63 AS col0
----
63

query I rowsort
SELECT 37 * + 18
----
666

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4760
SELECT ALL CAST( - 11 AS SIGNED )
----
-11

skipif mysql # not compatible
query I rowsort label-4760
SELECT ALL CAST ( - 11 AS INTEGER )
----
-11

query I rowsort
SELECT - ( + 88 )
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4762
SELECT ALL MIN( ALL + 24 )
----
24

skipif mysql # not compatible
query I rowsort label-4762
SELECT ALL MIN ( ALL + 24 )
----
24

query I rowsort
SELECT 87 + - + 33 col1
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-4764
SELECT COUNT( * ) AS col1, - 28 + COUNT( * ) AS col0
----
1
-27

skipif mysql # not compatible
query II rowsort label-4764
SELECT COUNT ( * ) AS col1, - 28 + COUNT ( * ) AS col0
----
1
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-4765
SELECT MIN( 0 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4765
SELECT MIN ( 0 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4766
SELECT COUNT( * ) - + 29
----
-28

skipif mysql # not compatible
query I rowsort label-4766
SELECT COUNT ( * ) - + 29
----
-28

query I rowsort
SELECT 84 * + 40 AS col0
----
3360

query I rowsort
SELECT 3 + - + 21 * 22 AS col2
----
-459

query I rowsort
SELECT DISTINCT - 54 AS col0
----
-54

query I rowsort
SELECT ALL 10 * + + 45
----
450

query I rowsort
SELECT DISTINCT + 5 - - 0
----
5

query I rowsort
SELECT DISTINCT + 5
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4773
SELECT + 56 + COUNT( * ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-4773
SELECT + 56 + COUNT ( * ) AS col1
----
57

query I rowsort
SELECT 98 AS col0
----
98

query I rowsort
SELECT + 20 * - 41 AS col1
----
-820

onlyif mysql # aggregate syntax: 
query I rowsort label-4776
SELECT ALL 48 + ( - COUNT( * ) ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-4776
SELECT ALL 48 + ( - COUNT ( * ) ) AS col1
----
47

query I rowsort
SELECT ( - 71 )
----
-71

query I rowsort
SELECT ( ( - 72 ) ) AS col0
----
-72

query I rowsort
SELECT - 69 * - 14 AS col1
----
966

query I rowsort
SELECT ALL + + 6 AS col0
----
6

query I rowsort
SELECT DISTINCT + 18
----
18

query I rowsort
SELECT - 53 AS col1
----
-53

query I rowsort
SELECT + + 93 + + ( + 81 ) col0
----
174

query I rowsort
SELECT + - 16 + 92 col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4785
SELECT + COUNT( * ) + - - 54 * 59 AS col2
----
3187

skipif mysql # not compatible
query I rowsort label-4785
SELECT + COUNT ( * ) + - - 54 * 59 AS col2
----
3187

query I rowsort
SELECT 69 col2
----
69

query I rowsort
SELECT - 46 * + + 1 AS col2
----
-46

query I rowsort
SELECT DISTINCT + 64 AS col1
----
64

query I rowsort
SELECT ( 64 ) * + ( 25 ) AS col0
----
1600

query I rowsort
SELECT ALL - 92 col0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4791
SELECT ALL - MIN( - 67 )
----
67

skipif mysql # not compatible
query I rowsort label-4791
SELECT ALL - MIN ( - 67 )
----
67

query I rowsort
SELECT 50 col1
----
50

query I rowsort
SELECT ALL - + 27
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-4794
SELECT ALL + + 49 + SUM( + 81 ) AS col1
----
130

skipif mysql # not compatible
query I rowsort label-4794
SELECT ALL + + 49 + SUM ( + 81 ) AS col1
----
130

query I rowsort
SELECT DISTINCT - 35 AS col2
----
-35

query I rowsort
SELECT ALL - 92 AS col2
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4797
SELECT ALL 51 + 75 + - COUNT( * )
----
125

skipif mysql # not compatible
query I rowsort label-4797
SELECT ALL 51 + 75 + - COUNT ( * )
----
125

query I rowsort
SELECT + 81 AS col2
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4799
SELECT - CAST( - 92 AS SIGNED ) col0
----
92

skipif mysql # not compatible
query I rowsort label-4799
SELECT - CAST ( - 92 AS INTEGER ) col0
----
92

query I rowsort
SELECT + 15 AS col2
----
15

query I rowsort
SELECT ALL - - 77 col0
----
77

query I rowsort
SELECT - 23 col0
----
-23

query I rowsort
SELECT ALL - - 40 col2
----
40

query I rowsort
SELECT + + 52 AS col2
----
52

query I rowsort
SELECT + 79 AS col1
----
79

query I rowsort
SELECT + 52 AS col2
----
52

query I rowsort
SELECT 23 AS col2
----
23

query I rowsort
SELECT ALL - 80 AS col1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4809
SELECT DISTINCT + - COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4809
SELECT DISTINCT + - COUNT ( * ) AS col1
----
-1

query I rowsort
SELECT - 73
----
-73

query I rowsort
SELECT ALL + - ( - - 69 ) AS col0
----
-69

query I rowsort
SELECT ALL + + 22 AS col0
----
22

query I rowsort
SELECT + 7 col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4814
SELECT ALL + + MAX( ALL 34 ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-4814
SELECT ALL + + MAX ( ALL 34 ) AS col2
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4815
SELECT CAST( NULL AS SIGNED ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4815
SELECT CAST ( NULL AS INTEGER ) * - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4816
SELECT DISTINCT ( 4 ) + + COUNT( * ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-4816
SELECT DISTINCT ( 4 ) + + COUNT ( * ) AS col1
----
5

query I rowsort
SELECT DISTINCT - 67 - ( 72 ) col2
----
-139

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4818
SELECT DISTINCT - COUNT( * ) DIV - - 77 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4818
SELECT DISTINCT - COUNT ( * ) / - - 77 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4819
SELECT - SUM( DISTINCT + 5 ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-4819
SELECT - SUM ( DISTINCT + 5 ) AS col1
----
-5

query I rowsort
SELECT DISTINCT - - 29
----
29

query I rowsort
SELECT ALL - 63 AS col0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-4822
SELECT 6 * - COUNT( * ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-4822
SELECT 6 * - COUNT ( * ) AS col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4823
SELECT ALL - COUNT( * ) + 24 * - 50
----
-1201

skipif mysql # not compatible
query I rowsort label-4823
SELECT ALL - COUNT ( * ) + 24 * - 50
----
-1201

onlyif mysql # aggregate syntax: 
query I rowsort label-4824
SELECT ALL + MAX( + - 36 ) * - 65
----
2340

skipif mysql # not compatible
query I rowsort label-4824
SELECT ALL + MAX ( + - 36 ) * - 65
----
2340

onlyif mysql # aggregate syntax: 
query I rowsort label-4825
SELECT ALL + COUNT( * ) + COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-4825
SELECT ALL + COUNT ( * ) + COUNT ( * ) AS col2
----
2

query I rowsort
SELECT - 62 AS col2
----
-62

query I rowsort
SELECT - 73 AS col0
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4828
SELECT + MIN( - + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4828
SELECT + MIN ( - + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4829
SELECT DISTINCT + COUNT( DISTINCT - - 46 ) * + 0 * - + 61
----
0

skipif mysql # not compatible
query I rowsort label-4829
SELECT DISTINCT + COUNT ( DISTINCT - - 46 ) * + 0 * - + 61
----
0

query I rowsort
SELECT DISTINCT 18 * + 27
----
486

query I rowsort
SELECT ALL + 67 AS col2
----
67

query I rowsort
SELECT ALL + ( - 52 )
----
-52

query I rowsort
SELECT - 9 + + 60
----
51

query I rowsort
SELECT DISTINCT - 65
----
-65

query I rowsort
SELECT ALL ( + 12 ) * 11
----
132

query I rowsort
SELECT + + 39 col2
----
39

query I rowsort
SELECT + + 70 AS col0
----
70

query I rowsort
SELECT + + 94 * 39 AS col2
----
3666

query I rowsort
SELECT ( - - 88 ) AS col2
----
88

query I rowsort
SELECT - + 26 AS col2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-4841
SELECT + COUNT( - - 13 )
----
1

skipif mysql # not compatible
query I rowsort label-4841
SELECT + COUNT ( - - 13 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4842
SELECT - + COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4842
SELECT - + COUNT ( * ) AS col2
----
-1

query I rowsort
SELECT ALL + 64 AS col2
----
64

query I rowsort
SELECT DISTINCT 83 AS col1
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-4845
SELECT ALL - 5, - COUNT( * ) * COUNT( * ) col1
----
-5
-1

skipif mysql # not compatible
query II rowsort label-4845
SELECT ALL - 5, - COUNT ( * ) * COUNT ( * ) col1
----
-5
-1

query I rowsort
SELECT DISTINCT - 24
----
-24

query I rowsort
SELECT + 16 AS col1
----
16

query I rowsort
SELECT + 26 col2
----
26

query I rowsort
SELECT DISTINCT - 56 AS col2
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-4850
SELECT DISTINCT - 26 + + + COUNT( * )
----
-25

skipif mysql # not compatible
query I rowsort label-4850
SELECT DISTINCT - 26 + + + COUNT ( * )
----
-25

query I rowsort
SELECT ALL - 86 AS col1
----
-86

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4852
SELECT - + COUNT( DISTINCT - CAST( NULL AS DECIMAL ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4852
SELECT - + COUNT ( DISTINCT - CAST ( NULL AS REAL ) ) AS col0
----
0

query I rowsort
SELECT DISTINCT 55 AS col1
----
55

query I rowsort
SELECT 45 + + - 20
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4855
SELECT COUNT( * ) DIV - + 52
----
0

skipif mysql # not compatible
query I rowsort label-4855
SELECT COUNT ( * ) / - + 52
----
0

query I rowsort
SELECT + 56 AS col0
----
56

query I rowsort
SELECT + 11 col0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4858
SELECT SUM( - ( + 55 ) )
----
-55

skipif mysql # not compatible
query I rowsort label-4858
SELECT SUM ( - ( + 55 ) )
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-4859
SELECT DISTINCT COUNT( * ) + 53 AS col1
----
54

skipif mysql # not compatible
query I rowsort label-4859
SELECT DISTINCT COUNT ( * ) + 53 AS col1
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4860
SELECT + + NULLIF ( CAST( + ( + COUNT( * ) ) AS SIGNED ), + 31 ) * + ( - + COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4860
SELECT + + NULLIF ( CAST ( + ( + COUNT ( * ) ) AS INTEGER ), + 31 ) * + ( - + COUNT ( * ) ) AS col0
----
-1

query II rowsort
SELECT ( + 3 ) AS col0, 13
----
3
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4862
SELECT ALL - COUNT( * ) * + + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-4862
SELECT ALL - COUNT ( * ) * + + COUNT ( * )
----
-1

query II rowsort
SELECT - 35 AS col1, + 24 AS col0
----
-35
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4864
SELECT ALL COUNT( ALL + - 5 )
----
1

skipif mysql # not compatible
query I rowsort label-4864
SELECT ALL COUNT ( ALL + - 5 )
----
1

query I rowsort
SELECT - 80 AS col0
----
-80

query I rowsort
SELECT ( - - 68 )
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-4867
SELECT - 62 DIV + - ( ( - 98 ) )
----
0

skipif mysql # not compatible
query I rowsort label-4867
SELECT - 62 / + - ( ( - 98 ) )
----
0

query I rowsort
SELECT + 49 AS col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4869
SELECT + NULLIF ( COUNT( ( + - 97 ) ), - + NULLIF ( + 45, + 43 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4869
SELECT + NULLIF ( COUNT ( ( + - 97 ) ), - + NULLIF ( + 45, + 43 ) ) AS col1
----
1

query I rowsort
SELECT ALL 85 AS col0
----
85

query I rowsort
SELECT - 91 col0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4872
SELECT ALL 58 * - - COUNT( * ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-4872
SELECT ALL 58 * - - COUNT ( * ) AS col0
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-4873
SELECT DISTINCT + COUNT( * ) AS col0, - COUNT( * ) AS col0
----
1
-1

skipif mysql # not compatible
query II rowsort label-4873
SELECT DISTINCT + COUNT ( * ) AS col0, - COUNT ( * ) AS col0
----
1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4874
SELECT ALL - - COUNT( - 5 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4874
SELECT ALL - - COUNT ( - 5 ) AS col0
----
1

query I rowsort
SELECT 54 col0
----
54

query I rowsort
SELECT 9 AS col1
----
9

query I rowsort
SELECT - ( - - 60 ) AS col2
----
-60

query I rowsort
SELECT - 96 AS col0
----
-96

query I rowsort
SELECT - 10 AS col2
----
-10

query I rowsort
SELECT ALL - 55 AS col1
----
-55

query I rowsort
SELECT 3 AS col0
----
3

query I rowsort
SELECT + + 51 AS col1
----
51

query I rowsort
SELECT 87 col2
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4884
SELECT ALL - COUNT( * ) * - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4884
SELECT ALL - COUNT ( * ) * - COUNT ( * )
----
1

query I rowsort
SELECT + 98 * - 52
----
-5096

onlyif mysql # aggregate syntax: 
query I rowsort label-4886
SELECT DISTINCT - COUNT( ALL 57 )
----
-1

skipif mysql # not compatible
query I rowsort label-4886
SELECT DISTINCT - COUNT ( ALL 57 )
----
-1

query I rowsort
SELECT 42 col1
----
42

query I rowsort
SELECT + 68 + - 0 AS col0
----
68

query I rowsort
SELECT + + 4 - 76
----
-72

query I rowsort
SELECT ALL + + 2 AS col2
----
2

query I rowsort
SELECT ( 4 ) AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4892
SELECT COUNT( DISTINCT + 7 )
----
1

skipif mysql # not compatible
query I rowsort label-4892
SELECT COUNT ( DISTINCT + 7 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4893
SELECT ALL ( + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4893
SELECT ALL ( + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4894
SELECT DISTINCT MAX( + - 95 ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-4894
SELECT DISTINCT MAX ( + - 95 ) AS col0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-4895
SELECT - SUM( ALL - 47 ) - + COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-4895
SELECT - SUM ( ALL - 47 ) - + COUNT ( * )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4896
SELECT ALL + - MAX( DISTINCT + 36 ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-4896
SELECT ALL + - MAX ( DISTINCT + 36 ) AS col0
----
-36

query I rowsort
SELECT - 56 * + 52
----
-2912

onlyif mysql # aggregate syntax: 
query I rowsort label-4898
SELECT ALL COUNT( * ) * + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-4898
SELECT ALL COUNT ( * ) * + - COUNT ( * )
----
-1

query I rowsort
SELECT + 4 col2
----
4

query I rowsort
SELECT + ( 16 ) AS col0
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-4901
SELECT + COUNT( * ) AS col0, - 79 AS col2
----
1
-79

skipif mysql # not compatible
query II rowsort label-4901
SELECT + COUNT ( * ) AS col0, - 79 AS col2
----
1
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-4902
SELECT + COUNT( * ) + 6 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-4902
SELECT + COUNT ( * ) + 6 AS col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4903
SELECT ALL ( COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4903
SELECT ALL ( COUNT ( * ) ) AS col0
----
1

query I rowsort
SELECT 74 * + 24
----
1776

query I rowsort
SELECT - + 18
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-4906
SELECT ALL - ( - MAX( ALL 10 ) )
----
10

skipif mysql # not compatible
query I rowsort label-4906
SELECT ALL - ( - MAX ( ALL 10 ) )
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4907
SELECT 94 DIV COUNT( * ) col1
----
94

skipif mysql # not compatible
query I rowsort label-4907
SELECT 94 / COUNT ( * ) col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4908
SELECT DISTINCT - 90 * + COUNT( * ) AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-4908
SELECT DISTINCT - 90 * + COUNT ( * ) AS col1
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-4909
SELECT COUNT( * ) * - + 77 AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-4909
SELECT COUNT ( * ) * - + 77 AS col1
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4910
SELECT ALL + 72 + - COUNT( * ) + - 86 * SUM( DISTINCT 85 )
----
-7239

skipif mysql # not compatible
query I rowsort label-4910
SELECT ALL + 72 + - COUNT ( * ) + - 86 * SUM ( DISTINCT 85 )
----
-7239

query I rowsort
SELECT + 43 col0
----
43

query I rowsort
SELECT ALL + 53 AS col2
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4913
SELECT DISTINCT - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4913
SELECT DISTINCT - CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT 35 * + 27 AS col0
----
945

query I rowsort
SELECT + - 68 AS col2
----
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4916
SELECT ALL + 68 DIV COALESCE ( - + 18, + - 0 ) * - COUNT( * ) * - + 49
----
-147

skipif mysql # not compatible
query I rowsort label-4916
SELECT ALL + 68 / COALESCE ( - + 18, + - 0 ) * - COUNT ( * ) * - + 49
----
-147

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4917
SELECT DISTINCT - 96 + + COUNT( * ) col0, CAST( - ( 69 ) AS SIGNED ) * ( + 62 ) * + 99
----
-95
-423522

skipif mysql # not compatible
query II rowsort label-4917
SELECT DISTINCT - 96 + + COUNT ( * ) col0, CAST ( - ( 69 ) AS INTEGER ) * ( + 62 ) * + 99
----
-95
-423522

query I rowsort
SELECT DISTINCT - 22 AS col1
----
-22

query I rowsort
SELECT + ( 22 )
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4920
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 20 + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-4920
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 20 + 20
----
NULL

query I rowsort
SELECT DISTINCT + + 86
----
86

query I rowsort
SELECT ALL + 49 AS col1
----
49

query I rowsort
SELECT DISTINCT + 51 AS col0
----
51

query I rowsort
SELECT DISTINCT - 26
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-4925
SELECT + MIN( DISTINCT + 26 ) + 41 AS col2
----
67

skipif mysql # not compatible
query I rowsort label-4925
SELECT + MIN ( DISTINCT + 26 ) + 41 AS col2
----
67

query I rowsort
SELECT ALL - 40 + - 72 AS col1
----
-112

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4927
SELECT CAST( NULL AS DECIMAL ) * - ( + 36 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4927
SELECT CAST ( NULL AS REAL ) * - ( + 36 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4928
SELECT - COUNT( 38 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4928
SELECT - COUNT ( 38 ) AS col1
----
-1

query I rowsort
SELECT ALL - + 78
----
-78

query I rowsort
SELECT - + 20 AS col2
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-4931
SELECT - ( - COUNT( * ) ) + - - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-4931
SELECT - ( - COUNT ( * ) ) + - - COUNT ( * )
----
2

query II rowsort
SELECT - 8 AS col1, + 86
----
-8
86

query I rowsort
SELECT DISTINCT + 95 col2
----
95

query I rowsort
SELECT 43 * - 62 AS col1
----
-2666

onlyif mysql # aggregate syntax: 
query I rowsort label-4935
SELECT 0 * - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4935
SELECT 0 * - COUNT ( * )
----
0

query I rowsort
SELECT DISTINCT ( + 40 ) + + 28
----
68

query I rowsort
SELECT + 88
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4938
SELECT ALL - CAST( 85 AS SIGNED )
----
-85

skipif mysql # not compatible
query I rowsort label-4938
SELECT ALL - CAST ( 85 AS INTEGER )
----
-85

query I rowsort
SELECT ALL - + 89
----
-89

query I rowsort
SELECT + - 56 AS col2
----
-56

query I rowsort
SELECT ALL + 46 * - - 70 - 29 AS col2
----
3191

onlyif mysql # aggregate syntax: 
query I rowsort label-4942
SELECT ALL COUNT( * ) + + 13 AS col0
----
14

skipif mysql # not compatible
query I rowsort label-4942
SELECT ALL COUNT ( * ) + + 13 AS col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4943
SELECT DISTINCT MIN( DISTINCT - 95 ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-4943
SELECT DISTINCT MIN ( DISTINCT - 95 ) AS col2
----
-95

query I rowsort
SELECT - 33 + - 39
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4945
SELECT ALL - 51 * COUNT( * )
----
-51

skipif mysql # not compatible
query I rowsort label-4945
SELECT ALL - 51 * COUNT ( * )
----
-51

query I rowsort
SELECT + 63 AS col0
----
63

query II rowsort
SELECT 38 AS col1, - 81 AS col1
----
38
-81

query I rowsort
SELECT + + 78
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4949
SELECT ALL + + COUNT( * ) col1
----
1

skipif mysql # not compatible
query I rowsort label-4949
SELECT ALL + + COUNT ( * ) col1
----
1

query I rowsort
SELECT DISTINCT + 91
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4951
SELECT ALL + COUNT( - + 31 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4951
SELECT ALL + COUNT ( - + 31 ) AS col1
----
1

query I rowsort
SELECT - ( 84 )
----
-84

query I rowsort
SELECT - ( + 37 )
----
-37

query I rowsort
SELECT + 91 * + 93
----
8463

query I rowsort
SELECT DISTINCT + 36 col0
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4956
SELECT DISTINCT + 13 / - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4956
SELECT DISTINCT + 13 / - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 77 AS col1
----
-77

query I rowsort
SELECT + + 21
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4959
SELECT + CAST( + AVG ( - CAST( NULL AS SIGNED ) ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4959
SELECT + CAST ( + AVG ( - CAST ( NULL AS INTEGER ) ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4960
SELECT + - ( + COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4960
SELECT + - ( + COUNT ( * ) ) AS col0
----
-1

query I rowsort
SELECT + 60 AS col1
----
60

query I rowsort
SELECT DISTINCT - 18 AS col2
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4963
SELECT CAST( - 37 AS SIGNED ) * + - COUNT( * ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-4963
SELECT CAST ( - 37 AS INTEGER ) * + - COUNT ( * ) AS col2
----
37

query I rowsort
SELECT 28 + + 2
----
30

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4965
SELECT ALL CAST( NULL AS DECIMAL ) / 8 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4965
SELECT ALL CAST ( NULL AS REAL ) / 8 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4966
SELECT ALL + 64 + + ( - SUM( 62 ) )
----
2

skipif mysql # not compatible
query I rowsort label-4966
SELECT ALL + 64 + + ( - SUM ( 62 ) )
----
2

query I rowsort
SELECT - ( - 21 ) + - 98 AS col1
----
-77

query II rowsort
SELECT 4 AS col0, - 37
----
4
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-4969
SELECT 35 * + - COUNT( * ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-4969
SELECT 35 * + - COUNT ( * ) AS col0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-4970
SELECT - COUNT( ALL 56 )
----
-1

skipif mysql # not compatible
query I rowsort label-4970
SELECT - COUNT ( ALL 56 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4971
SELECT DISTINCT + NULLIF ( 90, COUNT( * ) ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-4971
SELECT DISTINCT + NULLIF ( 90, COUNT ( * ) ) AS col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4972
SELECT ALL + - MIN( DISTINCT 55 )
----
-55

skipif mysql # not compatible
query I rowsort label-4972
SELECT ALL + - MIN ( DISTINCT 55 )
----
-55

query I rowsort
SELECT + + 35
----
35

query I rowsort
SELECT DISTINCT + + 74
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4975
SELECT ALL + + MIN( ALL 25 ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-4975
SELECT ALL + + MIN ( ALL 25 ) AS col1
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-4976
SELECT ALL 81 DIV + 81
----
1

skipif mysql # not compatible
query I rowsort label-4976
SELECT ALL 81 / + 81
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4977
SELECT ALL + SUM( + 95 )
----
95

skipif mysql # not compatible
query I rowsort label-4977
SELECT ALL + SUM ( + 95 )
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4978
SELECT - 4 - + + 94 col1, + CAST( NULL AS SIGNED )
----
-98
NULL

skipif mysql # not compatible
query II rowsort label-4978
SELECT - 4 - + + 94 col1, + CAST ( NULL AS INTEGER )
----
-98
NULL

query I rowsort
SELECT + 75 + 99
----
174

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4980
SELECT DISTINCT COUNT( + 14 ) AS col1, + CAST( + 7 AS SIGNED ) AS col0
----
1
7

skipif mysql # not compatible
query II rowsort label-4980
SELECT DISTINCT COUNT ( + 14 ) AS col1, + CAST ( + 7 AS INTEGER ) AS col0
----
1
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4981
SELECT ALL ( COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4981
SELECT ALL ( COUNT ( * ) ) AS col2
----
1

query I rowsort
SELECT - + 70 AS col2
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4983
SELECT ALL + CAST( - 40 AS SIGNED ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-4983
SELECT ALL + CAST ( - 40 AS INTEGER ) AS col1
----
-40

query I rowsort
SELECT + 60 * - 74
----
-4440

query I rowsort
SELECT ALL 99 * 33
----
3267

query I rowsort
SELECT DISTINCT ( - - 42 ) * - ( - 29 ) AS col1
----
1218

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4987
SELECT DISTINCT 34 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4987
SELECT DISTINCT 34 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4988
SELECT ALL - 27 - + COUNT( * ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-4988
SELECT ALL - 27 - + COUNT ( * ) AS col2
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4989
SELECT - COUNT( * ) + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4989
SELECT - COUNT ( * ) + - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 57 AS col2
----
-57

query I rowsort
SELECT ALL - 67 AS col1
----
-67

query I rowsort
SELECT ALL 18 AS col2
----
18

query I rowsort
SELECT ALL - + ( + 30 )
----
-30

query I rowsort
SELECT 15 AS col1
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4995
SELECT DISTINCT 58 + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4995
SELECT DISTINCT 58 + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 73 * - 29 col2
----
-2117

query I rowsort
SELECT + 91 AS col0
----
91

query I rowsort
SELECT ALL - 24 AS col2
----
-24

query I rowsort
SELECT - 99 AS col0
----
-99

query I rowsort
SELECT DISTINCT + 76
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5001
SELECT DISTINCT - + COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5001
SELECT DISTINCT - + COUNT ( * ) AS col1
----
-1

query I rowsort
SELECT + 80 AS col1
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5003
SELECT - ( + ( - + CAST( NULL AS SIGNED ) ) ) * - - SUM( ALL + 25 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5003
SELECT - ( + ( - + CAST ( NULL AS INTEGER ) ) ) * - - SUM ( ALL + 25 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5004
SELECT DISTINCT + ( - COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5004
SELECT DISTINCT + ( - COUNT ( * ) )
----
-1

query I rowsort
SELECT ALL + 39 - + + 20 AS col1
----
19

query I rowsort
SELECT 43 AS col2
----
43

query I rowsort
SELECT ALL 57 AS col0
----
57

query I rowsort
SELECT - - 40
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5009
SELECT + COUNT( * ) + - + 3
----
-2

skipif mysql # not compatible
query I rowsort label-5009
SELECT + COUNT ( * ) + - + 3
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5010
SELECT MAX( + 16 ) col0
----
16

skipif mysql # not compatible
query I rowsort label-5010
SELECT MAX ( + 16 ) col0
----
16

query I rowsort
SELECT DISTINCT + 1 + - 44
----
-43

query I rowsort
SELECT - + ( 31 )
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-5013
SELECT + COUNT( * ) * 53 AS col2
----
53

skipif mysql # not compatible
query I rowsort label-5013
SELECT + COUNT ( * ) * 53 AS col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-5014
SELECT ( - COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5014
SELECT ( - COUNT ( * ) ) AS col2
----
-1

query I rowsort
SELECT ALL + 24 AS col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5016
SELECT ALL + COALESCE ( + - 5, - COUNT( * ) )
----
-5

skipif mysql # not compatible
query I rowsort label-5016
SELECT ALL + COALESCE ( + - 5, - COUNT ( * ) )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5017
SELECT DISTINCT + NULLIF ( + COUNT( * ), + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5017
SELECT DISTINCT + NULLIF ( + COUNT ( * ), + COUNT ( * ) )
----
NULL

query I rowsort
SELECT DISTINCT - 95 AS col2
----
-95

query I rowsort
SELECT DISTINCT - 40 AS col0
----
-40

query I rowsort
SELECT DISTINCT + + 33 + - + 83 AS col0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-5021
SELECT DISTINCT SUM( + 17 ) + 83
----
100

skipif mysql # not compatible
query I rowsort label-5021
SELECT DISTINCT SUM ( + 17 ) + 83
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-5022
SELECT DISTINCT - - COUNT( * ) + + 59 col0
----
60

skipif mysql # not compatible
query I rowsort label-5022
SELECT DISTINCT - - COUNT ( * ) + + 59 col0
----
60

query I rowsort
SELECT DISTINCT 83
----
83

query I rowsort
SELECT ALL 11 AS col1
----
11

query I rowsort
SELECT DISTINCT 66 col0
----
66

query I rowsort
SELECT ALL 20 AS col1
----
20

query I rowsort
SELECT DISTINCT 77
----
77

query I rowsort
SELECT - 31 AS col2
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-5029
SELECT COUNT( DISTINCT - 83 )
----
1

skipif mysql # not compatible
query I rowsort label-5029
SELECT COUNT ( DISTINCT - 83 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5030
SELECT COUNT( ALL - + 42 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5030
SELECT COUNT ( ALL - + 42 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5031
SELECT ALL COUNT( * ) * - 3
----
-3

skipif mysql # not compatible
query I rowsort label-5031
SELECT ALL COUNT ( * ) * - 3
----
-3

query I rowsort
SELECT ALL - 96 + 49 AS col2
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-5033
SELECT - 61 * - - COUNT( * ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-5033
SELECT - 61 * - - COUNT ( * ) AS col2
----
-61

query I rowsort
SELECT - 29 AS col0
----
-29

query I rowsort
SELECT + - 50
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-5036
SELECT + 46 * - 7 * + MAX( ALL - 52 ) AS col1
----
16744

skipif mysql # not compatible
query I rowsort label-5036
SELECT + 46 * - 7 * + MAX ( ALL - 52 ) AS col1
----
16744

query I rowsort
SELECT - 84 AS col0
----
-84

query I rowsort
SELECT DISTINCT 2 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5039
SELECT ALL - MAX( - 77 ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-5039
SELECT ALL - MAX ( - 77 ) AS col1
----
77

query I rowsort
SELECT + 93 + - 98 AS col0
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5041
SELECT - CAST( 84 AS SIGNED ) + + + 25 + + - 36
----
-95

skipif mysql # not compatible
query I rowsort label-5041
SELECT - CAST ( 84 AS INTEGER ) + + + 25 + + - 36
----
-95

query I rowsort
SELECT 84 AS col0
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5043
SELECT + CAST( NULL AS SIGNED ) * + - 1 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5043
SELECT + CAST ( NULL AS INTEGER ) * + - 1 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5044
SELECT + MIN( + 69 )
----
69

skipif mysql # not compatible
query I rowsort label-5044
SELECT + MIN ( + 69 )
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5045
SELECT CAST( NULL AS SIGNED ), - COUNT( * ) + - - CAST( NULL AS SIGNED ) + + - CAST( 14 AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5045
SELECT CAST ( NULL AS INTEGER ), - COUNT ( * ) + - - CAST ( NULL AS INTEGER ) + + - CAST ( 14 AS INTEGER )
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5046
SELECT - - 74 DIV + + 10 + + + ( - ( 8 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5046
SELECT - - 74 / + + 10 + + + ( - ( 8 ) )
----
-1

query I rowsort
SELECT ALL + - 60 col0
----
-60

query I rowsort
SELECT - + 67
----
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-5049
SELECT 88 DIV + 19
----
4

skipif mysql # not compatible
query I rowsort label-5049
SELECT 88 / + 19
----
4

query I rowsort
SELECT ALL - - ( 35 )
----
35

query I rowsort
SELECT + + 57 AS col1
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-5052
SELECT ALL 97 DIV - 41
----
-2

skipif mysql # not compatible
query I rowsort label-5052
SELECT ALL 97 / - 41
----
-2

query I rowsort
SELECT ALL - + 71
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-5054
SELECT + + MAX( ALL + 64 )
----
64

skipif mysql # not compatible
query I rowsort label-5054
SELECT + + MAX ( ALL + 64 )
----
64

query I rowsort
SELECT 23 AS col1
----
23

query I rowsort
SELECT - 80
----
-80

query I rowsort
SELECT 17 * + + 92 AS col1
----
1564

query I rowsort
SELECT 7 * - 26
----
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-5059
SELECT COUNT( * ) * - + COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5059
SELECT COUNT ( * ) * - + COUNT ( * ) AS col0
----
-1

query I rowsort
SELECT ALL + 12
----
12

query I rowsort
SELECT ALL - 28
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5062
SELECT ALL 16 DIV - COUNT( * )
----
-16

skipif mysql # not compatible
query I rowsort label-5062
SELECT ALL 16 / - COUNT ( * )
----
-16

query I rowsort
SELECT ALL - 31 * - 87 AS col1
----
2697

query II rowsort
SELECT - 35, 47 AS col2
----
-35
47

onlyif mysql # aggregate syntax: 
query II rowsort label-5065
SELECT ALL COUNT( * ) AS col0, 59
----
1
59

skipif mysql # not compatible
query II rowsort label-5065
SELECT ALL COUNT ( * ) AS col0, 59
----
1
59

query I rowsort
SELECT ALL ( 33 )
----
33

query I rowsort
SELECT 30
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5068
SELECT ALL COALESCE ( + - CAST( + - 61 AS SIGNED ), - 58 )
----
61

skipif mysql # not compatible
query I rowsort label-5068
SELECT ALL COALESCE ( + - CAST ( + - 61 AS INTEGER ), - 58 )
----
61

query I rowsort
SELECT - 91 - 38 AS col0
----
-129

query I rowsort
SELECT + - 19 AS col1
----
-19

query I rowsort
SELECT - ( 35 )
----
-35

query I rowsort
SELECT - 4 AS col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5073
SELECT ALL + + SUM( DISTINCT 81 ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-5073
SELECT ALL + + SUM ( DISTINCT 81 ) AS col2
----
81

query I rowsort
SELECT DISTINCT + 70
----
70

query I rowsort
SELECT DISTINCT + 65 AS col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5076
SELECT DISTINCT + COUNT( ALL 9 )
----
1

skipif mysql # not compatible
query I rowsort label-5076
SELECT DISTINCT + COUNT ( ALL 9 )
----
1

query I rowsort
SELECT + ( + 78 ) AS col2
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5078
SELECT ALL + CAST( + 2 AS SIGNED ) DIV - CAST( COUNT( * ) AS SIGNED )
----
-2

skipif mysql # not compatible
query I rowsort label-5078
SELECT ALL + CAST ( + 2 AS INTEGER ) / - CAST ( COUNT ( * ) AS INTEGER )
----
-2

query I rowsort
SELECT ALL 88 AS col1
----
88

query I rowsort
SELECT DISTINCT 39 AS col0
----
39

query I rowsort
SELECT - 53 col0
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5082
SELECT - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5082
SELECT - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5083
SELECT DISTINCT + 51 * + CAST( NULL AS DECIMAL ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5083
SELECT DISTINCT + 51 * + CAST ( NULL AS REAL ) * COUNT ( * )
----
NULL

query I rowsort
SELECT ALL - 93 + - 45 AS col0
----
-138

query I rowsort
SELECT ALL - + 49
----
-49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5086
SELECT DISTINCT - + CAST( NULL AS DECIMAL ) * - ( + + 10 ) + + 52 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5086
SELECT DISTINCT - + CAST ( NULL AS REAL ) * - ( + + 10 ) + + 52 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5087
SELECT ALL + + MAX( + 21 ) - - - 56 AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-5087
SELECT ALL + + MAX ( + 21 ) - - - 56 AS col1
----
-35

query I rowsort
SELECT 81 + - 22
----
59

query I rowsort
SELECT ALL - 55
----
-55

query I rowsort
SELECT ALL - 45 AS col1
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5091
SELECT DISTINCT - CAST( COUNT( * ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-5091
SELECT DISTINCT - CAST ( COUNT ( * ) AS INTEGER )
----
-1

query I rowsort
SELECT - 97 AS col0
----
-97

query I rowsort
SELECT - - 69 AS col0
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5094
SELECT DISTINCT + 47 * - NULLIF ( + - 86, CAST( NULL AS SIGNED ) )
----
4042

skipif mysql # not compatible
query I rowsort label-5094
SELECT DISTINCT + 47 * - NULLIF ( + - 86, CAST ( NULL AS INTEGER ) )
----
4042

query I rowsort
SELECT + + 74 AS col2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5096
SELECT ALL - 72 * + - COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-5096
SELECT ALL - 72 * + - COUNT ( * )
----
72

query I rowsort
SELECT DISTINCT - - 16 * + - 88 col0
----
-1408

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5098
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5098
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5099
SELECT - - 12 DIV + - COUNT( - 53 ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-5099
SELECT - - 12 / + - COUNT ( - 53 ) AS col0
----
-12

query I rowsort
SELECT ( + 94 )
----
94

query I rowsort
SELECT - 81 + 34
----
-47

query I rowsort
SELECT ALL + 61 AS col1
----
61

query I rowsort
SELECT ALL + 77 col0
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5104
SELECT - 27 - + - CAST( NULL AS SIGNED ) / - + COUNT( * ) * + 95 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5104
SELECT - 27 - + - CAST ( NULL AS INTEGER ) / - + COUNT ( * ) * + 95 AS col0
----
NULL

query I rowsort
SELECT + 52 AS col1
----
52

query I rowsort
SELECT - ( + 2 )
----
-2

query I rowsort
SELECT ALL - 86 AS col0
----
-86

query I rowsort
SELECT ALL - 2 AS col2
----
-2

query I rowsort
SELECT DISTINCT 63
----
63

query I rowsort
SELECT DISTINCT - 67 col0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-5111
SELECT ALL ( COUNT( * ) ) + 66 col1
----
67

skipif mysql # not compatible
query I rowsort label-5111
SELECT ALL ( COUNT ( * ) ) + 66 col1
----
67

query I rowsort
SELECT DISTINCT + 59 + 55
----
114

query I rowsort
SELECT 16 + - 89 + + NULLIF ( + 12, + - 98 * + + 97 ) AS col0
----
-61

query I rowsort
SELECT ALL 24 AS col0
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5115
SELECT DISTINCT - CAST( - MIN( + 65 ) AS SIGNED )
----
65

skipif mysql # not compatible
query I rowsort label-5115
SELECT DISTINCT - CAST ( - MIN ( + 65 ) AS INTEGER )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5116
SELECT ALL - 39 * + COUNT( * ) + + 73 AS col0
----
34

skipif mysql # not compatible
query I rowsort label-5116
SELECT ALL - 39 * + COUNT ( * ) + + 73 AS col0
----
34

query I rowsort
SELECT ALL - + 53 AS col0
----
-53

query I rowsort
SELECT ALL - + 92 AS col2
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-5119
SELECT - 99 + + + COUNT( * )
----
-98

skipif mysql # not compatible
query I rowsort label-5119
SELECT - 99 + + + COUNT ( * )
----
-98

query I rowsort
SELECT ( + 72 )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5121
SELECT ALL COUNT( DISTINCT 91 )
----
1

skipif mysql # not compatible
query I rowsort label-5121
SELECT ALL COUNT ( DISTINCT 91 )
----
1

query I rowsort
SELECT ( 33 ) AS col1
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5123
SELECT - COUNT( 26 ) * - 94 * + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5123
SELECT - COUNT ( 26 ) * - 94 * + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + - 84
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-5125
SELECT COUNT( - - 6 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5125
SELECT COUNT ( - - 6 ) AS col0
----
1

query I rowsort
SELECT 95 AS col0
----
95

query I rowsort
SELECT DISTINCT - 89 * 46 AS col0
----
-4094

query II rowsort
SELECT 76 AS col2, + 53
----
76
53

onlyif mysql # aggregate syntax: 
query I rowsort label-5129
SELECT DISTINCT COUNT( DISTINCT - 15 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-5129
SELECT DISTINCT COUNT ( DISTINCT - 15 ) col2
----
1

query I rowsort
SELECT DISTINCT 73 AS col2
----
73

query I rowsort
SELECT 3 AS col2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5132
SELECT - 44 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5132
SELECT - 44 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + 8 + + + 43 AS col1
----
51

query I rowsort
SELECT DISTINCT + ( - ( - 20 ) ) AS col2
----
20

query I rowsort
SELECT DISTINCT + 81 AS col2
----
81

query I rowsort
SELECT + 19 AS col1
----
19

query I rowsort
SELECT ALL + ( - - 9 )
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5138
SELECT DISTINCT - COUNT( * ) * - SUM( DISTINCT CAST( - - 17 AS SIGNED ) )
----
17

skipif mysql # not compatible
query I rowsort label-5138
SELECT DISTINCT - COUNT ( * ) * - SUM ( DISTINCT CAST ( - - 17 AS INTEGER ) )
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5139
SELECT ALL 74 * - CAST( - 83 AS SIGNED )
----
6142

skipif mysql # not compatible
query I rowsort label-5139
SELECT ALL 74 * - CAST ( - 83 AS INTEGER )
----
6142

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5140
SELECT MAX( + CAST( NULL AS DECIMAL ) ) + 50 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5140
SELECT MAX ( + CAST ( NULL AS REAL ) ) + 50 AS col2
----
NULL

query I rowsort
SELECT + - 16
----
-16

query I rowsort
SELECT ALL - - 10
----
10

query I rowsort
SELECT DISTINCT - + 28 AS col0
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5144
SELECT ALL + CAST( + 20 AS SIGNED ) * - 11 AS col2
----
-220

skipif mysql # not compatible
query I rowsort label-5144
SELECT ALL + CAST ( + 20 AS INTEGER ) * - 11 AS col2
----
-220

query I rowsort
SELECT - 20 AS col2
----
-20

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5146
SELECT - 97 AS col2, CAST( NULL AS DECIMAL )
----
-97
NULL

skipif mysql # not compatible
query II rowsort label-5146
SELECT - 97 AS col2, CAST ( NULL AS REAL )
----
-97
NULL

query I rowsort
SELECT DISTINCT 51 AS col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5148
SELECT COUNT( * ) * COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5148
SELECT COUNT ( * ) * COUNT ( * ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5149
SELECT + COUNT( * ), 73 DIV + 93 * + + COUNT( * ) AS col0
----
1
0

skipif mysql # not compatible
query II rowsort label-5149
SELECT + COUNT ( * ), 73 / + 93 * + + COUNT ( * ) AS col0
----
1
0

query I rowsort
SELECT 64 col2
----
64

query I rowsort
SELECT + 18 AS col0
----
18

query I rowsort
SELECT + 21 AS col2
----
21

query I rowsort
SELECT ALL ( + 50 ) col1
----
50

query I rowsort
SELECT - 44
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-5155
SELECT DISTINCT - COUNT( * ) + + + 23
----
22

skipif mysql # not compatible
query I rowsort label-5155
SELECT DISTINCT - COUNT ( * ) + + + 23
----
22

query I rowsort
SELECT ALL - 97 AS col1
----
-97

query I rowsort
SELECT + 67 AS col0
----
67

query I rowsort
SELECT + 0 col0
----
0

query I rowsort
SELECT DISTINCT + - 1 col2
----
-1

query I rowsort
SELECT ALL + - 56 AS col2
----
-56

query I rowsort
SELECT + + 2
----
2

query I rowsort
SELECT ALL + 45 AS col0
----
45

query I rowsort
SELECT ( - + 92 )
----
-92

query I rowsort
SELECT DISTINCT + 22
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-5165
SELECT + 79 DIV - + 96 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5165
SELECT + 79 / - + 96 AS col2
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5166
SELECT ALL CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5166
SELECT ALL CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5167
SELECT DISTINCT - SUM( DISTINCT + 71 ) DIV - 5
----
14

skipif mysql # not compatible
query I rowsort label-5167
SELECT DISTINCT - SUM ( DISTINCT + 71 ) / - 5
----
14

query I rowsort
SELECT ALL 50 * 21 AS col1
----
1050

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5169
SELECT CAST( NULL AS SIGNED ) - 10
----
NULL

skipif mysql # not compatible
query I rowsort label-5169
SELECT CAST ( NULL AS INTEGER ) - 10
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5170
SELECT DISTINCT MIN( - 62 ) + COUNT( * ) * CAST( + CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5170
SELECT DISTINCT MIN ( - 62 ) + COUNT ( * ) * CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 14 * ( 13 ) AS col1
----
182

onlyif mysql # aggregate syntax: 
query I rowsort label-5172
SELECT 85 + COUNT( * ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-5172
SELECT 85 + COUNT ( * ) AS col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5173
SELECT COUNT( * ) + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-5173
SELECT COUNT ( * ) + - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5174
SELECT ALL + - ( COUNT( * ) ) * + 33
----
-33

skipif mysql # not compatible
query I rowsort label-5174
SELECT ALL + - ( COUNT ( * ) ) * + 33
----
-33

query I rowsort
SELECT DISTINCT 85 col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5176
SELECT ALL - 96 * COUNT( * ) AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-5176
SELECT ALL - 96 * COUNT ( * ) AS col0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5177
SELECT DISTINCT 45 * + COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-5177
SELECT DISTINCT 45 * + COUNT ( * )
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5178
SELECT - 94 DIV COUNT( * ) AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-5178
SELECT - 94 / COUNT ( * ) AS col2
----
-94

query I rowsort
SELECT + - 77
----
-77

query I rowsort
SELECT DISTINCT + 15 * 59 AS col2
----
885

onlyif mysql # aggregate syntax: 
query I rowsort label-5181
SELECT ALL - COUNT( * ) * - COALESCE ( COUNT( * ), + COUNT( * ) + - 50 * 83 )
----
1

skipif mysql # not compatible
query I rowsort label-5181
SELECT ALL - COUNT ( * ) * - COALESCE ( COUNT ( * ), + COUNT ( * ) + - 50 * 83 )
----
1

query I rowsort
SELECT + 72 AS col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5183
SELECT DISTINCT - SUM( - 38 )
----
38

skipif mysql # not compatible
query I rowsort label-5183
SELECT DISTINCT - SUM ( - 38 )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5184
SELECT 24 * - COUNT( * ) * + 96
----
-2304

skipif mysql # not compatible
query I rowsort label-5184
SELECT 24 * - COUNT ( * ) * + 96
----
-2304

query I rowsort
SELECT + 37 col1
----
37

query I rowsort
SELECT 30 + + 8 AS col0
----
38

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5187
SELECT ALL - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5187
SELECT ALL - CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT 50 AS col2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5189
SELECT - + SUM( DISTINCT - 96 ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-5189
SELECT - + SUM ( DISTINCT - 96 ) AS col1
----
96

query I rowsort
SELECT + 33 * 75 col1
----
2475

onlyif mysql # aggregate syntax: 
query I rowsort label-5191
SELECT + + COUNT( * ) - - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-5191
SELECT + + COUNT ( * ) - - COUNT ( * )
----
2

query I rowsort
SELECT ALL 39 + 60 col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5193
SELECT ALL + SUM( + 36 )
----
36

skipif mysql # not compatible
query I rowsort label-5193
SELECT ALL + SUM ( + 36 )
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5194
SELECT ( CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5194
SELECT ( CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 56
----
56

query I rowsort
SELECT ALL + 40 AS col2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5197
SELECT - 67 * + MAX( DISTINCT - 54 )
----
3618

skipif mysql # not compatible
query I rowsort label-5197
SELECT - 67 * + MAX ( DISTINCT - 54 )
----
3618

onlyif mysql # aggregate syntax: 
query I rowsort label-5198
SELECT NULLIF ( - - 4, + COUNT( * ) )
----
4

skipif mysql # not compatible
query I rowsort label-5198
SELECT NULLIF ( - - 4, + COUNT ( * ) )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5199
SELECT - NULLIF ( + COUNT( * ), COUNT( * ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5199
SELECT - NULLIF ( + COUNT ( * ), COUNT ( * ) ) col1
----
NULL

query I rowsort
SELECT ALL 66
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5201
SELECT + ( - COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5201
SELECT + ( - COUNT ( * ) )
----
-1

query I rowsort
SELECT ALL - 85 AS col0
----
-85

query I rowsort
SELECT DISTINCT - 91 col1
----
-91

query I rowsort
SELECT DISTINCT - 62 AS col2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-5205
SELECT - 53 * - + 99 + - + COUNT( * ) AS col1
----
5246

skipif mysql # not compatible
query I rowsort label-5205
SELECT - 53 * - + 99 + - + COUNT ( * ) AS col1
----
5246

query I rowsort
SELECT ALL - + 32
----
-32

query I rowsort
SELECT COALESCE ( - 28, + 86 )
----
-28

query I rowsort
SELECT + 90 - - + 25
----
115

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5209
SELECT ( - 82 ) * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5209
SELECT ( - 82 ) * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5210
SELECT ALL 97 * + COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-5210
SELECT ALL 97 * + COUNT ( * )
----
97

query I rowsort
SELECT ALL - 85 * 90 AS col2
----
-7650

query I rowsort
SELECT 61
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5213
SELECT ALL + ( - CAST( - 58 AS SIGNED ) ) + - COUNT( * )
----
57

skipif mysql # not compatible
query I rowsort label-5213
SELECT ALL + ( - CAST ( - 58 AS INTEGER ) ) + - COUNT ( * )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5214
SELECT 6 - COUNT( * ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-5214
SELECT 6 - COUNT ( * ) AS col1
----
5

query I rowsort
SELECT 39 + + 91 AS col2
----
130

query I rowsort
SELECT DISTINCT 66
----
66

query I rowsort
SELECT ALL - 88 AS col1
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-5218
SELECT ALL MIN( 40 )
----
40

skipif mysql # not compatible
query I rowsort label-5218
SELECT ALL MIN ( 40 )
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-5219
SELECT ALL 64, + 36 * - - COUNT( * ) AS col1
----
64
36

skipif mysql # not compatible
query II rowsort label-5219
SELECT ALL 64, + 36 * - - COUNT ( * ) AS col1
----
64
36

query I rowsort
SELECT DISTINCT 16
----
16

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5221
SELECT DISTINCT 79 * - CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5221
SELECT DISTINCT 79 * - CAST ( NULL AS REAL ) col0
----
NULL

query I rowsort
SELECT - ( - + 96 ) AS col1
----
96

query I rowsort
SELECT - 97 - - 55 * - 27
----
-1582

query I rowsort
SELECT - 78 * - 44 AS col2
----
3432

query I rowsort
SELECT - 34 * + + 39 col2
----
-1326

onlyif mysql # aggregate syntax: 
query I rowsort label-5226
SELECT + ( COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-5226
SELECT + ( COUNT ( * ) )
----
1

query I rowsort
SELECT ALL + - ( 74 ) AS col2
----
-74

query I rowsort
SELECT 86 * - 27
----
-2322

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5229
SELECT CAST( NULL AS SIGNED ) * 20 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5229
SELECT CAST ( NULL AS INTEGER ) * 20 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5230
SELECT COUNT( * ) - + 83
----
-82

skipif mysql # not compatible
query I rowsort label-5230
SELECT COUNT ( * ) - + 83
----
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-5231
SELECT + COUNT( * ), - COUNT( * ) + + - COUNT( * ) AS col2
----
1
-2

skipif mysql # not compatible
query II rowsort label-5231
SELECT + COUNT ( * ), - COUNT ( * ) + + - COUNT ( * ) AS col2
----
1
-2

query I rowsort
SELECT ALL - + 74 AS col1
----
-74

query I rowsort
SELECT + - 39 AS col0
----
-39

query I rowsort
SELECT DISTINCT - 73
----
-73

query I rowsort
SELECT 19 col0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5236
SELECT ALL SUM( - 16 )
----
-16

skipif mysql # not compatible
query I rowsort label-5236
SELECT ALL SUM ( - 16 )
----
-16

query I rowsort
SELECT ALL 75 AS col1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5238
SELECT - SUM( ALL 28 )
----
-28

skipif mysql # not compatible
query I rowsort label-5238
SELECT - SUM ( ALL 28 )
----
-28

query I rowsort
SELECT ALL + 85 col0
----
85

query I rowsort
SELECT - 66 + - 43
----
-109

query I rowsort
SELECT + + 44
----
44

query I rowsort
SELECT ALL + - 12
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-5243
SELECT ALL + MIN( ALL - 87 )
----
-87

skipif mysql # not compatible
query I rowsort label-5243
SELECT ALL + MIN ( ALL - 87 )
----
-87

query I rowsort
SELECT + 59 + 9
----
68

query II rowsort
SELECT + + 46 AS col2, 43
----
46
43

query II rowsort
SELECT + 98 AS col2, - 7 AS col0
----
98
-7

query II rowsort
SELECT DISTINCT + 0, - 70 col2
----
0
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5248
SELECT ALL - COUNT( * ) + - COUNT( * ) * CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5248
SELECT ALL - COUNT ( * ) + - COUNT ( * ) * CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT 35 col2
----
35

query I rowsort
SELECT 78 AS col2
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5251
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-5251
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 82
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5252
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 83 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5252
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 83 AS col1
----
NULL

query I rowsort
SELECT ALL - 66 + 82 + 71 AS col1
----
87

query I rowsort
SELECT ALL 71
----
71

query I rowsort
SELECT - 44 AS col0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-5256
SELECT COUNT( * ) * + + 48 AS col1
----
48

skipif mysql # not compatible
query I rowsort label-5256
SELECT COUNT ( * ) * + + 48 AS col1
----
48

query I rowsort
SELECT - - ( - - 66 ) AS col1
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-5258
SELECT COUNT( * ) AS col0, - 99 col2
----
1
-99

skipif mysql # not compatible
query II rowsort label-5258
SELECT COUNT ( * ) AS col0, - 99 col2
----
1
-99

query I rowsort
SELECT DISTINCT - 96
----
-96

query I rowsort
SELECT DISTINCT - ( 44 )
----
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-5261
SELECT - 89 AS col2, 83 * SUM( DISTINCT 10 ) col0
----
-89
830

skipif mysql # not compatible
query II rowsort label-5261
SELECT - 89 AS col2, 83 * SUM ( DISTINCT 10 ) col0
----
-89
830

query I rowsort
SELECT ALL - 36
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5263
SELECT ALL CAST( NULL AS SIGNED ) * + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-5263
SELECT ALL CAST ( NULL AS INTEGER ) * + 25
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5264
SELECT ( + CAST( + + COUNT( * ) AS SIGNED ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5264
SELECT ( + CAST ( + + COUNT ( * ) AS INTEGER ) ) AS col0
----
1

query I rowsort
SELECT + 65 AS col0
----
65

query I rowsort
SELECT + 44 AS col0
----
44

query I rowsort
SELECT ALL + 25 AS col2
----
25

query I rowsort
SELECT - - ( 43 )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-5269
SELECT - COUNT( * ) + + + 39
----
38

skipif mysql # not compatible
query I rowsort label-5269
SELECT - COUNT ( * ) + + + 39
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5270
SELECT + CAST( - COUNT( * ) AS SIGNED ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5270
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) AS col2
----
-1

query I rowsort
SELECT + 13 * - - 92
----
1196

onlyif mysql # aggregate syntax: 
query I rowsort label-5272
SELECT - COUNT( * ) * COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-5272
SELECT - COUNT ( * ) * COUNT ( * )
----
-1

query I rowsort
SELECT ALL - 47 AS col2
----
-47

query I rowsort
SELECT DISTINCT - 24 AS col1
----
-24

query I rowsort
SELECT ALL 8 AS col0
----
8

query I rowsort
SELECT 42 * + + 96
----
4032

query I rowsort
SELECT ALL 9 AS col2
----
9

query I rowsort
SELECT + 40 AS col2
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5279
SELECT MAX( + 40 ) DIV + 36 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5279
SELECT MAX ( + 40 ) / + 36 AS col0
----
1

query II rowsort
SELECT DISTINCT - 16 AS col0, 82
----
-16
82

query I rowsort
SELECT ALL - 32 col2
----
-32

query I rowsort
SELECT 77
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5283
SELECT DISTINCT - + ( + CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5283
SELECT DISTINCT - + ( + CAST ( NULL AS INTEGER ) ) col0
----
NULL

query I rowsort
SELECT - - 14 AS col0
----
14

query I rowsort
SELECT - 64 AS col1
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-5286
SELECT ALL - 52 + COUNT( * )
----
-51

skipif mysql # not compatible
query I rowsort label-5286
SELECT ALL - 52 + COUNT ( * )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5287
SELECT DISTINCT MAX( 40 ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-5287
SELECT DISTINCT MAX ( 40 ) AS col0
----
40

query I rowsort
SELECT - 29 col0
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5289
SELECT - CAST( NULL AS SIGNED ) * - - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-5289
SELECT - CAST ( NULL AS INTEGER ) * - - 6
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5290
SELECT DISTINCT + COUNT( 2 ) * CAST( + 76 AS SIGNED ) col2
----
76

skipif mysql # not compatible
query I rowsort label-5290
SELECT DISTINCT + COUNT ( 2 ) * CAST ( + 76 AS INTEGER ) col2
----
76

query I rowsort
SELECT + - 11 AS col2
----
-11

query I rowsort
SELECT ALL + + 66
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5293
SELECT ( - CAST( COUNT( DISTINCT - 2 ) AS SIGNED ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-5293
SELECT ( - CAST ( COUNT ( DISTINCT - 2 ) AS INTEGER ) ) col0
----
-1

query I rowsort
SELECT ALL + 77
----
77

query I rowsort
SELECT DISTINCT + - 73
----
-73

query I rowsort
SELECT + + 16
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5297
SELECT - ( - 45 ) - - + ( + - MIN( + + 53 ) ) col1
----
-8

skipif mysql # not compatible
query I rowsort label-5297
SELECT - ( - 45 ) - - + ( + - MIN ( + + 53 ) ) col1
----
-8

query I rowsort
SELECT ALL - 26
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-5299
SELECT ALL + 58 + + + COUNT( * ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-5299
SELECT ALL + 58 + + + COUNT ( * ) AS col1
----
59

query II rowsort
SELECT - 16, 88 AS col2
----
-16
88

query I rowsort
SELECT 4 col1
----
4

query I rowsort
SELECT DISTINCT ( 84 )
----
84

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5303
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5303
SELECT DISTINCT CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5304
SELECT - COUNT( * ) + - + COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-5304
SELECT - COUNT ( * ) + - + COUNT ( * )
----
-2

query I rowsort
SELECT - 89 * + 33 AS col1
----
-2937

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5306
SELECT ALL + CAST( - - 15 AS SIGNED )
----
15

skipif mysql # not compatible
query I rowsort label-5306
SELECT ALL + CAST ( - - 15 AS INTEGER )
----
15

query I rowsort
SELECT + 27 AS col1
----
27

query I rowsort
SELECT ALL + 43 AS col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-5309
SELECT COALESCE ( + + COUNT( * ), + SUM( ALL + 18 ) )
----
1

skipif mysql # not compatible
query I rowsort label-5309
SELECT COALESCE ( + + COUNT ( * ), + SUM ( ALL + 18 ) )
----
1

query I rowsort
SELECT DISTINCT 52
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5311
SELECT 8 + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5311
SELECT 8 + CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5312
SELECT DISTINCT COUNT( * ) + 49
----
50

skipif mysql # not compatible
query I rowsort label-5312
SELECT DISTINCT COUNT ( * ) + 49
----
50

query I rowsort
SELECT 8 AS col2
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-5314
SELECT 30 - - 19 AS col1, - COUNT( * ) AS col0
----
49
-1

skipif mysql # not compatible
query II rowsort label-5314
SELECT 30 - - 19 AS col1, - COUNT ( * ) AS col0
----
49
-1

query I rowsort
SELECT + + 73
----
73

query I rowsort
SELECT DISTINCT - + 33 + + 47 col1
----
14

query I rowsort
SELECT - 83 AS col0
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5318
SELECT ALL - MIN( ALL + + CAST( + 91 AS SIGNED ) )
----
-91

skipif mysql # not compatible
query I rowsort label-5318
SELECT ALL - MIN ( ALL + + CAST ( + 91 AS INTEGER ) )
----
-91

query I rowsort
SELECT ALL 61
----
61

query I rowsort
SELECT ALL 72 * 14 col1
----
1008

query I rowsort
SELECT 8 * + 3
----
24

query I rowsort
SELECT DISTINCT + 70 AS col1
----
70

query I rowsort
SELECT - + 68
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-5324
SELECT DISTINCT + + ( - COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5324
SELECT DISTINCT + + ( - COUNT ( * ) ) AS col2
----
-1

query I rowsort
SELECT 58 AS col0
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5326
SELECT ALL CAST( NULL AS SIGNED ) + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-5326
SELECT ALL CAST ( NULL AS INTEGER ) + 52
----
NULL

query I rowsort
SELECT 44 AS col0
----
44

query I rowsort
SELECT 57 col0
----
57

query I rowsort
SELECT - 93
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-5330
SELECT - - MAX( ALL - - 56 ) * + 42 * 25 AS col1
----
58800

skipif mysql # not compatible
query I rowsort label-5330
SELECT - - MAX ( ALL - - 56 ) * + 42 * 25 AS col1
----
58800

query I rowsort
SELECT ALL + 46 AS col2
----
46

query I rowsort
SELECT ALL - 15 AS col1
----
-15

query I rowsort
SELECT DISTINCT - 33
----
-33

query I rowsort
SELECT - + 99
----
-99

query I rowsort
SELECT ALL - 64 AS col0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-5336
SELECT COUNT( * ) + 78
----
79

skipif mysql # not compatible
query I rowsort label-5336
SELECT COUNT ( * ) + 78
----
79

query I rowsort
SELECT ALL - 61
----
-61

query II rowsort
SELECT 35, - 92 - 3 AS col2
----
35
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5339
SELECT + COUNT( * ) / - COUNT( * ) + + CAST( NULL AS SIGNED ) AS col1, COUNT( * ) * - 10 AS col2
----
NULL
-10

skipif mysql # not compatible
query II rowsort label-5339
SELECT + COUNT ( * ) / - COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) * - 10 AS col2
----
NULL
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-5340
SELECT DISTINCT + SUM( DISTINCT + 79 )
----
79

skipif mysql # not compatible
query I rowsort label-5340
SELECT DISTINCT + SUM ( DISTINCT + 79 )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5341
SELECT ALL COUNT( * ) + + 71 * 24 AS col2
----
1705

skipif mysql # not compatible
query I rowsort label-5341
SELECT ALL COUNT ( * ) + + 71 * 24 AS col2
----
1705

query I rowsort
SELECT + 55
----
55

query I rowsort
SELECT + 66
----
66

query I rowsort
SELECT + 29
----
29

query I rowsort
SELECT ALL - 97 col0
----
-97

query I rowsort
SELECT ALL - 47 AS col1
----
-47

query I rowsort
SELECT + - 21 + + 27
----
6

query I rowsort
SELECT - 86 col1
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-5349
SELECT ALL + MAX( ALL 22 )
----
22

skipif mysql # not compatible
query I rowsort label-5349
SELECT ALL + MAX ( ALL 22 )
----
22

query I rowsort
SELECT + 78 * + 42 AS col0
----
3276

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5351
SELECT ALL + CAST( NULL AS SIGNED ) AS col2, 25
----
NULL
25

skipif mysql # not compatible
query II rowsort label-5351
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2, 25
----
NULL
25

query I rowsort
SELECT ALL + + 20
----
20

query I rowsort
SELECT + 41 AS col2
----
41

query I rowsort
SELECT - - 8 AS col0
----
8

query I rowsort
SELECT ALL + 7 AS col1
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5356
SELECT CAST( + + 35 AS SIGNED )
----
35

skipif mysql # not compatible
query I rowsort label-5356
SELECT CAST ( + + 35 AS INTEGER )
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-5357
SELECT DISTINCT 71 * + ( + ( - + 60 ) ) AS col2, + COUNT( * ) * + - 64
----
-4260
-64

skipif mysql # not compatible
query II rowsort label-5357
SELECT DISTINCT 71 * + ( + ( - + 60 ) ) AS col2, + COUNT ( * ) * + - 64
----
-4260
-64

query I rowsort
SELECT - 1 * + 64 AS col1
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-5359
SELECT COUNT( * ) * - 84
----
-84

skipif mysql # not compatible
query I rowsort label-5359
SELECT COUNT ( * ) * - 84
----
-84

query I rowsort
SELECT ALL - 7 AS col0
----
-7

query I rowsort
SELECT + - 40 AS col2
----
-40

query I rowsort
SELECT 89 * + 60
----
5340

query I rowsort
SELECT ALL - + ( 86 ) AS col2
----
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-5364
SELECT DISTINCT 42 AS col0, COUNT( * )
----
42
1

skipif mysql # not compatible
query II rowsort label-5364
SELECT DISTINCT 42 AS col0, COUNT ( * )
----
42
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5365
SELECT ALL COUNT( - 71 )
----
1

skipif mysql # not compatible
query I rowsort label-5365
SELECT ALL COUNT ( - 71 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5366
SELECT + COUNT( * ) AS col0, 49
----
1
49

skipif mysql # not compatible
query II rowsort label-5366
SELECT + COUNT ( * ) AS col0, 49
----
1
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5367
SELECT DISTINCT + + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5367
SELECT DISTINCT + + COUNT ( * ) AS col0
----
1

query II rowsort
SELECT 95, + ( - 46 ) AS col1
----
95
-46

query I rowsort
SELECT - ( 1 ) col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5370
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-5370
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER )
----
1

query II rowsort
SELECT - 95 + - - 49, 26 AS col2
----
-46
26

query I rowsort
SELECT DISTINCT ( - 42 ) AS col1
----
-42

query I rowsort
SELECT ALL 54 AS col1
----
54

query I rowsort
SELECT - 16 AS col1
----
-16

query I rowsort
SELECT + + 95 col0
----
95

query I rowsort
SELECT 92 AS col0
----
92

query I rowsort
SELECT ALL + - 37
----
-37

query I rowsort
SELECT + + 44 col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5379
SELECT + 8 + + + COUNT( * ) * COUNT( * )
----
9

skipif mysql # not compatible
query I rowsort label-5379
SELECT + 8 + + + COUNT ( * ) * COUNT ( * )
----
9

query I rowsort
SELECT ( 88 ) * - 53
----
-4664

onlyif mysql # aggregate syntax: 
query I rowsort label-5381
SELECT DISTINCT - SUM( - 68 )
----
68

skipif mysql # not compatible
query I rowsort label-5381
SELECT DISTINCT - SUM ( - 68 )
----
68

query I rowsort
SELECT ALL - + 41 AS col0
----
-41

query I rowsort
SELECT DISTINCT - 63
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-5384
SELECT DISTINCT - ( - + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-5384
SELECT DISTINCT - ( - + COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5385
SELECT DISTINCT + - MIN( + 37 ) * 52 AS col1
----
-1924

skipif mysql # not compatible
query I rowsort label-5385
SELECT DISTINCT + - MIN ( + 37 ) * 52 AS col1
----
-1924

onlyif mysql # aggregate syntax: 
query II rowsort label-5386
SELECT + 44 AS col0, - COUNT( * ) AS col1
----
44
-1

skipif mysql # not compatible
query II rowsort label-5386
SELECT + 44 AS col0, - COUNT ( * ) AS col1
----
44
-1

query I rowsort
SELECT + 55 AS col1
----
55

query I rowsort
SELECT - 21 AS col0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-5389
SELECT ( - COUNT( * ) ) + - 96
----
-97

skipif mysql # not compatible
query I rowsort label-5389
SELECT ( - COUNT ( * ) ) + - 96
----
-97

query II rowsort
SELECT + 34 col2, 33
----
34
33

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5391
SELECT DISTINCT - CAST( NULL AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5391
SELECT DISTINCT - CAST ( NULL AS REAL ) col1
----
NULL

query I rowsort
SELECT DISTINCT - 69 AS col2
----
-69

query I rowsort
SELECT + 10 col0
----
10

query I rowsort
SELECT 20 AS col1
----
20

query II rowsort
SELECT DISTINCT NULLIF ( - + 92, AVG ( DISTINCT + - ( + 76 ) ) ), 62 AS col0
----
-92
62

query I rowsort
SELECT - 76 AS col2
----
-76

query I rowsort
SELECT - + 95 - - + 60 AS col1
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5398
SELECT - COUNT( DISTINCT + CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-5398
SELECT - COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) )
----
0

query I rowsort
SELECT + ( + - 72 ) col2
----
-72

query I rowsort
SELECT + ( + + 18 )
----
18

query I rowsort
SELECT ALL + 6
----
6

query II rowsort
SELECT + 74 AS col0, + 61 col2
----
74
61

query I rowsort
SELECT ALL 36 AS col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5404
SELECT - SUM( DISTINCT - 28 )
----
28

skipif mysql # not compatible
query I rowsort label-5404
SELECT - SUM ( DISTINCT - 28 )
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5405
SELECT - CAST( CAST( - COUNT( * ) AS SIGNED ) AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5405
SELECT - CAST ( CAST ( - COUNT ( * ) AS INTEGER ) AS INTEGER ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5406
SELECT DISTINCT - 49 AS col1, - COUNT( * )
----
-49
-1

skipif mysql # not compatible
query II rowsort label-5406
SELECT DISTINCT - 49 AS col1, - COUNT ( * )
----
-49
-1

query I rowsort
SELECT ( - 56 )
----
-56

query I rowsort
SELECT - 88 AS col1
----
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5409
SELECT SUM( ALL - + 8 ) DIV 44
----
0

skipif mysql # not compatible
query I rowsort label-5409
SELECT SUM ( ALL - + 8 ) / 44
----
0

query I rowsort
SELECT 36 * - 87
----
-3132

query I rowsort
SELECT DISTINCT - 39 AS col1
----
-39

query I rowsort
SELECT ALL - 41 col1
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-5413
SELECT ALL - MAX( DISTINCT + + 1 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5413
SELECT ALL - MAX ( DISTINCT + + 1 ) AS col0
----
-1

query I rowsort
SELECT DISTINCT - 57 AS col0
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5415
SELECT 87 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5415
SELECT 87 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5416
SELECT COUNT( * ) - + 34
----
-33

skipif mysql # not compatible
query I rowsort label-5416
SELECT COUNT ( * ) - + 34
----
-33

query I rowsort
SELECT - 38 AS col2
----
-38

query I rowsort
SELECT + 61 col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5419
SELECT DISTINCT - 57 + COUNT( * )
----
-56

skipif mysql # not compatible
query I rowsort label-5419
SELECT DISTINCT - 57 + COUNT ( * )
----
-56

query I rowsort
SELECT 65 AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5421
SELECT + - COUNT( * ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-5421
SELECT + - COUNT ( * ) col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5422
SELECT DISTINCT + MIN( - + CAST( NULL AS SIGNED ) ) * - ( MIN( + - NULLIF ( + 17, + ( - + ( 82 ) ) ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5422
SELECT DISTINCT + MIN ( - + CAST ( NULL AS INTEGER ) ) * - ( MIN ( + - NULLIF ( + 17, + ( - + ( 82 ) ) ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5423
SELECT + COUNT( * ), 2 AS col2
----
1
2

skipif mysql # not compatible
query II rowsort label-5423
SELECT + COUNT ( * ), 2 AS col2
----
1
2

query I rowsort
SELECT ALL + 98 * + + 31 col0
----
3038

query I rowsort
SELECT + - 26
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-5426
SELECT + + COUNT( 99 )
----
1

skipif mysql # not compatible
query I rowsort label-5426
SELECT + + COUNT ( 99 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5427
SELECT MAX( + 15 )
----
15

skipif mysql # not compatible
query I rowsort label-5427
SELECT MAX ( + 15 )
----
15

query II rowsort
SELECT DISTINCT 17 AS col0, - 41 AS col0
----
17
-41

query I rowsort
SELECT - - 65
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-5430
SELECT - ( - 28 ) AS col2, MAX( ALL + 53 ) AS col0
----
28
53

skipif mysql # not compatible
query II rowsort label-5430
SELECT - ( - 28 ) AS col2, MAX ( ALL + 53 ) AS col0
----
28
53

onlyif mysql # DIV for integer division: 
query I rowsort label-5431
SELECT DISTINCT + 59 DIV + 47 + + 6
----
7

skipif mysql # not compatible
query I rowsort label-5431
SELECT DISTINCT + 59 / + 47 + + 6
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5432
SELECT ALL + CAST( - + 7 AS SIGNED ) AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-5432
SELECT ALL + CAST ( - + 7 AS INTEGER ) AS col1
----
-7

query I rowsort
SELECT + - 95 AS col0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-5434
SELECT + MAX( ALL - 40 )
----
-40

skipif mysql # not compatible
query I rowsort label-5434
SELECT + MAX ( ALL - 40 )
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-5435
SELECT COUNT( * ) + - 66 + - 88
----
-153

skipif mysql # not compatible
query I rowsort label-5435
SELECT COUNT ( * ) + - 66 + - 88
----
-153

onlyif mysql # DIV for integer division: 
query I rowsort label-5436
SELECT + 38 DIV - 58
----
0

skipif mysql # not compatible
query I rowsort label-5436
SELECT + 38 / - 58
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5437
SELECT COUNT( * ) + + 89
----
90

skipif mysql # not compatible
query I rowsort label-5437
SELECT COUNT ( * ) + + 89
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5438
SELECT ALL COUNT( * ) + 8
----
9

skipif mysql # not compatible
query I rowsort label-5438
SELECT ALL COUNT ( * ) + 8
----
9

query I rowsort
SELECT 81 AS col2
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-5440
SELECT DISTINCT 18 DIV - + 94 col0
----
0

skipif mysql # not compatible
query I rowsort label-5440
SELECT DISTINCT 18 / - + 94 col0
----
0

query I rowsort
SELECT + 92 col0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5442
SELECT ALL - COUNT( * ) + + - 45
----
-46

skipif mysql # not compatible
query I rowsort label-5442
SELECT ALL - COUNT ( * ) + + - 45
----
-46

query I rowsort
SELECT DISTINCT + 57 + + - 32
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5444
SELECT COUNT( * ) - - CAST( NULL AS SIGNED ) * - 53
----
NULL

skipif mysql # not compatible
query I rowsort label-5444
SELECT COUNT ( * ) - - CAST ( NULL AS INTEGER ) * - 53
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5445
SELECT DISTINCT + CAST( + 40 AS SIGNED )
----
40

skipif mysql # not compatible
query I rowsort label-5445
SELECT DISTINCT + CAST ( + 40 AS INTEGER )
----
40

query I rowsort
SELECT ALL + - 43 AS col2
----
-43

query I rowsort
SELECT ALL + + 70
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5448
SELECT + - COUNT( * ) + + 43 AS col0
----
42

skipif mysql # not compatible
query I rowsort label-5448
SELECT + - COUNT ( * ) + + 43 AS col0
----
42

query I rowsort
SELECT ALL + + 9
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5450
SELECT + + ( - MAX( DISTINCT + 86 ) ) + + - 77 AS col1
----
-163

skipif mysql # not compatible
query I rowsort label-5450
SELECT + + ( - MAX ( DISTINCT + 86 ) ) + + - 77 AS col1
----
-163

query I rowsort
SELECT DISTINCT - 25 - - 92 AS col0
----
67

query I rowsort
SELECT - 54 + - + 71 AS col0
----
-125

onlyif mysql # aggregate syntax: 
query I rowsort label-5453
SELECT DISTINCT ( + COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5453
SELECT DISTINCT ( + COUNT ( * ) ) AS col0
----
1

query I rowsort
SELECT ALL - 29 AS col2
----
-29

query I rowsort
SELECT 28 col2
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-5456
SELECT + - COUNT( * ), COUNT( * ) col2
----
-1
1

skipif mysql # not compatible
query II rowsort label-5456
SELECT + - COUNT ( * ), COUNT ( * ) col2
----
-1
1

query I rowsort
SELECT - 30 col0
----
-30

query I rowsort
SELECT + - 44 AS col0
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5459
SELECT + CAST( NULL AS SIGNED ), + 76 col0
----
NULL
76

skipif mysql # not compatible
query II rowsort label-5459
SELECT + CAST ( NULL AS INTEGER ), + 76 col0
----
NULL
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5460
SELECT MIN( + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5460
SELECT MIN ( + - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5461
SELECT + 88 + - CASE - 81 WHEN 33 * + + 80 THEN - + 88 END + + - MIN( DISTINCT 67 ) * + - 2
----
NULL

skipif mysql # not compatible
query I rowsort label-5461
SELECT + 88 + - CASE - 81 WHEN 33 * + + 80 THEN - + 88 END + + - MIN ( DISTINCT 67 ) * + - 2
----
NULL

query I rowsort
SELECT ALL - 50 - + - 4 + - 98
----
-144

query I rowsort
SELECT ALL 64 AS col0
----
64

query I rowsort
SELECT DISTINCT 26
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5465
SELECT 24 * + MAX( ALL - + 45 ) AS col1
----
-1080

skipif mysql # not compatible
query I rowsort label-5465
SELECT 24 * + MAX ( ALL - + 45 ) AS col1
----
-1080

query I rowsort
SELECT - ( 19 )
----
-19

query I rowsort
SELECT - 31 AS col1
----
-31

query I rowsort
SELECT - 15 AS col0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5469
SELECT ALL - CAST( NULL AS SIGNED ) / - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-5469
SELECT ALL - CAST ( NULL AS INTEGER ) / - 20
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5470
SELECT ALL - CAST( - COUNT( * ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-5470
SELECT ALL - CAST ( - COUNT ( * ) AS INTEGER )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5471
SELECT ALL - CAST( + 69 AS SIGNED )
----
-69

skipif mysql # not compatible
query I rowsort label-5471
SELECT ALL - CAST ( + 69 AS INTEGER )
----
-69

query I rowsort
SELECT 55 AS col2
----
55

query I rowsort
SELECT - 59 + - - 79
----
20

query II rowsort
SELECT DISTINCT 42 AS col0, + 97
----
42
97

query I rowsort
SELECT - - 13 + + 17 AS col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5476
SELECT + 73 + - COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-5476
SELECT + 73 + - COUNT ( * )
----
72

query I rowsort
SELECT ALL + - 12 AS col2
----
-12

query I rowsort
SELECT DISTINCT + + 51 AS col1
----
51

query I rowsort
SELECT ALL - - 35 * 16 AS col0
----
560

query I rowsort
SELECT ALL + 47 AS col0
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5481
SELECT + CAST( - 69 AS SIGNED ) + - - COUNT( * )
----
-68

skipif mysql # not compatible
query I rowsort label-5481
SELECT + CAST ( - 69 AS INTEGER ) + - - COUNT ( * )
----
-68

query I rowsort
SELECT + 14 AS col2
----
14

query I rowsort
SELECT - + 42 * - - 76 * - 80
----
255360

query I rowsort
SELECT - 66 AS col2
----
-66

query I rowsort
SELECT ALL + 75 col1
----
75

query I rowsort
SELECT - 50 AS col2
----
-50

query I rowsort
SELECT - - 57 col2
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5488
SELECT DISTINCT CAST( - CAST( - 71 AS SIGNED ) AS SIGNED )
----
71

skipif mysql # not compatible
query I rowsort label-5488
SELECT DISTINCT CAST ( - CAST ( - 71 AS INTEGER ) AS INTEGER )
----
71

query I rowsort
SELECT ( + 17 ) AS col0
----
17

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5490
SELECT - CAST( NULL AS DECIMAL ) + - + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5490
SELECT - CAST ( NULL AS REAL ) + - + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 76 col0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-5492
SELECT ALL COUNT( * ) + 17
----
18

skipif mysql # not compatible
query I rowsort label-5492
SELECT ALL COUNT ( * ) + 17
----
18

query I rowsort
SELECT ALL - 98 col0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-5494
SELECT ALL + 16 - + 59 + + COUNT( * ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-5494
SELECT ALL + 16 - + 59 + + COUNT ( * ) AS col1
----
-42

query I rowsort
SELECT - 34 AS col1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-5496
SELECT - 64 * - COUNT( * )
----
64

skipif mysql # not compatible
query I rowsort label-5496
SELECT - 64 * - COUNT ( * )
----
64

query I rowsort
SELECT DISTINCT + - 26 * - - 34 AS col1
----
-884

query I rowsort
SELECT - - 2 AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5499
SELECT ALL + COUNT( * ) * - - COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5499
SELECT ALL + COUNT ( * ) * - - COUNT ( * ) AS col1
----
1

query I rowsort
SELECT ALL 2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5501
SELECT DISTINCT + COUNT( * ) + COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-5501
SELECT DISTINCT + COUNT ( * ) + COUNT ( * ) AS col0
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5502
SELECT COUNT( * ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5502
SELECT COUNT ( * ) * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5503
SELECT DISTINCT MAX( + + 95 ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-5503
SELECT DISTINCT MAX ( + + 95 ) AS col0
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-5504
SELECT - COUNT( * ) col0, - 44
----
-1
-44

skipif mysql # not compatible
query II rowsort label-5504
SELECT - COUNT ( * ) col0, - 44
----
-1
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5505
SELECT + CAST( - COUNT( * ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-5505
SELECT + CAST ( - COUNT ( * ) AS INTEGER )
----
-1

query I rowsort
SELECT ALL COALESCE ( 2, 47 ) AS col0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5507
SELECT - ( + CAST( - 15 AS SIGNED ) ) * 4 AS col2
----
60

skipif mysql # not compatible
query I rowsort label-5507
SELECT - ( + CAST ( - 15 AS INTEGER ) ) * 4 AS col2
----
60

query I rowsort
SELECT + 34 col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5509
SELECT - + COUNT( * ) * + - 30 AS col1
----
30

skipif mysql # not compatible
query I rowsort label-5509
SELECT - + COUNT ( * ) * + - 30 AS col1
----
30

query I rowsort
SELECT 85 AS col1
----
85

query I rowsort
SELECT + 66 AS col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5512
SELECT - 35 * + COUNT( * )
----
-35

skipif mysql # not compatible
query I rowsort label-5512
SELECT - 35 * + COUNT ( * )
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-5513
SELECT DISTINCT + 29 AS col0, - COUNT( * ) * + 3
----
29
-3

skipif mysql # not compatible
query II rowsort label-5513
SELECT DISTINCT + 29 AS col0, - COUNT ( * ) * + 3
----
29
-3

query I rowsort
SELECT 53 * - 38
----
-2014

query I rowsort
SELECT - 64 AS col0
----
-64

query I rowsort
SELECT DISTINCT - 29 col2
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-5517
SELECT DISTINCT - + COUNT( + 2 ) + - 99
----
-100

skipif mysql # not compatible
query I rowsort label-5517
SELECT DISTINCT - + COUNT ( + 2 ) + - 99
----
-100

query I rowsort
SELECT DISTINCT - 74 col2
----
-74

query I rowsort
SELECT DISTINCT - 64 AS col0
----
-64

query I rowsort
SELECT 23 * + 16
----
368

query I rowsort
SELECT ALL - 5
----
-5

query I rowsort
SELECT DISTINCT - - 0
----
0

query I rowsort
SELECT - - 71
----
71

query I rowsort
SELECT 37 * + 74 AS col2
----
2738

query I rowsort
SELECT - 85 AS col1
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-5526
SELECT DISTINCT + COUNT( * ) * 38 AS col1
----
38

skipif mysql # not compatible
query I rowsort label-5526
SELECT DISTINCT + COUNT ( * ) * 38 AS col1
----
38

query I rowsort
SELECT 49 + + 77
----
126

query I rowsort
SELECT - 19 AS col2
----
-19

query I rowsort
SELECT ALL + 83 col2
----
83

query I rowsort
SELECT - 2 + + 18
----
16

query I rowsort
SELECT DISTINCT 37 AS col2
----
37

query I rowsort
SELECT 12
----
12

query I rowsort
SELECT - 51 AS col1
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5534
SELECT ALL - COUNT( DISTINCT 3 ) + + CAST( NULL AS SIGNED ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5534
SELECT ALL - COUNT ( DISTINCT 3 ) + + CAST ( NULL AS INTEGER ) * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5535
SELECT - ( - COUNT( * ) ) - - 1
----
2

skipif mysql # not compatible
query I rowsort label-5535
SELECT - ( - COUNT ( * ) ) - - 1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5536
SELECT MIN( 96 ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-5536
SELECT MIN ( 96 ) AS col1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5537
SELECT + COUNT( * ) * COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5537
SELECT + COUNT ( * ) * COUNT ( * ) AS col2
----
1

query I rowsort
SELECT + 90 + 37
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-5539
SELECT ALL 42 * ( COUNT( * ) ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-5539
SELECT ALL 42 * ( COUNT ( * ) ) AS col2
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5540
SELECT - CAST( - - 3 AS SIGNED )
----
-3

skipif mysql # not compatible
query I rowsort label-5540
SELECT - CAST ( - - 3 AS INTEGER )
----
-3

query I rowsort
SELECT ALL ( + 29 ) col2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5542
SELECT + 85 + COUNT( * ) col2
----
86

skipif mysql # not compatible
query I rowsort label-5542
SELECT + 85 + COUNT ( * ) col2
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5543
SELECT - 52 * 60 * CAST( 69 AS SIGNED ) AS col2
----
-215280

skipif mysql # not compatible
query I rowsort label-5543
SELECT - 52 * 60 * CAST ( 69 AS INTEGER ) AS col2
----
-215280

query I rowsort
SELECT ALL - 57
----
-57

query I rowsort
SELECT ALL - + 84 AS col1
----
-84

query I rowsort
SELECT DISTINCT - 98 AS col2
----
-98

query I rowsort
SELECT ALL - - 51
----
51

query I rowsort
SELECT - 4 AS col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5549
SELECT - 36 - - COUNT( * )
----
-35

skipif mysql # not compatible
query I rowsort label-5549
SELECT - 36 - - COUNT ( * )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-5550
SELECT + COUNT( * ) - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-5550
SELECT + COUNT ( * ) - COUNT ( * )
----
0

query I rowsort
SELECT ALL ( - 95 ) col1
----
-95

query I rowsort
SELECT + 34 AS col0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5553
SELECT ALL - 20 - + 98 - COUNT( * ) col1
----
-119

skipif mysql # not compatible
query I rowsort label-5553
SELECT ALL - 20 - + 98 - COUNT ( * ) col1
----
-119

query I rowsort
SELECT ALL + 48 * 23 AS col1
----
1104

query I rowsort
SELECT - 67 col1
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-5556
SELECT + 43 * - + COUNT( * )
----
-43

skipif mysql # not compatible
query I rowsort label-5556
SELECT + 43 * - + COUNT ( * )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-5557
SELECT + + 13 + COUNT( * ) * - 42
----
-29

skipif mysql # not compatible
query I rowsort label-5557
SELECT + + 13 + COUNT ( * ) * - 42
----
-29

query I rowsort
SELECT 20 AS col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5559
SELECT + 83 + + COUNT( * ) * + COUNT( * ) col1
----
84

skipif mysql # not compatible
query I rowsort label-5559
SELECT + 83 + + COUNT ( * ) * + COUNT ( * ) col1
----
84

query I rowsort
SELECT - - ( + 77 )
----
77

query I rowsort
SELECT DISTINCT 28 + 87
----
115

query I rowsort
SELECT ALL + ( 36 ) AS col1
----
36

query I rowsort
SELECT NULLIF ( 89, + - 66 * + + AVG ( + 78 ) ) AS col1
----
89

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5564
SELECT ALL CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5564
SELECT ALL CAST ( NULL AS REAL ) col0
----
NULL

query I rowsort
SELECT ALL + + 49 + - - 51
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-5566
SELECT + + COUNT( * ) * - COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5566
SELECT + + COUNT ( * ) * - COUNT ( * ) AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5567
SELECT ALL - COUNT( * ) DIV 41 + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5567
SELECT ALL - COUNT ( * ) / 41 + COUNT ( * ) AS col1
----
1

query I rowsort
SELECT + - 58 * - 78 AS col2
----
4524

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5569
SELECT - CAST( + 29 AS SIGNED ) AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-5569
SELECT - CAST ( + 29 AS INTEGER ) AS col0
----
-29

query II rowsort
SELECT ALL 78 * + - 55 col0, ( 40 ) col0
----
-4290
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5571
SELECT ALL 42 * - + COUNT( - 0 ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-5571
SELECT ALL 42 * - + COUNT ( - 0 ) AS col1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-5572
SELECT 77 + - - COUNT( * ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-5572
SELECT 77 + - - COUNT ( * ) AS col2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5573
SELECT ALL - MIN( - - 48 ) AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-5573
SELECT ALL - MIN ( - - 48 ) AS col0
----
-48

onlyif mysql # aggregate syntax: 
query III rowsort label-5574
SELECT ALL - 57 AS col1, + COUNT( * ), 93 * - - COUNT( * ) AS col1
----
-57
1
93

skipif mysql # not compatible
query III rowsort label-5574
SELECT ALL - 57 AS col1, + COUNT ( * ), 93 * - - COUNT ( * ) AS col1
----
-57
1
93

query I rowsort
SELECT ALL - + 55 AS col1
----
-55

query I rowsort
SELECT DISTINCT - + 94 AS col1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-5577
SELECT ALL ( - COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5577
SELECT ALL ( - COUNT ( * ) ) AS col0
----
-1

query I rowsort
SELECT + 68 * 10 col1
----
680

onlyif mysql # DIV for integer division: 
query I rowsort label-5579
SELECT - ( 14 ) DIV - 11 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5579
SELECT - ( 14 ) / - 11 AS col0
----
1

query I rowsort
SELECT DISTINCT 73
----
73

query I rowsort
SELECT ALL - 71
----
-71

query I rowsort
SELECT 76 AS col2
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5583
SELECT CAST( NULL AS SIGNED ) + CAST( 4 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5583
SELECT CAST ( NULL AS INTEGER ) + CAST ( 4 AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT 41 * 91, + 93 AS col2
----
3731
93

query I rowsort
SELECT 51 AS col1
----
51

query I rowsort
SELECT - ( + 9 )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5587
SELECT - + COUNT( * ) * COUNT( * ) + - + ( - + 99 )
----
98

skipif mysql # not compatible
query I rowsort label-5587
SELECT - + COUNT ( * ) * COUNT ( * ) + - + ( - + 99 )
----
98

query I rowsort
SELECT 25 AS col2
----
25

query I rowsort
SELECT ALL - 12 AS col0
----
-12

query I rowsort
SELECT + + 3 + + 21
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5591
SELECT ALL + ( + COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5591
SELECT ALL + ( + COUNT ( * ) ) AS col1
----
1

query I rowsort
SELECT ALL + - 40
----
-40

query I rowsort
SELECT ALL + + 6 AS col1
----
6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5594
SELECT ALL + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5594
SELECT ALL + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5595
SELECT ALL - COUNT( * ) * + 35 col0
----
-35

skipif mysql # not compatible
query I rowsort label-5595
SELECT ALL - COUNT ( * ) * + 35 col0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-5596
SELECT ALL COUNT( * ) + ( - 3 ) + + + 38 * - SUM( ALL - + ( - 54 ) ) col1
----
-2054

skipif mysql # not compatible
query I rowsort label-5596
SELECT ALL COUNT ( * ) + ( - 3 ) + + + 38 * - SUM ( ALL - + ( - 54 ) ) col1
----
-2054

query I rowsort
SELECT DISTINCT + 86
----
86

query I rowsort
SELECT - 22 col0
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5599
SELECT ALL + 28 * + CAST( NULL AS SIGNED ) - - 11 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5599
SELECT ALL + 28 * + CAST ( NULL AS INTEGER ) - - 11 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5600
SELECT ALL COUNT( * ) * 65 col0
----
65

skipif mysql # not compatible
query I rowsort label-5600
SELECT ALL COUNT ( * ) * 65 col0
----
65

query I rowsort
SELECT ALL - 81 - + 53 col2
----
-134

query I rowsort
SELECT ALL - 72
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5603
SELECT + ( + CAST( + COUNT( * ) AS SIGNED ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-5603
SELECT + ( + CAST ( + COUNT ( * ) AS INTEGER ) ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5604
SELECT - + COALESCE ( 91, COUNT( DISTINCT 5 ) ) AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-5604
SELECT - + COALESCE ( 91, COUNT ( DISTINCT 5 ) ) AS col2
----
-91

query I rowsort
SELECT DISTINCT + 16 + + 49
----
65

query I rowsort
SELECT ALL - 44 + 23
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5607
SELECT COUNT( * ) + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5607
SELECT COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT + - 84 AS col1, - 41 AS col0
----
-84
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5609
SELECT DISTINCT - CAST( NULL AS SIGNED ) + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5609
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5610
SELECT ALL - CAST( NULL AS SIGNED ) * - MIN( ALL - + 48 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5610
SELECT ALL - CAST ( NULL AS INTEGER ) * - MIN ( ALL - + 48 ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - ( - 52 ) - 18
----
34

query I rowsort
SELECT - 60 AS col0
----
-60

query I rowsort
SELECT ALL 51 AS col2
----
51

query I rowsort
SELECT ALL + 12 col0
----
12

query I rowsort
SELECT DISTINCT + - 9
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5616
SELECT ALL - COUNT( * ) * 49
----
-49

skipif mysql # not compatible
query I rowsort label-5616
SELECT ALL - COUNT ( * ) * 49
----
-49

query I rowsort
SELECT DISTINCT ( 8 )
----
8

query I rowsort
SELECT DISTINCT - 65 AS col2
----
-65

onlyif mysql # DIV for integer division: 
query II rowsort label-5619
SELECT + 42 AS col0, + 0 DIV - 82 AS col0
----
42
0

skipif mysql # not compatible
query II rowsort label-5619
SELECT + 42 AS col0, + 0 / - 82 AS col0
----
42
0

query I rowsort
SELECT + - 6 AS col0
----
-6

query I rowsort
SELECT ALL - + 59 + + 0
----
-59

query I rowsort
SELECT DISTINCT - + 75 AS col1
----
-75

query I rowsort
SELECT + - ( - 62 ) col0
----
62

query I rowsort
SELECT ALL - + 14 AS col0
----
-14

query I rowsort
SELECT + 36 col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5626
SELECT - COUNT( * ) * - 44 - COUNT( * ) - COUNT( * ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-5626
SELECT - COUNT ( * ) * - 44 - COUNT ( * ) - COUNT ( * ) AS col0
----
42

query I rowsort
SELECT + 47 AS col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5628
SELECT COUNT( * ) * ( + ( + 91 ) ) * COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-5628
SELECT COUNT ( * ) * ( + ( + 91 ) ) * COUNT ( * )
----
91

query I rowsort
SELECT - 12 AS col2
----
-12

query I rowsort
SELECT ALL - 86
----
-86

query I rowsort
SELECT ALL - ( + 84 )
----
-84

query I rowsort
SELECT 31 * + + 19
----
589

query I rowsort
SELECT + 53 col2
----
53

query I rowsort
SELECT 75 col1
----
75

query I rowsort
SELECT - 11 AS col0
----
-11

query I rowsort
SELECT DISTINCT - 83 + - 6
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-5637
SELECT ALL COUNT( * ) + + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-5637
SELECT ALL COUNT ( * ) + + - COUNT ( * )
----
0

query I rowsort
SELECT - + 23
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5639
SELECT ALL CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5639
SELECT ALL CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + + 38 AS col2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5641
SELECT ALL + SUM( - 8 ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-5641
SELECT ALL + SUM ( - 8 ) AS col1
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-5642
SELECT + 40 col2, - MAX( 26 )
----
40
-26

skipif mysql # not compatible
query II rowsort label-5642
SELECT + 40 col2, - MAX ( 26 )
----
40
-26

query I rowsort
SELECT ALL - 51 * + 35 AS col0
----
-1785

query II rowsort
SELECT ALL 67 AS col2, + 98 AS col1
----
67
98

query I rowsort
SELECT - 86 + 42
----
-44

query I rowsort
SELECT + + 57 - + 53
----
4

query I rowsort
SELECT ALL + 24
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-5648
SELECT ALL - 47 DIV - - 63 + - - 76
----
76

skipif mysql # not compatible
query I rowsort label-5648
SELECT ALL - 47 / - - 63 + - - 76
----
76

query I rowsort
SELECT DISTINCT + 98 AS col1
----
98

query I rowsort
SELECT 91 AS col2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5651
SELECT ALL SUM( 57 ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-5651
SELECT ALL SUM ( 57 ) AS col1
----
57

query I rowsort
SELECT 31 * + 20
----
620

query I rowsort
SELECT 69 * - + 70
----
-4830

query I rowsort
SELECT 48 col2
----
48

query I rowsort
SELECT + + 5 AS col0
----
5

query I rowsort
SELECT - + 54
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5657
SELECT - CAST( - - 91 AS SIGNED )
----
-91

skipif mysql # not compatible
query I rowsort label-5657
SELECT - CAST ( - - 91 AS INTEGER )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5658
SELECT - + ( - COUNT( * ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-5658
SELECT - + ( - COUNT ( * ) ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5659
SELECT - ( COUNT( * ) ) * - 23
----
23

skipif mysql # not compatible
query I rowsort label-5659
SELECT - ( COUNT ( * ) ) * - 23
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5660
SELECT ALL + + 66 * + COUNT( * )
----
66

skipif mysql # not compatible
query I rowsort label-5660
SELECT ALL + + 66 * + COUNT ( * )
----
66

query I rowsort
SELECT DISTINCT + - 79 AS col2
----
-79

query I rowsort
SELECT - 36 * + 7
----
-252

query I rowsort
SELECT - 69 col2
----
-69

query I rowsort
SELECT 11 col0
----
11

query I rowsort
SELECT 81 AS col0
----
81

query I rowsort
SELECT - ( - + 16 )
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5667
SELECT DISTINCT CAST( NULL AS SIGNED ) + - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5667
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL - 60 - + 70 AS col2
----
-130

query I rowsort
SELECT ALL + + 45 AS col2
----
45

query I rowsort
SELECT - - 65 * + 88
----
5720

query I rowsort
SELECT DISTINCT + - ( 98 ) AS col2
----
-98

query I rowsort
SELECT ALL - 19 col0
----
-19

query I rowsort
SELECT DISTINCT - 51 AS col0
----
-51

query I rowsort
SELECT + + 83
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-5675
SELECT COUNT( * ) AS col0, 93
----
1
93

skipif mysql # not compatible
query II rowsort label-5675
SELECT COUNT ( * ) AS col0, 93
----
1
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5676
SELECT ( 97 ) + + - COUNT( * )
----
96

skipif mysql # not compatible
query I rowsort label-5676
SELECT ( 97 ) + + - COUNT ( * )
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5677
SELECT ALL + CAST( NULL AS SIGNED ) / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5677
SELECT ALL + CAST ( NULL AS INTEGER ) / - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 10 + + 63
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5679
SELECT CAST( NULL AS SIGNED ) + + - CAST( NULL AS SIGNED ) AS col1, + 94
----
NULL
94

skipif mysql # not compatible
query II rowsort label-5679
SELECT CAST ( NULL AS INTEGER ) + + - CAST ( NULL AS INTEGER ) AS col1, + 94
----
NULL
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5680
SELECT ALL COUNT( * ) + - ( - - 42 )
----
-41

skipif mysql # not compatible
query I rowsort label-5680
SELECT ALL COUNT ( * ) + - ( - - 42 )
----
-41

query I rowsort
SELECT - 10 col0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-5682
SELECT - - CASE + 32 WHEN - COUNT( * ) THEN - COUNT( * ) END * + - COUNT( * ) - - 76 + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5682
SELECT - - CASE + 32 WHEN - COUNT ( * ) THEN - COUNT ( * ) END * + - COUNT ( * ) - - 76 + - COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT + - ( + 91 )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5684
SELECT ALL + ( COUNT( * ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-5684
SELECT ALL + ( COUNT ( * ) ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5685
SELECT ALL MAX( DISTINCT 70 )
----
70

skipif mysql # not compatible
query I rowsort label-5685
SELECT ALL MAX ( DISTINCT 70 )
----
70

query I rowsort
SELECT 40 AS col0
----
40

query I rowsort
SELECT 21 AS col0
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5688
SELECT ALL CAST( NULL AS SIGNED ) + 30 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5688
SELECT ALL CAST ( NULL AS INTEGER ) + 30 AS col1
----
NULL

query I rowsort
SELECT + 5 - 30
----
-25

query I rowsort
SELECT - - 20
----
20

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5691
SELECT ALL 47 + - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5691
SELECT ALL 47 + - CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT + ( - 84 ) + - + 30 AS col0
----
-114

query I rowsort
SELECT ALL + 23 AS col1
----
23

query I rowsort
SELECT + ( + + 1 ) * - - 40 AS col1
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-5695
SELECT DISTINCT 88 DIV + 9
----
9

skipif mysql # not compatible
query I rowsort label-5695
SELECT DISTINCT 88 / + 9
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5696
SELECT ALL - 97 * COUNT( * ) + - COUNT( * )
----
-98

skipif mysql # not compatible
query I rowsort label-5696
SELECT ALL - 97 * COUNT ( * ) + - COUNT ( * )
----
-98

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5697
SELECT - + CAST( NULL AS DECIMAL ) * 47 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5697
SELECT - + CAST ( NULL AS REAL ) * 47 AS col1
----
NULL

query I rowsort
SELECT + ( 75 ) col1
----
75

query I rowsort
SELECT + ( - 33 ) AS col2
----
-33

query I rowsort
SELECT DISTINCT - 81
----
-81

query I rowsort
SELECT DISTINCT - 61
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-5702
SELECT ALL NULLIF ( COUNT( * ), + 51 * - 90 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5702
SELECT ALL NULLIF ( COUNT ( * ), + 51 * - 90 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5703
SELECT ALL ( - 32 ) - COUNT( * )
----
-33

skipif mysql # not compatible
query I rowsort label-5703
SELECT ALL ( - 32 ) - COUNT ( * )
----
-33

query I rowsort
SELECT - 52 + - 0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-5705
SELECT 19 - + COUNT( * ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-5705
SELECT 19 - + COUNT ( * ) AS col2
----
18

query I rowsort
SELECT DISTINCT - 26 AS col1
----
-26

query I rowsort
SELECT + 36
----
36

query I rowsort
SELECT 24 col1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5709
SELECT DISTINCT + COUNT( * ) - COUNT( * ) + + 12 + COUNT( * ) - 29 AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-5709
SELECT DISTINCT + COUNT ( * ) - COUNT ( * ) + + 12 + COUNT ( * ) - 29 AS col1
----
-16

query I rowsort
SELECT ALL 7
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5711
SELECT - MIN( 54 )
----
-54

skipif mysql # not compatible
query I rowsort label-5711
SELECT - MIN ( 54 )
----
-54

query I rowsort
SELECT - + 97 AS col0
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5713
SELECT ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5713
SELECT ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5714
SELECT ALL + MIN( - 91 )
----
-91

skipif mysql # not compatible
query I rowsort label-5714
SELECT ALL + MIN ( - 91 )
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5715
SELECT - CAST( - COUNT( * ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-5715
SELECT - CAST ( - COUNT ( * ) AS INTEGER )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5716
SELECT + 91 + - COUNT( * )
----
90

skipif mysql # not compatible
query I rowsort label-5716
SELECT + 91 + - COUNT ( * )
----
90

query I rowsort
SELECT DISTINCT 19 AS col0
----
19

query I rowsort
SELECT DISTINCT + 77 AS col0
----
77

query I rowsort
SELECT ALL - 90 * + - 90
----
8100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5720
SELECT CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5720
SELECT CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT DISTINCT + + 36 + + 12 AS col0
----
48

query I rowsort
SELECT - - 53
----
53

query I rowsort
SELECT - 37 col2
----
-37

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5724
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5724
SELECT DISTINCT CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT + 3 AS col1
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5726
SELECT ALL - CAST( NULL AS DECIMAL ) / + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5726
SELECT ALL - CAST ( NULL AS REAL ) / + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + + 65 AS col1
----
65

query I rowsort
SELECT DISTINCT - 39 AS col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-5729
SELECT 90 * - 79 + + COUNT( * ) AS col0
----
-7109

skipif mysql # not compatible
query I rowsort label-5729
SELECT 90 * - 79 + + COUNT ( * ) AS col0
----
-7109

query I rowsort
SELECT DISTINCT 66 AS col1
----
66

query I rowsort
SELECT DISTINCT 72 AS col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5732
SELECT ALL - 89 * - COUNT( * ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-5732
SELECT ALL - 89 * - COUNT ( * ) AS col2
----
89

query I rowsort
SELECT - 37 col1
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-5734
SELECT DISTINCT + COUNT( + 58 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5734
SELECT DISTINCT + COUNT ( + 58 ) AS col1
----
1

query I rowsort
SELECT + - 33 AS col2
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5736
SELECT DISTINCT + CAST( - - 20 AS SIGNED ) col0
----
20

skipif mysql # not compatible
query I rowsort label-5736
SELECT DISTINCT + CAST ( - - 20 AS INTEGER ) col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5737
SELECT + SUM( ( ( 27 ) ) ) + COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-5737
SELECT + SUM ( ( ( 27 ) ) ) + COUNT ( * )
----
28

query I rowsort
SELECT - + 15
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-5739
SELECT DISTINCT SUM( ALL + 82 ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-5739
SELECT DISTINCT SUM ( ALL + 82 ) AS col1
----
82

query I rowsort
SELECT ALL ( - 97 )
----
-97

query I rowsort
SELECT - 58 * 26 AS col1
----
-1508

query I rowsort
SELECT ALL + - ( + 18 )
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5743
SELECT + + CAST( NULL AS SIGNED ) * + + CAST( NULL AS SIGNED ) * ( - 35 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5743
SELECT + + CAST ( NULL AS INTEGER ) * + + CAST ( NULL AS INTEGER ) * ( - 35 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5744
SELECT + SUM( DISTINCT + 65 )
----
65

skipif mysql # not compatible
query I rowsort label-5744
SELECT + SUM ( DISTINCT + 65 )
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-5745
SELECT - 20 AS col0, COUNT( * ) AS col0
----
-20
1

skipif mysql # not compatible
query II rowsort label-5745
SELECT - 20 AS col0, COUNT ( * ) AS col0
----
-20
1

query I rowsort
SELECT - 74 AS col0
----
-74

query I rowsort
SELECT ALL - + 79 AS col1
----
-79

query I rowsort
SELECT 67 * - + 60 AS col1
----
-4020

query I rowsort
SELECT - 71 + 66 AS col1
----
-5

query I rowsort
SELECT + 66 col2
----
66

query I rowsort
SELECT ALL + 9 col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5752
SELECT ALL + ( + - COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5752
SELECT ALL + ( + - COUNT ( * ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5753
SELECT - ( + + 48 ) + - - COUNT( * ) AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-5753
SELECT - ( + + 48 ) + - - COUNT ( * ) AS col2
----
-47

query I rowsort
SELECT ALL + 38 AS col0
----
38

query I rowsort
SELECT + 13 col0
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-5756
SELECT DISTINCT + COUNT( * ), 48 * + 1 * - 65 AS col2
----
1
-3120

skipif mysql # not compatible
query II rowsort label-5756
SELECT DISTINCT + COUNT ( * ), 48 * + 1 * - 65 AS col2
----
1
-3120

query I rowsort
SELECT DISTINCT + 44
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5758
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5758
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - + 25
----
-25

query I rowsort
SELECT - - 17
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-5761
SELECT - + 5 + COUNT( * ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-5761
SELECT - + 5 + COUNT ( * ) AS col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5762
SELECT COUNT( * ) + - + 69 AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-5762
SELECT COUNT ( * ) + - + 69 AS col2
----
-68

query I rowsort
SELECT - + ( - 71 )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5764
SELECT ALL + COUNT( * ) + + 33 AS col1
----
34

skipif mysql # not compatible
query I rowsort label-5764
SELECT ALL + COUNT ( * ) + + 33 AS col1
----
34

query I rowsort
SELECT - 56 + - + 90 col0
----
-146

query I rowsort
SELECT ALL ( + 29 ) AS col1
----
29

query II rowsort
SELECT 98 col0, 0 AS col1
----
98
0

query I rowsort
SELECT ALL - ( - 11 ) AS col0
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5769
SELECT ALL - ( - + 37 ) AS col1, - CAST( NULL AS SIGNED )
----
37
NULL

skipif mysql # not compatible
query II rowsort label-5769
SELECT ALL - ( - + 37 ) AS col1, - CAST ( NULL AS INTEGER )
----
37
NULL

query I rowsort
SELECT 47 * + 25
----
1175

onlyif mysql # aggregate syntax: 
query I rowsort label-5771
SELECT ALL COUNT( * ) * 73 AS col2
----
73

skipif mysql # not compatible
query I rowsort label-5771
SELECT ALL COUNT ( * ) * 73 AS col2
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5772
SELECT ALL 22 * + + 71 * - COUNT( * ) AS col0
----
-1562

skipif mysql # not compatible
query I rowsort label-5772
SELECT ALL 22 * + + 71 * - COUNT ( * ) AS col0
----
-1562

query I rowsort
SELECT ALL - 56 AS col0
----
-56

query I rowsort
SELECT + 91 col1
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5775
SELECT DISTINCT - AVG ( - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5775
SELECT DISTINCT - AVG ( - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT - + 54 AS col2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-5777
SELECT - - COUNT( 74 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5777
SELECT - - COUNT ( 74 ) AS col2
----
1

query I rowsort
SELECT ALL 77 col0
----
77

query I rowsort
SELECT + 15 col0
----
15

query I rowsort
SELECT ALL + 82 * 41 AS col0
----
3362

query I rowsort
SELECT DISTINCT + 33
----
33

query I rowsort
SELECT + 0 AS col0
----
0

query I rowsort
SELECT - + 18 + ( - - 70 ) * + 22
----
1522

query I rowsort
SELECT DISTINCT 43 col1
----
43

query I rowsort
SELECT - - 82
----
82

query II rowsort
SELECT ALL 33, 61 AS col1
----
33
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5787
SELECT CAST( - 9 AS SIGNED )
----
-9

skipif mysql # not compatible
query I rowsort label-5787
SELECT CAST ( - 9 AS INTEGER )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5788
SELECT ALL + MAX( DISTINCT - + 29 ) AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-5788
SELECT ALL + MAX ( DISTINCT - + 29 ) AS col1
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5789
SELECT DISTINCT - ( 52 ) AS col1, + MAX( + CAST( NULL AS SIGNED ) ) * + 40 AS col2
----
-52
NULL

skipif mysql # not compatible
query II rowsort label-5789
SELECT DISTINCT - ( 52 ) AS col1, + MAX ( + CAST ( NULL AS INTEGER ) ) * + 40 AS col2
----
-52
NULL

query I rowsort
SELECT ALL 89 AS col1
----
89

query I rowsort
SELECT DISTINCT - 49
----
-49

query I rowsort
SELECT DISTINCT - 84 col0
----
-84

query I rowsort
SELECT DISTINCT - - 8 AS col1
----
8

query I rowsort
SELECT ALL - + 26
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-5795
SELECT ALL - + 87 * COUNT( * ) col0
----
-87

skipif mysql # not compatible
query I rowsort label-5795
SELECT ALL - + 87 * COUNT ( * ) col0
----
-87

query I rowsort
SELECT 4 + 72
----
76

query I rowsort
SELECT ALL + 37 AS col2
----
37

query I rowsort
SELECT ALL + ( 91 )
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5799
SELECT + 72 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5799
SELECT + 72 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5800
SELECT ALL - ( - - MIN( - + 78 ) ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-5800
SELECT ALL - ( - - MIN ( - + 78 ) ) AS col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5801
SELECT + 51 * + COUNT( * ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-5801
SELECT + 51 * + COUNT ( * ) AS col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5802
SELECT - + COUNT( * ) * + 15
----
-15

skipif mysql # not compatible
query I rowsort label-5802
SELECT - + COUNT ( * ) * + 15
----
-15

query II rowsort
SELECT DISTINCT + + 33 AS col2, - 51
----
33
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5804
SELECT ALL - COUNT( * ) DIV - 83 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5804
SELECT ALL - COUNT ( * ) / - 83 AS col1
----
0

query I rowsort
SELECT DISTINCT + - 99
----
-99

query I rowsort
SELECT ( + + 9 ) col0
----
9

query I rowsort
SELECT ALL 53 * - 2
----
-106

query I rowsort
SELECT + ( - 92 ) + - 52
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-5809
SELECT - 27 + + - COUNT( * ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-5809
SELECT - 27 + + - COUNT ( * ) AS col2
----
-28

query I rowsort
SELECT + 25 * - - 16
----
400

query I rowsort
SELECT DISTINCT + 54 AS col0
----
54

query I rowsort
SELECT + - 87
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-5813
SELECT ALL SUM( ALL - + 45 )
----
-45

skipif mysql # not compatible
query I rowsort label-5813
SELECT ALL SUM ( ALL - + 45 )
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5814
SELECT ALL + + 1 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5814
SELECT ALL + + 1 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - + 84 AS col1
----
-84

query I rowsort
SELECT ALL - 37 AS col0
----
-37

query I rowsort
SELECT DISTINCT - ( - + 10 )
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-5818
SELECT 36 DIV + 27
----
1

skipif mysql # not compatible
query I rowsort label-5818
SELECT 36 / + 27
----
1

query I rowsort
SELECT + 38 AS col0
----
38

query I rowsort
SELECT + + 95 AS col0
----
95

query I rowsort
SELECT ALL + 28
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5822
SELECT ALL + + COALESCE ( COUNT( * ), - 19 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5822
SELECT ALL + + COALESCE ( COUNT ( * ), - 19 ) AS col1
----
1

query I rowsort
SELECT + 0 AS col1
----
0

query I rowsort
SELECT ALL + 46 col0
----
46

query I rowsort
SELECT + 79 AS col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5826
SELECT - SUM( - 56 ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-5826
SELECT - SUM ( - 56 ) AS col0
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5827
SELECT ALL ( - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5827
SELECT ALL ( - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 67 + + 94 + - - 97
----
258

onlyif mysql # aggregate syntax: 
query I rowsort label-5829
SELECT ALL + 79 * COUNT( * )
----
79

skipif mysql # not compatible
query I rowsort label-5829
SELECT ALL + 79 * COUNT ( * )
----
79

query I rowsort
SELECT DISTINCT 55 AS col2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5831
SELECT COUNT( * ) * - 9 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-5831
SELECT COUNT ( * ) * - 9 AS col0
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-5832
SELECT COUNT( * ) + - 6 AS col1, 22 AS col1
----
-5
22

skipif mysql # not compatible
query II rowsort label-5832
SELECT COUNT ( * ) + - 6 AS col1, 22 AS col1
----
-5
22

query I rowsort
SELECT DISTINCT - 22 AS col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-5834
SELECT COUNT( * ) * + ( - COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5834
SELECT COUNT ( * ) * + ( - COUNT ( * ) )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5835
SELECT + COUNT( * ) * + COUNT( * ) DIV ( + 26 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5835
SELECT + COUNT ( * ) * + COUNT ( * ) / ( + 26 ) AS col2
----
0

query I rowsort
SELECT ( + + 5 ) * - 67
----
-335

onlyif mysql # aggregate syntax: 
query II rowsort label-5837
SELECT 77, COUNT( * ) - 53 AS col2
----
77
-52

skipif mysql # not compatible
query II rowsort label-5837
SELECT 77, COUNT ( * ) - 53 AS col2
----
77
-52

query I rowsort
SELECT ALL - 9 AS col1
----
-9

query II rowsort
SELECT + 77, + 57 AS col2
----
77
57

query I rowsort
SELECT + 80 col1
----
80

query II rowsort
SELECT + 35 AS col1, - 2
----
35
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5842
SELECT COUNT( * ) + 61
----
62

skipif mysql # not compatible
query I rowsort label-5842
SELECT COUNT ( * ) + 61
----
62

query I rowsort
SELECT ALL 50
----
50

query I rowsort
SELECT DISTINCT + 73 col2
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5845
SELECT ALL - COUNT( * ) + + + 17 + - COUNT( * ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-5845
SELECT ALL - COUNT ( * ) + + + 17 + - COUNT ( * ) AS col2
----
15

query I rowsort
SELECT + 64 col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5847
SELECT ALL + + MAX( - ( 30 ) ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-5847
SELECT ALL + + MAX ( - ( 30 ) ) AS col0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-5848
SELECT DISTINCT - ( - COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5848
SELECT DISTINCT - ( - COUNT ( * ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5849
SELECT + COUNT( * ) * 0 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5849
SELECT + COUNT ( * ) * 0 AS col1
----
0

query I rowsort
SELECT - + 64
----
-64

query I rowsort
SELECT - ( - 6 ) col0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-5852
SELECT + 17 DIV - 68
----
0

skipif mysql # not compatible
query I rowsort label-5852
SELECT + 17 / - 68
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5853
SELECT CAST( 98 AS SIGNED ) col2
----
98

skipif mysql # not compatible
query I rowsort label-5853
SELECT CAST ( 98 AS INTEGER ) col2
----
98

query I rowsort
SELECT + 31 AS col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5855
SELECT + COUNT( + + 55 )
----
1

skipif mysql # not compatible
query I rowsort label-5855
SELECT + COUNT ( + + 55 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5856
SELECT + COUNT( DISTINCT - 15 )
----
1

skipif mysql # not compatible
query I rowsort label-5856
SELECT + COUNT ( DISTINCT - 15 )
----
1

query I rowsort
SELECT 39 + 65 AS col0
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-5858
SELECT NULLIF ( 32, 96 ) * - ( + COUNT( * ) * + 96 ) AS col1
----
-3072

skipif mysql # not compatible
query I rowsort label-5858
SELECT NULLIF ( 32, 96 ) * - ( + COUNT ( * ) * + 96 ) AS col1
----
-3072

query I rowsort
SELECT 54 * + 99
----
5346

query I rowsort
SELECT DISTINCT - 12
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-5861
SELECT ALL + 91 + - COUNT( * ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-5861
SELECT ALL + 91 + - COUNT ( * ) AS col1
----
90

query I rowsort
SELECT + 69
----
69

query I rowsort
SELECT - 21 AS col1
----
-21

query I rowsort
SELECT ALL + 63 AS col1
----
63

query I rowsort
SELECT DISTINCT 47 AS col1
----
47

query I rowsort
SELECT ALL 53 AS col0
----
53

query I rowsort
SELECT ALL 4 AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5868
SELECT + COUNT( DISTINCT - - 26 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5868
SELECT + COUNT ( DISTINCT - - 26 ) AS col2
----
1

query I rowsort
SELECT + 66 AS col0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5870
SELECT DISTINCT + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5870
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 11 col0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5872
SELECT - COUNT( * ) * - 67 * COUNT( * ) - COUNT( * )
----
66

skipif mysql # not compatible
query I rowsort label-5872
SELECT - COUNT ( * ) * - 67 * COUNT ( * ) - COUNT ( * )
----
66

query I rowsort
SELECT 31 AS col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5874
SELECT - COUNT( * ) - - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-5874
SELECT - COUNT ( * ) - - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5875
SELECT - - COUNT( * ) * + + NULLIF ( - 3, 59 ) * - 49
----
147

skipif mysql # not compatible
query I rowsort label-5875
SELECT - - COUNT ( * ) * + + NULLIF ( - 3, 59 ) * - 49
----
147

query I rowsort
SELECT ALL + + 51 AS col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5877
SELECT ALL + 44 * + COUNT( * ) * - 68
----
-2992

skipif mysql # not compatible
query I rowsort label-5877
SELECT ALL + 44 * + COUNT ( * ) * - 68
----
-2992

query I rowsort
SELECT - 51 + 76
----
25

query I rowsort
SELECT + + 71 col1
----
71

query I rowsort
SELECT ALL - - 74 AS col0
----
74

query I rowsort
SELECT + 3 col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5882
SELECT DISTINCT 93 + - + COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-5882
SELECT DISTINCT 93 + - + COUNT ( * )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5883
SELECT 99 + COUNT( * ) AS col1
----
100

skipif mysql # not compatible
query I rowsort label-5883
SELECT 99 + COUNT ( * ) AS col1
----
100

query I rowsort
SELECT - 80 AS col1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-5885
SELECT DISTINCT COUNT( * ) * - - 33
----
33

skipif mysql # not compatible
query I rowsort label-5885
SELECT DISTINCT COUNT ( * ) * - - 33
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5886
SELECT 1 + COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-5886
SELECT 1 + COUNT ( * ) AS col1
----
2

query I rowsort
SELECT - + 17
----
-17

query I rowsort
SELECT ALL - 50 AS col1
----
-50

query I rowsort
SELECT ALL + 4 + 98 AS col0
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-5890
SELECT ALL - COUNT( * ) + ( 53 )
----
52

skipif mysql # not compatible
query I rowsort label-5890
SELECT ALL - COUNT ( * ) + ( 53 )
----
52

query I rowsort
SELECT ALL + 70 * - 74
----
-5180

onlyif mysql # aggregate syntax: 
query I rowsort label-5892
SELECT DISTINCT + COUNT( ALL - - ( 66 ) ) * + COUNT( * ) col0
----
1

skipif mysql # not compatible
query I rowsort label-5892
SELECT DISTINCT + COUNT ( ALL - - ( 66 ) ) * + COUNT ( * ) col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5893
SELECT + CAST( + - 96 AS SIGNED ) * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5893
SELECT + CAST ( + - 96 AS INTEGER ) * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5894
SELECT DISTINCT CAST( + 54 AS SIGNED )
----
54

skipif mysql # not compatible
query I rowsort label-5894
SELECT DISTINCT CAST ( + 54 AS INTEGER )
----
54

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5895
SELECT DISTINCT + + 43 * - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5895
SELECT DISTINCT + + 43 * - CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT - - 49
----
49

query I rowsort
SELECT ALL + 13 AS col1
----
13

query I rowsort
SELECT + + 56 AS col2
----
56

query I rowsort
SELECT ALL - 53 AS col0
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5900
SELECT CAST( NULL AS SIGNED ) * 66 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5900
SELECT CAST ( NULL AS INTEGER ) * 66 AS col1
----
NULL

query I rowsort
SELECT ALL - 10
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-5902
SELECT DISTINCT 71 + + COUNT( * ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-5902
SELECT DISTINCT 71 + + COUNT ( * ) AS col1
----
72

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5903
SELECT ALL CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5903
SELECT ALL CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 69 + - ( + 70 ) AS col2
----
-1

query I rowsort
SELECT DISTINCT NULLIF ( + - 50, - 99 ) AS col2
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-5906
SELECT - + COUNT( ALL - - 90 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-5906
SELECT - + COUNT ( ALL - - 90 ) col0
----
-1

query I rowsort
SELECT ALL - 7 col0
----
-7

query I rowsort
SELECT ALL + 5 + 47
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5909
SELECT DISTINCT - 46 - + MAX( + + 89 ) AS col1
----
-135

skipif mysql # not compatible
query I rowsort label-5909
SELECT DISTINCT - 46 - + MAX ( + + 89 ) AS col1
----
-135

query I rowsort
SELECT ALL - 69 AS col1
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-5911
SELECT DISTINCT 57 * COUNT( * )
----
57

skipif mysql # not compatible
query I rowsort label-5911
SELECT DISTINCT 57 * COUNT ( * )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5912
SELECT COUNT( * ) * COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-5912
SELECT COUNT ( * ) * COUNT ( * )
----
1

query I rowsort
SELECT ALL - 78 AS col1
----
-78

query I rowsort
SELECT DISTINCT + 89 AS col1
----
89

query I rowsort
SELECT - + 86 AS col1
----
-86

query I rowsort
SELECT 63 + - ( + 81 ) AS col1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-5917
SELECT + 86 + MIN( + 16 ) AS col0
----
102

skipif mysql # not compatible
query I rowsort label-5917
SELECT + 86 + MIN ( + 16 ) AS col0
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-5918
SELECT ALL MIN( ALL + 71 ) col0
----
71

skipif mysql # not compatible
query I rowsort label-5918
SELECT ALL MIN ( ALL + 71 ) col0
----
71

query I rowsort
SELECT ALL + 59
----
59

query I rowsort
SELECT + + 83 AS col0
----
83

query I rowsort
SELECT ALL + - 71 AS col0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-5922
SELECT + 90 + COUNT( * ) + + 36 AS col1
----
127

skipif mysql # not compatible
query I rowsort label-5922
SELECT + 90 + COUNT ( * ) + + 36 AS col1
----
127

query I rowsort
SELECT ALL - 65 AS col2
----
-65

query I rowsort
SELECT + - 77 + 70
----
-7

query I rowsort
SELECT - ( - 71 ) AS col2
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5926
SELECT - CAST( NULL AS SIGNED ) AS col2, ( - COUNT( DISTINCT + 75 ) ) AS col1
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-5926
SELECT - CAST ( NULL AS INTEGER ) AS col2, ( - COUNT ( DISTINCT + 75 ) ) AS col1
----
NULL
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5927
SELECT ALL + 94 AS col1, COUNT( * ) AS col2
----
94
1

skipif mysql # not compatible
query II rowsort label-5927
SELECT ALL + 94 AS col1, COUNT ( * ) AS col2
----
94
1

query I rowsort
SELECT - 15 * - 16 AS col1
----
240

query I rowsort
SELECT + 39
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5930
SELECT DISTINCT - MAX( DISTINCT - 43 )
----
43

skipif mysql # not compatible
query I rowsort label-5930
SELECT DISTINCT - MAX ( DISTINCT - 43 )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-5931
SELECT COUNT( * ) * 56 AS col1
----
56

skipif mysql # not compatible
query I rowsort label-5931
SELECT COUNT ( * ) * 56 AS col1
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5932
SELECT ALL + 83 + CAST( + ( + - 61 ) AS SIGNED )
----
22

skipif mysql # not compatible
query I rowsort label-5932
SELECT ALL + 83 + CAST ( + ( + - 61 ) AS INTEGER )
----
22

query I rowsort
SELECT - 60
----
-60

query I rowsort
SELECT 49 * + 80 AS col2
----
3920

onlyif mysql # aggregate syntax: 
query I rowsort label-5935
SELECT DISTINCT 56 - COUNT( * ) * + 46
----
10

skipif mysql # not compatible
query I rowsort label-5935
SELECT DISTINCT 56 - COUNT ( * ) * + 46
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-5936
SELECT 39 DIV - - 18 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-5936
SELECT 39 / - - 18 AS col0
----
2

query I rowsort
SELECT 62 AS col0
----
62

query I rowsort
SELECT DISTINCT + 16 + - 77
----
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-5939
SELECT - 99 DIV 53
----
-1

skipif mysql # not compatible
query I rowsort label-5939
SELECT - 99 / 53
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5940
SELECT ALL - ( + 96 ) + - COUNT( * )
----
-97

skipif mysql # not compatible
query I rowsort label-5940
SELECT ALL - ( + 96 ) + - COUNT ( * )
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5941
SELECT DISTINCT + - 85 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5941
SELECT DISTINCT + - 85 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5942
SELECT + ( - 5 ) DIV 20 + 95 AS col1
----
95

skipif mysql # not compatible
query I rowsort label-5942
SELECT + ( - 5 ) / 20 + 95 AS col1
----
95

query I rowsort
SELECT + 18 AS col1
----
18

query I rowsort
SELECT ALL + 78 AS col2
----
78

query I rowsort
SELECT ALL 57 AS col1
----
57

query I rowsort
SELECT ALL ( + ( - 26 ) )
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-5947
SELECT ALL COALESCE ( 38, + - COUNT( * ) )
----
38

skipif mysql # not compatible
query I rowsort label-5947
SELECT ALL COALESCE ( 38, + - COUNT ( * ) )
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5948
SELECT - CAST( NULL AS SIGNED ) col0, - COUNT( * ) * + 12
----
NULL
-12

skipif mysql # not compatible
query II rowsort label-5948
SELECT - CAST ( NULL AS INTEGER ) col0, - COUNT ( * ) * + 12
----
NULL
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5949
SELECT DISTINCT CAST( - 61 AS SIGNED ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-5949
SELECT DISTINCT CAST ( - 61 AS INTEGER ) AS col2
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5950
SELECT ALL CAST( NULL AS SIGNED ) AS col0, + 53 * - COUNT( * ) AS col1
----
NULL
-53

skipif mysql # not compatible
query II rowsort label-5950
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, + 53 * - COUNT ( * ) AS col1
----
NULL
-53

query I rowsort
SELECT ALL 40
----
40

query I rowsort
SELECT - ( - 91 )
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5953
SELECT ALL CAST( NULL AS SIGNED ) col2, 47
----
NULL
47

skipif mysql # not compatible
query II rowsort label-5953
SELECT ALL CAST ( NULL AS INTEGER ) col2, 47
----
NULL
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5954
SELECT - ( + + MAX( DISTINCT 97 ) ) AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-5954
SELECT - ( + + MAX ( DISTINCT 97 ) ) AS col0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5955
SELECT MIN( 54 )
----
54

skipif mysql # not compatible
query I rowsort label-5955
SELECT MIN ( 54 )
----
54

query I rowsort
SELECT ALL - ( 79 )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-5957
SELECT COUNT( * ) * - 10 AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-5957
SELECT COUNT ( * ) * - 10 AS col2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-5958
SELECT ALL - MIN( - 99 )
----
99

skipif mysql # not compatible
query I rowsort label-5958
SELECT ALL - MIN ( - 99 )
----
99

query I rowsort
SELECT - 66 col0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5960
SELECT COUNT( * ) + 54
----
55

skipif mysql # not compatible
query I rowsort label-5960
SELECT COUNT ( * ) + 54
----
55

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5961
SELECT ALL ( - + NULLIF ( + - CAST( NULL AS DECIMAL ), - - 61 ) ) * + 64 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5961
SELECT ALL ( - + NULLIF ( + - CAST ( NULL AS REAL ), - - 61 ) ) * + 64 AS col0
----
NULL

query I rowsort
SELECT 67 + - 96
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-5963
SELECT ALL 6 DIV - + 62
----
0

skipif mysql # not compatible
query I rowsort label-5963
SELECT ALL 6 / - + 62
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5964
SELECT - - COUNT( * ) col0
----
1

skipif mysql # not compatible
query I rowsort label-5964
SELECT - - COUNT ( * ) col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5965
SELECT DISTINCT - - COUNT( * ) + + + CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5965
SELECT DISTINCT - - COUNT ( * ) + + + CAST ( NULL AS REAL ) col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5966
SELECT ALL + 22 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5966
SELECT ALL + 22 * - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - - 92 AS col0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5968
SELECT DISTINCT - SUM( + 45 )
----
-45

skipif mysql # not compatible
query I rowsort label-5968
SELECT DISTINCT - SUM ( + 45 )
----
-45

query I rowsort
SELECT 47 AS col1
----
47

query I rowsort
SELECT + 7 col2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5971
SELECT ALL COUNT( * ) * - 78
----
-78

skipif mysql # not compatible
query I rowsort label-5971
SELECT ALL COUNT ( * ) * - 78
----
-78

query I rowsort
SELECT 71 col2
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5973
SELECT + + CAST( NULL AS SIGNED ) - + - 88 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5973
SELECT + + CAST ( NULL AS INTEGER ) - + - 88 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5974
SELECT - + CAST( 58 AS SIGNED )
----
-58

skipif mysql # not compatible
query I rowsort label-5974
SELECT - + CAST ( 58 AS INTEGER )
----
-58

query I rowsort
SELECT ( + 15 )
----
15

query I rowsort
SELECT + 5 * 5
----
25

query I rowsort
SELECT + 99 AS col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5978
SELECT ALL - 9 * + COUNT( * ) * - 4
----
36

skipif mysql # not compatible
query I rowsort label-5978
SELECT ALL - 9 * + COUNT ( * ) * - 4
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5979
SELECT ALL COUNT( ALL 33 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-5979
SELECT ALL COUNT ( ALL 33 ) col0
----
1

query I rowsort
SELECT ALL + 97 AS col2
----
97

query I rowsort
SELECT + ( - 76 ) AS col0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-5982
SELECT - COUNT( * ) * + 28 * - COUNT( * ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-5982
SELECT - COUNT ( * ) * + 28 * - COUNT ( * ) AS col2
----
28

query I rowsort
SELECT DISTINCT - 44 AS col0
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5984
SELECT 36 DIV COUNT( * ) + - + 93
----
-57

skipif mysql # not compatible
query I rowsort label-5984
SELECT 36 / COUNT ( * ) + - + 93
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5985
SELECT ALL - CAST( NULL AS SIGNED ) * + ( + ( - ( 66 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5985
SELECT ALL - CAST ( NULL AS INTEGER ) * + ( + ( - ( 66 ) ) )
----
NULL

query I rowsort
SELECT + 18 col0
----
18

query I rowsort
SELECT 57 AS col1
----
57

query I rowsort
SELECT ALL 26 * - 0 AS col2
----
0

query I rowsort
SELECT DISTINCT - 60 AS col1
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5990
SELECT ALL - - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5990
SELECT ALL - - CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT 38 * - 26 AS col1
----
-988

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5992
SELECT - - SUM( CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5992
SELECT - - SUM ( CAST ( NULL AS REAL ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5993
SELECT DISTINCT COUNT( * ) col0, - SUM( + 38 ) AS col0
----
1
-38

skipif mysql # not compatible
query II rowsort label-5993
SELECT DISTINCT COUNT ( * ) col0, - SUM ( + 38 ) AS col0
----
1
-38

query I rowsort
SELECT ALL + 38 AS col2
----
38

query I rowsort
SELECT ALL + - 61 AS col2
----
-61

query I rowsort
SELECT + 34 - + 90 col1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-5997
SELECT + COUNT( + - 62 ) + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-5997
SELECT + COUNT ( + - 62 ) + COUNT ( * )
----
2

query I rowsort
SELECT DISTINCT + - 7
----
-7

query I rowsort
SELECT - + 52
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6000
SELECT + - 70 * 33 DIV COUNT( * ) + 88 AS col2
----
-2222

skipif mysql # not compatible
query I rowsort label-6000
SELECT + - 70 * 33 / COUNT ( * ) + 88 AS col2
----
-2222

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6001
SELECT COUNT( * ) DIV - 34 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6001
SELECT COUNT ( * ) / - 34 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6002
SELECT ALL + ( 28 ) + + COUNT( * ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-6002
SELECT ALL + ( 28 ) + + COUNT ( * ) AS col0
----
29

query II rowsort
SELECT - ( + 42 ) col1, 37
----
-42
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6004
SELECT ALL 20 * CAST( - CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6004
SELECT ALL 20 * CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 32 * + 51 AS col2
----
1632

query I rowsort
SELECT DISTINCT 91 + + 75
----
166

query I rowsort
SELECT DISTINCT - - 12 AS col2
----
12

query I rowsort
SELECT + + 43 AS col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6009
SELECT ALL - + COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6009
SELECT ALL - + COUNT ( * ) AS col0
----
-1

query I rowsort
SELECT ALL + - 80
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-6011
SELECT - + COUNT( * ) + + - 63 AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-6011
SELECT - + COUNT ( * ) + + - 63 AS col0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-6012
SELECT ALL MAX( ALL 71 ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-6012
SELECT ALL MAX ( ALL 71 ) AS col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-6013
SELECT ALL ( - + COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6013
SELECT ALL ( - + COUNT ( * ) )
----
-1

query I rowsort
SELECT ALL + 22 col1
----
22

query I rowsort
SELECT - 42 AS col2
----
-42

query I rowsort
SELECT + - 45 AS col1
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-6017
SELECT ALL 1 DIV 14 + - - 30 AS col0
----
30

skipif mysql # not compatible
query I rowsort label-6017
SELECT ALL 1 / 14 + - - 30 AS col0
----
30

query I rowsort
SELECT DISTINCT + - 85 AS col1
----
-85

query I rowsort
SELECT 43 AS col1
----
43

query I rowsort
SELECT ALL + ( + 3 ) AS col0
----
3

query I rowsort
SELECT + ( + 14 ) AS col2
----
14

query I rowsort
SELECT - 8 - + 79 * + 52
----
-4116

onlyif mysql # aggregate syntax: 
query I rowsort label-6023
SELECT ALL COUNT( * ) + + 38
----
39

skipif mysql # not compatible
query I rowsort label-6023
SELECT ALL COUNT ( * ) + + 38
----
39

query II rowsort
SELECT - + 57 AS col1, 80 col0
----
-57
80

query I rowsort
SELECT DISTINCT - 41 - - 19 + - - 72 col2
----
50

query I rowsort
SELECT ALL - + 64 AS col2
----
-64

query I rowsort
SELECT ALL - 12 AS col2
----
-12

query I rowsort
SELECT 86 + + - 81
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6029
SELECT NULLIF ( + - 78, - - 17 ) + - + COUNT( * ) AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-6029
SELECT NULLIF ( + - 78, - - 17 ) + - + COUNT ( * ) AS col2
----
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-6030
SELECT + 96 * - 27 col0, - COUNT( * ) + - 70 col2
----
-2592
-71

skipif mysql # not compatible
query II rowsort label-6030
SELECT + 96 * - 27 col0, - COUNT ( * ) + - 70 col2
----
-2592
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6031
SELECT COUNT( * ) DIV - 60 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6031
SELECT COUNT ( * ) / - 60 AS col0
----
0

query I rowsort
SELECT DISTINCT + 92 * 81 AS col2
----
7452

onlyif mysql # aggregate syntax: 
query I rowsort label-6033
SELECT 11 + - - COUNT( * ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-6033
SELECT 11 + - - COUNT ( * ) AS col2
----
12

query I rowsort
SELECT ALL + 56 AS col1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6035
SELECT + COUNT( * ) + - - 15
----
16

skipif mysql # not compatible
query I rowsort label-6035
SELECT + COUNT ( * ) + - - 15
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6036
SELECT + 99 / + CAST( NULL AS SIGNED ) + - - ( + COUNT( + 53 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6036
SELECT + 99 / + CAST ( NULL AS INTEGER ) + - - ( + COUNT ( + 53 ) ) AS col2
----
NULL

query I rowsort
SELECT ALL + 50 AS col2
----
50

query I rowsort
SELECT ALL + 40
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6039
SELECT ALL + CAST( NULL AS SIGNED ) * + CAST( - - 79 AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6039
SELECT ALL + CAST ( NULL AS INTEGER ) * + CAST ( - - 79 AS INTEGER ) col0
----
NULL

query I rowsort
SELECT DISTINCT 18 AS col0
----
18

query I rowsort
SELECT ALL + 50 AS col1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6042
SELECT DISTINCT + MAX( DISTINCT 78 )
----
78

skipif mysql # not compatible
query I rowsort label-6042
SELECT DISTINCT + MAX ( DISTINCT 78 )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6043
SELECT ALL + 12 * + COUNT( * ) col1
----
12

skipif mysql # not compatible
query I rowsort label-6043
SELECT ALL + 12 * + COUNT ( * ) col1
----
12

query I rowsort
SELECT DISTINCT - + 34 AS col1
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6045
SELECT ALL - CAST( NULL AS SIGNED ) + + 46 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6045
SELECT ALL - CAST ( NULL AS INTEGER ) + + 46 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6046
SELECT - MAX( ALL + + 10 )
----
-10

skipif mysql # not compatible
query I rowsort label-6046
SELECT - MAX ( ALL + + 10 )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-6047
SELECT ALL + + 56 + + + COUNT( * )
----
57

skipif mysql # not compatible
query I rowsort label-6047
SELECT ALL + + 56 + + + COUNT ( * )
----
57

query I rowsort
SELECT DISTINCT 81 col2
----
81

query I rowsort
SELECT ALL - 41 AS col0
----
-41

query I rowsort
SELECT 90 + - 18
----
72

query I rowsort
SELECT ALL - 85
----
-85

query I rowsort
SELECT 60 AS col0
----
60

query I rowsort
SELECT ALL - 91 col2
----
-91

query I rowsort
SELECT DISTINCT - 94 col2
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6055
SELECT ALL 41 + - ( - - CAST( NULL AS SIGNED ) ) + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-6055
SELECT ALL 41 + - ( - - CAST ( NULL AS INTEGER ) ) + 90
----
NULL

query I rowsort
SELECT + ( + 14 )
----
14

query I rowsort
SELECT DISTINCT + 1 * - 35
----
-35

query I rowsort
SELECT ALL 34 AS col0
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-6059
SELECT DISTINCT SUM( + 67 ) AS col0, - 48 AS col1
----
67
-48

skipif mysql # not compatible
query II rowsort label-6059
SELECT DISTINCT SUM ( + 67 ) AS col0, - 48 AS col1
----
67
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-6060
SELECT ALL + MAX( - 25 )
----
-25

skipif mysql # not compatible
query I rowsort label-6060
SELECT ALL + MAX ( - 25 )
----
-25

query I rowsort
SELECT ALL + 26
----
26

query I rowsort
SELECT ALL + 91 col2
----
91

query I rowsort
SELECT - 72
----
-72

query I rowsort
SELECT - ( 11 ) AS col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-6065
SELECT ALL - COUNT( * ) * ( 4 ) * 55 AS col2
----
-220

skipif mysql # not compatible
query I rowsort label-6065
SELECT ALL - COUNT ( * ) * ( 4 ) * 55 AS col2
----
-220

query I rowsort
SELECT - ( 97 ) + + 86 AS col0
----
-11

query I rowsort
SELECT ALL + 52 * 96 AS col1
----
4992

query II rowsort
SELECT ALL + 78 col1, - 39 col2
----
78
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-6069
SELECT DISTINCT + MIN( - + ( - + 26 ) ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-6069
SELECT DISTINCT + MIN ( - + ( - + 26 ) ) AS col1
----
26

query I rowsort
SELECT - 27 AS col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-6071
SELECT ALL SUM( + 79 )
----
79

skipif mysql # not compatible
query I rowsort label-6071
SELECT ALL SUM ( + 79 )
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-6072
SELECT DISTINCT 32 DIV + 9
----
3

skipif mysql # not compatible
query I rowsort label-6072
SELECT DISTINCT 32 / + 9
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6073
SELECT 5 - + COUNT( * ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-6073
SELECT 5 - + COUNT ( * ) AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6074
SELECT 11 * - - COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-6074
SELECT 11 * - - COUNT ( * )
----
11

query I rowsort
SELECT DISTINCT + 67 * + 14 AS col2
----
938

query I rowsort
SELECT DISTINCT - - 52
----
52

query I rowsort
SELECT DISTINCT 91 * 41 AS col1
----
3731

query I rowsort
SELECT ALL - - 25 AS col0
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6079
SELECT + CAST( NULL AS SIGNED ) * 65 + + - ( + + 30 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6079
SELECT + CAST ( NULL AS INTEGER ) * 65 + + - ( + + 30 ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 36 col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-6081
SELECT COUNT( * ) * + 66 AS col1
----
66

skipif mysql # not compatible
query I rowsort label-6081
SELECT COUNT ( * ) * + 66 AS col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6082
SELECT - COUNT( - 38 )
----
-1

skipif mysql # not compatible
query I rowsort label-6082
SELECT - COUNT ( - 38 )
----
-1

query I rowsort
SELECT DISTINCT - + 76 AS col1
----
-76

query I rowsort
SELECT ALL - + 43 AS col1
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-6085
SELECT ALL - 8 * + - SUM( ALL - 31 ) AS col0, COUNT( * )
----
-248
1

skipif mysql # not compatible
query II rowsort label-6085
SELECT ALL - 8 * + - SUM ( ALL - 31 ) AS col0, COUNT ( * )
----
-248
1

query I rowsort
SELECT DISTINCT - + 92 AS col0
----
-92

query I rowsort
SELECT - 42 col1
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-6088
SELECT 38 AS col0, COUNT( * ) AS col2
----
38
1

skipif mysql # not compatible
query II rowsort label-6088
SELECT 38 AS col0, COUNT ( * ) AS col2
----
38
1

query I rowsort
SELECT 46 AS col1
----
46

query I rowsort
SELECT - 7 AS col2
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6091
SELECT DISTINCT ( - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6091
SELECT DISTINCT ( - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query II rowsort
SELECT 33 AS col1, - ( + ( + + 66 ) )
----
33
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-6093
SELECT - COUNT( ALL 52 )
----
-1

skipif mysql # not compatible
query I rowsort label-6093
SELECT - COUNT ( ALL 52 )
----
-1

query I rowsort
SELECT + 95 col0
----
95

query I rowsort
SELECT ALL + 12 * 37
----
444

query I rowsort
SELECT + + 4
----
4

query I rowsort
SELECT ALL + - 16 AS col1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-6098
SELECT ALL + COUNT( * ) * - - 6 + + 39
----
45

skipif mysql # not compatible
query I rowsort label-6098
SELECT ALL + COUNT ( * ) * - - 6 + + 39
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6099
SELECT - 74 * + + MIN( DISTINCT + 55 ) * - + COUNT( * )
----
4070

skipif mysql # not compatible
query I rowsort label-6099
SELECT - 74 * + + MIN ( DISTINCT + 55 ) * - + COUNT ( * )
----
4070

query I rowsort
SELECT ALL + 1 col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6101
SELECT ALL AVG ( ALL CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6101
SELECT ALL AVG ( ALL CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6102
SELECT DISTINCT - CAST( - 18 AS SIGNED ) AS col1
----
18

skipif mysql # not compatible
query I rowsort label-6102
SELECT DISTINCT - CAST ( - 18 AS INTEGER ) AS col1
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6103
SELECT 39 DIV - COUNT( * )
----
-39

skipif mysql # not compatible
query I rowsort label-6103
SELECT 39 / - COUNT ( * )
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-6104
SELECT ALL - 20, COUNT( * ) col1
----
-20
1

skipif mysql # not compatible
query II rowsort label-6104
SELECT ALL - 20, COUNT ( * ) col1
----
-20
1

query I rowsort
SELECT ALL 26 * 81 AS col0
----
2106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6106
SELECT + CAST( NULL AS SIGNED ) + 98 / 20 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6106
SELECT + CAST ( NULL AS INTEGER ) + 98 / 20 AS col2
----
NULL

query I rowsort
SELECT ( - - 29 )
----
29

query I rowsort
SELECT DISTINCT - 1 AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6109
SELECT 74 - - + 59 DIV + 51
----
75

skipif mysql # not compatible
query I rowsort label-6109
SELECT 74 - - + 59 / + 51
----
75

query I rowsort
SELECT ALL - 73 + - 83
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-6111
SELECT ALL COUNT( * ) + 81 AS col1
----
82

skipif mysql # not compatible
query I rowsort label-6111
SELECT ALL COUNT ( * ) + 81 AS col1
----
82

query I rowsort
SELECT DISTINCT - 92 * - 44 * 70
----
283360

onlyif mysql # aggregate syntax: 
query I rowsort label-6113
SELECT ALL 47 + - - SUM( 28 ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-6113
SELECT ALL 47 + - - SUM ( 28 ) AS col0
----
75

query I rowsort
SELECT DISTINCT + 30 AS col0
----
30

query I rowsort
SELECT + 80 + 6
----
86

query I rowsort
SELECT ALL + 17 col0
----
17

query I rowsort
SELECT ALL + 10 col2
----
10

query I rowsort
SELECT + 48 col1
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-6119
SELECT ALL - 4 DIV - 62 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6119
SELECT ALL - 4 / - 62 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6120
SELECT ( + - CASE WHEN NULL BETWEEN NULL AND 93 THEN - CAST( 90 AS SIGNED ) END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6120
SELECT ( + - CASE WHEN NULL BETWEEN NULL AND 93 THEN - CAST ( 90 AS INTEGER ) END ) AS col1
----
NULL

query I rowsort
SELECT ALL + 39 AS col2
----
39

query I rowsort
SELECT + ( - + 51 ) col0
----
-51

query I rowsort
SELECT ALL - 0 * 36
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6124
SELECT 89 * - COUNT( * ) AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-6124
SELECT 89 * - COUNT ( * ) AS col0
----
-89

query II rowsort
SELECT ALL - 85, 20 AS col2
----
-85
20

query I rowsort
SELECT - + 42 AS col0
----
-42

query I rowsort
SELECT DISTINCT + 86 + - + 32
----
54

query I rowsort
SELECT + 52 AS col0
----
52

query I rowsort
SELECT 59 col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-6130
SELECT ALL - MAX( ALL - 62 ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-6130
SELECT ALL - MAX ( ALL - 62 ) AS col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6131
SELECT ALL 70 - - COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-6131
SELECT ALL 70 - - COUNT ( * )
----
71

query I rowsort
SELECT ALL 51 col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6133
SELECT ALL - + MIN( ALL - + 98 ) * + 2 + + + 92
----
288

skipif mysql # not compatible
query I rowsort label-6133
SELECT ALL - + MIN ( ALL - + 98 ) * + 2 + + + 92
----
288

onlyif mysql # aggregate syntax: 
query I rowsort label-6134
SELECT ALL + 72 + COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-6134
SELECT ALL + 72 + COUNT ( * )
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-6135
SELECT DISTINCT COUNT( * ), + 75 AS col2
----
1
75

skipif mysql # not compatible
query II rowsort label-6135
SELECT DISTINCT COUNT ( * ), + 75 AS col2
----
1
75

query I rowsort
SELECT - 44 AS col2
----
-44

query I rowsort
SELECT - - 74
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6138
SELECT DISTINCT + 25 + + + 91 + + 84 * + COUNT( * ) col2
----
200

skipif mysql # not compatible
query I rowsort label-6138
SELECT DISTINCT + 25 + + + 91 + + 84 * + COUNT ( * ) col2
----
200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6139
SELECT ALL CAST( COUNT( * ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-6139
SELECT ALL CAST ( COUNT ( * ) AS INTEGER )
----
1

query I rowsort
SELECT - 8 * - - ( + 99 ) AS col1
----
-792

query I rowsort
SELECT DISTINCT + ( 50 )
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6142
SELECT DISTINCT - COUNT( * ) DIV + 88
----
0

skipif mysql # not compatible
query I rowsort label-6142
SELECT DISTINCT - COUNT ( * ) / + 88
----
0

query I rowsort
SELECT ALL - 10 - + 29 AS col0
----
-39

query I rowsort
SELECT DISTINCT - - 82
----
82

query I rowsort
SELECT ALL - + 82 + 67
----
-15

query I rowsort
SELECT DISTINCT 88 AS col0
----
88

query I rowsort
SELECT DISTINCT 89 + - 14
----
75

query I rowsort
SELECT 33 * - 88
----
-2904

query I rowsort
SELECT + + 49 AS col1
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-6150
SELECT + MAX( ALL 14 )
----
14

skipif mysql # not compatible
query I rowsort label-6150
SELECT + MAX ( ALL 14 )
----
14

query I rowsort
SELECT ALL + 38 AS col1
----
38

query I rowsort
SELECT 0 AS col1
----
0

query I rowsort
SELECT 51 AS col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6154
SELECT DISTINCT SUM( ALL 17 )
----
17

skipif mysql # not compatible
query I rowsort label-6154
SELECT DISTINCT SUM ( ALL 17 )
----
17

query I rowsort
SELECT ALL - 28 col1
----
-28

query I rowsort
SELECT ALL + + 94
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6157
SELECT DISTINCT 49 * + + 81 * CAST( NULL AS SIGNED ) - 99 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6157
SELECT DISTINCT 49 * + + 81 * CAST ( NULL AS INTEGER ) - 99 AS col2
----
NULL

query I rowsort
SELECT ALL 62 * + + 62 AS col2
----
3844

query I rowsort
SELECT + 38
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6160
SELECT - COUNT( * ) DIV 36
----
0

skipif mysql # not compatible
query I rowsort label-6160
SELECT - COUNT ( * ) / 36
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6161
SELECT - COUNT( * ) AS col1, - COUNT( * ) AS col0
----
-1
-1

skipif mysql # not compatible
query II rowsort label-6161
SELECT - COUNT ( * ) AS col1, - COUNT ( * ) AS col0
----
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6162
SELECT - COUNT( * ) + + 77 AS col0
----
76

skipif mysql # not compatible
query I rowsort label-6162
SELECT - COUNT ( * ) + + 77 AS col0
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-6163
SELECT - - 54 DIV + 88
----
0

skipif mysql # not compatible
query I rowsort label-6163
SELECT - - 54 / + 88
----
0

query I rowsort
SELECT DISTINCT + + 26
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6165
SELECT ALL - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6165
SELECT ALL - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6166
SELECT ALL - COUNT( * ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-6166
SELECT ALL - COUNT ( * ) col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6167
SELECT DISTINCT COUNT( * ) + 98
----
99

skipif mysql # not compatible
query I rowsort label-6167
SELECT DISTINCT COUNT ( * ) + 98
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6168
SELECT ALL CAST( + 33 AS SIGNED ) + + 81 * + + 23 + - - 2 AS col2
----
1898

skipif mysql # not compatible
query I rowsort label-6168
SELECT ALL CAST ( + 33 AS INTEGER ) + + 81 * + + 23 + - - 2 AS col2
----
1898

onlyif mysql # aggregate syntax: 
query I rowsort label-6169
SELECT ALL + + 91 + + + COUNT( * ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-6169
SELECT ALL + + 91 + + + COUNT ( * ) AS col1
----
92

query I rowsort
SELECT - 55 col0
----
-55

query I rowsort
SELECT ALL + 90 AS col1
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6172
SELECT ALL COUNT( * ) DIV - 56 * 35
----
0

skipif mysql # not compatible
query I rowsort label-6172
SELECT ALL COUNT ( * ) / - 56 * 35
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6173
SELECT COUNT( * ) * + SUM( ALL + 96 )
----
96

skipif mysql # not compatible
query I rowsort label-6173
SELECT COUNT ( * ) * + SUM ( ALL + 96 )
----
96

query I rowsort
SELECT + + ( 11 ) AS col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6175
SELECT + ( - + COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6175
SELECT + ( - + COUNT ( * ) )
----
-1

query I rowsort
SELECT ALL - ( 11 ) AS col1
----
-11

query I rowsort
SELECT ALL - 8 AS col2
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6178
SELECT DISTINCT + ( - CAST( NULL AS SIGNED ) ) + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-6178
SELECT DISTINCT + ( - CAST ( NULL AS INTEGER ) ) + 68
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6179
SELECT DISTINCT COUNT( 83 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6179
SELECT DISTINCT COUNT ( 83 ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6180
SELECT 72 DIV COUNT( * ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-6180
SELECT 72 / COUNT ( * ) AS col2
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6181
SELECT 62 / ( - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6181
SELECT 62 / ( - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT 68 + ( + 7 )
----
75

query I rowsort
SELECT DISTINCT 6 AS col1
----
6

query I rowsort
SELECT + ( - 83 )
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-6185
SELECT - 20 * - COUNT( * ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-6185
SELECT - 20 * - COUNT ( * ) AS col0
----
20

query I rowsort
SELECT + ( 3 ) * 84
----
252

onlyif mysql # aggregate syntax: 
query I rowsort label-6187
SELECT ALL + COUNT( 77 )
----
1

skipif mysql # not compatible
query I rowsort label-6187
SELECT ALL + COUNT ( 77 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6188
SELECT + + 42 DIV - COUNT( * )
----
-42

skipif mysql # not compatible
query I rowsort label-6188
SELECT + + 42 / - COUNT ( * )
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-6189
SELECT + COUNT( * ) - 70 * 46 AS col0
----
-3219

skipif mysql # not compatible
query I rowsort label-6189
SELECT + COUNT ( * ) - 70 * 46 AS col0
----
-3219

query I rowsort
SELECT ALL + 73 AS col2
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6191
SELECT CAST( + CAST( 71 AS SIGNED ) AS SIGNED )
----
71

skipif mysql # not compatible
query I rowsort label-6191
SELECT CAST ( + CAST ( 71 AS INTEGER ) AS INTEGER )
----
71

query I rowsort
SELECT ALL + ( - 19 )
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6193
SELECT ( - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6193
SELECT ( - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6194
SELECT DISTINCT - - SUM( DISTINCT 8 ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-6194
SELECT DISTINCT - - SUM ( DISTINCT 8 ) AS col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6195
SELECT ALL - + 29 * + - 90 * MAX( DISTINCT 35 )
----
91350

skipif mysql # not compatible
query I rowsort label-6195
SELECT ALL - + 29 * + - 90 * MAX ( DISTINCT 35 )
----
91350

query I rowsort
SELECT DISTINCT - 83 AS col2
----
-83

query I rowsort
SELECT ALL + ( 32 ) AS col1
----
32

query II rowsort
SELECT DISTINCT - 24 AS col0, NULLIF ( - 85, - 79 ) AS col2
----
-24
-85

query I rowsort
SELECT ALL - 26 AS col0
----
-26

query I rowsort
SELECT - 75 AS col2
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6201
SELECT CAST( - NULLIF ( - 47, + COUNT( * ) ) AS SIGNED )
----
47

skipif mysql # not compatible
query I rowsort label-6201
SELECT CAST ( - NULLIF ( - 47, + COUNT ( * ) ) AS INTEGER )
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-6202
SELECT DISTINCT - COUNT( * ) col2, 23 - + + 75
----
-1
-52

skipif mysql # not compatible
query II rowsort label-6202
SELECT DISTINCT - COUNT ( * ) col2, 23 - + + 75
----
-1
-52

query I rowsort
SELECT ALL 71 AS col0
----
71

query I rowsort
SELECT - 82
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-6205
SELECT ALL COUNT( ALL 73 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6205
SELECT ALL COUNT ( ALL 73 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6206
SELECT ALL 89 * - COUNT( * ) * - COUNT( * ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-6206
SELECT ALL 89 * - COUNT ( * ) * - COUNT ( * ) AS col1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-6207
SELECT DISTINCT + 57 * + - MIN( DISTINCT - 22 ) + + 51
----
1305

skipif mysql # not compatible
query I rowsort label-6207
SELECT DISTINCT + 57 * + - MIN ( DISTINCT - 22 ) + + 51
----
1305

onlyif mysql # aggregate syntax: 
query I rowsort label-6208
SELECT DISTINCT + - COUNT( DISTINCT - - 76 )
----
-1

skipif mysql # not compatible
query I rowsort label-6208
SELECT DISTINCT + - COUNT ( DISTINCT - - 76 )
----
-1

query I rowsort
SELECT ALL - 48 * + 16 AS col1
----
-768

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6210
SELECT DISTINCT - 2 DIV - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-6210
SELECT DISTINCT - 2 / - COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6211
SELECT DISTINCT COUNT( - - 76 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6211
SELECT DISTINCT COUNT ( - - 76 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6212
SELECT - 35 * - COUNT( * ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-6212
SELECT - 35 * - COUNT ( * ) AS col1
----
35

query I rowsort
SELECT + 21
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6214
SELECT + 94 + + ( + COUNT( * ) )
----
95

skipif mysql # not compatible
query I rowsort label-6214
SELECT + 94 + + ( + COUNT ( * ) )
----
95

query I rowsort
SELECT DISTINCT + + 73
----
73

query I rowsort
SELECT ALL + 76 AS col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6217
SELECT ALL 50 * 58 * + ( - COUNT( * ) ) AS col2
----
-2900

skipif mysql # not compatible
query I rowsort label-6217
SELECT ALL 50 * 58 * + ( - COUNT ( * ) ) AS col2
----
-2900

onlyif mysql # aggregate syntax: 
query I rowsort label-6218
SELECT - ( + - COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6218
SELECT - ( + - COUNT ( * ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6219
SELECT - COUNT( * ) * ( - - COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6219
SELECT - COUNT ( * ) * ( - - COUNT ( * ) ) AS col0
----
-1

query I rowsort
SELECT + 26 - + 11 AS col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-6221
SELECT ALL - COUNT( + 57 ) + - 6 AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-6221
SELECT ALL - COUNT ( + 57 ) + - 6 AS col2
----
-7

query I rowsort
SELECT + 4 AS col2
----
4

query I rowsort
SELECT 55 + - 41 AS col1
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-6224
SELECT DISTINCT - 59 DIV + 34
----
-1

skipif mysql # not compatible
query I rowsort label-6224
SELECT DISTINCT - 59 / + 34
----
-1

query I rowsort
SELECT ALL - - 79 AS col2
----
79

query I rowsort
SELECT + - 4
----
-4

query I rowsort
SELECT DISTINCT + + 69 * - 83 AS col0
----
-5727

query I rowsort
SELECT 91 + - 64 col0
----
27

query I rowsort
SELECT DISTINCT 94
----
94

query I rowsort
SELECT ALL 4 AS col1
----
4

query I rowsort
SELECT ALL 55 AS col0
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-6232
SELECT DISTINCT 66 DIV - + 77
----
0

skipif mysql # not compatible
query I rowsort label-6232
SELECT DISTINCT 66 / - + 77
----
0

query I rowsort
SELECT 86 AS col0
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6234
SELECT ALL COUNT( * ) DIV + 93
----
0

skipif mysql # not compatible
query I rowsort label-6234
SELECT ALL COUNT ( * ) / + 93
----
0

query I rowsort
SELECT DISTINCT - ( + ( 24 ) ) AS col0
----
-24

query I rowsort
SELECT DISTINCT - 67
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6237
SELECT ALL - - SUM( ALL + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6237
SELECT ALL - - SUM ( ALL + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - + 91
----
-91

query I rowsort
SELECT ALL - - 0
----
0

query II rowsort
SELECT 13 AS col0, 99
----
13
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6241
SELECT 48 col2, + COUNT( * ) * CAST( NULL AS SIGNED )
----
48
NULL

skipif mysql # not compatible
query II rowsort label-6241
SELECT 48 col2, + COUNT ( * ) * CAST ( NULL AS INTEGER )
----
48
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6242
SELECT + CAST( NULL AS SIGNED ) * - COUNT( * ) * - AVG ( DISTINCT + 66 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6242
SELECT + CAST ( NULL AS INTEGER ) * - COUNT ( * ) * - AVG ( DISTINCT + 66 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6243
SELECT ALL - MAX( ALL 20 ) + - + ( - + COUNT( - - 46 ) )
----
-19

skipif mysql # not compatible
query I rowsort label-6243
SELECT ALL - MAX ( ALL 20 ) + - + ( - + COUNT ( - - 46 ) )
----
-19

query I rowsort
SELECT + 12 AS col0
----
12

query I rowsort
SELECT ALL + - 57 AS col0
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6246
SELECT + COUNT( * ), COALESCE ( + - 96, - + 80 + + 44 + - - CAST( NULL AS SIGNED ) ) col1
----
1
-96

skipif mysql # not compatible
query II rowsort label-6246
SELECT + COUNT ( * ), COALESCE ( + - 96, - + 80 + + 44 + - - CAST ( NULL AS INTEGER ) ) col1
----
1
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6247
SELECT ALL - 99 * + COUNT( * ) + - 13 * 69 col2
----
-996

skipif mysql # not compatible
query I rowsort label-6247
SELECT ALL - 99 * + COUNT ( * ) + - 13 * 69 col2
----
-996

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6248
SELECT - CAST( NULL AS DECIMAL ) AS col2, 41
----
NULL
41

skipif mysql # not compatible
query II rowsort label-6248
SELECT - CAST ( NULL AS REAL ) AS col2, 41
----
NULL
41

onlyif mysql # aggregate syntax: 
query II rowsort label-6249
SELECT DISTINCT ( COUNT( * ) ) AS col2, + 7
----
1
7

skipif mysql # not compatible
query II rowsort label-6249
SELECT DISTINCT ( COUNT ( * ) ) AS col2, + 7
----
1
7

query I rowsort
SELECT DISTINCT - 5 * - - 40
----
-200

query I rowsort
SELECT DISTINCT + 25
----
25

query I rowsort
SELECT 15 col0
----
15

query I rowsort
SELECT - + 56
----
-56

query I rowsort
SELECT ALL + 89 AS col0
----
89

query I rowsort
SELECT ( + 10 )
----
10

query I rowsort
SELECT - 2 col0
----
-2

query I rowsort
SELECT DISTINCT - 30 col1
----
-30

query I rowsort
SELECT ALL 40 AS col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6259
SELECT - MAX( DISTINCT - - 4 )
----
-4

skipif mysql # not compatible
query I rowsort label-6259
SELECT - MAX ( DISTINCT - - 4 )
----
-4

query I rowsort
SELECT + 69 - - - 42 * + + 97 AS col2
----
-4005

query I rowsort
SELECT DISTINCT ( - + 18 ) + + 47
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6262
SELECT + MAX( 9 ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-6262
SELECT + MAX ( 9 ) AS col1
----
9

query I rowsort
SELECT + + 16 col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-6264
SELECT ALL - ( COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6264
SELECT ALL - ( COUNT ( * ) ) AS col0
----
-1

query I rowsort
SELECT 35 col1
----
35

query I rowsort
SELECT ALL - 70 AS col1
----
-70

query I rowsort
SELECT - + ( 64 )
----
-64

query I rowsort
SELECT - ( 86 )
----
-86

query I rowsort
SELECT DISTINCT - 88 AS col2
----
-88

query I rowsort
SELECT - + ( 30 ) * - 86 AS col1
----
2580

query I rowsort
SELECT - ( 34 ) col2
----
-34

query I rowsort
SELECT DISTINCT + 58
----
58

query I rowsort
SELECT + 97 AS col2
----
97

query I rowsort
SELECT DISTINCT + 82 AS col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6275
SELECT - SUM( ALL + 27 ) AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-6275
SELECT - SUM ( ALL + 27 ) AS col1
----
-27

query I rowsort
SELECT - - 23
----
23

query I rowsort
SELECT DISTINCT 65
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6278
SELECT CAST( 38 AS SIGNED ) col1
----
38

skipif mysql # not compatible
query I rowsort label-6278
SELECT CAST ( 38 AS INTEGER ) col1
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6279
SELECT CAST( + 2 AS SIGNED )
----
2

skipif mysql # not compatible
query I rowsort label-6279
SELECT CAST ( + 2 AS INTEGER )
----
2

query II rowsort
SELECT ALL + 35 AS col1, - ( - + 21 )
----
35
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6281
SELECT DISTINCT + SUM( ALL - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6281
SELECT DISTINCT + SUM ( ALL - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ( + 0 )
----
0

query I rowsort
SELECT - - NULLIF ( ( - 86 ), - 48 ) + 2 * + 9 AS col0
----
-68

query I rowsort
SELECT + 43 col2
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6285
SELECT ALL + CAST( ( + ( - + 36 ) ) AS SIGNED ) - COUNT( * )
----
-37

skipif mysql # not compatible
query I rowsort label-6285
SELECT ALL + CAST ( ( + ( - + 36 ) ) AS INTEGER ) - COUNT ( * )
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-6286
SELECT - MIN( + 3 ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-6286
SELECT - MIN ( + 3 ) AS col2
----
-3

query I rowsort
SELECT DISTINCT 43 + - - ( + + 99 )
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-6288
SELECT ALL + COUNT( * ) - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6288
SELECT ALL + COUNT ( * ) - COUNT ( * ) AS col2
----
0

query I rowsort
SELECT DISTINCT - + 79 AS col2
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-6290
SELECT COUNT( * ) - - 47
----
48

skipif mysql # not compatible
query I rowsort label-6290
SELECT COUNT ( * ) - - 47
----
48

query I rowsort
SELECT DISTINCT 55 + + 13 AS col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6292
SELECT DISTINCT SUM( DISTINCT - 7 )
----
-7

skipif mysql # not compatible
query I rowsort label-6292
SELECT DISTINCT SUM ( DISTINCT - 7 )
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6293
SELECT DISTINCT COUNT( * ) DIV - 6 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6293
SELECT DISTINCT COUNT ( * ) / - 6 AS col2
----
0

query I rowsort
SELECT 25 * + + 76 AS col2
----
1900

query I rowsort
SELECT DISTINCT - + 27 AS col1
----
-27

query I rowsort
SELECT ALL + - 45
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-6297
SELECT + + COUNT( * ) * + 80 AS col0
----
80

skipif mysql # not compatible
query I rowsort label-6297
SELECT + + COUNT ( * ) * + 80 AS col0
----
80

query I rowsort
SELECT + + 75
----
75

query I rowsort
SELECT ( 96 ) AS col2
----
96

query I rowsort
SELECT DISTINCT - 56 * + 96 AS col0
----
-5376

query I rowsort
SELECT ALL ( - 80 )
----
-80

query I rowsort
SELECT ALL + 83 - 32
----
51

query I rowsort
SELECT DISTINCT + 66 col0
----
66

query I rowsort
SELECT - ( + - 28 ) AS col1
----
28

query I rowsort
SELECT - 33 col0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-6306
SELECT + 31 * - COUNT( DISTINCT - - 48 ) + + - 43
----
-74

skipif mysql # not compatible
query I rowsort label-6306
SELECT + 31 * - COUNT ( DISTINCT - - 48 ) + + - 43
----
-74

query I rowsort
SELECT 6 * COALESCE ( - 39, - 46 ) AS col1
----
-234

query I rowsort
SELECT ALL 79 - + 79
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6309
SELECT COUNT( * ) DIV + 92
----
0

skipif mysql # not compatible
query I rowsort label-6309
SELECT COUNT ( * ) / + 92
----
0

query II rowsort
SELECT - 97 AS col2, - 10 AS col2
----
-97
-10

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6311
SELECT ( 45 ) / CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6311
SELECT ( 45 ) / CAST ( NULL AS REAL )
----
NULL

query II rowsort
SELECT - 53 col0, 85
----
-53
85

query II rowsort
SELECT + 53, - 32 AS col0
----
53
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6314
SELECT NULLIF ( + CAST( NULL AS SIGNED ), - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6314
SELECT NULLIF ( + CAST ( NULL AS INTEGER ), - COUNT ( * ) )
----
NULL

query I rowsort
SELECT 16 * 52
----
832

query I rowsort
SELECT ALL - + 63 AS col2
----
-63

query I rowsort
SELECT + + ( - - 57 )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6318
SELECT DISTINCT - - MIN( ALL + 61 )
----
61

skipif mysql # not compatible
query I rowsort label-6318
SELECT DISTINCT - - MIN ( ALL + 61 )
----
61

query I rowsort
SELECT - 56 * - 90 AS col2
----
5040

query I rowsort
SELECT 10 AS col0
----
10

query I rowsort
SELECT - 31 AS col0
----
-31

query I rowsort
SELECT DISTINCT - 11 AS col1
----
-11

query I rowsort
SELECT DISTINCT + ( + ( + 65 ) ) AS col2
----
65

query I rowsort
SELECT + 16 col2
----
16

query I rowsort
SELECT ALL + + 37 col1
----
37

query I rowsort
SELECT ALL + 60 AS col1
----
60

query I rowsort
SELECT ALL + ( - 39 )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-6328
SELECT COUNT( 88 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6328
SELECT COUNT ( 88 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6329
SELECT ALL COUNT( ALL + CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-6329
SELECT ALL COUNT ( ALL + CAST ( NULL AS INTEGER ) )
----
0

query I rowsort
SELECT - ( - - 14 )
----
-14

query I rowsort
SELECT + 64 col1
----
64

query I rowsort
SELECT - + 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6333
SELECT DISTINCT - COUNT( + 78 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6333
SELECT DISTINCT - COUNT ( + 78 ) AS col2
----
-1

query I rowsort
SELECT + + 38
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-6335
SELECT ALL - 95, COUNT( * ) AS col0
----
-95
1

skipif mysql # not compatible
query II rowsort label-6335
SELECT ALL - 95, COUNT ( * ) AS col0
----
-95
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6336
SELECT ALL CAST( + 91 AS SIGNED ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-6336
SELECT ALL CAST ( + 91 AS INTEGER ) AS col2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6337
SELECT + ( + 21 ) + + + COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-6337
SELECT + ( + 21 ) + + + COUNT ( * )
----
22

query I rowsort
SELECT - + 35
----
-35

query I rowsort
SELECT - 55 AS col0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-6340
SELECT ALL - - ( - - COUNT( - 13 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6340
SELECT ALL - - ( - - COUNT ( - 13 ) ) AS col2
----
1

query I rowsort
SELECT + 14 col1
----
14

query I rowsort
SELECT + 80 AS col0
----
80

query I rowsort
SELECT DISTINCT - 46 AS col0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-6344
SELECT 59 * - COUNT( * )
----
-59

skipif mysql # not compatible
query I rowsort label-6344
SELECT 59 * - COUNT ( * )
----
-59

query I rowsort
SELECT DISTINCT + 81
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6346
SELECT ALL ( + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-6346
SELECT ALL ( + COUNT ( * ) )
----
1

query I rowsort
SELECT + 15 col1
----
15

query I rowsort
SELECT + 69 col1
----
69

query I rowsort
SELECT - ( 39 ) * 47 AS col2
----
-1833

onlyif mysql # aggregate syntax: 
query I rowsort label-6350
SELECT - COUNT( + 13 )
----
-1

skipif mysql # not compatible
query I rowsort label-6350
SELECT - COUNT ( + 13 )
----
-1

query I rowsort
SELECT - - 31
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6352
SELECT - MAX( - 97 ) + + 32
----
129

skipif mysql # not compatible
query I rowsort label-6352
SELECT - MAX ( - 97 ) + + 32
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-6353
SELECT DISTINCT + SUM( ALL + 95 ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-6353
SELECT DISTINCT + SUM ( ALL + 95 ) AS col0
----
95

query I rowsort
SELECT DISTINCT + + 78
----
78

query I rowsort
SELECT + 23 col0
----
23

query I rowsort
SELECT 65 AS col2
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6357
SELECT - ( CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6357
SELECT - ( CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT ALL 85 * - 16 * 88
----
-119680

onlyif mysql # aggregate syntax: 
query I rowsort label-6359
SELECT - SUM( DISTINCT + ( - + 2 ) )
----
2

skipif mysql # not compatible
query I rowsort label-6359
SELECT - SUM ( DISTINCT + ( - + 2 ) )
----
2

query I rowsort
SELECT DISTINCT - 49 * - 13
----
637

query I rowsort
SELECT - - 7
----
7

query I rowsort
SELECT 77 AS col1
----
77

query I rowsort
SELECT + 18 + - - 55 AS col1
----
73

query I rowsort
SELECT + 45 AS col0
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6365
SELECT + + ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6365
SELECT + + ( CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT 73 * - 3 AS col0
----
-219

query I rowsort
SELECT ALL + 62 + - + 62 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6368
SELECT - + COUNT( * ) + + 50
----
49

skipif mysql # not compatible
query I rowsort label-6368
SELECT - + COUNT ( * ) + + 50
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-6369
SELECT - COUNT( * ) AS col2, 69
----
-1
69

skipif mysql # not compatible
query II rowsort label-6369
SELECT - COUNT ( * ) AS col2, 69
----
-1
69

query I rowsort
SELECT 42 AS col0
----
42

query I rowsort
SELECT DISTINCT + + 24
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6372
SELECT + COUNT( * ) - - 55 AS col1
----
56

skipif mysql # not compatible
query I rowsort label-6372
SELECT + COUNT ( * ) - - 55 AS col1
----
56

query I rowsort
SELECT + 49 AS col1
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6374
SELECT - CAST( + CAST( - 96 AS SIGNED ) AS SIGNED ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-6374
SELECT - CAST ( + CAST ( - 96 AS INTEGER ) AS INTEGER ) AS col1
----
96

query II rowsort
SELECT - 19, - 43 col0
----
-19
-43

query II rowsort
SELECT DISTINCT 22, - 45 AS col2
----
22
-45

query I rowsort
SELECT ALL 25 * + 82
----
2050

onlyif mysql # aggregate syntax: 
query II rowsort label-6378
SELECT DISTINCT 25, - 41 * + + COUNT( * ) AS col1
----
25
-41

skipif mysql # not compatible
query II rowsort label-6378
SELECT DISTINCT 25, - 41 * + + COUNT ( * ) AS col1
----
25
-41

query I rowsort
SELECT ALL ( - 49 ) AS col2
----
-49

query I rowsort
SELECT - 7 - 40
----
-47

query I rowsort
SELECT ALL ( 51 )
----
51

query I rowsort
SELECT ALL - ( + 91 )
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6383
SELECT + CAST( 8 AS SIGNED )
----
8

skipif mysql # not compatible
query I rowsort label-6383
SELECT + CAST ( 8 AS INTEGER )
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6384
SELECT DISTINCT + CAST( + 26 AS SIGNED )
----
26

skipif mysql # not compatible
query I rowsort label-6384
SELECT DISTINCT + CAST ( + 26 AS INTEGER )
----
26

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6385
SELECT - + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6385
SELECT - + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6386
SELECT + CAST( + ( + + 84 ) AS SIGNED )
----
84

skipif mysql # not compatible
query I rowsort label-6386
SELECT + CAST ( + ( + + 84 ) AS INTEGER )
----
84

query I rowsort
SELECT 34 AS col2
----
34

query I rowsort
SELECT + 72
----
72

query I rowsort
SELECT 84 + - + 9 col1
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6390
SELECT 42 + + + CAST( + 95 AS SIGNED ) AS col1
----
137

skipif mysql # not compatible
query I rowsort label-6390
SELECT 42 + + + CAST ( + 95 AS INTEGER ) AS col1
----
137

query I rowsort
SELECT + 67 + + + 10
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6392
SELECT + + ( + COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6392
SELECT + + ( + COUNT ( * ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6393
SELECT + + 25 * COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-6393
SELECT + + 25 * COUNT ( * )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6394
SELECT ALL + ( ( ( + 48 ) ) ) - - COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-6394
SELECT ALL + ( ( ( + 48 ) ) ) - - COUNT ( * )
----
49

query I rowsort
SELECT ALL - 31 AS col2
----
-31

query I rowsort
SELECT ALL - 72 AS col0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-6397
SELECT ALL COUNT( * ) + + 49 AS col0
----
50

skipif mysql # not compatible
query I rowsort label-6397
SELECT ALL COUNT ( * ) + + 49 AS col0
----
50

query I rowsort
SELECT - 79 AS col2
----
-79

query I rowsort
SELECT DISTINCT 96 AS col0
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-6400
SELECT - ( 29 ), + 39 - - - COUNT( - 71 ) col2
----
-29
38

skipif mysql # not compatible
query II rowsort label-6400
SELECT - ( 29 ), + 39 - - - COUNT ( - 71 ) col2
----
-29
38

query I rowsort
SELECT ALL 47 AS col2
----
47

query I rowsort
SELECT 31 col0
----
31

query I rowsort
SELECT ALL 1 * + 99 AS col2
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6404
SELECT DISTINCT - CAST( - 11 AS SIGNED )
----
11

skipif mysql # not compatible
query I rowsort label-6404
SELECT DISTINCT - CAST ( - 11 AS INTEGER )
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6405
SELECT ALL CAST( NULL AS SIGNED ) * - MIN( - 48 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6405
SELECT ALL CAST ( NULL AS INTEGER ) * - MIN ( - 48 ) AS col2
----
NULL

query I rowsort
SELECT ALL - 93 col0
----
-93

query I rowsort
SELECT ALL - 2
----
-2

query I rowsort
SELECT ALL 64 * - + 50 AS col0
----
-3200

query II rowsort
SELECT - 7 AS col0, + 70
----
-7
70

query I rowsort
SELECT - + 30
----
-30

query I rowsort
SELECT DISTINCT - 94 AS col2
----
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-6412
SELECT ALL SUM( + 85 ) AS col2, COUNT( * )
----
85
1

skipif mysql # not compatible
query II rowsort label-6412
SELECT ALL SUM ( + 85 ) AS col2, COUNT ( * )
----
85
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6413
SELECT ALL - 96 * - SUM( DISTINCT 3 )
----
288

skipif mysql # not compatible
query I rowsort label-6413
SELECT ALL - 96 * - SUM ( DISTINCT 3 )
----
288

onlyif mysql # aggregate syntax: 
query I rowsort label-6414
SELECT ALL - 23 * COUNT( * )
----
-23

skipif mysql # not compatible
query I rowsort label-6414
SELECT ALL - 23 * COUNT ( * )
----
-23

query I rowsort
SELECT ALL + ( - + 34 )
----
-34

query I rowsort
SELECT DISTINCT + 74
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6417
SELECT - 18 + - - ( + + COUNT( * ) )
----
-17

skipif mysql # not compatible
query I rowsort label-6417
SELECT - 18 + - - ( + + COUNT ( * ) )
----
-17

query I rowsort
SELECT 68 col1
----
68

query I rowsort
SELECT - 87 AS col0
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6420
SELECT ALL + ( + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6420
SELECT ALL + ( + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6421
SELECT - 20 + - + COUNT( * )
----
-21

skipif mysql # not compatible
query I rowsort label-6421
SELECT - 20 + - + COUNT ( * )
----
-21

query I rowsort
SELECT ALL 37 * + 87
----
3219

query I rowsort
SELECT ALL + 6 AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6424
SELECT - 94 * COUNT( * ) AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-6424
SELECT - 94 * COUNT ( * ) AS col1
----
-94

query I rowsort
SELECT ( - - 4 )
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6426
SELECT ALL + 10 * CAST( NULL AS SIGNED ) / + - 81 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6426
SELECT ALL + 10 * CAST ( NULL AS INTEGER ) / + - 81 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6427
SELECT NULLIF ( COUNT( * ), COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6427
SELECT NULLIF ( COUNT ( * ), COUNT ( * ) )
----
NULL

query I rowsort
SELECT - 61 AS col2
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-6429
SELECT DISTINCT COUNT( * ) + + 4 col2, + COUNT( * ) AS col0
----
5
1

skipif mysql # not compatible
query II rowsort label-6429
SELECT DISTINCT COUNT ( * ) + + 4 col2, + COUNT ( * ) AS col0
----
5
1

query II rowsort
SELECT - 98, 14 col0
----
-98
14

query I rowsort
SELECT DISTINCT - + 8 col0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-6432
SELECT DISTINCT - COUNT( * ) * + 75
----
-75

skipif mysql # not compatible
query I rowsort label-6432
SELECT DISTINCT - COUNT ( * ) * + 75
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6433
SELECT COUNT( * ) + + 41
----
42

skipif mysql # not compatible
query I rowsort label-6433
SELECT COUNT ( * ) + + 41
----
42

query I rowsort
SELECT ALL - - 47 col0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6435
SELECT ALL + COUNT( * ) * 69
----
69

skipif mysql # not compatible
query I rowsort label-6435
SELECT ALL + COUNT ( * ) * 69
----
69

query I rowsort
SELECT - 43 - + - 91 AS col0
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6437
SELECT ALL ( CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6437
SELECT ALL ( CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT - 35 + - 99 * + 8
----
-827

query I rowsort
SELECT - 41 AS col0
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6440
SELECT + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6440
SELECT + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 99 * - - 43 + - 52 AS col1
----
4205

query I rowsort
SELECT 0 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6443
SELECT DISTINCT - 67 DIV + SUM( - 47 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6443
SELECT DISTINCT - 67 / + SUM ( - 47 ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6444
SELECT ALL CAST( + 20 AS SIGNED )
----
20

skipif mysql # not compatible
query I rowsort label-6444
SELECT ALL CAST ( + 20 AS INTEGER )
----
20

query I rowsort
SELECT ALL - + 59 AS col0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-6446
SELECT DISTINCT - - MIN( DISTINCT + 64 )
----
64

skipif mysql # not compatible
query I rowsort label-6446
SELECT DISTINCT - - MIN ( DISTINCT + 64 )
----
64

query I rowsort
SELECT DISTINCT - 99 AS col1
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6448
SELECT COUNT( * ) DIV + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-6448
SELECT COUNT ( * ) / + COUNT ( * )
----
1

query I rowsort
SELECT - 91 col2
----
-91

query I rowsort
SELECT ALL 93 AS col0
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6451
SELECT ALL CAST( NULL AS SIGNED ) * + + 82 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6451
SELECT ALL CAST ( NULL AS INTEGER ) * + + 82 AS col1
----
NULL

query I rowsort
SELECT + - 99 AS col0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6453
SELECT 95 + - COUNT( * ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-6453
SELECT 95 + - COUNT ( * ) AS col1
----
94

query I rowsort
SELECT - 23 AS col2
----
-23

query I rowsort
SELECT ALL 37 col1
----
37

query I rowsort
SELECT ALL 88 AS col0
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-6457
SELECT ALL + 30, 10 + - COUNT( * ) AS col0
----
30
9

skipif mysql # not compatible
query II rowsort label-6457
SELECT ALL + 30, 10 + - COUNT ( * ) AS col0
----
30
9

query I rowsort
SELECT ALL 47
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6459
SELECT DISTINCT - COUNT( * ) + CAST( + COUNT( * ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-6459
SELECT DISTINCT - COUNT ( * ) + CAST ( + COUNT ( * ) AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6460
SELECT COUNT( ALL - ( - 79 ) )
----
1

skipif mysql # not compatible
query I rowsort label-6460
SELECT COUNT ( ALL - ( - 79 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6461
SELECT - ( - - MIN( - - 2 ) )
----
-2

skipif mysql # not compatible
query I rowsort label-6461
SELECT - ( - - MIN ( - - 2 ) )
----
-2

query I rowsort
SELECT DISTINCT + 1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6463
SELECT DISTINCT + MIN( DISTINCT - 85 ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-6463
SELECT DISTINCT + MIN ( DISTINCT - 85 ) AS col1
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-6464
SELECT - COUNT( * ) * + + 83 + COUNT( * ) AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-6464
SELECT - COUNT ( * ) * + + 83 + COUNT ( * ) AS col2
----
-82

query I rowsort
SELECT + 24 AS col1
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6466
SELECT ALL + CAST( + CAST( - 48 AS SIGNED ) AS SIGNED )
----
-48

skipif mysql # not compatible
query I rowsort label-6466
SELECT ALL + CAST ( + CAST ( - 48 AS INTEGER ) AS INTEGER )
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6467
SELECT - CAST( - - COUNT( * ) AS SIGNED ) * 84
----
-84

skipif mysql # not compatible
query I rowsort label-6467
SELECT - CAST ( - - COUNT ( * ) AS INTEGER ) * 84
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6468
SELECT - CAST( NULL AS SIGNED ) * - 95
----
NULL

skipif mysql # not compatible
query I rowsort label-6468
SELECT - CAST ( NULL AS INTEGER ) * - 95
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6469
SELECT ALL CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6469
SELECT ALL CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT DISTINCT ( - 27 )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-6471
SELECT + + 50 * - 29 * + - COUNT( * ) + + 73
----
1523

skipif mysql # not compatible
query I rowsort label-6471
SELECT + + 50 * - 29 * + - COUNT ( * ) + + 73
----
1523

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6472
SELECT + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6472
SELECT + CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT + ( - 6 ) + 80 * + 91 AS col2
----
7274

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6474
SELECT DISTINCT COUNT( * ) DIV - 89 + + - 86 AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-6474
SELECT DISTINCT COUNT ( * ) / - 89 + + - 86 AS col1
----
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6475
SELECT - 83 DIV + + COUNT( * ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-6475
SELECT - 83 / + + COUNT ( * ) AS col2
----
-83

query I rowsort
SELECT ALL - 22 * - 31 AS col1
----
682

query I rowsort
SELECT ALL + 49 + + + 72 * + - 3
----
-167

query I rowsort
SELECT ALL + 51 AS col0
----
51

query I rowsort
SELECT ALL ( + - 15 )
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6480
SELECT - 76 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6480
SELECT - 76 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - 92 AS col1
----
-92

query I rowsort
SELECT ALL + ( - 11 ) AS col0
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6483
SELECT ALL 7 DIV COUNT( * ) AS col2, - 36
----
7
-36

skipif mysql # not compatible
query II rowsort label-6483
SELECT ALL 7 / COUNT ( * ) AS col2, - 36
----
7
-36

query I rowsort
SELECT ALL - 46
----
-46

query I rowsort
SELECT 85 + + 36 + + 19 AS col1
----
140

query I rowsort
SELECT ALL + 45 col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6487
SELECT - 47 + + COUNT( * )
----
-46

skipif mysql # not compatible
query I rowsort label-6487
SELECT - 47 + + COUNT ( * )
----
-46

query I rowsort
SELECT DISTINCT + ( - 10 ) AS col2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-6489
SELECT MIN( + 38 )
----
38

skipif mysql # not compatible
query I rowsort label-6489
SELECT MIN ( + 38 )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-6490
SELECT - - COUNT( * ) + 28
----
29

skipif mysql # not compatible
query I rowsort label-6490
SELECT - - COUNT ( * ) + 28
----
29

query I rowsort
SELECT + ( + + 8 ) AS col1
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6492
SELECT CAST( - 58 AS SIGNED ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-6492
SELECT CAST ( - 58 AS INTEGER ) AS col2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6493
SELECT ALL + COUNT( * ) * 32
----
32

skipif mysql # not compatible
query I rowsort label-6493
SELECT ALL + COUNT ( * ) * 32
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6494
SELECT DISTINCT + - MIN( DISTINCT 92 )
----
-92

skipif mysql # not compatible
query I rowsort label-6494
SELECT DISTINCT + - MIN ( DISTINCT 92 )
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-6495
SELECT ALL + ( - COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6495
SELECT ALL + ( - COUNT ( * ) ) AS col0
----
-1

query I rowsort
SELECT DISTINCT - 3 * + + 19 AS col1
----
-57

query I rowsort
SELECT - 13 AS col1
----
-13

query I rowsort
SELECT - 74 AS col1
----
-74

query I rowsort
SELECT DISTINCT + 66 + + 3 AS col1
----
69

query I rowsort
SELECT ALL - 91 AS col1
----
-91

query I rowsort
SELECT 29 * - 53
----
-1537

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6502
SELECT 36 / 28 * COUNT( * ) / + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6502
SELECT 36 / 28 * COUNT ( * ) / + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6503
SELECT DISTINCT 20 DIV + 71
----
0

skipif mysql # not compatible
query I rowsort label-6503
SELECT DISTINCT 20 / + 71
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6504
SELECT ALL - COUNT( - CAST( - 22 AS SIGNED ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-6504
SELECT ALL - COUNT ( - CAST ( - 22 AS INTEGER ) ) col0
----
-1

query I rowsort
SELECT ALL - 48 col2
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6506
SELECT ALL + CAST( NULL AS SIGNED ) * - 9 AS col1, - CAST( COUNT( * ) AS SIGNED ) AS col2
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-6506
SELECT ALL + CAST ( NULL AS INTEGER ) * - 9 AS col1, - CAST ( COUNT ( * ) AS INTEGER ) AS col2
----
NULL
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6507
SELECT DISTINCT - + 40 * - COUNT( * ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-6507
SELECT DISTINCT - + 40 * - COUNT ( * ) AS col2
----
40

query I rowsort
SELECT + + 1 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6509
SELECT ALL - 22 * COUNT( * ) * + + 85 + 66 AS col0
----
-1804

skipif mysql # not compatible
query I rowsort label-6509
SELECT ALL - 22 * COUNT ( * ) * + + 85 + 66 AS col0
----
-1804

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6510
SELECT DISTINCT + CAST( 2 AS SIGNED ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-6510
SELECT DISTINCT + CAST ( 2 AS INTEGER ) AS col1
----
2

query I rowsort
SELECT DISTINCT + - 17 col0
----
-17

query I rowsort
SELECT ALL + 65 AS col2
----
65

query I rowsort
SELECT DISTINCT - ( + 9 )
----
-9

query I rowsort
SELECT 69 * 94 AS col0
----
6486

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6515
SELECT CAST( NULL AS DECIMAL ) - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-6515
SELECT CAST ( NULL AS REAL ) - 28
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6516
SELECT ALL - MIN( 89 ) AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-6516
SELECT ALL - MIN ( 89 ) AS col2
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-6517
SELECT ALL COUNT( * ) * - ( COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6517
SELECT ALL COUNT ( * ) * - ( COUNT ( * ) )
----
-1

query I rowsort
SELECT 94 * 1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6519
SELECT COUNT( * ) + - 92
----
-91

skipif mysql # not compatible
query I rowsort label-6519
SELECT COUNT ( * ) + - 92
----
-91

query I rowsort
SELECT DISTINCT 4 AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6521
SELECT 66 + COUNT( * ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-6521
SELECT 66 + COUNT ( * ) AS col1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6522
SELECT DISTINCT + - COUNT( * ) * COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6522
SELECT DISTINCT + - COUNT ( * ) * COUNT ( * ) AS col0
----
-1

query I rowsort
SELECT ALL - 15 col2
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-6524
SELECT ALL ( - 84 ) + COUNT( * ) * - 8 AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-6524
SELECT ALL ( - 84 ) + COUNT ( * ) * - 8 AS col0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-6525
SELECT DISTINCT - SUM( ( - 28 ) ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-6525
SELECT DISTINCT - SUM ( ( - 28 ) ) AS col0
----
28

query I rowsort
SELECT ALL + 45 + + 88 col1
----
133

query I rowsort
SELECT DISTINCT - 28 + 97
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-6528
SELECT 70 * COUNT( * ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-6528
SELECT 70 * COUNT ( * ) AS col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-6529
SELECT - SUM( DISTINCT + 67 ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-6529
SELECT - SUM ( DISTINCT + 67 ) AS col1
----
-67

query I rowsort
SELECT DISTINCT - 53
----
-53

query I rowsort
SELECT - 33 AS col1
----
-33

query I rowsort
SELECT ALL 94 AS col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6533
SELECT + COUNT( * ) + + - 81 * 40
----
-3239

skipif mysql # not compatible
query I rowsort label-6533
SELECT + COUNT ( * ) + + - 81 * 40
----
-3239

query I rowsort
SELECT - + 94 AS col0
----
-94

query I rowsort
SELECT ALL + - 68
----
-68

query I rowsort
SELECT + + ( - - 47 ) AS col2
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6537
SELECT DISTINCT - CAST( - 71 AS SIGNED ) * NULLIF ( COUNT( * ), + ( ( 78 ) ) ) + ( - 51 ) * COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-6537
SELECT DISTINCT - CAST ( - 71 AS INTEGER ) * NULLIF ( COUNT ( * ), + ( ( 78 ) ) ) + ( - 51 ) * COUNT ( * )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6538
SELECT ALL + COUNT( ALL 39 )
----
1

skipif mysql # not compatible
query I rowsort label-6538
SELECT ALL + COUNT ( ALL 39 )
----
1

query I rowsort
SELECT DISTINCT + 96 AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6540
SELECT ALL ( - COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6540
SELECT ALL ( - COUNT ( * ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6541
SELECT DISTINCT COUNT( * ) * - - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-6541
SELECT DISTINCT COUNT ( * ) * - - COUNT ( * )
----
1

query I rowsort
SELECT - + 50 + + 80 AS col1
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-6543
SELECT + 42 DIV + - 12 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-6543
SELECT + 42 / + - 12 AS col2
----
-3

query I rowsort
SELECT ALL 16 * 74 AS col0
----
1184

onlyif mysql # aggregate syntax: 
query I rowsort label-6545
SELECT ALL - - COUNT( * ) + + 70 AS col1
----
71

skipif mysql # not compatible
query I rowsort label-6545
SELECT ALL - - COUNT ( * ) + + 70 AS col1
----
71

onlyif mysql # aggregate syntax: 
query II rowsort label-6546
SELECT COUNT( * ) AS col1, + 98 AS col0
----
1
98

skipif mysql # not compatible
query II rowsort label-6546
SELECT COUNT ( * ) AS col1, + 98 AS col0
----
1
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6547
SELECT ALL + COUNT( DISTINCT + - 28 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6547
SELECT ALL + COUNT ( DISTINCT + - 28 ) AS col2
----
1

query I rowsort
SELECT + ( 13 ) AS col0
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6549
SELECT CAST( + COUNT( * ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6549
SELECT CAST ( + COUNT ( * ) AS INTEGER ) AS col2
----
1

query I rowsort
SELECT ALL - ( - 74 )
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6551
SELECT ALL CAST( + + COUNT( * ) AS SIGNED ), - 41 AS col1
----
1
-41

skipif mysql # not compatible
query II rowsort label-6551
SELECT ALL CAST ( + + COUNT ( * ) AS INTEGER ), - 41 AS col1
----
1
-41

query I rowsort
SELECT + 15 col2
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6553
SELECT ALL + COUNT( * ) DIV + 86
----
0

skipif mysql # not compatible
query I rowsort label-6553
SELECT ALL + COUNT ( * ) / + 86
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6554
SELECT + COUNT( * ) DIV - 12 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6554
SELECT + COUNT ( * ) / - 12 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6555
SELECT ALL + 10 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6555
SELECT ALL + 10 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - ( - 25 ) AS col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6557
SELECT COUNT( * ) * 86
----
86

skipif mysql # not compatible
query I rowsort label-6557
SELECT COUNT ( * ) * 86
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-6558
SELECT - 50 AS col2, COUNT( ALL - 62 ) AS col1
----
-50
1

skipif mysql # not compatible
query II rowsort label-6558
SELECT - 50 AS col2, COUNT ( ALL - 62 ) AS col1
----
-50
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6559
SELECT ALL + ( + COUNT( + - 44 ) ) * + 32 * - - ( - COUNT( * ) ) * 92
----
-2944

skipif mysql # not compatible
query I rowsort label-6559
SELECT ALL + ( + COUNT ( + - 44 ) ) * + 32 * - - ( - COUNT ( * ) ) * 92
----
-2944

onlyif mysql # aggregate syntax: 
query I rowsort label-6560
SELECT MAX( ALL + 41 )
----
41

skipif mysql # not compatible
query I rowsort label-6560
SELECT MAX ( ALL + 41 )
----
41

query I rowsort
SELECT ALL + 15 AS col0
----
15

query I rowsort
SELECT + 52 * - 84 + - ( - 17 ) * + + 3 AS col1
----
-4317

onlyif mysql # aggregate syntax: 
query II rowsort label-6563
SELECT ALL COUNT( * ), - COUNT( * ) AS col0
----
1
-1

skipif mysql # not compatible
query II rowsort label-6563
SELECT ALL COUNT ( * ), - COUNT ( * ) AS col0
----
1
-1

query I rowsort
SELECT ALL + 48 - - + 20
----
68

query I rowsort
SELECT - ( 75 )
----
-75

query I rowsort
SELECT + 68 AS col2
----
68

query I rowsort
SELECT + 70 AS col0
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-6568
SELECT - 29 DIV - 48 col0
----
0

skipif mysql # not compatible
query I rowsort label-6568
SELECT - 29 / - 48 col0
----
0

query I rowsort
SELECT ( + 67 )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6570
SELECT + + 32 - - COUNT( * ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-6570
SELECT + + 32 - - COUNT ( * ) AS col0
----
33

query I rowsort
SELECT - + 19 AS col2
----
-19

query I rowsort
SELECT DISTINCT + 52
----
52

query I rowsort
SELECT + 43 * - + 20 col1
----
-860

query II rowsort
SELECT DISTINCT 41 AS col2, 94
----
41
94

query II rowsort
SELECT 0, + 91 AS col0
----
0
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6576
SELECT 70 + - COUNT( * )
----
69

skipif mysql # not compatible
query I rowsort label-6576
SELECT 70 + - COUNT ( * )
----
69

query I rowsort
SELECT + 9 * 48 AS col1
----
432

query I rowsort
SELECT 80 AS col1
----
80

query I rowsort
SELECT DISTINCT - ( + 86 )
----
-86

query I rowsort
SELECT ALL - - 56
----
56

query I rowsort
SELECT ALL 87
----
87

query I rowsort
SELECT - 89 AS col2
----
-89

query I rowsort
SELECT ALL 30 + - 35 AS col2
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-6584
SELECT ALL 75 DIV - - 18
----
4

skipif mysql # not compatible
query I rowsort label-6584
SELECT ALL 75 / - - 18
----
4

query I rowsort
SELECT + ( + + 86 )
----
86

query I rowsort
SELECT DISTINCT - 66 col1
----
-66

query I rowsort
SELECT DISTINCT - + 83 AS col2
----
-83

query I rowsort
SELECT DISTINCT - + 22 AS col1
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6589
SELECT DISTINCT + COUNT( * ) DIV COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6589
SELECT DISTINCT + COUNT ( * ) / COUNT ( * ) AS col1
----
1

query I rowsort
SELECT ALL - 25 + - 79 AS col2
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-6591
SELECT DISTINCT - 29 + + 19 * - COUNT( * )
----
-48

skipif mysql # not compatible
query I rowsort label-6591
SELECT DISTINCT - 29 + + 19 * - COUNT ( * )
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-6592
SELECT 11 AS col0, COUNT( * ) AS col0
----
11
1

skipif mysql # not compatible
query II rowsort label-6592
SELECT 11 AS col0, COUNT ( * ) AS col0
----
11
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6593
SELECT ALL + COUNT( * ) * 58 col1
----
58

skipif mysql # not compatible
query I rowsort label-6593
SELECT ALL + COUNT ( * ) * 58 col1
----
58

query I rowsort
SELECT + ( + 8 ) AS col2
----
8

query I rowsort
SELECT + 18 AS col2
----
18

query I rowsort
SELECT ALL + 99 AS col0
----
99

query I rowsort
SELECT 10 col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6598
SELECT DISTINCT ( + + COUNT( ALL + 80 ) )
----
1

skipif mysql # not compatible
query I rowsort label-6598
SELECT DISTINCT ( + + COUNT ( ALL + 80 ) )
----
1

query I rowsort
SELECT ALL - 6 AS col2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-6600
SELECT DISTINCT + SUM( DISTINCT - 1 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-6600
SELECT DISTINCT + SUM ( DISTINCT - 1 ) col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6601
SELECT DISTINCT - COUNT( * ) col1, + 60 * + - 30 - COUNT( * ) AS col2
----
-1
-1801

skipif mysql # not compatible
query II rowsort label-6601
SELECT DISTINCT - COUNT ( * ) col1, + 60 * + - 30 - COUNT ( * ) AS col2
----
-1
-1801

query I rowsort
SELECT - + 0 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6603
SELECT DISTINCT - CAST( - 8 AS SIGNED ) + 40 AS col0
----
48

skipif mysql # not compatible
query I rowsort label-6603
SELECT DISTINCT - CAST ( - 8 AS INTEGER ) + 40 AS col0
----
48

query I rowsort
SELECT DISTINCT - 41 AS col2
----
-41

query I rowsort
SELECT ALL - + 33
----
-33

query I rowsort
SELECT + + 26
----
26

query I rowsort
SELECT DISTINCT - 90 AS col2
----
-90

query I rowsort
SELECT ALL - 79
----
-79

query I rowsort
SELECT - 14 col0
----
-14

query I rowsort
SELECT 14 * - 30
----
-420

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6611
SELECT ALL - MIN( ALL CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6611
SELECT ALL - MIN ( ALL CAST ( NULL AS INTEGER ) ) col0
----
NULL

query I rowsort
SELECT - 29 col1
----
-29

query I rowsort
SELECT ALL 48 col2
----
48

query I rowsort
SELECT ALL + 38 col2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-6615
SELECT + MIN( 19 ) - - COUNT( * ) col1
----
20

skipif mysql # not compatible
query I rowsort label-6615
SELECT + MIN ( 19 ) - - COUNT ( * ) col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6616
SELECT - - 57 * MIN( ALL - + 47 ) AS col0
----
-2679

skipif mysql # not compatible
query I rowsort label-6616
SELECT - - 57 * MIN ( ALL - + 47 ) AS col0
----
-2679

query I rowsort
SELECT ( - 37 ) AS col1
----
-37

query I rowsort
SELECT + + 25 + + 98 AS col0
----
123

query I rowsort
SELECT ALL - 22
----
-22

query I rowsort
SELECT ALL + 53 col0
----
53

query I rowsort
SELECT ALL 30 * - + 31 AS col0
----
-930

query I rowsort
SELECT + - 78
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-6623
SELECT + COUNT( * ) - - + SUM( 77 ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-6623
SELECT + COUNT ( * ) - - + SUM ( 77 ) AS col0
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6624
SELECT ALL - - CAST( NULL AS SIGNED ) / + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-6624
SELECT ALL - - CAST ( NULL AS INTEGER ) / + 86
----
NULL

query II rowsort
SELECT 95, 18 col2
----
95
18

onlyif mysql # aggregate syntax: 
query I rowsort label-6626
SELECT 13 * COUNT( * ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-6626
SELECT 13 * COUNT ( * ) AS col2
----
13

query I rowsort
SELECT - + 18 col2
----
-18

query I rowsort
SELECT ALL 0 AS col2
----
0

query I rowsort
SELECT ALL + 53 + - 72 AS col1
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-6630
SELECT COUNT( * ) + + COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-6630
SELECT COUNT ( * ) + + COUNT ( * ) AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6631
SELECT ALL - 42 * 42 + + - NULLIF ( 29, - + COUNT( * ) ) + - 26 col1
----
-1819

skipif mysql # not compatible
query I rowsort label-6631
SELECT ALL - 42 * 42 + + - NULLIF ( 29, - + COUNT ( * ) ) + - 26 col1
----
-1819

query I rowsort
SELECT + ( - 40 ) AS col0
----
-40

query I rowsort
SELECT ALL + 18 AS col1
----
18

query I rowsort
SELECT - + 41
----
-41

query I rowsort
SELECT DISTINCT ( - 41 )
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6636
SELECT - 35 DIV COUNT( * )
----
-35

skipif mysql # not compatible
query I rowsort label-6636
SELECT - 35 / COUNT ( * )
----
-35

query II rowsort
SELECT - 8, 44 AS col0
----
-8
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6638
SELECT ALL + CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) * - 7 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6638
SELECT ALL + CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) * - 7 AS col2
----
NULL

query I rowsort
SELECT - 99 + 79 AS col0
----
-20

query I rowsort
SELECT ( + 5 )
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6641
SELECT 60 * - 65 + + MIN( DISTINCT - + CAST( + - 44 AS SIGNED ) )
----
-3856

skipif mysql # not compatible
query I rowsort label-6641
SELECT 60 * - 65 + + MIN ( DISTINCT - + CAST ( + - 44 AS INTEGER ) )
----
-3856

onlyif mysql # aggregate syntax: 
query I rowsort label-6642
SELECT - - COUNT( * ) * - 58 - 0
----
-58

skipif mysql # not compatible
query I rowsort label-6642
SELECT - - COUNT ( * ) * - 58 - 0
----
-58

query I rowsort
SELECT ALL + + 88
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-6644
SELECT - SUM( DISTINCT + 37 )
----
-37

skipif mysql # not compatible
query I rowsort label-6644
SELECT - SUM ( DISTINCT + 37 )
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-6645
SELECT MAX( DISTINCT 57 ) col0
----
57

skipif mysql # not compatible
query I rowsort label-6645
SELECT MAX ( DISTINCT 57 ) col0
----
57

query I rowsort
SELECT DISTINCT 92
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6647
SELECT - 94 * COUNT( * ), CAST( - COUNT( * ) AS SIGNED ) * - 71 + - 71 + - + COUNT( * ) col2
----
-94
-1

skipif mysql # not compatible
query II rowsort label-6647
SELECT - 94 * COUNT ( * ), CAST ( - COUNT ( * ) AS INTEGER ) * - 71 + - 71 + - + COUNT ( * ) col2
----
-94
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6648
SELECT ALL - ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6648
SELECT ALL - ( CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT - - 55
----
55

query I rowsort
SELECT + 22 AS col1
----
22

query I rowsort
SELECT DISTINCT - - 38 + + 15
----
53

query I rowsort
SELECT DISTINCT - 29
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-6653
SELECT ALL - + COUNT( * ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-6653
SELECT ALL - + COUNT ( * ) col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6654
SELECT DISTINCT COUNT( * ) * + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6654
SELECT DISTINCT COUNT ( * ) * + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6655
SELECT + 67 - COUNT( * ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-6655
SELECT + 67 - COUNT ( * ) AS col0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6656
SELECT DISTINCT - + CAST( 53 AS SIGNED )
----
-53

skipif mysql # not compatible
query I rowsort label-6656
SELECT DISTINCT - + CAST ( 53 AS INTEGER )
----
-53

query I rowsort
SELECT ALL + + 56 + + + 38
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6658
SELECT DISTINCT 1 DIV + SUM( - COALESCE ( + ( - 94 ), + 95 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6658
SELECT DISTINCT 1 / + SUM ( - COALESCE ( + ( - 94 ), + 95 ) ) AS col1
----
0

query I rowsort
SELECT + ( 66 ) + - + 33 AS col2
----
33

query I rowsort
SELECT - - ( - 51 )
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6661
SELECT - CAST( 15 AS SIGNED ), + 84 AS col0
----
-15
84

skipif mysql # not compatible
query II rowsort label-6661
SELECT - CAST ( 15 AS INTEGER ), + 84 AS col0
----
-15
84

onlyif mysql # DIV for integer division: 
query I rowsort label-6662
SELECT - 52 DIV - 85
----
0

skipif mysql # not compatible
query I rowsort label-6662
SELECT - 52 / - 85
----
0

query I rowsort
SELECT - 25 AS col2
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6664
SELECT ALL CAST( - 27 AS SIGNED ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-6664
SELECT ALL CAST ( - 27 AS INTEGER ) AS col2
----
-27

query I rowsort
SELECT DISTINCT - ( 80 )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-6666
SELECT ALL - + COUNT( * ) * + 87
----
-87

skipif mysql # not compatible
query I rowsort label-6666
SELECT ALL - + COUNT ( * ) * + 87
----
-87

query I rowsort
SELECT + + 48 AS col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-6668
SELECT DISTINCT + + ( + COUNT( * ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-6668
SELECT DISTINCT + + ( + COUNT ( * ) ) col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6669
SELECT ALL + COUNT( * ) * CAST( 40 AS SIGNED ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-6669
SELECT ALL + COUNT ( * ) * CAST ( 40 AS INTEGER ) AS col0
----
40

query I rowsort
SELECT 43 * - ( - + ( 26 ) ) AS col0
----
1118

query I rowsort
SELECT ALL - 88 AS col0
----
-88

query I rowsort
SELECT 33 + - 17
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-6673
SELECT DISTINCT COUNT( * ) * + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-6673
SELECT DISTINCT COUNT ( * ) * + - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6674
SELECT ALL COUNT( * ) * 65
----
65

skipif mysql # not compatible
query I rowsort label-6674
SELECT ALL COUNT ( * ) * 65
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6675
SELECT 58 + - CAST( + - COUNT( * ) AS SIGNED ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6675
SELECT 58 + - CAST ( + - COUNT ( * ) AS INTEGER ) + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - - 1 AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6677
SELECT ALL - ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6677
SELECT ALL - ( - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL 16 AS col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-6679
SELECT 36 - + COUNT( * ) col2
----
35

skipif mysql # not compatible
query I rowsort label-6679
SELECT 36 - + COUNT ( * ) col2
----
35

query I rowsort
SELECT + 47 AS col2
----
47

query I rowsort
SELECT + 58 col0
----
58

query I rowsort
SELECT 84 col1
----
84

query I rowsort
SELECT 70 AS col1
----
70

query I rowsort
SELECT 62 + + 7 AS col0
----
69

query I rowsort
SELECT + + 77
----
77

query I rowsort
SELECT ALL + 97 col1
----
97

query I rowsort
SELECT - 12 + - 27
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6688
SELECT + 92 DIV - + COUNT( * )
----
-92

skipif mysql # not compatible
query I rowsort label-6688
SELECT + 92 / - + COUNT ( * )
----
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6689
SELECT ALL - COUNT( * ) DIV - 45
----
0

skipif mysql # not compatible
query I rowsort label-6689
SELECT ALL - COUNT ( * ) / - 45
----
0

query I rowsort
SELECT ALL 17 AS col0
----
17

query I rowsort
SELECT ALL 61 AS col2
----
61

query I rowsort
SELECT ALL + 12 AS col0
----
12

query I rowsort
SELECT DISTINCT + 87
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6694
SELECT CAST( + - COUNT( * ) AS SIGNED ), + 72 AS col1
----
-1
72

skipif mysql # not compatible
query II rowsort label-6694
SELECT CAST ( + - COUNT ( * ) AS INTEGER ), + 72 AS col1
----
-1
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6695
SELECT ALL COUNT( ALL + 1 ) DIV - + COUNT( * ) + + 12 col0
----
11

skipif mysql # not compatible
query I rowsort label-6695
SELECT ALL COUNT ( ALL + 1 ) / - + COUNT ( * ) + + 12 col0
----
11

query I rowsort
SELECT + 66 AS col1
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6697
SELECT DISTINCT - 62 DIV - COUNT( * ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-6697
SELECT DISTINCT - 62 / - COUNT ( * ) AS col0
----
62

query I rowsort
SELECT - - 81 - + 4 AS col0
----
77

query I rowsort
SELECT + - 53
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-6700
SELECT DISTINCT - SUM( ALL 99 ) AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-6700
SELECT DISTINCT - SUM ( ALL 99 ) AS col0
----
-99

query I rowsort
SELECT ALL 2 + 33 * 64
----
2114

onlyif mysql # aggregate syntax: 
query I rowsort label-6702
SELECT DISTINCT + MIN( ALL 26 )
----
26

skipif mysql # not compatible
query I rowsort label-6702
SELECT DISTINCT + MIN ( ALL 26 )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-6703
SELECT DISTINCT 53 + + COUNT( * ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-6703
SELECT DISTINCT 53 + + COUNT ( * ) AS col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6704
SELECT 71 + + COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-6704
SELECT 71 + + COUNT ( * )
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6705
SELECT CAST( - SUM( 56 ) AS SIGNED ) + - - 3
----
-53

skipif mysql # not compatible
query I rowsort label-6705
SELECT CAST ( - SUM ( 56 ) AS INTEGER ) + - - 3
----
-53

query I rowsort
SELECT ALL - 70 AS col0
----
-70

query I rowsort
SELECT + ( ( + - 98 ) ) * + - 91 col2
----
8918

query I rowsort
SELECT ALL 97 col1
----
97

query I rowsort
SELECT 87 * - - 74 col0
----
6438

onlyif mysql # aggregate syntax: 
query II rowsort label-6710
SELECT DISTINCT COUNT( * ), 47 + + 72 col1
----
1
119

skipif mysql # not compatible
query II rowsort label-6710
SELECT DISTINCT COUNT ( * ), 47 + + 72 col1
----
1
119

onlyif mysql # aggregate syntax: 
query I rowsort label-6711
SELECT ALL MAX( 15 )
----
15

skipif mysql # not compatible
query I rowsort label-6711
SELECT ALL MAX ( 15 )
----
15

query I rowsort
SELECT ALL 35 * + 49 AS col1
----
1715

query II rowsort
SELECT + 99 AS col2, 32
----
99
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6714
SELECT ALL + 61 * - COUNT( * )
----
-61

skipif mysql # not compatible
query I rowsort label-6714
SELECT ALL + 61 * - COUNT ( * )
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6715
SELECT + CAST( + 77 AS SIGNED ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-6715
SELECT + CAST ( + 77 AS INTEGER ) AS col1
----
77

query I rowsort
SELECT + + 8 AS col2
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-6717
SELECT - + COUNT( * ) AS col2, 54 AS col0
----
-1
54

skipif mysql # not compatible
query II rowsort label-6717
SELECT - + COUNT ( * ) AS col2, 54 AS col0
----
-1
54

query I rowsort
SELECT - ( - + 81 )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6719
SELECT MAX( DISTINCT + 20 ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-6719
SELECT MAX ( DISTINCT + 20 ) AS col1
----
20

query I rowsort
SELECT - + 25 AS col2
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6721
SELECT + CAST( NULL AS SIGNED ) + - + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6721
SELECT + CAST ( NULL AS INTEGER ) + - + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT ALL + 62 + + 73 * + - ( - - ( - 28 ) ) AS col1
----
2106

query I rowsort
SELECT DISTINCT - 73 * + 41 AS col0
----
-2993

onlyif mysql # aggregate syntax: 
query I rowsort label-6724
SELECT 80 * COUNT( * )
----
80

skipif mysql # not compatible
query I rowsort label-6724
SELECT 80 * COUNT ( * )
----
80

query II rowsort
SELECT - 18, + 96 * ( - 39 ) AS col0
----
-18
-3744

query I rowsort
SELECT ( - 26 )
----
-26

query I rowsort
SELECT ALL - - ( 33 )
----
33

query I rowsort
SELECT + - 31 AS col1
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6729
SELECT + CAST( NULL AS SIGNED ) + 7 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6729
SELECT + CAST ( NULL AS INTEGER ) + 7 AS col1
----
NULL

query I rowsort
SELECT + 79 AS col2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-6731
SELECT ALL + MAX( - + 73 ) + + MIN( - 90 )
----
-163

skipif mysql # not compatible
query I rowsort label-6731
SELECT ALL + MAX ( - + 73 ) + + MIN ( - 90 )
----
-163

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6732
SELECT ALL COUNT( * ) DIV - 20
----
0

skipif mysql # not compatible
query I rowsort label-6732
SELECT ALL COUNT ( * ) / - 20
----
0

query I rowsort
SELECT ALL - 77
----
-77

query I rowsort
SELECT ALL + - 65
----
-65

query I rowsort
SELECT + 45 col1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6736
SELECT + ( - NULLIF ( - COUNT( * ), - COUNT( * ) * 87 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6736
SELECT + ( - NULLIF ( - COUNT ( * ), - COUNT ( * ) * 87 ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6737
SELECT COUNT( * ) AS col0, - 69
----
1
-69

skipif mysql # not compatible
query II rowsort label-6737
SELECT COUNT ( * ) AS col0, - 69
----
1
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-6738
SELECT ALL COALESCE ( 55, + COUNT( * ) )
----
55

skipif mysql # not compatible
query I rowsort label-6738
SELECT ALL COALESCE ( 55, + COUNT ( * ) )
----
55

query I rowsort
SELECT - 21 + - - 22 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6740
SELECT ALL + 68 * + COUNT( * )
----
68

skipif mysql # not compatible
query I rowsort label-6740
SELECT ALL + 68 * + COUNT ( * )
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-6741
SELECT DISTINCT + 35 DIV + + 6
----
5

skipif mysql # not compatible
query I rowsort label-6741
SELECT DISTINCT + 35 / + + 6
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6742
SELECT - ( - SUM( 46 ) )
----
46

skipif mysql # not compatible
query I rowsort label-6742
SELECT - ( - SUM ( 46 ) )
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6743
SELECT CAST( - - 77 AS SIGNED ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-6743
SELECT CAST ( - - 77 AS INTEGER ) AS col2
----
77

query I rowsort
SELECT DISTINCT - 82
----
-82

query I rowsort
SELECT DISTINCT 52 - + - 36 AS col1
----
88

query I rowsort
SELECT DISTINCT COALESCE ( - 15, + 27 )
----
-15

query I rowsort
SELECT ALL 10 + - 54 AS col0
----
-44

query I rowsort
SELECT - 57 col2
----
-57

query II rowsort
SELECT 37 col1, + 54
----
37
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6750
SELECT COUNT( * ) + - + 97 AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-6750
SELECT COUNT ( * ) + - + 97 AS col1
----
-96

query I rowsort
SELECT DISTINCT 39 * + 56 AS col1
----
2184

query I rowsort
SELECT DISTINCT + 47
----
47

query I rowsort
SELECT ALL - ( 42 )
----
-42

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6754
SELECT ( CAST( NULL AS SIGNED ) ) + + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6754
SELECT ( CAST ( NULL AS INTEGER ) ) + + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6755
SELECT DISTINCT + ( - ( - COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-6755
SELECT DISTINCT + ( - ( - COUNT ( * ) ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6756
SELECT ALL 58 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6756
SELECT ALL 58 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 34 * + 19
----
646

query I rowsort
SELECT - + 90
----
-90

query II rowsort
SELECT + 86, ( 75 ) AS col2
----
86
75

query I rowsort
SELECT + 28 - - 27
----
55

query I rowsort
SELECT ALL 18
----
18

query I rowsort
SELECT ALL + 88 AS col1
----
88

query I rowsort
SELECT ( - + 63 ) AS col0
----
-63

query I rowsort
SELECT ( - 93 ) AS col1
----
-93

query I rowsort
SELECT ( - 79 )
----
-79

query I rowsort
SELECT - 69 AS col2
----
-69

query I rowsort
SELECT ALL + + 40 col0
----
40

query I rowsort
SELECT ALL 3 AS col0
----
3

query I rowsort
SELECT ALL + ( + 15 ) AS col2
----
15

query I rowsort
SELECT ALL 10 AS col0
----
10

onlyif mysql # aggregate syntax: 
query III rowsort label-6771
SELECT ALL 32 * + COUNT( * ) AS col2, 69, 66 - COUNT( 9 ) AS col2
----
32
69
65

skipif mysql # not compatible
query III rowsort label-6771
SELECT ALL 32 * + COUNT ( * ) AS col2, 69, 66 - COUNT ( 9 ) AS col2
----
32
69
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6772
SELECT ALL CAST( NULL AS SIGNED ) / + 13 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6772
SELECT ALL CAST ( NULL AS INTEGER ) / + 13 AS col2
----
NULL

query I rowsort
SELECT - - 52
----
52

query I rowsort
SELECT ALL 17 AS col2
----
17

query I rowsort
SELECT 14 - - 83 AS col0
----
97

query I rowsort
SELECT - 25 col2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6777
SELECT DISTINCT 28 * - COUNT( * ) col0
----
-28

skipif mysql # not compatible
query I rowsort label-6777
SELECT DISTINCT 28 * - COUNT ( * ) col0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-6778
SELECT ALL - 35 * COUNT( * ) * COUNT( * )
----
-35

skipif mysql # not compatible
query I rowsort label-6778
SELECT ALL - 35 * COUNT ( * ) * COUNT ( * )
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-6779
SELECT + 16 DIV 65 + + - 13
----
-13

skipif mysql # not compatible
query I rowsort label-6779
SELECT + 16 / 65 + + - 13
----
-13

query I rowsort
SELECT 2 AS col0
----
2

query I rowsort
SELECT ALL + - 25
----
-25

query I rowsort
SELECT ALL - 80
----
-80

query I rowsort
SELECT - 71 * ( 21 ) AS col2
----
-1491

onlyif mysql # aggregate syntax: 
query I rowsort label-6784
SELECT - 6 + - COUNT( * ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-6784
SELECT - 6 + - COUNT ( * ) AS col0
----
-7

query I rowsort
SELECT DISTINCT ( + - ( 19 ) ) AS col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-6786
SELECT ALL - SUM( DISTINCT + 74 ) + - 73 * - 41 AS col0
----
2919

skipif mysql # not compatible
query I rowsort label-6786
SELECT ALL - SUM ( DISTINCT + 74 ) + - 73 * - 41 AS col0
----
2919

onlyif mysql # aggregate syntax: 
query I rowsort label-6787
SELECT DISTINCT NULLIF ( + 46, + + COUNT( * ) )
----
46

skipif mysql # not compatible
query I rowsort label-6787
SELECT DISTINCT NULLIF ( + 46, + + COUNT ( * ) )
----
46

query I rowsort
SELECT DISTINCT + 69 AS col2
----
69

query I rowsort
SELECT ALL + 25 AS col1
----
25

query I rowsort
SELECT + 72 * - 25 AS col0
----
-1800

onlyif mysql # aggregate syntax: 
query I rowsort label-6791
SELECT + COUNT( * ) + + COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-6791
SELECT + COUNT ( * ) + + COUNT ( * ) AS col1
----
2

query I rowsort
SELECT ALL - 85 * - 10 + - 27 AS col2
----
823

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6793
SELECT - CAST( + 24 AS SIGNED ) col0
----
-24

skipif mysql # not compatible
query I rowsort label-6793
SELECT - CAST ( + 24 AS INTEGER ) col0
----
-24

query II rowsort
SELECT DISTINCT 73 AS col0, + 0
----
73
0

query II rowsort
SELECT ALL 93 AS col1, + 67 col0
----
93
67

query I rowsort
SELECT ALL - 33 * + 81
----
-2673

query I rowsort
SELECT + + 56 AS col0
----
56

query I rowsort
SELECT ALL - + 24 AS col1
----
-24

query I rowsort
SELECT ALL + 34 * - 8 AS col1
----
-272

query I rowsort
SELECT 61 + + ( + 64 ) AS col2
----
125

query I rowsort
SELECT ALL + 13 * + + 37
----
481

query I rowsort
SELECT 59 - + 85 AS col2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-6803
SELECT + 48 * - - 94 + ( + COUNT( * ) ) AS col0
----
4513

skipif mysql # not compatible
query I rowsort label-6803
SELECT + 48 * - - 94 + ( + COUNT ( * ) ) AS col0
----
4513

query I rowsort
SELECT - 82 AS col2
----
-82

query I rowsort
SELECT ALL 36 AS col2
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6806
SELECT ALL CAST( NULL AS SIGNED ) + + 25 * COUNT( 18 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6806
SELECT ALL CAST ( NULL AS INTEGER ) + + 25 * COUNT ( 18 )
----
NULL

query I rowsort
SELECT DISTINCT - + 55
----
-55

query I rowsort
SELECT ALL + 60 * - 36 AS col0
----
-2160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6809
SELECT DISTINCT + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6809
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6810
SELECT + - COUNT( * ) + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6810
SELECT + - COUNT ( * ) + - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + + 36
----
36

query I rowsort
SELECT ALL + 33 AS col1
----
33

query I rowsort
SELECT DISTINCT 35 AS col0
----
35

query I rowsort
SELECT ALL + ( - 57 ) * + 10
----
-570

query I rowsort
SELECT ALL + ( - 5 )
----
-5

query I rowsort
SELECT DISTINCT + + 60
----
60

query I rowsort
SELECT ALL + 94 col1
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6818
SELECT CAST( - 97 AS SIGNED ) AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-6818
SELECT CAST ( - 97 AS INTEGER ) AS col1
----
-97

query I rowsort
SELECT ( + - 50 ) col0
----
-50

query I rowsort
SELECT - 20 col0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-6821
SELECT ALL + SUM( DISTINCT - 48 ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-6821
SELECT ALL + SUM ( DISTINCT - 48 ) AS col2
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6822
SELECT - 14 + - - ( NULLIF ( ( 91 ), CAST( COUNT( * ) AS SIGNED ) ) )
----
77

skipif mysql # not compatible
query I rowsort label-6822
SELECT - 14 + - - ( NULLIF ( ( 91 ), CAST ( COUNT ( * ) AS INTEGER ) ) )
----
77

query I rowsort
SELECT 22 * + ( - 81 )
----
-1782

query I rowsort
SELECT DISTINCT - - ( - 47 ) col1
----
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-6825
SELECT DISTINCT - ( - + COUNT( * ) ) AS col0, 87 + + MAX( DISTINCT - 18 )
----
1
69

skipif mysql # not compatible
query II rowsort label-6825
SELECT DISTINCT - ( - + COUNT ( * ) ) AS col0, 87 + + MAX ( DISTINCT - 18 )
----
1
69

query I rowsort
SELECT 69 col0
----
69

query I rowsort
SELECT + 28 AS col0
----
28

query I rowsort
SELECT 66 AS col0
----
66

query II rowsort
SELECT - - 19, - 4 AS col2
----
19
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6830
SELECT ALL NULLIF ( - CAST( NULL AS SIGNED ), - 85 * COUNT( * ) * + 57 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6830
SELECT ALL NULLIF ( - CAST ( NULL AS INTEGER ), - 85 * COUNT ( * ) * + 57 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6831
SELECT + COUNT( * ) DIV + COUNT( * ) + - 64 * + COUNT( 95 ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-6831
SELECT + COUNT ( * ) / + COUNT ( * ) + - 64 * + COUNT ( 95 ) AS col0
----
-63

query I rowsort
SELECT NULLIF ( 62, + 73 ) AS col2
----
62

query I rowsort
SELECT ALL + - 19 col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-6834
SELECT ALL + COUNT( * ) + + ( COUNT( * ) )
----
2

skipif mysql # not compatible
query I rowsort label-6834
SELECT ALL + COUNT ( * ) + + ( COUNT ( * ) )
----
2

query I rowsort
SELECT ALL + 48 AS col0
----
48

query I rowsort
SELECT ( - - 29 ) AS col2
----
29

query I rowsort
SELECT + 57
----
57

query II rowsort
SELECT DISTINCT + + 52, 23 col1
----
52
23

query I rowsort
SELECT + - ( + - 29 ) AS col2
----
29

query II rowsort
SELECT 27, + 24 AS col0
----
27
24

query I rowsort
SELECT - + 74
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-6842
SELECT + - 96 * - + MAX( DISTINCT + 71 )
----
6816

skipif mysql # not compatible
query I rowsort label-6842
SELECT + - 96 * - + MAX ( DISTINCT + 71 )
----
6816

query I rowsort
SELECT DISTINCT - 70
----
-70

query I rowsort
SELECT DISTINCT - 45 AS col0
----
-45

query I rowsort
SELECT DISTINCT - 60 col0
----
-60

query I rowsort
SELECT ALL - 63 col0
----
-63

query I rowsort
SELECT DISTINCT - 15 col2
----
-15

query I rowsort
SELECT ALL - 61 AS col1
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6849
SELECT DISTINCT + + CAST( + + 96 AS SIGNED ) + + COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-6849
SELECT DISTINCT + + CAST ( + + 96 AS INTEGER ) + + COUNT ( * )
----
97

query I rowsort
SELECT + 1 AS col2
----
1

query I rowsort
SELECT DISTINCT 91 AS col1
----
91

query I rowsort
SELECT 12 - ( - + 80 ) AS col2
----
92

query I rowsort
SELECT - 8 AS col0
----
-8

query I rowsort
SELECT - 36 AS col1
----
-36

query I rowsort
SELECT DISTINCT 71
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-6856
SELECT ALL 69 * - COUNT( * )
----
-69

skipif mysql # not compatible
query I rowsort label-6856
SELECT ALL 69 * - COUNT ( * )
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6857
SELECT DISTINCT - COUNT( * ) DIV + 92
----
0

skipif mysql # not compatible
query I rowsort label-6857
SELECT DISTINCT - COUNT ( * ) / + 92
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6858
SELECT 12 DIV + + 28 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6858
SELECT 12 / + + 28 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6859
SELECT MIN( - 4 ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-6859
SELECT MIN ( - 4 ) AS col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-6860
SELECT 37 * + COUNT( * )
----
37

skipif mysql # not compatible
query I rowsort label-6860
SELECT 37 * + COUNT ( * )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-6861
SELECT + MIN( DISTINCT 88 )
----
88

skipif mysql # not compatible
query I rowsort label-6861
SELECT + MIN ( DISTINCT 88 )
----
88

query I rowsort
SELECT DISTINCT 25 + - 36
----
-11

query I rowsort
SELECT 92 col1
----
92

query I rowsort
SELECT ALL ( 15 )
----
15

query I rowsort
SELECT + + 70 AS col2
----
70

query I rowsort
SELECT + 42 * 6 AS col1
----
252

onlyif mysql # aggregate syntax: 
query I rowsort label-6867
SELECT COUNT( - 50 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-6867
SELECT COUNT ( - 50 ) col1
----
1

query I rowsort
SELECT ALL + + 61 AS col1
----
61

query I rowsort
SELECT + - 52
----
-52

query I rowsort
SELECT 31 * + 91 - 36 * 69 col2
----
337

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6871
SELECT + 5 + MIN( CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6871
SELECT + 5 + MIN ( CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT ALL ( 13 ) col1
----
13

query I rowsort
SELECT DISTINCT + 89 AS col0
----
89

query I rowsort
SELECT + 20 AS col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6875
SELECT + COUNT( * ) + - 78 col2
----
-77

skipif mysql # not compatible
query I rowsort label-6875
SELECT + COUNT ( * ) + - 78 col2
----
-77

query I rowsort
SELECT + 33 + - - 95 AS col1
----
128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6877
SELECT DISTINCT - + CAST( + ( - 18 ) AS SIGNED ) AS col1
----
18

skipif mysql # not compatible
query I rowsort label-6877
SELECT DISTINCT - + CAST ( + ( - 18 ) AS INTEGER ) AS col1
----
18

query I rowsort
SELECT DISTINCT - + 35
----
-35

query I rowsort
SELECT DISTINCT 10 + - 3 col0
----
7

query I rowsort
SELECT ALL ( - 33 ) * + - 34
----
1122

onlyif mysql # aggregate syntax: 
query I rowsort label-6881
SELECT COUNT( * ) * + 87
----
87

skipif mysql # not compatible
query I rowsort label-6881
SELECT COUNT ( * ) * + 87
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-6882
SELECT + ( CASE - + 68 WHEN SUM( 60 ) THEN COUNT( * ) ELSE - COUNT( * ) END ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6882
SELECT + ( CASE - + 68 WHEN SUM ( 60 ) THEN COUNT ( * ) ELSE - COUNT ( * ) END ) AS col0
----
-1

query I rowsort
SELECT DISTINCT - 84 AS col1
----
-84

query I rowsort
SELECT DISTINCT - 32
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-6885
SELECT - 34 * - COUNT( * ) - + - COUNT( * )
----
35

skipif mysql # not compatible
query I rowsort label-6885
SELECT - 34 * - COUNT ( * ) - + - COUNT ( * )
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6886
SELECT - MIN( - CAST( 35 AS SIGNED ) ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-6886
SELECT - MIN ( - CAST ( 35 AS INTEGER ) ) AS col2
----
35

query I rowsort
SELECT 37 AS col1
----
37

query I rowsort
SELECT - 96
----
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6889
SELECT + 79 * + 93 * + COUNT( * ) DIV + COUNT( * ) AS col2
----
7347

skipif mysql # not compatible
query I rowsort label-6889
SELECT + 79 * + 93 * + COUNT ( * ) / + COUNT ( * ) AS col2
----
7347

onlyif mysql # aggregate syntax: 
query I rowsort label-6890
SELECT - ( - COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-6890
SELECT - ( - COUNT ( * ) )
----
1

query I rowsort
SELECT ALL + + 99 col1
----
99

query I rowsort
SELECT DISTINCT + 68 AS col2
----
68

query I rowsort
SELECT + 52 * + 77
----
4004

query I rowsort
SELECT ALL + 47 AS col1
----
47

query I rowsort
SELECT ALL + 92 AS col0
----
92

query I rowsort
SELECT ALL + ( - + 95 )
----
-95

query I rowsort
SELECT - 28 + 95 AS col1
----
67

query I rowsort
SELECT ALL + 82
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6899
SELECT ALL + ( + ( COUNT( * ) ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6899
SELECT ALL + ( + ( COUNT ( * ) ) ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6900
SELECT DISTINCT - ( - 29 ) * + COUNT( * ) DIV + 55 + - + COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6900
SELECT DISTINCT - ( - 29 ) * + COUNT ( * ) / + 55 + - + COUNT ( * ) AS col1
----
-1

query I rowsort
SELECT DISTINCT - 46 * - 11
----
506

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6902
SELECT + CAST( NULL AS SIGNED ) / - ( - ( + + 4 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6902
SELECT + CAST ( NULL AS INTEGER ) / - ( - ( + + 4 ) ) AS col2
----
NULL

query I rowsort
SELECT - + 39
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-6904
SELECT + + COUNT( * ) + - 55
----
-54

skipif mysql # not compatible
query I rowsort label-6904
SELECT + + COUNT ( * ) + - 55
----
-54

query I rowsort
SELECT - ( + + 11 )
----
-11

query I rowsort
SELECT DISTINCT ( + 43 )
----
43

query I rowsort
SELECT - 84 AS col1
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-6908
SELECT - - 13 * 21 * - COUNT( * ) AS col0
----
-273

skipif mysql # not compatible
query I rowsort label-6908
SELECT - - 13 * 21 * - COUNT ( * ) AS col0
----
-273

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6909
SELECT ALL + + 12 DIV COUNT( * ) + + - ( + 81 ) + + 60
----
-9

skipif mysql # not compatible
query I rowsort label-6909
SELECT ALL + + 12 / COUNT ( * ) + + - ( + 81 ) + + 60
----
-9

query I rowsort
SELECT ALL + 17 AS col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6911
SELECT ( + + 45 ) + COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-6911
SELECT ( + + 45 ) + COUNT ( * )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6912
SELECT COUNT( * ) + + 76 AS col0
----
77

skipif mysql # not compatible
query I rowsort label-6912
SELECT COUNT ( * ) + + 76 AS col0
----
77

query I rowsort
SELECT ALL - 72 AS col2
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6914
SELECT COUNT( * ) DIV + CAST( ( - - 7 ) AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6914
SELECT COUNT ( * ) / + CAST ( ( - - 7 ) AS INTEGER ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6915
SELECT DISTINCT COUNT( * ) + + - 66 * 76
----
-5015

skipif mysql # not compatible
query I rowsort label-6915
SELECT DISTINCT COUNT ( * ) + + - 66 * 76
----
-5015

query I rowsort
SELECT + 30 AS col2
----
30

query I rowsort
SELECT - ( - + 80 )
----
80

query I rowsort
SELECT COALESCE ( - 25, - + 24 )
----
-25

query I rowsort
SELECT ALL - ( 34 )
----
-34

query I rowsort
SELECT + 80 AS col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6921
SELECT ALL + ( + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-6921
SELECT ALL + ( + COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6922
SELECT MIN( ALL - 17 )
----
-17

skipif mysql # not compatible
query I rowsort label-6922
SELECT MIN ( ALL - 17 )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-6923
SELECT ALL + NULLIF ( - 70, - COUNT( * ) ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-6923
SELECT ALL + NULLIF ( - 70, - COUNT ( * ) ) AS col2
----
-70

query I rowsort
SELECT - 29 - 48
----
-77

query I rowsort
SELECT - + 73 AS col0
----
-73

query I rowsort
SELECT ALL 13 AS col2
----
13

query I rowsort
SELECT ALL + 11 AS col2
----
11

query I rowsort
SELECT ( + + 3 )
----
3

query I rowsort
SELECT DISTINCT + + ( 47 ) AS col0
----
47

query I rowsort
SELECT DISTINCT - 92 col1
----
-92

query I rowsort
SELECT + 70 * + 67 AS col1
----
4690

onlyif mysql # aggregate syntax: 
query I rowsort label-6932
SELECT + ( 67 ) * - 92 + + COUNT( * ) AS col0
----
-6163

skipif mysql # not compatible
query I rowsort label-6932
SELECT + ( 67 ) * - 92 + + COUNT ( * ) AS col0
----
-6163

query I rowsort
SELECT ALL - + 54 AS col1
----
-54

query I rowsort
SELECT + 14 * 85
----
1190

onlyif mysql # aggregate syntax: 
query I rowsort label-6935
SELECT DISTINCT 9 + + COUNT( * ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-6935
SELECT DISTINCT 9 + + COUNT ( * ) AS col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6936
SELECT 72 + - + COUNT( * ) + - 51 * - + 32 * - COUNT( * ) AS col2
----
-1561

skipif mysql # not compatible
query I rowsort label-6936
SELECT 72 + - + COUNT ( * ) + - 51 * - + 32 * - COUNT ( * ) AS col2
----
-1561

query II rowsort
SELECT DISTINCT - + 61, 42 AS col2
----
-61
42

query I rowsort
SELECT ALL - + 1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6939
SELECT COUNT( * ) * + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6939
SELECT COUNT ( * ) * + COUNT ( * ) AS col0
----
1

query I rowsort
SELECT - 9 AS col2
----
-9

query I rowsort
SELECT 40 col0
----
40

query I rowsort
SELECT - 97 col0
----
-97

query I rowsort
SELECT + 51 AS col0
----
51

query I rowsort
SELECT ALL + - ( - 46 )
----
46

query I rowsort
SELECT DISTINCT + - 0
----
0

query I rowsort
SELECT ALL + + 18
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6947
SELECT ALL - 95 * SUM( - CAST( NULL AS SIGNED ) ) + - - ( - 17 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6947
SELECT ALL - 95 * SUM ( - CAST ( NULL AS INTEGER ) ) + - - ( - 17 ) col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6948
SELECT ALL + 83 + - COUNT( * ) DIV + 88 col2
----
83

skipif mysql # not compatible
query I rowsort label-6948
SELECT ALL + 83 + - COUNT ( * ) / + 88 col2
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6949
SELECT DISTINCT + COUNT( * ) * CAST( NULL AS SIGNED ) * + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6949
SELECT DISTINCT + COUNT ( * ) * CAST ( NULL AS INTEGER ) * + + COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6950
SELECT CAST( + 51 AS SIGNED ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-6950
SELECT CAST ( + 51 AS INTEGER ) AS col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6951
SELECT + SUM( ALL + 39 )
----
39

skipif mysql # not compatible
query I rowsort label-6951
SELECT + SUM ( ALL + 39 )
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-6952
SELECT ALL + 62 DIV 39 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6952
SELECT ALL + 62 / 39 AS col1
----
1

query I rowsort
SELECT DISTINCT 17 col2
----
17

query I rowsort
SELECT + 86 AS col1
----
86

query I rowsort
SELECT + 62 AS col1
----
62

query I rowsort
SELECT 50 col0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6957
SELECT DISTINCT MAX( - 74 ) col2
----
-74

skipif mysql # not compatible
query I rowsort label-6957
SELECT DISTINCT MAX ( - 74 ) col2
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-6958
SELECT COUNT( * ) * - 63 col0
----
-63

skipif mysql # not compatible
query I rowsort label-6958
SELECT COUNT ( * ) * - 63 col0
----
-63

query I rowsort
SELECT - - 37
----
37

query I rowsort
SELECT DISTINCT + 53 AS col0
----
53

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6961
SELECT - ( + CAST( NULL AS DECIMAL ) ) * + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-6961
SELECT - ( + CAST ( NULL AS REAL ) ) * + 18
----
NULL

query I rowsort
SELECT ALL + 55 AS col2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6963
SELECT ALL + NULLIF ( + 22, COUNT( * ) ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-6963
SELECT ALL + NULLIF ( + 22, COUNT ( * ) ) AS col1
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6964
SELECT DISTINCT + COUNT( DISTINCT 63 ) DIV - + COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6964
SELECT DISTINCT + COUNT ( DISTINCT 63 ) / - + COUNT ( * ) AS col0
----
-1

query I rowsort
SELECT - 46 col2
----
-46

query II rowsort
SELECT 46, 45 AS col0
----
46
45

query I rowsort
SELECT - - 88 AS col0
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6968
SELECT CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col2, + 3
----
NULL
3

skipif mysql # not compatible
query II rowsort label-6968
SELECT CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2, + 3
----
NULL
3

query I rowsort
SELECT DISTINCT + 32 AS col0
----
32

query I rowsort
SELECT DISTINCT 19 AS col2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6971
SELECT - MIN( DISTINCT + 37 ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-6971
SELECT - MIN ( DISTINCT + 37 ) AS col1
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6972
SELECT ALL - 98 DIV + 56 * - ( + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-6972
SELECT ALL - 98 / + 56 * - ( + COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6973
SELECT ALL - SUM( DISTINCT - - 57 ) col0
----
-57

skipif mysql # not compatible
query I rowsort label-6973
SELECT ALL - SUM ( DISTINCT - - 57 ) col0
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-6974
SELECT ALL - - 15, + ( + 46 ) * COUNT( * ) AS col2
----
15
46

skipif mysql # not compatible
query II rowsort label-6974
SELECT ALL - - 15, + ( + 46 ) * COUNT ( * ) AS col2
----
15
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6975
SELECT MAX( ALL + - 55 )
----
-55

skipif mysql # not compatible
query I rowsort label-6975
SELECT MAX ( ALL + - 55 )
----
-55

query I rowsort
SELECT - - 2 col0
----
2

query I rowsort
SELECT 27 - 49 AS col1
----
-22

query I rowsort
SELECT ALL - 2 * 61
----
-122

query I rowsort
SELECT DISTINCT - 48 AS col2
----
-48

query I rowsort
SELECT ALL 73 * - 78 AS col1
----
-5694

query I rowsort
SELECT ALL + 96 AS col1
----
96

query I rowsort
SELECT + 32 * - + 62
----
-1984

query I rowsort
SELECT - + 91 AS col2
----
-91

query I rowsort
SELECT DISTINCT 38 AS col0
----
38

query I rowsort
SELECT DISTINCT - 14
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-6986
SELECT + 48 + + COUNT( * ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-6986
SELECT + 48 + + COUNT ( * ) AS col1
----
49

query I rowsort
SELECT - 58 - - 50 AS col1
----
-8

query I rowsort
SELECT DISTINCT 1
----
1

query I rowsort
SELECT DISTINCT 69 + 11
----
80

query I rowsort
SELECT DISTINCT + 26 * + 71
----
1846

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6991
SELECT ( CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6991
SELECT ( CAST ( NULL AS REAL ) ) AS col1
----
NULL

query I rowsort
SELECT ( - 52 )
----
-52

query I rowsort
SELECT - 45 AS col1
----
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-6994
SELECT 76 AS col0, + COUNT( * )
----
76
1

skipif mysql # not compatible
query II rowsort label-6994
SELECT 76 AS col0, + COUNT ( * )
----
76
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6995
SELECT ( + COUNT( * ) ) * - 86
----
-86

skipif mysql # not compatible
query I rowsort label-6995
SELECT ( + COUNT ( * ) ) * - 86
----
-86

query I rowsort
SELECT 63 * - - 21 AS col2
----
1323

onlyif mysql # DIV for integer division: 
query I rowsort label-6997
SELECT 69 DIV - + 83 * 87
----
0

skipif mysql # not compatible
query I rowsort label-6997
SELECT 69 / - + 83 * 87
----
0

query I rowsort
SELECT DISTINCT - ( 23 ) AS col2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-6999
SELECT ALL + COUNT( * ) * 49 AS col2
----
49

skipif mysql # not compatible
query I rowsort label-6999
SELECT ALL + COUNT ( * ) * 49 AS col2
----
49

query I rowsort
SELECT DISTINCT - 95 AS col1
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-7001
SELECT - SUM( - + 26 )
----
26

skipif mysql # not compatible
query I rowsort label-7001
SELECT - SUM ( - + 26 )
----
26

query I rowsort
SELECT DISTINCT 20 AS col0
----
20

query I rowsort
SELECT ALL 72 AS col2
----
72

query I rowsort
SELECT ALL - 81 col0
----
-81

query I rowsort
SELECT ALL 84 + + 95 AS col2
----
179

onlyif mysql # aggregate syntax: 
query I rowsort label-7006
SELECT COUNT( * ) + + - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7006
SELECT COUNT ( * ) + + - COUNT ( * ) AS col0
----
0

query I rowsort
SELECT - + 63 col1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-7008
SELECT ALL SUM( DISTINCT + 40 ) col0
----
40

skipif mysql # not compatible
query I rowsort label-7008
SELECT ALL SUM ( DISTINCT + 40 ) col0
----
40

query I rowsort
SELECT + - 34 AS col1
----
-34

query I rowsort
SELECT ALL 5 AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7011
SELECT + 97 + - COUNT( * ) col0
----
96

skipif mysql # not compatible
query I rowsort label-7011
SELECT + 97 + - COUNT ( * ) col0
----
96

query I rowsort
SELECT - 90 AS col0
----
-90

query I rowsort
SELECT ALL 85 AS col2
----
85

query I rowsort
SELECT ALL - 93 * 19
----
-1767

query I rowsort
SELECT + - 70
----
-70

query I rowsort
SELECT ALL - - 29 AS col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7017
SELECT COUNT( * ) * - 26 col2
----
-26

skipif mysql # not compatible
query I rowsort label-7017
SELECT COUNT ( * ) * - 26 col2
----
-26

query I rowsort
SELECT ALL - 90 col1
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7019
SELECT ALL CAST( NULL AS SIGNED ) + - 70 * 82 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7019
SELECT ALL CAST ( NULL AS INTEGER ) + - 70 * 82 AS col2
----
NULL

query II rowsort
SELECT - - 67, - 80 AS col1
----
67
-80

query I rowsort
SELECT - ( + 73 ) + - 95
----
-168

query I rowsort
SELECT - + 0 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7023
SELECT 15 + + COUNT( * ) * + MIN( 45 ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-7023
SELECT 15 + + COUNT ( * ) * + MIN ( 45 ) AS col0
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7024
SELECT ALL CAST( - ( - 33 ) AS SIGNED ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-7024
SELECT ALL CAST ( - ( - 33 ) AS INTEGER ) AS col0
----
33

query I rowsort
SELECT DISTINCT - + 68 AS col0
----
-68

query I rowsort
SELECT ALL - + 41 AS col1
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-7027
SELECT COUNT( 19 ) * COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7027
SELECT COUNT ( 19 ) * COUNT ( * ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7028
SELECT COUNT( * ) + + MIN( 41 ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-7028
SELECT COUNT ( * ) + + MIN ( 41 ) AS col0
----
42

query I rowsort
SELECT 60 + 59 AS col0
----
119

query I rowsort
SELECT 79 + 66
----
145

query I rowsort
SELECT - 88 AS col0
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7032
SELECT CAST( - 6 AS SIGNED ) + - 87
----
-93

skipif mysql # not compatible
query I rowsort label-7032
SELECT CAST ( - 6 AS INTEGER ) + - 87
----
-93

query I rowsort
SELECT ALL 78 + - 62 AS col2
----
16

query I rowsort
SELECT - - ( 12 ) AS col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7035
SELECT ALL - ( COUNT( * ) ) - + COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-7035
SELECT ALL - ( COUNT ( * ) ) - + COUNT ( * )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7036
SELECT ALL 62 - + - COUNT( * ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-7036
SELECT ALL 62 - + - COUNT ( * ) AS col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7037
SELECT ALL + SUM( - ( + 9 ) )
----
-9

skipif mysql # not compatible
query I rowsort label-7037
SELECT ALL + SUM ( - ( + 9 ) )
----
-9

query I rowsort
SELECT ALL + 27 AS col2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7039
SELECT + COUNT( DISTINCT ( 34 ) )
----
1

skipif mysql # not compatible
query I rowsort label-7039
SELECT + COUNT ( DISTINCT ( 34 ) )
----
1

query I rowsort
SELECT DISTINCT + 50
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-7041
SELECT ALL + + 79 * + - COUNT( * ) AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-7041
SELECT ALL + + 79 * + - COUNT ( * ) AS col1
----
-79

query I rowsort
SELECT + 75 AS col0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7043
SELECT ALL MAX( + 27 ) * + COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-7043
SELECT ALL MAX ( + 27 ) * + COUNT ( * )
----
27

query I rowsort
SELECT 70
----
70

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7045
SELECT + CAST( NULL AS DECIMAL ) * - + 76
----
NULL

skipif mysql # not compatible
query I rowsort label-7045
SELECT + CAST ( NULL AS REAL ) * - + 76
----
NULL

query I rowsort
SELECT ALL + ( 18 )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7047
SELECT + SUM( - 71 ) * + + 37 AS col0
----
-2627

skipif mysql # not compatible
query I rowsort label-7047
SELECT + SUM ( - 71 ) * + + 37 AS col0
----
-2627

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7048
SELECT CAST( - COUNT( * ) AS SIGNED ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7048
SELECT CAST ( - COUNT ( * ) AS INTEGER ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7049
SELECT DISTINCT - 18 * - COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-7049
SELECT DISTINCT - 18 * - COUNT ( * )
----
18

query I rowsort
SELECT ( + 22 )
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7051
SELECT + CAST( + + ( - + ( + AVG ( 50 ) ) ) AS SIGNED )
----
-50

skipif mysql # not compatible
query I rowsort label-7051
SELECT + CAST ( + + ( - + ( + AVG ( 50 ) ) ) AS INTEGER )
----
-50

query I rowsort
SELECT ( - 8 ) AS col2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-7053
SELECT - COUNT( * ) * + 31 AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-7053
SELECT - COUNT ( * ) * + 31 AS col2
----
-31

query I rowsort
SELECT ALL + 33 AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7055
SELECT - COUNT( * ) + + 26
----
25

skipif mysql # not compatible
query I rowsort label-7055
SELECT - COUNT ( * ) + + 26
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-7056
SELECT ALL + + 75 DIV + 53 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7056
SELECT ALL + + 75 / + 53 AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7057
SELECT - 86 DIV + COUNT( * )
----
-86

skipif mysql # not compatible
query I rowsort label-7057
SELECT - 86 / + COUNT ( * )
----
-86

query I rowsort
SELECT DISTINCT - 31 AS col1
----
-31

query I rowsort
SELECT 82 * + 51
----
4182

query I rowsort
SELECT + 20 col0
----
20

query I rowsort
SELECT ALL - 33 AS col1
----
-33

query I rowsort
SELECT + 31 AS col1
----
31

query I rowsort
SELECT ALL - ( - - 48 ) AS col2
----
-48

query I rowsort
SELECT - - 84 AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7065
SELECT ALL - ( + - MIN( DISTINCT + 91 ) )
----
91

skipif mysql # not compatible
query I rowsort label-7065
SELECT ALL - ( + - MIN ( DISTINCT + 91 ) )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7066
SELECT ALL COUNT( * ) * + 59 col2
----
59

skipif mysql # not compatible
query I rowsort label-7066
SELECT ALL COUNT ( * ) * + 59 col2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7067
SELECT MAX( 78 ) col2
----
78

skipif mysql # not compatible
query I rowsort label-7067
SELECT MAX ( 78 ) col2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7068
SELECT MIN( 61 ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-7068
SELECT MIN ( 61 ) AS col1
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7069
SELECT DISTINCT 57 + 9 * + 71 * + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7069
SELECT DISTINCT 57 + 9 * + 71 * + CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT - - 99
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7071
SELECT ALL MIN( ALL + 94 ) col1
----
94

skipif mysql # not compatible
query I rowsort label-7071
SELECT ALL MIN ( ALL + 94 ) col1
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7072
SELECT ALL + 77 - CAST( - + 95 AS SIGNED )
----
172

skipif mysql # not compatible
query I rowsort label-7072
SELECT ALL + 77 - CAST ( - + 95 AS INTEGER )
----
172

query I rowsort
SELECT ALL - 69 * - 9 AS col2
----
621

query I rowsort
SELECT + 27 col0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7075
SELECT DISTINCT + + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7075
SELECT DISTINCT + + COUNT ( * ) AS col1
----
1

query I rowsort
SELECT DISTINCT + ( + - 28 )
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-7077
SELECT - ( + MIN( - - 68 ) ), - 68
----
-68
-68

skipif mysql # not compatible
query II rowsort label-7077
SELECT - ( + MIN ( - - 68 ) ), - 68
----
-68
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7078
SELECT + 15 / + CAST( NULL AS SIGNED ) * - 71 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7078
SELECT + 15 / + CAST ( NULL AS INTEGER ) * - 71 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7079
SELECT + 18 DIV - COUNT( ALL - 67 ) + - 33
----
-51

skipif mysql # not compatible
query I rowsort label-7079
SELECT + 18 / - COUNT ( ALL - 67 ) + - 33
----
-51

query II rowsort
SELECT DISTINCT 9, 10 col2
----
9
10

query I rowsort
SELECT - 14 AS col2
----
-14

query I rowsort
SELECT 17 * + 94 AS col1
----
1598

query I rowsort
SELECT - 55 * - 63 * - + 27 AS col1
----
-93555

query I rowsort
SELECT 44 AS col1
----
44

query I rowsort
SELECT ALL - ( - 65 )
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7086
SELECT ALL - CAST( + 0 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-7086
SELECT ALL - CAST ( + 0 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7087
SELECT COUNT( * ) DIV - + 52 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7087
SELECT COUNT ( * ) / - + 52 AS col0
----
0

query I rowsort
SELECT - 92 AS col1
----
-92

query I rowsort
SELECT - 3 AS col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7090
SELECT ALL NULLIF ( MIN( 18 ), + 32 / + MIN( DISTINCT - - 23 ) ) col1
----
18

skipif mysql # not compatible
query I rowsort label-7090
SELECT ALL NULLIF ( MIN ( 18 ), + 32 / + MIN ( DISTINCT - - 23 ) ) col1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7091
SELECT + + 8 + COUNT( * ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-7091
SELECT + + 8 + COUNT ( * ) AS col2
----
9

query I rowsort
SELECT DISTINCT + - 2 AS col2
----
-2

query I rowsort
SELECT + ( - 84 ) AS col1
----
-84

query I rowsort
SELECT ALL + - 42 AS col2
----
-42

query I rowsort
SELECT ALL + 43 col2
----
43

query I rowsort
SELECT + ( - + 29 ) + + ( 24 )
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7097
SELECT DISTINCT + ( - - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7097
SELECT DISTINCT + ( - - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7098
SELECT MIN( DISTINCT - - 1 )
----
1

skipif mysql # not compatible
query I rowsort label-7098
SELECT MIN ( DISTINCT - - 1 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7099
SELECT DISTINCT + 8 - - - COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-7099
SELECT DISTINCT + 8 - - - COUNT ( * )
----
7

query I rowsort
SELECT - + 54 - - 42 AS col2
----
-12

query I rowsort
SELECT DISTINCT + + 8
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7102
SELECT ALL + 21 * CAST( NULL AS SIGNED ) * + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-7102
SELECT ALL + 21 * CAST ( NULL AS INTEGER ) * + 57
----
NULL

query I rowsort
SELECT 6 + 1
----
7

query I rowsort
SELECT ALL 27 AS col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7105
SELECT + 80 * COUNT( * )
----
80

skipif mysql # not compatible
query I rowsort label-7105
SELECT + 80 * COUNT ( * )
----
80

query I rowsort
SELECT 46 AS col2
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-7107
SELECT - MIN( DISTINCT + - 6 ) AS col0, - COUNT( * ) AS col2
----
6
-1

skipif mysql # not compatible
query II rowsort label-7107
SELECT - MIN ( DISTINCT + - 6 ) AS col0, - COUNT ( * ) AS col2
----
6
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7108
SELECT - SUM( 91 )
----
-91

skipif mysql # not compatible
query I rowsort label-7108
SELECT - SUM ( 91 )
----
-91

query I rowsort
SELECT + - 69 AS col0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-7110
SELECT - COUNT( * ) * - 2 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-7110
SELECT - COUNT ( * ) * - 2 AS col2
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7111
SELECT DISTINCT + COUNT( * ) DIV - 64
----
0

skipif mysql # not compatible
query I rowsort label-7111
SELECT DISTINCT + COUNT ( * ) / - 64
----
0

query I rowsort
SELECT ALL + ( - + 13 )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-7113
SELECT - MIN( - 49 )
----
49

skipif mysql # not compatible
query I rowsort label-7113
SELECT - MIN ( - 49 )
----
49

query I rowsort
SELECT + 40 - - - 35
----
5

query I rowsort
SELECT - + 30 AS col2
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7116
SELECT - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7116
SELECT - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - - 22 AS col2
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7118
SELECT ALL ( CAST( NULL AS SIGNED ) ) * + 25 + - 80 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7118
SELECT ALL ( CAST ( NULL AS INTEGER ) ) * + 25 + - 80 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7119
SELECT - - CAST( + - 31 AS DECIMAL ) * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7119
SELECT - - CAST ( + - 31 AS REAL ) * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7120
SELECT ALL + COUNT( ALL 89 ) DIV - ( - COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7120
SELECT ALL + COUNT ( ALL 89 ) / - ( - COUNT ( * ) ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7121
SELECT COUNT( * ) * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7121
SELECT COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 93 AS col1
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-7123
SELECT ALL 14 + + + COUNT( ALL 49 )
----
15

skipif mysql # not compatible
query I rowsort label-7123
SELECT ALL 14 + + + COUNT ( ALL 49 )
----
15

query I rowsort
SELECT DISTINCT - 83
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-7125
SELECT ALL 78 + - - ( + COUNT( * ) ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-7125
SELECT ALL 78 + - - ( + COUNT ( * ) ) AS col0
----
79

query I rowsort
SELECT DISTINCT - 28
----
-28

query I rowsort
SELECT + - 13 col1
----
-13

query I rowsort
SELECT - - 62 AS col0
----
62

query I rowsort
SELECT ( + - 71 ) col0
----
-71

query I rowsort
SELECT DISTINCT + 80 * - 95
----
-7600

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7131
SELECT + SUM( CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7131
SELECT + SUM ( CAST ( NULL AS REAL ) ) AS col1
----
NULL

query I rowsort
SELECT - 79 - + + 58
----
-137

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7133
SELECT 68 DIV COUNT( * ) - + 69 + - + 68
----
-69

skipif mysql # not compatible
query I rowsort label-7133
SELECT 68 / COUNT ( * ) - + 69 + - + 68
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7134
SELECT ALL - COUNT( * ) DIV - 75 + - 6 AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-7134
SELECT ALL - COUNT ( * ) / - 75 + - 6 AS col2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-7135
SELECT - COUNT( * ) * COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7135
SELECT - COUNT ( * ) * COUNT ( * ) AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7136
SELECT + 57 DIV - 18
----
-3

skipif mysql # not compatible
query I rowsort label-7136
SELECT + 57 / - 18
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7137
SELECT - ( + COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7137
SELECT - ( + COUNT ( * ) ) AS col1
----
-1

query I rowsort
SELECT DISTINCT 97 col0
----
97

query I rowsort
SELECT + 37 * + 11
----
407

onlyif mysql # aggregate syntax: 
query I rowsort label-7140
SELECT DISTINCT + - 27 - - - COUNT( * )
----
-28

skipif mysql # not compatible
query I rowsort label-7140
SELECT DISTINCT + - 27 - - - COUNT ( * )
----
-28

query I rowsort
SELECT ALL - 78
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7142
SELECT + NULLIF ( + COUNT( * ), - - CAST( NULL AS SIGNED ) * - + 84 - - 97 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7142
SELECT + NULLIF ( + COUNT ( * ), - - CAST ( NULL AS INTEGER ) * - + 84 - - 97 ) AS col0
----
1

query I rowsort
SELECT + - 29
----
-29

query I rowsort
SELECT - 9 AS col1
----
-9

query I rowsort
SELECT - 20 col2
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7146
SELECT DISTINCT 7 * + CAST( 47 AS SIGNED ) AS col2
----
329

skipif mysql # not compatible
query I rowsort label-7146
SELECT DISTINCT 7 * + CAST ( 47 AS INTEGER ) AS col2
----
329

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7147
SELECT - 41 - + CAST( NULL AS SIGNED ) + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7147
SELECT - 41 - + CAST ( NULL AS INTEGER ) + + COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT - 16 AS col2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-7149
SELECT ALL - - COUNT( ALL - 75 )
----
1

skipif mysql # not compatible
query I rowsort label-7149
SELECT ALL - - COUNT ( ALL - 75 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7150
SELECT + ( + - 0 ) AS col1, CAST( NULL AS SIGNED ) + + COUNT( * )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-7150
SELECT + ( + - 0 ) AS col1, CAST ( NULL AS INTEGER ) + + COUNT ( * )
----
0
NULL

query I rowsort
SELECT 90 * 23 + 74 col1
----
2144

query I rowsort
SELECT ALL 2 * - 10 AS col1
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-7153
SELECT + COUNT( * ) + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-7153
SELECT + COUNT ( * ) + - COUNT ( * )
----
0

query I rowsort
SELECT DISTINCT + + 65 AS col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7155
SELECT + MAX( ALL - 14 ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-7155
SELECT + MAX ( ALL - 14 ) AS col0
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-7156
SELECT COUNT( * ) AS col1, 94 col0
----
1
94

skipif mysql # not compatible
query II rowsort label-7156
SELECT COUNT ( * ) AS col1, 94 col0
----
1
94

query I rowsort
SELECT ALL - 23 * - + 29 AS col1
----
667

onlyif mysql # aggregate syntax: 
query I rowsort label-7158
SELECT - COUNT( - + 65 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7158
SELECT - COUNT ( - + 65 ) AS col1
----
-1

query I rowsort
SELECT DISTINCT + 78 + 84
----
162

query I rowsort
SELECT ALL 45 * 61 col0
----
2745

onlyif mysql # aggregate syntax: 
query I rowsort label-7161
SELECT + COUNT( * ) * + 92
----
92

skipif mysql # not compatible
query I rowsort label-7161
SELECT + COUNT ( * ) * + 92
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7162
SELECT DISTINCT - 47 + + COUNT( * ) col1
----
-46

skipif mysql # not compatible
query I rowsort label-7162
SELECT DISTINCT - 47 + + COUNT ( * ) col1
----
-46

query I rowsort
SELECT + 84 * + 29
----
2436

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7164
SELECT 27 AS col2, CAST( NULL AS SIGNED ) * - + COUNT( * ) AS col0
----
27
NULL

skipif mysql # not compatible
query II rowsort label-7164
SELECT 27 AS col2, CAST ( NULL AS INTEGER ) * - + COUNT ( * ) AS col0
----
27
NULL

query I rowsort
SELECT 80 + + + 75
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-7166
SELECT DISTINCT - MIN( DISTINCT + + 33 )
----
-33

skipif mysql # not compatible
query I rowsort label-7166
SELECT DISTINCT - MIN ( DISTINCT + + 33 )
----
-33

query I rowsort
SELECT ALL 79 * - 49
----
-3871

onlyif mysql # aggregate syntax: 
query I rowsort label-7168
SELECT DISTINCT - + 78 * - + COUNT( * ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-7168
SELECT DISTINCT - + 78 * - + COUNT ( * ) AS col0
----
78

query I rowsort
SELECT DISTINCT + 69
----
69

query I rowsort
SELECT DISTINCT 77 AS col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7171
SELECT - COUNT( * ) * + + 23
----
-23

skipif mysql # not compatible
query I rowsort label-7171
SELECT - COUNT ( * ) * + + 23
----
-23

query I rowsort
SELECT + 84 AS col0
----
84

query I rowsort
SELECT ALL + 96 AS col0
----
96

query I rowsort
SELECT DISTINCT + NULLIF ( - 29, - 15 )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-7175
SELECT DISTINCT + 46 * 39 + + COUNT( * ) AS col0
----
1795

skipif mysql # not compatible
query I rowsort label-7175
SELECT DISTINCT + 46 * 39 + + COUNT ( * ) AS col0
----
1795

onlyif mysql # aggregate syntax: 
query I rowsort label-7176
SELECT - COUNT( * ) + + 43
----
42

skipif mysql # not compatible
query I rowsort label-7176
SELECT - COUNT ( * ) + + 43
----
42

query I rowsort
SELECT DISTINCT + ( - 77 )
----
-77

query I rowsort
SELECT DISTINCT 29 AS col2
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7179
SELECT - CAST( + 2 AS SIGNED )
----
-2

skipif mysql # not compatible
query I rowsort label-7179
SELECT - CAST ( + 2 AS INTEGER )
----
-2

query I rowsort
SELECT - + ( + 32 ) col0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-7181
SELECT ( COUNT( * ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-7181
SELECT ( COUNT ( * ) ) col0
----
1

query I rowsort
SELECT ALL + 55 AS col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7183
SELECT - 24 * COUNT( * )
----
-24

skipif mysql # not compatible
query I rowsort label-7183
SELECT - 24 * COUNT ( * )
----
-24

query I rowsort
SELECT DISTINCT + 68 AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7185
SELECT DISTINCT + ( + COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7185
SELECT DISTINCT + ( + COUNT ( * ) ) AS col0
----
1

query I rowsort
SELECT NULLIF ( + 24, 86 )
----
24

query I rowsort
SELECT DISTINCT ( 90 )
----
90

query I rowsort
SELECT DISTINCT 53
----
53

query I rowsort
SELECT ALL - 24
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7190
SELECT ALL 20 - COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-7190
SELECT ALL 20 - COUNT ( * )
----
19

query I rowsort
SELECT DISTINCT - 43
----
-43

query I rowsort
SELECT 39 * 16 + 15
----
639

query I rowsort
SELECT + 27 AS col0
----
27

query I rowsort
SELECT + 70 * 46 + + 97
----
3317

onlyif mysql # aggregate syntax: 
query I rowsort label-7195
SELECT DISTINCT + - COUNT( * ) * - 77
----
77

skipif mysql # not compatible
query I rowsort label-7195
SELECT DISTINCT + - COUNT ( * ) * - 77
----
77

query I rowsort
SELECT ALL - 5 + - 92
----
-97

query I rowsort
SELECT DISTINCT - 70 AS col1
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-7198
SELECT ALL - + 49 * COUNT( 79 )
----
-49

skipif mysql # not compatible
query I rowsort label-7198
SELECT ALL - + 49 * COUNT ( 79 )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-7199
SELECT 29 + COUNT( * ) col1
----
30

skipif mysql # not compatible
query I rowsort label-7199
SELECT 29 + COUNT ( * ) col1
----
30

query I rowsort
SELECT + ( - 85 ) * + 61
----
-5185

query I rowsort
SELECT ALL - 78 col2
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-7202
SELECT - - COUNT( * ) col1
----
1

skipif mysql # not compatible
query I rowsort label-7202
SELECT - - COUNT ( * ) col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7203
SELECT 85 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7203
SELECT 85 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7204
SELECT SUM( 53 ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-7204
SELECT SUM ( 53 ) AS col2
----
53

query I rowsort
SELECT - - ( - + 40 ) AS col2
----
-40

query I rowsort
SELECT DISTINCT - + 80 * + 96 - - 79
----
-7601

query I rowsort
SELECT - 33
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-7208
SELECT ALL MAX( + 38 )
----
38

skipif mysql # not compatible
query I rowsort label-7208
SELECT ALL MAX ( + 38 )
----
38

query I rowsort
SELECT ( + + 20 ) AS col0
----
20

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7210
SELECT + 1 * + + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7210
SELECT + 1 * + + CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 78 col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7212
SELECT + 61 + + COUNT( * ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-7212
SELECT + 61 + + COUNT ( * ) AS col1
----
62

query I rowsort
SELECT ALL + 69 AS col2
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7214
SELECT + MAX( ALL - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7214
SELECT + MAX ( ALL - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT ALL + 0 col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7216
SELECT + ( - 68 ) AS col2, + MIN( + 87 ) AS col2
----
-68
87

skipif mysql # not compatible
query II rowsort label-7216
SELECT + ( - 68 ) AS col2, + MIN ( + 87 ) AS col2
----
-68
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7217
SELECT ALL COUNT( * ) * 56 AS col0
----
56

skipif mysql # not compatible
query I rowsort label-7217
SELECT ALL COUNT ( * ) * 56 AS col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7218
SELECT + ( + 70 ) - - + COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-7218
SELECT + ( + 70 ) - - + COUNT ( * )
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7219
SELECT CAST( NULL AS SIGNED ) * + + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-7219
SELECT CAST ( NULL AS INTEGER ) * + + 33
----
NULL

query I rowsort
SELECT DISTINCT - + 72
----
-72

query I rowsort
SELECT 6 AS col0
----
6

query I rowsort
SELECT - 32 AS col1
----
-32

query I rowsort
SELECT + 47 col2
----
47

query I rowsort
SELECT DISTINCT - 31 AS col2
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-7225
SELECT ALL 50 DIV - ( + ( + + 97 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7225
SELECT ALL 50 / - ( + ( + + 97 ) ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7226
SELECT ALL CAST( NULL AS SIGNED ) + - 63 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7226
SELECT ALL CAST ( NULL AS INTEGER ) + - 63 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7227
SELECT COUNT( * ) + + 98
----
99

skipif mysql # not compatible
query I rowsort label-7227
SELECT COUNT ( * ) + + 98
----
99

query I rowsort
SELECT DISTINCT 48 AS col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7229
SELECT - - 36 + - + ( - - ( + COUNT( * ) ) )
----
35

skipif mysql # not compatible
query I rowsort label-7229
SELECT - - 36 + - + ( - - ( + COUNT ( * ) ) )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7230
SELECT ALL + + COUNT( + 34 )
----
1

skipif mysql # not compatible
query I rowsort label-7230
SELECT ALL + + COUNT ( + 34 )
----
1

query I rowsort
SELECT ALL + 92 col0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7232
SELECT + 44 * + COUNT( * ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-7232
SELECT + 44 * + COUNT ( * ) AS col1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7233
SELECT ALL + NULLIF ( - - 53, + COUNT( * ) ) + + COUNT( * )
----
54

skipif mysql # not compatible
query I rowsort label-7233
SELECT ALL + NULLIF ( - - 53, + COUNT ( * ) ) + + COUNT ( * )
----
54

query I rowsort
SELECT ALL ( + 49 ) AS col2
----
49

query I rowsort
SELECT 23 AS col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7236
SELECT ALL + NULLIF ( - 30, - COUNT( * ) / 4 + + + 14 ) * COUNT( * ) + + 21
----
-9

skipif mysql # not compatible
query I rowsort label-7236
SELECT ALL + NULLIF ( - 30, - COUNT ( * ) / 4 + + + 14 ) * COUNT ( * ) + + 21
----
-9

query I rowsort
SELECT DISTINCT - 81 AS col0
----
-81

query I rowsort
SELECT 45 + + 85
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-7239
SELECT - COUNT( * ) + - - 44 AS col2
----
43

skipif mysql # not compatible
query I rowsort label-7239
SELECT - COUNT ( * ) + - - 44 AS col2
----
43

query I rowsort
SELECT DISTINCT - 47 col0
----
-47

query I rowsort
SELECT - 80 col0
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7242
SELECT ALL ( - - CAST( + + COUNT( * ) AS SIGNED ) ) DIV - - ( + 96 ) * + 95 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7242
SELECT ALL ( - - CAST ( + + COUNT ( * ) AS INTEGER ) ) / - - ( + 96 ) * + 95 AS col2
----
0

query I rowsort
SELECT 67 AS col1
----
67

query I rowsort
SELECT DISTINCT - 16
----
-16

query I rowsort
SELECT + 95 AS col2
----
95

query I rowsort
SELECT ALL - 84 AS col1
----
-84

query I rowsort
SELECT + 96 + + 57
----
153

query I rowsort
SELECT ALL 66 + ( + 13 ) AS col0
----
79

query I rowsort
SELECT - + 1 + 30
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7250
SELECT CAST( NULL AS SIGNED ), + 24 AS col0
----
NULL
24

skipif mysql # not compatible
query II rowsort label-7250
SELECT CAST ( NULL AS INTEGER ), + 24 AS col0
----
NULL
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7251
SELECT ALL + MIN( + + 6 ) col0
----
6

skipif mysql # not compatible
query I rowsort label-7251
SELECT ALL + MIN ( + + 6 ) col0
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7252
SELECT - 20 DIV - - COUNT( * )
----
-20

skipif mysql # not compatible
query I rowsort label-7252
SELECT - 20 / - - COUNT ( * )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-7253
SELECT ALL + MIN( 75 )
----
75

skipif mysql # not compatible
query I rowsort label-7253
SELECT ALL + MIN ( 75 )
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7254
SELECT + 57 AS col0, - CAST( NULL AS SIGNED ) * 52
----
57
NULL

skipif mysql # not compatible
query II rowsort label-7254
SELECT + 57 AS col0, - CAST ( NULL AS INTEGER ) * 52
----
57
NULL

query I rowsort
SELECT DISTINCT - ( + 1 ) AS col0
----
-1

query I rowsort
SELECT + + ( + 36 ) * - 1 + - 63 AS col1
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-7257
SELECT DISTINCT + COUNT( * ) AS col0, 79 + - COUNT( * )
----
1
78

skipif mysql # not compatible
query II rowsort label-7257
SELECT DISTINCT + COUNT ( * ) AS col0, 79 + - COUNT ( * )
----
1
78

query I rowsort
SELECT DISTINCT - 87
----
-87

query I rowsort
SELECT DISTINCT - 15 AS col2
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-7260
SELECT ALL - COUNT( * ) + + 7 AS col1, 91 AS col0
----
6
91

skipif mysql # not compatible
query II rowsort label-7260
SELECT ALL - COUNT ( * ) + + 7 AS col1, 91 AS col0
----
6
91

query I rowsort
SELECT - - 78
----
78

query I rowsort
SELECT ALL 99 AS col2
----
99

query I rowsort
SELECT ALL - 77 + 23
----
-54

query I rowsort
SELECT + 64 AS col1
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7265
SELECT ALL - + CAST( + ( - 75 ) AS SIGNED )
----
75

skipif mysql # not compatible
query I rowsort label-7265
SELECT ALL - + CAST ( + ( - 75 ) AS INTEGER )
----
75

query I rowsort
SELECT + 75 AS col1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7267
SELECT - 72 + + + COUNT( * ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-7267
SELECT - 72 + + + COUNT ( * ) AS col0
----
-71

query I rowsort
SELECT + 76 AS col2
----
76

query I rowsort
SELECT ALL - + 99 AS col2
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7270
SELECT COUNT( * ) * 9 DIV - - 51
----
0

skipif mysql # not compatible
query I rowsort label-7270
SELECT COUNT ( * ) * 9 / - - 51
----
0

query I rowsort
SELECT + 18 + - + 92
----
-74

query I rowsort
SELECT - 68 * - 34
----
2312

query I rowsort
SELECT ALL - 73 + - 52
----
-125

query I rowsort
SELECT DISTINCT + 66 col1
----
66

query I rowsort
SELECT + 49 + + 6
----
55

query I rowsort
SELECT ALL 44 + - 30
----
14

query I rowsort
SELECT DISTINCT 81 AS col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7278
SELECT - COUNT( * ) + + - 6
----
-7

skipif mysql # not compatible
query I rowsort label-7278
SELECT - COUNT ( * ) + + - 6
----
-7

query I rowsort
SELECT 94 col2
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7280
SELECT ALL CAST( - 65 AS SIGNED ) col0
----
-65

skipif mysql # not compatible
query I rowsort label-7280
SELECT ALL CAST ( - 65 AS INTEGER ) col0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-7281
SELECT ALL + 58 * + COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-7281
SELECT ALL + 58 * + COUNT ( * )
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7282
SELECT - - AVG ( ALL + CAST( NULL AS SIGNED ) ) * - 25 + ( 99 ) + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7282
SELECT - - AVG ( ALL + CAST ( NULL AS INTEGER ) ) * - 25 + ( 99 ) + - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7283
SELECT DISTINCT - + ( SUM( DISTINCT 42 ) ) * - 2
----
84

skipif mysql # not compatible
query I rowsort label-7283
SELECT DISTINCT - + ( SUM ( DISTINCT 42 ) ) * - 2
----
84

query I rowsort
SELECT ALL - 68 AS col1
----
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7285
SELECT DISTINCT 25 DIV + + COUNT( * ) AS col1, - 34 col0
----
25
-34

skipif mysql # not compatible
query II rowsort label-7285
SELECT DISTINCT 25 / + + COUNT ( * ) AS col1, - 34 col0
----
25
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-7286
SELECT COUNT( * ) AS col1, - 45
----
1
-45

skipif mysql # not compatible
query II rowsort label-7286
SELECT COUNT ( * ) AS col1, - 45
----
1
-45

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7287
SELECT 64 AS col2, + 14 * CAST( - + 89 AS SIGNED ) AS col0
----
64
-1246

skipif mysql # not compatible
query II rowsort label-7287
SELECT 64 AS col2, + 14 * CAST ( - + 89 AS INTEGER ) AS col0
----
64
-1246

query I rowsort
SELECT 19 AS col0
----
19

query I rowsort
SELECT 57 col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-7290
SELECT ALL + 41 - + + 9 + + + SUM( DISTINCT - 93 ) AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-7290
SELECT ALL + 41 - + + 9 + + + SUM ( DISTINCT - 93 ) AS col0
----
-61

query I rowsort
SELECT 92 + + 53 + - 92 AS col1
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7292
SELECT ALL COUNT( * ) * CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7292
SELECT ALL COUNT ( * ) * CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT + + ( 24 ) * - - 52 AS col2
----
1248

query I rowsort
SELECT - 85 AS col2
----
-85

query I rowsort
SELECT ALL + 52 AS col0
----
52

query I rowsort
SELECT ALL + 22 AS col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-7297
SELECT ALL + 55 * + COUNT( * )
----
55

skipif mysql # not compatible
query I rowsort label-7297
SELECT ALL + 55 * + COUNT ( * )
----
55

query I rowsort
SELECT ALL - 82 * + 16
----
-1312

onlyif mysql # aggregate syntax: 
query I rowsort label-7299
SELECT - COUNT( * ) + 76
----
75

skipif mysql # not compatible
query I rowsort label-7299
SELECT - COUNT ( * ) + 76
----
75

query I rowsort
SELECT ALL ( - 64 )
----
-64

query I rowsort
SELECT ALL ( - 14 )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-7302
SELECT - MAX( DISTINCT + 99 ) AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-7302
SELECT - MAX ( DISTINCT + 99 ) AS col1
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7303
SELECT + + CAST( NULL AS SIGNED ) + - + COUNT( DISTINCT + 36 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7303
SELECT + + CAST ( NULL AS INTEGER ) + - + COUNT ( DISTINCT + 36 )
----
NULL

query I rowsort
SELECT - - 38
----
38

query I rowsort
SELECT DISTINCT + 46 AS col0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7306
SELECT DISTINCT + - SUM( DISTINCT - + 58 ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-7306
SELECT DISTINCT + - SUM ( DISTINCT - + 58 ) AS col1
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7307
SELECT + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7307
SELECT + CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7308
SELECT DISTINCT 72 * + COUNT( * ) * + - ( - COUNT( * ) ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-7308
SELECT DISTINCT 72 * + COUNT ( * ) * + - ( - COUNT ( * ) ) AS col0
----
72

query I rowsort
SELECT + ( - 13 ) AS col0
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7310
SELECT + CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7310
SELECT + CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7311
SELECT CAST( + - 4 AS SIGNED ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-7311
SELECT CAST ( + - 4 AS INTEGER ) AS col0
----
-4

query I rowsort
SELECT - - 33
----
33

query I rowsort
SELECT + ( + 56 )
----
56

query I rowsort
SELECT ALL - - 20 AS col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7315
SELECT DISTINCT - ( + COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7315
SELECT DISTINCT - ( + COUNT ( * ) ) AS col0
----
-1

query I rowsort
SELECT DISTINCT - 25 AS col1
----
-25

query I rowsort
SELECT 73 * - 72
----
-5256

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7318
SELECT 67 AS col2, + CAST( NULL AS SIGNED ) / + COUNT( * )
----
67
NULL

skipif mysql # not compatible
query II rowsort label-7318
SELECT 67 AS col2, + CAST ( NULL AS INTEGER ) / + COUNT ( * )
----
67
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7319
SELECT DISTINCT - 0 DIV + 69 * - 81 + + 26 AS col1
----
26

skipif mysql # not compatible
query I rowsort label-7319
SELECT DISTINCT - 0 / + 69 * - 81 + + 26 AS col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7320
SELECT DISTINCT + 8 * + COUNT( * ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-7320
SELECT DISTINCT + 8 * + COUNT ( * ) AS col0
----
8

query I rowsort
SELECT - 33 AS col2
----
-33

query I rowsort
SELECT DISTINCT - - 52 col2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7323
SELECT DISTINCT - 42 * COUNT( * )
----
-42

skipif mysql # not compatible
query I rowsort label-7323
SELECT DISTINCT - 42 * COUNT ( * )
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-7324
SELECT COUNT( * ), - 43 col2
----
1
-43

skipif mysql # not compatible
query II rowsort label-7324
SELECT COUNT ( * ), - 43 col2
----
1
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7325
SELECT 18 * + + CAST( + 18 AS SIGNED ) col0
----
324

skipif mysql # not compatible
query I rowsort label-7325
SELECT 18 * + + CAST ( + 18 AS INTEGER ) col0
----
324

onlyif mysql # DIV for integer division: 
query I rowsort label-7326
SELECT DISTINCT + 80 DIV - 84 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7326
SELECT DISTINCT + 80 / - 84 AS col0
----
0

query I rowsort
SELECT ALL 9 col0
----
9

query I rowsort
SELECT ALL 43 AS col0
----
43

query I rowsort
SELECT DISTINCT 60 col2
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7330
SELECT + COUNT( * ) DIV 28 col0
----
0

skipif mysql # not compatible
query I rowsort label-7330
SELECT + COUNT ( * ) / 28 col0
----
0

query I rowsort
SELECT ( 78 )
----
78

query I rowsort
SELECT ( 82 ) col0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7333
SELECT - 70 * - COUNT( * ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-7333
SELECT - 70 * - COUNT ( * ) AS col0
----
70

query I rowsort
SELECT DISTINCT + - 65 AS col2
----
-65

query I rowsort
SELECT + 58 * + + 73
----
4234

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7336
SELECT ALL + 50 DIV - COUNT( * )
----
-50

skipif mysql # not compatible
query I rowsort label-7336
SELECT ALL + 50 / - COUNT ( * )
----
-50

query I rowsort
SELECT - 72 col2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-7338
SELECT ALL MIN( DISTINCT 79 ) col2
----
79

skipif mysql # not compatible
query I rowsort label-7338
SELECT ALL MIN ( DISTINCT 79 ) col2
----
79

query I rowsort
SELECT DISTINCT - 4 AS col2
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7340
SELECT + CAST( - 40 AS SIGNED ) + - ( SUM( ALL - 59 ) )
----
19

skipif mysql # not compatible
query I rowsort label-7340
SELECT + CAST ( - 40 AS INTEGER ) + - ( SUM ( ALL - 59 ) )
----
19

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7341
SELECT 45 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7341
SELECT 45 + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7342
SELECT + CAST( NULL AS DECIMAL ) * + CAST( NULL AS SIGNED ) + 82 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7342
SELECT + CAST ( NULL AS REAL ) * + CAST ( NULL AS INTEGER ) + 82 AS col1
----
NULL

query I rowsort
SELECT ALL - + 96
----
-96

query I rowsort
SELECT ALL - 6 AS col1
----
-6

query I rowsort
SELECT - 72 + 21
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-7346
SELECT DISTINCT + CASE 56 WHEN + ( + - 5 ) THEN NULL ELSE + COUNT( * ) END AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7346
SELECT DISTINCT + CASE 56 WHEN + ( + - 5 ) THEN NULL ELSE + COUNT ( * ) END AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7347
SELECT + MIN( ALL + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7347
SELECT + MIN ( ALL + + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL + 26 AS col1
----
26

query I rowsort
SELECT DISTINCT + 34 AS col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7350
SELECT ALL + - SUM( ALL - 35 ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-7350
SELECT ALL + - SUM ( ALL - 35 ) AS col1
----
35

query I rowsort
SELECT ALL + 75 AS col0
----
75

query I rowsort
SELECT ALL + 8 col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7353
SELECT SUM( 96 ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-7353
SELECT SUM ( 96 ) AS col0
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-7354
SELECT ALL COUNT( * ) col2, 45
----
1
45

skipif mysql # not compatible
query II rowsort label-7354
SELECT ALL COUNT ( * ) col2, 45
----
1
45

query I rowsort
SELECT DISTINCT + 30 + - 17 AS col2
----
13

query I rowsort
SELECT ALL + + 41 col2
----
41

query I rowsort
SELECT ALL 72 * + + ( 33 ) AS col1
----
2376

query I rowsort
SELECT ALL ( - 22 ) * 65
----
-1430

query I rowsort
SELECT ALL ( 15 ) + - 32 AS col0
----
-17

query I rowsort
SELECT + - 91
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7361
SELECT + SUM( DISTINCT + + CAST( - 22 AS SIGNED ) )
----
-22

skipif mysql # not compatible
query I rowsort label-7361
SELECT + SUM ( DISTINCT + + CAST ( - 22 AS INTEGER ) )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-7362
SELECT COUNT( * ) * COUNT( * ) col0
----
1

skipif mysql # not compatible
query I rowsort label-7362
SELECT COUNT ( * ) * COUNT ( * ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7363
SELECT ALL + COUNT( * ) * + 7
----
7

skipif mysql # not compatible
query I rowsort label-7363
SELECT ALL + COUNT ( * ) * + 7
----
7

query I rowsort
SELECT ALL 77 + - 19
----
58

query I rowsort
SELECT - 42 col0
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-7366
SELECT - COUNT( * ) col1, 90
----
-1
90

skipif mysql # not compatible
query II rowsort label-7366
SELECT - COUNT ( * ) col1, 90
----
-1
90

query I rowsort
SELECT - 30 AS col1
----
-30

query I rowsort
SELECT - - 60 AS col0
----
60

query I rowsort
SELECT ALL + 60 col1
----
60

query I rowsort
SELECT DISTINCT + 97
----
97

query I rowsort
SELECT - 45 AS col0
----
-45

query I rowsort
SELECT ALL ( - - ( + + 8 ) ) AS col2
----
8

query I rowsort
SELECT + ( 31 )
----
31

query I rowsort
SELECT ALL 83
----
83

query I rowsort
SELECT ( - 39 )
----
-39

query I rowsort
SELECT ( - + 30 ) AS col2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-7377
SELECT - NULLIF ( - SUM( ALL + 52 ), + 24 ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-7377
SELECT - NULLIF ( - SUM ( ALL + 52 ), + 24 ) AS col2
----
52

query I rowsort
SELECT ALL + ( 24 )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7379
SELECT DISTINCT - - 14 * - COUNT( * )
----
-14

skipif mysql # not compatible
query I rowsort label-7379
SELECT DISTINCT - - 14 * - COUNT ( * )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-7380
SELECT 81 * - COUNT( * ) AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-7380
SELECT 81 * - COUNT ( * ) AS col2
----
-81

query I rowsort
SELECT ALL - 19
----
-19

query I rowsort
SELECT ALL 12 * + + 1
----
12

query I rowsort
SELECT + 96 col1
----
96

query I rowsort
SELECT - - 39 AS col0
----
39

query I rowsort
SELECT DISTINCT - 37 AS col0
----
-37

query I rowsort
SELECT ALL + 62 * + + 70 AS col1
----
4340

onlyif mysql # aggregate syntax: 
query I rowsort label-7387
SELECT - ( - COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7387
SELECT - ( - COUNT ( * ) ) AS col0
----
1

query I rowsort
SELECT - 17 AS col0
----
-17

query I rowsort
SELECT DISTINCT + 13
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-7390
SELECT + COUNT( * ), COUNT( * ) AS col1
----
1
1

skipif mysql # not compatible
query II rowsort label-7390
SELECT + COUNT ( * ), COUNT ( * ) AS col1
----
1
1

query I rowsort
SELECT ALL - 92 * 54 AS col0
----
-4968

query I rowsort
SELECT - ( 33 )
----
-33

query I rowsort
SELECT 99 AS col0
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-7394
SELECT + 78 DIV - - 97
----
0

skipif mysql # not compatible
query I rowsort label-7394
SELECT + 78 / - - 97
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7395
SELECT 64 DIV COUNT( * )
----
64

skipif mysql # not compatible
query I rowsort label-7395
SELECT 64 / COUNT ( * )
----
64

query I rowsort
SELECT + + 46
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7397
SELECT ALL - - 18 * COUNT( * ) * 91 AS col1
----
1638

skipif mysql # not compatible
query I rowsort label-7397
SELECT ALL - - 18 * COUNT ( * ) * 91 AS col1
----
1638

query I rowsort
SELECT ALL 20 AS col2
----
20

query I rowsort
SELECT ALL + 94 AS col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7400
SELECT COUNT( * ) * - 88
----
-88

skipif mysql # not compatible
query I rowsort label-7400
SELECT COUNT ( * ) * - 88
----
-88

query I rowsort
SELECT - ( 86 ) AS col2
----
-86

query I rowsort
SELECT - + 2 AS col0
----
-2

query I rowsort
SELECT - 70 AS col0
----
-70

query I rowsort
SELECT 73 + + 3 AS col1
----
76

query I rowsort
SELECT 80 * 80
----
6400

onlyif mysql # aggregate syntax: 
query I rowsort label-7406
SELECT COUNT( * ) * 40 * + 38 AS col1
----
1520

skipif mysql # not compatible
query I rowsort label-7406
SELECT COUNT ( * ) * 40 * + 38 AS col1
----
1520

onlyif mysql # aggregate syntax: 
query I rowsort label-7407
SELECT DISTINCT - MIN( 63 ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-7407
SELECT DISTINCT - MIN ( 63 ) AS col0
----
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-7408
SELECT + COUNT( * ), + COUNT( * ) col2
----
1
1

skipif mysql # not compatible
query II rowsort label-7408
SELECT + COUNT ( * ), + COUNT ( * ) col2
----
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7409
SELECT COALESCE ( + - 49, - 52 ) DIV + + COUNT( * ) AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-7409
SELECT COALESCE ( + - 49, - 52 ) / + + COUNT ( * ) AS col1
----
-49

query I rowsort
SELECT ALL - 48 col0
----
-48

query I rowsort
SELECT ALL - + 98 AS col2
----
-98

query I rowsort
SELECT ALL + + 65 * 22 AS col1
----
1430

query I rowsort
SELECT DISTINCT + 60 + + - 18 AS col0
----
42

query II rowsort
SELECT - 33 AS col2, - 3
----
-33
-3

query I rowsort
SELECT + 2 col1
----
2

query I rowsort
SELECT + - 52 AS col2
----
-52

query I rowsort
SELECT ALL + - ( - 76 )
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7418
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 4 + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7418
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 4 + + COUNT ( * )
----
NULL

query I rowsort
SELECT - ( - - 14 ) AS col1
----
-14

query I rowsort
SELECT 4 AS col1
----
4

query I rowsort
SELECT DISTINCT + 95
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-7422
SELECT ALL + MAX( 43 )
----
43

skipif mysql # not compatible
query I rowsort label-7422
SELECT ALL + MAX ( 43 )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7423
SELECT CASE - COUNT( * ) WHEN - - 21 - + - ( + 31 ) THEN + ( 58 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7423
SELECT CASE - COUNT ( * ) WHEN - - 21 - + - ( + 31 ) THEN + ( 58 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7424
SELECT + 97 * + COUNT( * ) + - 26 AS col0
----
71

skipif mysql # not compatible
query I rowsort label-7424
SELECT + 97 * + COUNT ( * ) + - 26 AS col0
----
71

query I rowsort
SELECT DISTINCT + 72 AS col1
----
72

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7426
SELECT ALL + + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7426
SELECT ALL + + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7427
SELECT ( - 67 ) - - MIN( ALL 56 ) col0
----
-11

skipif mysql # not compatible
query I rowsort label-7427
SELECT ( - 67 ) - - MIN ( ALL 56 ) col0
----
-11

query I rowsort
SELECT 50 - 91 - - 29 * - 76
----
-2245

query I rowsort
SELECT ALL 88 - - 41
----
129

query I rowsort
SELECT DISTINCT - 35 + 19
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7431
SELECT + CAST( - COUNT( * ) AS SIGNED ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7431
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) AS col0
----
-1

query I rowsort
SELECT + 13 AS col2
----
13

query I rowsort
SELECT ALL - 35 col2
----
-35

query I rowsort
SELECT ALL - 79 AS col1
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-7435
SELECT 24 * + + COUNT( * ) col1
----
24

skipif mysql # not compatible
query I rowsort label-7435
SELECT 24 * + + COUNT ( * ) col1
----
24

query I rowsort
SELECT ALL 50 col1
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7437
SELECT ALL CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7437
SELECT ALL CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - + 19 AS col0
----
-19

query I rowsort
SELECT ALL + 17 AS col0
----
17

query I rowsort
SELECT 55 col0
----
55

query I rowsort
SELECT ALL + - 83 AS col1
----
-83

query I rowsort
SELECT DISTINCT + 22 AS col2
----
22

query I rowsort
SELECT DISTINCT - ( - 39 ) * + 99
----
3861

onlyif mysql # aggregate syntax: 
query I rowsort label-7444
SELECT - + ( - + ( ( + - 90 ) ) ) + - ( - ( + COUNT( * ) ) )
----
-89

skipif mysql # not compatible
query I rowsort label-7444
SELECT - + ( - + ( ( + - 90 ) ) ) + - ( - ( + COUNT ( * ) ) )
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7445
SELECT DISTINCT - CAST( + 91 AS SIGNED ) col2
----
-91

skipif mysql # not compatible
query I rowsort label-7445
SELECT DISTINCT - CAST ( + 91 AS INTEGER ) col2
----
-91

query I rowsort
SELECT ALL + 62 + - 13 AS col0
----
49

query I rowsort
SELECT + 57 + + 32 AS col0
----
89

query I rowsort
SELECT + - 49 * + 49 AS col0
----
-2401

query I rowsort
SELECT DISTINCT + + 49
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7450
SELECT ALL + MIN( ALL + 81 )
----
81

skipif mysql # not compatible
query I rowsort label-7450
SELECT ALL + MIN ( ALL + 81 )
----
81

query I rowsort
SELECT - ( 0 ) AS col2
----
0

query I rowsort
SELECT DISTINCT + - 15 col0
----
-15

query I rowsort
SELECT + - 47 AS col1
----
-47

query I rowsort
SELECT ( 55 ) AS col1
----
55

query I rowsort
SELECT ALL 72 * 32
----
2304

query I rowsort
SELECT + ( 37 ) AS col1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7457
SELECT ALL + MIN( 60 )
----
60

skipif mysql # not compatible
query I rowsort label-7457
SELECT ALL + MIN ( 60 )
----
60

query I rowsort
SELECT ( 3 ) col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7459
SELECT - COUNT( * ) * - 21
----
21

skipif mysql # not compatible
query I rowsort label-7459
SELECT - COUNT ( * ) * - 21
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7460
SELECT - - CAST( CAST( + - ( - 51 ) AS SIGNED ) AS SIGNED ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-7460
SELECT - - CAST ( CAST ( + - ( - 51 ) AS INTEGER ) AS INTEGER ) AS col0
----
51

query I rowsort
SELECT ALL - 34 AS col0
----
-34

query I rowsort
SELECT - ( - 50 )
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7463
SELECT ALL + - 72 DIV + COUNT( * ) AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-7463
SELECT ALL + - 72 / + COUNT ( * ) AS col1
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7464
SELECT - 7 + + NULLIF ( - + CAST( NULL AS SIGNED ), - 12 * - 5 - 13 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7464
SELECT - 7 + + NULLIF ( - + CAST ( NULL AS INTEGER ), - 12 * - 5 - 13 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7465
SELECT COUNT( * ) - + 40
----
-39

skipif mysql # not compatible
query I rowsort label-7465
SELECT COUNT ( * ) - + 40
----
-39

query II rowsort
SELECT ALL - - 87 AS col2, - 50
----
87
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7467
SELECT ALL 31 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7467
SELECT ALL 31 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 89 * - + 72
----
-6408

query I rowsort
SELECT 18 + 83 AS col2
----
101

query I rowsort
SELECT DISTINCT - 91 AS col1
----
-91

query I rowsort
SELECT + 19 col0
----
19

query I rowsort
SELECT ALL 88 AS col2
----
88

query I rowsort
SELECT DISTINCT 54 * - 98
----
-5292

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7474
SELECT ALL - ( + 6 ) * + - CAST( NULL AS SIGNED ) / + CAST( + MAX( 96 ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7474
SELECT ALL - ( + 6 ) * + - CAST ( NULL AS INTEGER ) / + CAST ( + MAX ( 96 ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7475
SELECT SUM( - 35 ) AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-7475
SELECT SUM ( - 35 ) AS col2
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-7476
SELECT MAX( ALL 68 )
----
68

skipif mysql # not compatible
query I rowsort label-7476
SELECT MAX ( ALL 68 )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7477
SELECT + SUM( + + 88 ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-7477
SELECT + SUM ( + + 88 ) AS col2
----
88

query II rowsort
SELECT DISTINCT - 17 AS col0, + 91 AS col0
----
-17
91

query I rowsort
SELECT DISTINCT + 26
----
26

query I rowsort
SELECT ALL 79 * 14
----
1106

query I rowsort
SELECT - 81 AS col2
----
-81

query I rowsort
SELECT ALL 77 AS col0
----
77

query I rowsort
SELECT - 53 * - + 64
----
3392

query I rowsort
SELECT 63 AS col1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7485
SELECT - 77 - COUNT( * )
----
-78

skipif mysql # not compatible
query I rowsort label-7485
SELECT - 77 - COUNT ( * )
----
-78

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7486
SELECT - COUNT( * ) * + COUNT( * ) * 36 - - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7486
SELECT - COUNT ( * ) * + COUNT ( * ) * 36 - - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7487
SELECT + SUM( ALL - - 78 )
----
78

skipif mysql # not compatible
query I rowsort label-7487
SELECT + SUM ( ALL - - 78 )
----
78

query I rowsort
SELECT DISTINCT + 65 AS col2
----
65

query I rowsort
SELECT DISTINCT 59 AS col1
----
59

query I rowsort
SELECT - ( + + 70 ) col0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-7491
SELECT ALL - COUNT( - 19 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7491
SELECT ALL - COUNT ( - 19 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7492
SELECT ALL - COUNT( * ) AS col0, COUNT( * )
----
-1
1

skipif mysql # not compatible
query II rowsort label-7492
SELECT ALL - COUNT ( * ) AS col0, COUNT ( * )
----
-1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7493
SELECT DISTINCT + COUNT( * ) DIV - - 66 col2
----
0

skipif mysql # not compatible
query I rowsort label-7493
SELECT DISTINCT + COUNT ( * ) / - - 66 col2
----
0

query I rowsort
SELECT ALL - + 24 AS col2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7495
SELECT 36 * + COUNT( * ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-7495
SELECT 36 * + COUNT ( * ) AS col1
----
36

query I rowsort
SELECT + ( - - 98 ) * 77
----
7546

query I rowsort
SELECT - - ( + 74 )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7498
SELECT DISTINCT + 22 + - - ( ( + COUNT( * ) ) )
----
23

skipif mysql # not compatible
query I rowsort label-7498
SELECT DISTINCT + 22 + - - ( ( + COUNT ( * ) ) )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7499
SELECT DISTINCT COUNT( DISTINCT - 78 )
----
1

skipif mysql # not compatible
query I rowsort label-7499
SELECT DISTINCT COUNT ( DISTINCT - 78 )
----
1

query I rowsort
SELECT ALL 54 col1
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7501
SELECT CAST( + COUNT( * ) AS SIGNED ) - + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-7501
SELECT CAST ( + COUNT ( * ) AS INTEGER ) - + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7502
SELECT + COUNT( * ) col0, + COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-7502
SELECT + COUNT ( * ) col0, + COUNT ( * )
----
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7503
SELECT ALL 22 DIV + - 83
----
0

skipif mysql # not compatible
query I rowsort label-7503
SELECT ALL 22 / + - 83
----
0

query II rowsort
SELECT + - 82, + 6 AS col2
----
-82
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7505
SELECT - ( 41 ) + ( - - COUNT( * ) )
----
-40

skipif mysql # not compatible
query I rowsort label-7505
SELECT - ( 41 ) + ( - - COUNT ( * ) )
----
-40

query I rowsort
SELECT - ( + 79 )
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7507
SELECT 43 + - - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7507
SELECT 43 + - - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 18 AS col1
----
18

query I rowsort
SELECT ALL NULLIF ( + 70, - ( + 54 ) ) AS col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-7510
SELECT DISTINCT COUNT( DISTINCT - 1 )
----
1

skipif mysql # not compatible
query I rowsort label-7510
SELECT DISTINCT COUNT ( DISTINCT - 1 )
----
1

query I rowsort
SELECT - 42 AS col0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-7512
SELECT + SUM( ALL - + 41 ) AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-7512
SELECT + SUM ( ALL - + 41 ) AS col1
----
-41

query I rowsort
SELECT DISTINCT + + 96
----
96

query I rowsort
SELECT ALL + + 10
----
10

query I rowsort
SELECT ALL + - 9
----
-9

query I rowsort
SELECT + + 68 col0
----
68

query I rowsort
SELECT DISTINCT + + 71
----
71

query I rowsort
SELECT - 61 AS col1
----
-61

query I rowsort
SELECT - 75 col0
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-7520
SELECT - 88 DIV 19 col2
----
-4

skipif mysql # not compatible
query I rowsort label-7520
SELECT - 88 / 19 col2
----
-4

query I rowsort
SELECT - 98 col0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-7522
SELECT ALL - COUNT( * ) * + 49
----
-49

skipif mysql # not compatible
query I rowsort label-7522
SELECT ALL - COUNT ( * ) * + 49
----
-49

query I rowsort
SELECT + - 13
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7524
SELECT - COUNT( * ) * + 88 DIV 49 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7524
SELECT - COUNT ( * ) * + 88 / 49 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7525
SELECT COUNT( * ) * - + 10 * - 56 + - 10
----
550

skipif mysql # not compatible
query I rowsort label-7525
SELECT COUNT ( * ) * - + 10 * - 56 + - 10
----
550

query I rowsort
SELECT ALL - 17 col1
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7527
SELECT CAST( SUM( + 87 ) AS SIGNED ) + 13 col2
----
100

skipif mysql # not compatible
query I rowsort label-7527
SELECT CAST ( SUM ( + 87 ) AS INTEGER ) + 13 col2
----
100

query I rowsort
SELECT + + 82
----
82

query I rowsort
SELECT ALL - - 82
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7530
SELECT COUNT( * ) * - MIN( 74 )
----
-74

skipif mysql # not compatible
query I rowsort label-7530
SELECT COUNT ( * ) * - MIN ( 74 )
----
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-7531
SELECT ALL - COUNT( * ) * - + ( + MAX( ALL + 6 ) ) AS col2, - 23
----
6
-23

skipif mysql # not compatible
query II rowsort label-7531
SELECT ALL - COUNT ( * ) * - + ( + MAX ( ALL + 6 ) ) AS col2, - 23
----
6
-23

query I rowsort
SELECT ALL - 33 AS col0
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7533
SELECT ALL 24 + + COUNT( * ) DIV - + 60 col0
----
24

skipif mysql # not compatible
query I rowsort label-7533
SELECT ALL 24 + + COUNT ( * ) / - + 60 col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7534
SELECT ALL 52 * - - COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-7534
SELECT ALL 52 * - - COUNT ( * )
----
52

query I rowsort
SELECT - 2 col2
----
-2

query I rowsort
SELECT ALL 13 col0
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7537
SELECT CAST( NULL AS SIGNED ) / - ( 32 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7537
SELECT CAST ( NULL AS INTEGER ) / - ( 32 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7538
SELECT DISTINCT + COUNT( * ) * 28 col0
----
28

skipif mysql # not compatible
query I rowsort label-7538
SELECT DISTINCT + COUNT ( * ) * 28 col0
----
28

query I rowsort
SELECT ALL + ( + 83 )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7540
SELECT - 72 * + COUNT( * )
----
-72

skipif mysql # not compatible
query I rowsort label-7540
SELECT - 72 * + COUNT ( * )
----
-72

query I rowsort
SELECT + 15 AS col0
----
15

query I rowsort
SELECT DISTINCT + 29
----
29

query I rowsort
SELECT ALL + 42 AS col2
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7544
SELECT - CAST( NULL AS SIGNED ) * 90
----
NULL

skipif mysql # not compatible
query I rowsort label-7544
SELECT - CAST ( NULL AS INTEGER ) * 90
----
NULL

query I rowsort
SELECT - - 89 AS col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-7546
SELECT COUNT( + 81 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7546
SELECT COUNT ( + 81 ) AS col0
----
1

query I rowsort
SELECT ALL - 47
----
-47

query I rowsort
SELECT DISTINCT + - 88
----
-88

query I rowsort
SELECT + 13 col1
----
13

query I rowsort
SELECT DISTINCT + 35 AS col2
----
35

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7551
SELECT DISTINCT - - COUNT( ALL CAST( NULL AS DECIMAL ) ) * 36
----
0

skipif mysql # not compatible
query I rowsort label-7551
SELECT DISTINCT - - COUNT ( ALL CAST ( NULL AS REAL ) ) * 36
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7552
SELECT ALL - ( + - COUNT( * ) ) * + 1
----
1

skipif mysql # not compatible
query I rowsort label-7552
SELECT ALL - ( + - COUNT ( * ) ) * + 1
----
1

query I rowsort
SELECT DISTINCT + 8 col0
----
8

query I rowsort
SELECT + - 37 * - - 76 + - ( 34 ) col2
----
-2846

query I rowsort
SELECT ALL - 49 AS col0
----
-49

query I rowsort
SELECT - 93 * - - 52
----
-4836

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7557
SELECT DISTINCT - 45, CAST( NULL AS DECIMAL ) AS col1
----
-45
NULL

skipif mysql # not compatible
query II rowsort label-7557
SELECT DISTINCT - 45, CAST ( NULL AS REAL ) AS col1
----
-45
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7558
SELECT 87 * + + COUNT( * )
----
87

skipif mysql # not compatible
query I rowsort label-7558
SELECT 87 * + + COUNT ( * )
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7559
SELECT - ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7559
SELECT - ( - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT - + 20 AS col0
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7561
SELECT - + 51 AS col1, CAST( NULL AS SIGNED ) AS col1
----
-51
NULL

skipif mysql # not compatible
query II rowsort label-7561
SELECT - + 51 AS col1, CAST ( NULL AS INTEGER ) AS col1
----
-51
NULL

query I rowsort
SELECT - ( 43 ) AS col0
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7563
SELECT - CAST( NULL AS SIGNED ) col1, + 46 AS col1
----
NULL
46

skipif mysql # not compatible
query II rowsort label-7563
SELECT - CAST ( NULL AS INTEGER ) col1, + 46 AS col1
----
NULL
46

query I rowsort
SELECT + 11 AS col1
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7565
SELECT DISTINCT - ( - CAST( NULL AS SIGNED ) ), 41 AS col1
----
NULL
41

skipif mysql # not compatible
query II rowsort label-7565
SELECT DISTINCT - ( - CAST ( NULL AS INTEGER ) ), 41 AS col1
----
NULL
41

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7566
SELECT ALL - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7566
SELECT ALL - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7567
SELECT ALL MAX( - 74 ) + COUNT( * )
----
-73

skipif mysql # not compatible
query I rowsort label-7567
SELECT ALL MAX ( - 74 ) + COUNT ( * )
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7568
SELECT DISTINCT - CAST( 47 AS SIGNED ) AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-7568
SELECT DISTINCT - CAST ( 47 AS INTEGER ) AS col0
----
-47

query I rowsort
SELECT + - 16 + 65 col0
----
49

query I rowsort
SELECT DISTINCT - 71 AS col2
----
-71

query I rowsort
SELECT - ( - 79 ) AS col2
----
79

query I rowsort
SELECT ( - 98 ) AS col2
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-7573
SELECT + 82 DIV + 41
----
2

skipif mysql # not compatible
query I rowsort label-7573
SELECT + 82 / + 41
----
2

query II rowsort
SELECT + 29, 68 AS col1
----
29
68

query I rowsort
SELECT ALL + 47 AS col2
----
47

query I rowsort
SELECT ALL + - 98 AS col2
----
-98

query I rowsort
SELECT + - 58 AS col0
----
-58

query I rowsort
SELECT ( - 19 ) AS col2
----
-19

query I rowsort
SELECT - - 6 AS col2
----
6

query I rowsort
SELECT 90 AS col0
----
90

query I rowsort
SELECT DISTINCT 70
----
70

query I rowsort
SELECT + 42 + - ( 74 )
----
-32

query I rowsort
SELECT ALL - - 16
----
16

query I rowsort
SELECT + 69 AS col1
----
69

query I rowsort
SELECT + 70 AS col2
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7586
SELECT - CAST( - - COUNT( * ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-7586
SELECT - CAST ( - - COUNT ( * ) AS INTEGER )
----
-1

query I rowsort
SELECT DISTINCT + + 9
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7588
SELECT + COUNT( * ) * - 62
----
-62

skipif mysql # not compatible
query I rowsort label-7588
SELECT + COUNT ( * ) * - 62
----
-62

query I rowsort
SELECT DISTINCT + ( - 88 )
----
-88

query I rowsort
SELECT ALL ( 92 )
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7591
SELECT COUNT( - + ( CAST( + + 35 AS SIGNED ) ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7591
SELECT COUNT ( - + ( CAST ( + + 35 AS INTEGER ) ) ) AS col1
----
1

query I rowsort
SELECT + - 98 + 53
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-7593
SELECT ALL - 92 - COUNT( * )
----
-93

skipif mysql # not compatible
query I rowsort label-7593
SELECT ALL - 92 - COUNT ( * )
----
-93

query I rowsort
SELECT DISTINCT + 78 col0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7595
SELECT DISTINCT COUNT( * ) * - 21
----
-21

skipif mysql # not compatible
query I rowsort label-7595
SELECT DISTINCT COUNT ( * ) * - 21
----
-21

query I rowsort
SELECT ALL 70 - + 70
----
0

query I rowsort
SELECT DISTINCT + 84 * + - 26
----
-2184

onlyif mysql # DIV for integer division: 
query I rowsort label-7598
SELECT 66 DIV - 67
----
0

skipif mysql # not compatible
query I rowsort label-7598
SELECT 66 / - 67
----
0

query I rowsort
SELECT 72 + 42
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-7600
SELECT - SUM( 26 )
----
-26

skipif mysql # not compatible
query I rowsort label-7600
SELECT - SUM ( 26 )
----
-26

query I rowsort
SELECT DISTINCT 16 AS col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-7602
SELECT ALL MIN( + 29 ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-7602
SELECT ALL MIN ( + 29 ) AS col0
----
29

query I rowsort
SELECT ALL - - 12
----
12

query I rowsort
SELECT + + 98
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7605
SELECT DISTINCT + 51 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7605
SELECT DISTINCT + 51 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 5 + + + 62 * + - 8 + - 71
----
-572

query I rowsort
SELECT DISTINCT - 93 AS col2
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-7608
SELECT ( + COUNT( * ) ) + 1
----
2

skipif mysql # not compatible
query I rowsort label-7608
SELECT ( + COUNT ( * ) ) + 1
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7609
SELECT DISTINCT - ( - - 7 ) DIV SUM( DISTINCT + 39 )
----
0

skipif mysql # not compatible
query I rowsort label-7609
SELECT DISTINCT - ( - - 7 ) / SUM ( DISTINCT + 39 )
----
0

query I rowsort
SELECT ALL - 11 * - 78 AS col1
----
858

onlyif mysql # aggregate syntax: 
query II rowsort label-7611
SELECT ALL - COUNT( * ) * + - SUM( ALL 3 ) AS col2, 28 col2
----
3
28

skipif mysql # not compatible
query II rowsort label-7611
SELECT ALL - COUNT ( * ) * + - SUM ( ALL 3 ) AS col2, 28 col2
----
3
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7612
SELECT + COUNT( * ) DIV + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7612
SELECT + COUNT ( * ) / + COUNT ( * ) AS col1
----
1

query I rowsort
SELECT - + 71
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-7614
SELECT SUM( + 41 ) col1
----
41

skipif mysql # not compatible
query I rowsort label-7614
SELECT SUM ( + 41 ) col1
----
41

query I rowsort
SELECT DISTINCT 35 AS col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7616
SELECT + + COUNT( * ) - 15
----
-14

skipif mysql # not compatible
query I rowsort label-7616
SELECT + + COUNT ( * ) - 15
----
-14

query I rowsort
SELECT ALL + 60 AS col2
----
60

query I rowsort
SELECT DISTINCT + 73 col1
----
73

query I rowsort
SELECT DISTINCT + 79
----
79

query I rowsort
SELECT ( - - 85 ) AS col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7621
SELECT DISTINCT + MIN( DISTINCT 60 )
----
60

skipif mysql # not compatible
query I rowsort label-7621
SELECT DISTINCT + MIN ( DISTINCT 60 )
----
60

query II rowsort
SELECT + 21 AS col2, 82 AS col2
----
21
82

query I rowsort
SELECT ALL + 91 AS col0
----
91

query I rowsort
SELECT DISTINCT - + 91 * + 45 AS col2
----
-4095

query I rowsort
SELECT 68 col2
----
68

query II rowsort
SELECT ALL 42 AS col1, + 66
----
42
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7627
SELECT ALL + + COUNT( * ) + + MIN( - + 6 )
----
-5

skipif mysql # not compatible
query I rowsort label-7627
SELECT ALL + + COUNT ( * ) + + MIN ( - + 6 )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7628
SELECT COUNT( * ) + - + 3
----
-2

skipif mysql # not compatible
query I rowsort label-7628
SELECT COUNT ( * ) + - + 3
----
-2

query I rowsort
SELECT - - 44
----
44

query I rowsort
SELECT 34 * - 36
----
-1224

query I rowsort
SELECT 50 * - 12
----
-600

query I rowsort
SELECT + 6 col0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7633
SELECT SUM( - + CAST( NULL AS SIGNED ) ) - + + 1 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7633
SELECT SUM ( - + CAST ( NULL AS INTEGER ) ) - + + 1 AS col0
----
NULL

query I rowsort
SELECT ALL - 4
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7635
SELECT COUNT( * ) * + - CAST( NULL AS SIGNED ) + + + 74 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7635
SELECT COUNT ( * ) * + - CAST ( NULL AS INTEGER ) + + + 74 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7636
SELECT DISTINCT 81 - + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7636
SELECT DISTINCT 81 - + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7637
SELECT - 55 * COUNT( * ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-7637
SELECT - 55 * COUNT ( * ) AS col2
----
-55

query I rowsort
SELECT DISTINCT - 79
----
-79

query I rowsort
SELECT - ( 65 )
----
-65

query I rowsort
SELECT - 49 col0
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7641
SELECT DISTINCT - ( 93 ) + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7641
SELECT DISTINCT - ( 93 ) + - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7642
SELECT DISTINCT + CAST( NULL AS SIGNED ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7642
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + NULLIF ( + - 7, - 72 )
----
-7

query I rowsort
SELECT DISTINCT + 7 AS col2
----
7

query II rowsort
SELECT + 83 AS col1, 13 AS col1
----
83
13

query I rowsort
SELECT DISTINCT + + 93
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7647
SELECT DISTINCT + NULLIF ( + + 7, NULLIF ( - COUNT( * ), 84 ) ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-7647
SELECT DISTINCT + NULLIF ( + + 7, NULLIF ( - COUNT ( * ), 84 ) ) AS col1
----
7

query II rowsort
SELECT 62 col0, - 98
----
62
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-7649
SELECT ALL + + COUNT( * ), + COUNT( * ) AS col0
----
1
1

skipif mysql # not compatible
query II rowsort label-7649
SELECT ALL + + COUNT ( * ), + COUNT ( * ) AS col0
----
1
1

query I rowsort
SELECT 14 col1
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7651
SELECT ALL CAST( 12 AS SIGNED )
----
12

skipif mysql # not compatible
query I rowsort label-7651
SELECT ALL CAST ( 12 AS INTEGER )
----
12

query I rowsort
SELECT - 70 AS col1
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7653
SELECT ALL + MIN( ALL + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7653
SELECT ALL + MIN ( ALL + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7654
SELECT DISTINCT - 41 DIV - CAST( + + COUNT( DISTINCT - 55 ) AS SIGNED ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-7654
SELECT DISTINCT - 41 / - CAST ( + + COUNT ( DISTINCT - 55 ) AS INTEGER ) AS col2
----
41

query I rowsort
SELECT + + 63
----
63

query I rowsort
SELECT 50 * + + 8
----
400

query I rowsort
SELECT DISTINCT 88 + - 59 col1
----
29

query I rowsort
SELECT ALL 23 * + - 37 AS col2
----
-851

query I rowsort
SELECT - 68 AS col2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-7660
SELECT ALL - 51 * + + COUNT( * )
----
-51

skipif mysql # not compatible
query I rowsort label-7660
SELECT ALL - 51 * + + COUNT ( * )
----
-51

query I rowsort
SELECT 16 col1
----
16

query I rowsort
SELECT ALL + - 0 + + - 37 AS col1
----
-37

query I rowsort
SELECT - 54 col1
----
-54

query I rowsort
SELECT - 26 col2
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-7665
SELECT ALL + 91 DIV 20 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-7665
SELECT ALL + 91 / 20 AS col1
----
4

query I rowsort
SELECT DISTINCT 94 col1
----
94

query I rowsort
SELECT + - 2 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7668
SELECT COUNT( + - 79 )
----
1

skipif mysql # not compatible
query I rowsort label-7668
SELECT COUNT ( + - 79 )
----
1

query I rowsort
SELECT + 30 col0
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7670
SELECT + - CAST( NULL AS SIGNED ) * - 67 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7670
SELECT + - CAST ( NULL AS INTEGER ) * - 67 + COUNT ( * )
----
NULL

query I rowsort
SELECT - 21 AS col2
----
-21

query I rowsort
SELECT - 6 AS col1
----
-6

query I rowsort
SELECT ALL + - 11
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-7674
SELECT - + COUNT( * ) * 52 + 63 + - 39 col2
----
-28

skipif mysql # not compatible
query I rowsort label-7674
SELECT - + COUNT ( * ) * 52 + 63 + - 39 col2
----
-28

query I rowsort
SELECT + + 19 AS col1
----
19

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7676
SELECT + + ( - CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7676
SELECT + + ( - CAST ( NULL AS REAL ) ) AS col2
----
NULL

query I rowsort
SELECT ALL + - 36 AS col0
----
-36

query I rowsort
SELECT ( + 33 )
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-7679
SELECT ALL 71 DIV + 26
----
2

skipif mysql # not compatible
query I rowsort label-7679
SELECT ALL 71 / + 26
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7680
SELECT + CAST( ( + 27 ) AS SIGNED ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-7680
SELECT + CAST ( ( + 27 ) AS INTEGER ) AS col2
----
27

query I rowsort
SELECT ALL + 39 AS col0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7682
SELECT ALL - 72 * + COUNT( * ) AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-7682
SELECT ALL - 72 * + COUNT ( * ) AS col1
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7683
SELECT ALL ( + - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7683
SELECT ALL ( + - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT ( - 49 ) + 45
----
-4

query I rowsort
SELECT DISTINCT + 83 + + + 45
----
128

query I rowsort
SELECT - 76 col0
----
-76

query I rowsort
SELECT 49 col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7688
SELECT ALL COUNT( * ) + - + 61 AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-7688
SELECT ALL COUNT ( * ) + - + 61 AS col1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-7689
SELECT 3 * COUNT( * ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-7689
SELECT 3 * COUNT ( * ) AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7690
SELECT ALL 10 * + + COUNT( * )
----
10

skipif mysql # not compatible
query I rowsort label-7690
SELECT ALL 10 * + + COUNT ( * )
----
10

query I rowsort
SELECT ALL - + 23
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-7692
SELECT + ( + ( - + COUNT( * ) ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7692
SELECT + ( + ( - + COUNT ( * ) ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7693
SELECT ALL - SUM( - + 45 )
----
45

skipif mysql # not compatible
query I rowsort label-7693
SELECT ALL - SUM ( - + 45 )
----
45

query I rowsort
SELECT ALL - 92 AS col0
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7695
SELECT ALL - 28 * CAST( NULL AS SIGNED ) + - 97 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7695
SELECT ALL - 28 * CAST ( NULL AS INTEGER ) + - 97 AS col2
----
NULL

query II rowsort
SELECT + 6, 91 AS col0
----
6
91

query I rowsort
SELECT DISTINCT 59 AS col2
----
59

query I rowsort
SELECT DISTINCT 62 * 2
----
124

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7699
SELECT ALL + CASE - 14 WHEN - - 38 * CAST( NULL AS DECIMAL ) + - + 29 THEN + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7699
SELECT ALL + CASE - 14 WHEN - - 38 * CAST ( NULL AS REAL ) + - + 29 THEN + COUNT ( * ) END
----
NULL

query I rowsort
SELECT DISTINCT + 80 col2
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7701
SELECT ALL CAST( + 38 AS SIGNED )
----
38

skipif mysql # not compatible
query I rowsort label-7701
SELECT ALL CAST ( + 38 AS INTEGER )
----
38

query I rowsort
SELECT - 34 + - 96 AS col1
----
-130

onlyif mysql # aggregate syntax: 
query I rowsort label-7703
SELECT + - COUNT( * ) + + - COUNT( * ) col0
----
-2

skipif mysql # not compatible
query I rowsort label-7703
SELECT + - COUNT ( * ) + + - COUNT ( * ) col0
----
-2

query I rowsort
SELECT DISTINCT + 6 col0
----
6

query I rowsort
SELECT ALL - 2 AS col1
----
-2

query I rowsort
SELECT + - 63 AS col2
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7707
SELECT ALL - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7707
SELECT ALL - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - ( - - 13 ) col0
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7709
SELECT ALL - 19 * - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7709
SELECT ALL - 19 * - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) col1
----
NULL

query I rowsort
SELECT + 68 * + 28
----
1904

onlyif mysql # aggregate syntax: 
query I rowsort label-7711
SELECT - - ( + COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7711
SELECT - - ( + COUNT ( * ) ) AS col2
----
1

query I rowsort
SELECT ALL + 83 AS col0
----
83

query I rowsort
SELECT ALL - 2 AS col0
----
-2

query I rowsort
SELECT 47 * - 51 AS col2
----
-2397

onlyif mysql # aggregate syntax: 
query I rowsort label-7715
SELECT COALESCE ( 53, + + 83 ) * COUNT( * ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-7715
SELECT COALESCE ( 53, + + 83 ) * COUNT ( * ) AS col2
----
53

query I rowsort
SELECT ALL - - 35 + - 96
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-7717
SELECT DISTINCT - COUNT( * ) * 4 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-7717
SELECT DISTINCT - COUNT ( * ) * 4 AS col1
----
-4

query I rowsort
SELECT DISTINCT + 80
----
80

query I rowsort
SELECT DISTINCT + 99 AS col1
----
99

query I rowsort
SELECT + 41 col0
----
41

query I rowsort
SELECT DISTINCT 97 col1
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7722
SELECT - COUNT( * ) DIV - - 75
----
0

skipif mysql # not compatible
query I rowsort label-7722
SELECT - COUNT ( * ) / - - 75
----
0

query I rowsort
SELECT + 18 col1
----
18

query I rowsort
SELECT + 39 + 87 AS col0
----
126

query II rowsort
SELECT - 14 AS col0, 84
----
-14
84

query I rowsort
SELECT DISTINCT + ( 46 ) AS col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7727
SELECT COUNT( * ) + 95
----
96

skipif mysql # not compatible
query I rowsort label-7727
SELECT COUNT ( * ) + 95
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7728
SELECT COUNT( * ) * + + 82 * + 44 AS col1
----
3608

skipif mysql # not compatible
query I rowsort label-7728
SELECT COUNT ( * ) * + + 82 * + 44 AS col1
----
3608

query I rowsort
SELECT + 90 col1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7730
SELECT - 76 * COUNT( * ) AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-7730
SELECT - 76 * COUNT ( * ) AS col2
----
-76

query I rowsort
SELECT + 4 AS col1
----
4

query I rowsort
SELECT 68 AS col1
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7733
SELECT ALL - CAST( NULL AS SIGNED ) / - - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7733
SELECT ALL - CAST ( NULL AS INTEGER ) / - - COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT ALL + - 90
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-7735
SELECT - + 69 DIV + 57 col1
----
-1

skipif mysql # not compatible
query I rowsort label-7735
SELECT - + 69 / + 57 col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7736
SELECT DISTINCT + COUNT( - 29 ) DIV + 25 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7736
SELECT DISTINCT + COUNT ( - 29 ) / + 25 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7737
SELECT DISTINCT 64 * + COUNT( * ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-7737
SELECT DISTINCT 64 * + COUNT ( * ) AS col2
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-7738
SELECT COUNT( * ), + COUNT( + ( + - 51 ) ) AS col2
----
1
1

skipif mysql # not compatible
query II rowsort label-7738
SELECT COUNT ( * ), + COUNT ( + ( + - 51 ) ) AS col2
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7739
SELECT DISTINCT + COUNT( * ) + + - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7739
SELECT DISTINCT + COUNT ( * ) + + - COUNT ( * ) AS col2
----
0

query II rowsort
SELECT - 61 AS col1, + 83 AS col2
----
-61
83

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7741
SELECT ALL 47 AS col2, - CAST( NULL AS SIGNED ) AS col0
----
47
NULL

skipif mysql # not compatible
query II rowsort label-7741
SELECT ALL 47 AS col2, - CAST ( NULL AS INTEGER ) AS col0
----
47
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7742
SELECT + + CAST( NULL AS SIGNED ) * + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7742
SELECT + + CAST ( NULL AS INTEGER ) * + - COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT + 43 AS col0
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7744
SELECT + ( + CAST( NULL AS SIGNED ) ) * 54 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7744
SELECT + ( + CAST ( NULL AS INTEGER ) ) * 54 AS col0
----
NULL

query I rowsort
SELECT ALL - 57 * - ( + - 37 ) AS col0
----
-2109

query I rowsort
SELECT - 41 - - - 55 AS col0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7747
SELECT + ( - + MAX( ALL - 30 ) )
----
30

skipif mysql # not compatible
query I rowsort label-7747
SELECT + ( - + MAX ( ALL - 30 ) )
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7748
SELECT + 5 * + + COUNT( * ) DIV COUNT( * ) * + 49
----
245

skipif mysql # not compatible
query I rowsort label-7748
SELECT + 5 * + + COUNT ( * ) / COUNT ( * ) * + 49
----
245

query I rowsort
SELECT DISTINCT - 58 AS col1
----
-58

query I rowsort
SELECT ALL - - 14 AS col0
----
14

query I rowsort
SELECT ALL + - 75 + + 70 col0
----
-5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7752
SELECT ( + - CAST( NULL AS DECIMAL ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7752
SELECT ( + - CAST ( NULL AS REAL ) ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7753
SELECT ALL - + ( + + COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-7753
SELECT ALL - + ( + + COUNT ( * ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7754
SELECT 31 * 56 * + - COUNT( * )
----
-1736

skipif mysql # not compatible
query I rowsort label-7754
SELECT 31 * 56 * + - COUNT ( * )
----
-1736

query I rowsort
SELECT ALL - 28 AS col0
----
-28

query I rowsort
SELECT + 51 col0
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-7757
SELECT DISTINCT 92 DIV - 49
----
-1

skipif mysql # not compatible
query I rowsort label-7757
SELECT DISTINCT 92 / - 49
----
-1

query I rowsort
SELECT 82 * + 44
----
3608

query I rowsort
SELECT 44 + 86 AS col0
----
130

query I rowsort
SELECT ALL 83 AS col0
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-7761
SELECT DISTINCT 89, - COUNT( * ) AS col2
----
89
-1

skipif mysql # not compatible
query II rowsort label-7761
SELECT DISTINCT 89, - COUNT ( * ) AS col2
----
89
-1

query I rowsort
SELECT + 50 col1
----
50

query I rowsort
SELECT ( + 15 ) AS col1
----
15

query I rowsort
SELECT ALL + 21 AS col2
----
21

query I rowsort
SELECT + 48 AS col2
----
48

query I rowsort
SELECT ( + - 68 )
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7767
SELECT ( CAST( - COUNT( * ) AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-7767
SELECT ( CAST ( - COUNT ( * ) AS INTEGER ) )
----
-1

query I rowsort
SELECT DISTINCT + ( + + 31 )
----
31

query I rowsort
SELECT - 63 col2
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7770
SELECT ALL - 97 / + + CAST( NULL AS SIGNED ) * + + 16 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7770
SELECT ALL - 97 / + + CAST ( NULL AS INTEGER ) * + + 16 AS col0
----
NULL

query II rowsort
SELECT DISTINCT 83 AS col0, 34
----
83
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7772
SELECT DISTINCT - COUNT( * ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-7772
SELECT DISTINCT - COUNT ( * ) col0
----
-1

query I rowsort
SELECT DISTINCT - 30
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7774
SELECT 81 + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7774
SELECT 81 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 76 col2
----
-76

query I rowsort
SELECT ALL + + 24 - 13 AS col2
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-7777
SELECT ALL - 83, 39 * + COUNT( * ) AS col1
----
-83
39

skipif mysql # not compatible
query II rowsort label-7777
SELECT ALL - 83, 39 * + COUNT ( * ) AS col1
----
-83
39

query I rowsort
SELECT - 46 AS col2
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7779
SELECT CAST( NULL AS SIGNED ) / + 72 * + + 77 + ( + 33 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7779
SELECT CAST ( NULL AS INTEGER ) / + 72 * + + 77 + ( + 33 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7780
SELECT MIN( DISTINCT + 10 )
----
10

skipif mysql # not compatible
query I rowsort label-7780
SELECT MIN ( DISTINCT + 10 )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7781
SELECT ALL - - ( + MIN( ALL + 97 ) )
----
97

skipif mysql # not compatible
query I rowsort label-7781
SELECT ALL - - ( + MIN ( ALL + 97 ) )
----
97

query I rowsort
SELECT + - 14 col1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-7783
SELECT DISTINCT + MIN( ALL 95 ) col2
----
95

skipif mysql # not compatible
query I rowsort label-7783
SELECT DISTINCT + MIN ( ALL 95 ) col2
----
95

query I rowsort
SELECT DISTINCT 54 AS col1
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7785
SELECT - COUNT( * ) DIV - 64 AS col1, + COUNT( * )
----
0
1

skipif mysql # not compatible
query II rowsort label-7785
SELECT - COUNT ( * ) / - 64 AS col1, + COUNT ( * )
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7786
SELECT ( - - COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7786
SELECT ( - - COUNT ( * ) ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7787
SELECT DISTINCT + + COUNT( * ) DIV + + ( 45 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7787
SELECT DISTINCT + + COUNT ( * ) / + + ( 45 ) AS col1
----
0

query I rowsort
SELECT + 65 col1
----
65

query I rowsort
SELECT 97 col2
----
97

query I rowsort
SELECT DISTINCT ( 22 ) AS col2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-7791
SELECT - ( COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7791
SELECT - ( COUNT ( * ) ) AS col2
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7792
SELECT ALL + ( 29 ) - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7792
SELECT ALL + ( 29 ) - - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL + 87 AS col0
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7794
SELECT - 55 DIV COUNT( * )
----
-55

skipif mysql # not compatible
query I rowsort label-7794
SELECT - 55 / COUNT ( * )
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-7795
SELECT ALL + + ( - COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7795
SELECT ALL + + ( - COUNT ( * ) ) AS col1
----
-1

query I rowsort
SELECT + + 69 AS col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7797
SELECT ALL COUNT( * ) - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-7797
SELECT ALL COUNT ( * ) - COUNT ( * )
----
0

query I rowsort
SELECT ALL - 47 AS col0
----
-47

query I rowsort
SELECT ALL - + 9 col2
----
-9

query I rowsort
SELECT DISTINCT - - 53 * 94
----
4982

query I rowsort
SELECT DISTINCT - 88 col1
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-7802
SELECT 47 * COUNT( * ) col0
----
47

skipif mysql # not compatible
query I rowsort label-7802
SELECT 47 * COUNT ( * ) col0
----
47

query I rowsort
SELECT + 1 col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7804
SELECT DISTINCT - COUNT( * ) DIV - 70 * 46 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7804
SELECT DISTINCT - COUNT ( * ) / - 70 * 46 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7805
SELECT DISTINCT MIN( ALL - 3 )
----
-3

skipif mysql # not compatible
query I rowsort label-7805
SELECT DISTINCT MIN ( ALL - 3 )
----
-3

query I rowsort
SELECT 73 AS col2
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7807
SELECT ALL + SUM( + - 85 ) * MAX( + 36 ) AS col0
----
-3060

skipif mysql # not compatible
query I rowsort label-7807
SELECT ALL + SUM ( + - 85 ) * MAX ( + 36 ) AS col0
----
-3060

query I rowsort
SELECT ALL 60 AS col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7809
SELECT + ( + SUM( ALL + 21 ) ) + - + 12 AS col1
----
9

skipif mysql # not compatible
query I rowsort label-7809
SELECT + ( + SUM ( ALL + 21 ) ) + - + 12 AS col1
----
9

query I rowsort
SELECT DISTINCT + 11
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7811
SELECT - MAX( DISTINCT - 70 ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-7811
SELECT - MAX ( DISTINCT - 70 ) AS col2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-7812
SELECT ALL + MAX( ALL - 11 )
----
-11

skipif mysql # not compatible
query I rowsort label-7812
SELECT ALL + MAX ( ALL - 11 )
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-7813
SELECT - + ( 19 ) AS col2, + ( + - 43 ) * - + ( COUNT( * ) )
----
-19
43

skipif mysql # not compatible
query II rowsort label-7813
SELECT - + ( 19 ) AS col2, + ( + - 43 ) * - + ( COUNT ( * ) )
----
-19
43

query I rowsort
SELECT 4 col2
----
4

query I rowsort
SELECT - 99 - 64
----
-163

query I rowsort
SELECT ALL + 65 AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7817
SELECT DISTINCT + CASE COUNT( * ) WHEN SUM( - ( + ( + 24 ) ) ) THEN COUNT( * ) * - 50 - - + 44 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7817
SELECT DISTINCT + CASE COUNT ( * ) WHEN SUM ( - ( + ( + 24 ) ) ) THEN COUNT ( * ) * - 50 - - + 44 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT ( - - 7 )
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7819
SELECT DISTINCT CAST( 79 AS SIGNED ) col2
----
79

skipif mysql # not compatible
query I rowsort label-7819
SELECT DISTINCT CAST ( 79 AS INTEGER ) col2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7820
SELECT ALL + ( + - COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7820
SELECT ALL + ( + - COUNT ( * ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7821
SELECT - MAX( ALL + 29 ) AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-7821
SELECT - MAX ( ALL + 29 ) AS col0
----
-29

query I rowsort
SELECT DISTINCT 41
----
41

query I rowsort
SELECT ALL - ( + 15 )
----
-15

query I rowsort
SELECT DISTINCT - 87 AS col2
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-7825
SELECT ALL COUNT( * ) + + 24
----
25

skipif mysql # not compatible
query I rowsort label-7825
SELECT ALL COUNT ( * ) + + 24
----
25

query I rowsort
SELECT DISTINCT - 74 AS col2
----
-74

query I rowsort
SELECT ALL - 90 AS col2
----
-90

query I rowsort
SELECT + 41 col2
----
41

query I rowsort
SELECT - - ( + ( + 4 ) ) AS col1
----
4

query I rowsort
SELECT - ( + 56 ) AS col1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-7831
SELECT COUNT( * ) - + - 20 AS col0
----
21

skipif mysql # not compatible
query I rowsort label-7831
SELECT COUNT ( * ) - + - 20 AS col0
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7832
SELECT ALL + COUNT( * ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7832
SELECT ALL + COUNT ( * ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7833
SELECT ALL - CAST( + 30 AS SIGNED ) AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-7833
SELECT ALL - CAST ( + 30 AS INTEGER ) AS col2
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7834
SELECT CAST( - 99 AS SIGNED ) - + 13 - - 84
----
-28

skipif mysql # not compatible
query I rowsort label-7834
SELECT CAST ( - 99 AS INTEGER ) - + 13 - - 84
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-7835
SELECT DISTINCT 91 * MIN( - 37 )
----
-3367

skipif mysql # not compatible
query I rowsort label-7835
SELECT DISTINCT 91 * MIN ( - 37 )
----
-3367

query I rowsort
SELECT + COALESCE ( + 61, - + 92 )
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7837
SELECT + 38 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7837
SELECT + 38 - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7838
SELECT + + COUNT( * ) + 88
----
89

skipif mysql # not compatible
query I rowsort label-7838
SELECT + + COUNT ( * ) + 88
----
89

query I rowsort
SELECT ALL - ( + + 24 ) col1
----
-24

query I rowsort
SELECT + 90 + + + 17
----
107

query I rowsort
SELECT DISTINCT 25
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7842
SELECT - 31 + 36 + COUNT( * ) * 24 AS col2
----
29

skipif mysql # not compatible
query I rowsort label-7842
SELECT - 31 + 36 + COUNT ( * ) * 24 AS col2
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7843
SELECT - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7843
SELECT - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL - 80 AS col2
----
-80

query I rowsort
SELECT DISTINCT 66 col2
----
66

query I rowsort
SELECT - 87 * 96
----
-8352

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7847
SELECT - 51 * + CAST( + + 80 AS SIGNED ) AS col0
----
-4080

skipif mysql # not compatible
query I rowsort label-7847
SELECT - 51 * + CAST ( + + 80 AS INTEGER ) AS col0
----
-4080

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7848
SELECT NULLIF ( - + CAST( NULL AS DECIMAL ), - 51 + 39 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7848
SELECT NULLIF ( - + CAST ( NULL AS REAL ), - 51 + 39 ) AS col2
----
NULL

query I rowsort
SELECT ALL - 89 AS col0
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-7850
SELECT ALL COUNT( ALL - 64 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7850
SELECT ALL COUNT ( ALL - 64 ) AS col0
----
1

query I rowsort
SELECT + + 95 * + 82
----
7790

onlyif mysql # aggregate syntax: 
query I rowsort label-7852
SELECT + 81 + + - 79 * + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-7852
SELECT + 81 + + - 79 * + + COUNT ( * )
----
2

query I rowsort
SELECT ALL - + 2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7854
SELECT COUNT( * ) * + 58
----
58

skipif mysql # not compatible
query I rowsort label-7854
SELECT COUNT ( * ) * + 58
----
58

query I rowsort
SELECT ALL - + 69 col0
----
-69

query I rowsort
SELECT ALL 33 AS col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7857
SELECT COUNT( * ) * + 3 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-7857
SELECT COUNT ( * ) * + 3 AS col2
----
3

query I rowsort
SELECT + 9 AS col1
----
9

query I rowsort
SELECT ALL 79 * - 3 AS col2
----
-237

onlyif mysql # aggregate syntax: 
query I rowsort label-7860
SELECT 76 + ( COUNT( * ) ) * - - COUNT( * ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-7860
SELECT 76 + ( COUNT ( * ) ) * - - COUNT ( * ) AS col0
----
77

query I rowsort
SELECT ALL - ( - - 90 )
----
-90

query I rowsort
SELECT + - 6
----
-6

query I rowsort
SELECT - 95 AS col2
----
-95

query II rowsort
SELECT - 40 AS col1, 73
----
-40
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7865
SELECT ALL COUNT( ALL + 55 ) AS col1, - CAST( NULL AS SIGNED )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-7865
SELECT ALL COUNT ( ALL + 55 ) AS col1, - CAST ( NULL AS INTEGER )
----
1
NULL

query I rowsort
SELECT ALL + 41 AS col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7867
SELECT + SUM( ALL - 60 ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-7867
SELECT + SUM ( ALL - 60 ) AS col0
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7868
SELECT + 55 * - - SUM( - CAST( + 28 AS SIGNED ) ) AS col1, - 49
----
-1540
-49

skipif mysql # not compatible
query II rowsort label-7868
SELECT + 55 * - - SUM ( - CAST ( + 28 AS INTEGER ) ) AS col1, - 49
----
-1540
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7869
SELECT + + CAST( NULL AS SIGNED ) / - 12 - - 92
----
NULL

skipif mysql # not compatible
query I rowsort label-7869
SELECT + + CAST ( NULL AS INTEGER ) / - 12 - - 92
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7870
SELECT + SUM( ALL - 57 ) AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-7870
SELECT + SUM ( ALL - 57 ) AS col2
----
-57

query I rowsort
SELECT - + 8 * 25
----
-200

query I rowsort
SELECT - + 16 AS col1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-7873
SELECT ALL + MAX( ALL + 7 )
----
7

skipif mysql # not compatible
query I rowsort label-7873
SELECT ALL + MAX ( ALL + 7 )
----
7

query I rowsort
SELECT DISTINCT 23 - + 49
----
-26

query I rowsort
SELECT + 40 * - 13
----
-520

query I rowsort
SELECT ALL ( 66 )
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7877
SELECT ALL CAST( 70 AS SIGNED ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-7877
SELECT ALL CAST ( 70 AS INTEGER ) AS col2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-7878
SELECT - 32 * + + COUNT( * )
----
-32

skipif mysql # not compatible
query I rowsort label-7878
SELECT - 32 * + + COUNT ( * )
----
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7879
SELECT - 96 DIV + COUNT( * ) AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-7879
SELECT - 96 / + COUNT ( * ) AS col2
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7880
SELECT DISTINCT + ( + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-7880
SELECT DISTINCT + ( + COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7881
SELECT + ( + MAX( ALL 16 ) ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-7881
SELECT + ( + MAX ( ALL 16 ) ) AS col0
----
16

query I rowsort
SELECT DISTINCT - 97
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7883
SELECT 25 * COUNT( * ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-7883
SELECT 25 * COUNT ( * ) AS col2
----
25

query I rowsort
SELECT ALL - 62 + 40
----
-22

query I rowsort
SELECT - + 58
----
-58

query I rowsort
SELECT ALL - - 86
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-7887
SELECT ALL - 63 * COUNT( * ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-7887
SELECT ALL - 63 * COUNT ( * ) AS col0
----
-63

query I rowsort
SELECT - 63 col1
----
-63

query I rowsort
SELECT + + 7
----
7

query I rowsort
SELECT ALL - - 72
----
72

query I rowsort
SELECT DISTINCT - + 11
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-7892
SELECT COUNT( * ) * + 25 AS col2
----
25

skipif mysql # not compatible
query I rowsort label-7892
SELECT COUNT ( * ) * + 25 AS col2
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7893
SELECT 54 + - CAST( - CAST( + 6 AS SIGNED ) AS SIGNED ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-7893
SELECT 54 + - CAST ( - CAST ( + 6 AS INTEGER ) AS INTEGER ) AS col1
----
60

query I rowsort
SELECT ALL 36 col0
----
36

query I rowsort
SELECT - 89 AS col0
----
-89

query I rowsort
SELECT ALL - - 21 + + 47 AS col1
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7897
SELECT COUNT( * ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7897
SELECT COUNT ( * ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7898
SELECT - - 14 * CAST( NULL AS SIGNED ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7898
SELECT - - 14 * CAST ( NULL AS INTEGER ) + COUNT ( * )
----
NULL

query I rowsort
SELECT + ( ( + 83 ) )
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-7900
SELECT ALL + 9 AS col1, COUNT( * ) * - - 17
----
9
17

skipif mysql # not compatible
query II rowsort label-7900
SELECT ALL + 9 AS col1, COUNT ( * ) * - - 17
----
9
17

query I rowsort
SELECT - 10 * 0
----
0

query I rowsort
SELECT - 59 col2
----
-59

query I rowsort
SELECT ALL 70 col0
----
70

query I rowsort
SELECT - 51 * 1 AS col2
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7905
SELECT ( + + CAST( + - CAST( - MIN( - 41 ) AS SIGNED ) AS SIGNED ) )
----
-41

skipif mysql # not compatible
query I rowsort label-7905
SELECT ( + + CAST ( + - CAST ( - MIN ( - 41 ) AS INTEGER ) AS INTEGER ) )
----
-41

query I rowsort
SELECT ALL - ( + - 66 ) AS col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7907
SELECT + COUNT( ALL - 47 )
----
1

skipif mysql # not compatible
query I rowsort label-7907
SELECT + COUNT ( ALL - 47 )
----
1

query I rowsort
SELECT + + 36 col2
----
36

query I rowsort
SELECT ( + 23 ) col1
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7910
SELECT + CAST( + + 4 AS SIGNED ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-7910
SELECT + CAST ( + + 4 AS INTEGER ) AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7911
SELECT - MAX( - 42 )
----
42

skipif mysql # not compatible
query I rowsort label-7911
SELECT - MAX ( - 42 )
----
42

query I rowsort
SELECT + + 95 * 7 AS col2
----
665

query I rowsort
SELECT DISTINCT 37 col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7914
SELECT ALL COUNT( 88 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7914
SELECT ALL COUNT ( 88 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7915
SELECT 60 * + COUNT( * ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-7915
SELECT 60 * + COUNT ( * ) AS col0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7916
SELECT COUNT( * ) - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-7916
SELECT COUNT ( * ) - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7917
SELECT SUM( ALL - 45 ) AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-7917
SELECT SUM ( ALL - 45 ) AS col2
----
-45

query I rowsort
SELECT + 6 col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7919
SELECT DISTINCT + COUNT( * ) + - 82 AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-7919
SELECT DISTINCT + COUNT ( * ) + - 82 AS col2
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7920
SELECT + CAST( + 11 AS SIGNED ) + 58
----
69

skipif mysql # not compatible
query I rowsort label-7920
SELECT + CAST ( + 11 AS INTEGER ) + 58
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-7921
SELECT + COUNT( * ), COUNT( * ) AS col2
----
1
1

skipif mysql # not compatible
query II rowsort label-7921
SELECT + COUNT ( * ), COUNT ( * ) AS col2
----
1
1

query I rowsort
SELECT ALL + 14 AS col1
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7923
SELECT - CAST( - 60 AS SIGNED ) * + 9 AS col0
----
540

skipif mysql # not compatible
query I rowsort label-7923
SELECT - CAST ( - 60 AS INTEGER ) * + 9 AS col0
----
540

query I rowsort
SELECT + 55 * - - 2 AS col0
----
110

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7925
SELECT DISTINCT + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7925
SELECT DISTINCT + - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL - 23 AS col1
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7927
SELECT - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7927
SELECT - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7928
SELECT - CAST( NULL AS DECIMAL ) AS col0, CAST( + 16 AS SIGNED ) AS col1
----
NULL
16

skipif mysql # not compatible
query II rowsort label-7928
SELECT - CAST ( NULL AS REAL ) AS col0, CAST ( + 16 AS INTEGER ) AS col1
----
NULL
16

query I rowsort
SELECT DISTINCT 32
----
32

query I rowsort
SELECT - 3 * - + 22 AS col2
----
66

onlyif mysql # DIV for integer division: 
query II rowsort label-7931
SELECT DISTINCT 92, + 72 DIV + 62 AS col0
----
92
1

skipif mysql # not compatible
query II rowsort label-7931
SELECT DISTINCT 92, + 72 / + 62 AS col0
----
92
1

query I rowsort
SELECT - + 66 AS col0
----
-66

query I rowsort
SELECT ALL - 10 AS col1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-7934
SELECT - + MAX( 85 )
----
-85

skipif mysql # not compatible
query I rowsort label-7934
SELECT - + MAX ( 85 )
----
-85

query I rowsort
SELECT ALL - 78 col0
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7936
SELECT + NULLIF ( + ( - CAST( NULL AS SIGNED ) ), 73 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7936
SELECT + NULLIF ( + ( - CAST ( NULL AS INTEGER ) ), 73 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7937
SELECT + CAST( + + 2 AS SIGNED )
----
2

skipif mysql # not compatible
query I rowsort label-7937
SELECT + CAST ( + + 2 AS INTEGER )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7938
SELECT ALL - COUNT( * ) - - - COUNT( * ) * 24 AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-7938
SELECT ALL - COUNT ( * ) - - - COUNT ( * ) * 24 AS col0
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-7939
SELECT DISTINCT COUNT( * ), + COUNT( * ) col1
----
1
1

skipif mysql # not compatible
query II rowsort label-7939
SELECT DISTINCT COUNT ( * ), + COUNT ( * ) col1
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7940
SELECT DISTINCT - COUNT( * ) * - 37
----
37

skipif mysql # not compatible
query I rowsort label-7940
SELECT DISTINCT - COUNT ( * ) * - 37
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7941
SELECT 95 - COUNT( * ) col0
----
94

skipif mysql # not compatible
query I rowsort label-7941
SELECT 95 - COUNT ( * ) col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7942
SELECT ALL MIN( DISTINCT - 28 )
----
-28

skipif mysql # not compatible
query I rowsort label-7942
SELECT ALL MIN ( DISTINCT - 28 )
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7943
SELECT ALL CAST( - + ( 9 ) AS SIGNED ) + + + 1 AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-7943
SELECT ALL CAST ( - + ( 9 ) AS INTEGER ) + + + 1 AS col0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-7944
SELECT ALL - COUNT( * ) + + - 10 col2
----
-11

skipif mysql # not compatible
query I rowsort label-7944
SELECT ALL - COUNT ( * ) + + - 10 col2
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7945
SELECT + COUNT( * ) DIV - 39 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7945
SELECT + COUNT ( * ) / - 39 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7946
SELECT ALL COUNT( * ) * + 23
----
23

skipif mysql # not compatible
query I rowsort label-7946
SELECT ALL COUNT ( * ) * + 23
----
23

query I rowsort
SELECT - ( - ( + 53 ) ) col2
----
53

query I rowsort
SELECT ALL 57 * - 69 col1
----
-3933

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7949
SELECT DISTINCT CAST( - 76 AS SIGNED )
----
-76

skipif mysql # not compatible
query I rowsort label-7949
SELECT DISTINCT CAST ( - 76 AS INTEGER )
----
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-7950
SELECT ALL + ( + 35 ) DIV 68 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7950
SELECT ALL + ( + 35 ) / 68 AS col0
----
0

query I rowsort
SELECT ALL + + 37 * + 6 AS col2
----
222

onlyif mysql # aggregate syntax: 
query I rowsort label-7952
SELECT - 84 - - ( - + COUNT( * ) ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-7952
SELECT - 84 - - ( - + COUNT ( * ) ) AS col0
----
-85

query I rowsort
SELECT DISTINCT + + 77
----
77

query I rowsort
SELECT ALL + + 51 AS col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7955
SELECT + + COUNT( * ) - - + 82
----
83

skipif mysql # not compatible
query I rowsort label-7955
SELECT + + COUNT ( * ) - - + 82
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7956
SELECT + COUNT( * ) DIV 64 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7956
SELECT + COUNT ( * ) / 64 AS col1
----
0

query I rowsort
SELECT DISTINCT - + 24
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7958
SELECT COUNT( * ) * 40
----
40

skipif mysql # not compatible
query I rowsort label-7958
SELECT COUNT ( * ) * 40
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7959
SELECT 17 + - - 72 * - - 26 * ( - COUNT( * ) )
----
-1855

skipif mysql # not compatible
query I rowsort label-7959
SELECT 17 + - - 72 * - - 26 * ( - COUNT ( * ) )
----
-1855

query I rowsort
SELECT ALL - 25 col1
----
-25

query I rowsort
SELECT + ( - 57 ) AS col1
----
-57

query I rowsort
SELECT DISTINCT + 94 AS col1
----
94

query I rowsort
SELECT - 21 - + - ( - 15 )
----
-36

query I rowsort
SELECT DISTINCT + 71 AS col0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7965
SELECT DISTINCT ( - MIN( DISTINCT + - 24 ) )
----
24

skipif mysql # not compatible
query I rowsort label-7965
SELECT DISTINCT ( - MIN ( DISTINCT + - 24 ) )
----
24

query I rowsort
SELECT - + 88
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7967
SELECT + CAST( 82 AS SIGNED )
----
82

skipif mysql # not compatible
query I rowsort label-7967
SELECT + CAST ( 82 AS INTEGER )
----
82

query I rowsort
SELECT ( + + 43 )
----
43

query I rowsort
SELECT ALL + 59 AS col0
----
59

query I rowsort
SELECT ( 64 )
----
64

query I rowsort
SELECT ALL + 87 col1
----
87

query I rowsort
SELECT - 92 * - + 16
----
1472

onlyif mysql # aggregate syntax: 
query I rowsort label-7973
SELECT + SUM( ALL + ( + 93 ) ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-7973
SELECT + SUM ( ALL + ( + 93 ) ) AS col0
----
93

query I rowsort
SELECT ALL + ( - 67 )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-7975
SELECT DISTINCT + COUNT( + 19 )
----
1

skipif mysql # not compatible
query I rowsort label-7975
SELECT DISTINCT + COUNT ( + 19 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7976
SELECT - 56 * + - COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-7976
SELECT - 56 * + - COUNT ( * )
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7977
SELECT DISTINCT - CAST( NULL AS SIGNED ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7977
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * COUNT ( * )
----
NULL

query I rowsort
SELECT - 63 AS col0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-7979
SELECT - COUNT( * ) - - 99 AS col1
----
98

skipif mysql # not compatible
query I rowsort label-7979
SELECT - COUNT ( * ) - - 99 AS col1
----
98

query I rowsort
SELECT - + 93 col0
----
-93

query I rowsort
SELECT ALL 23
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-7982
SELECT DISTINCT 13 DIV + - 92
----
0

skipif mysql # not compatible
query I rowsort label-7982
SELECT DISTINCT 13 / + - 92
----
0

query I rowsort
SELECT ALL - 62 + - 9 AS col0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-7984
SELECT ( - 61 ) + + ( + 91 ) + + + COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-7984
SELECT ( - 61 ) + + ( + 91 ) + + + COUNT ( * )
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7985
SELECT + COUNT( * ) DIV - - 10 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7985
SELECT + COUNT ( * ) / - - 10 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7986
SELECT ( - + COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7986
SELECT ( - + COUNT ( * ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7987
SELECT 51 + - + COUNT( * ) + + ( 42 )
----
92

skipif mysql # not compatible
query I rowsort label-7987
SELECT 51 + - + COUNT ( * ) + + ( 42 )
----
92

query I rowsort
SELECT + 50 AS col1
----
50

query I rowsort
SELECT DISTINCT - + 65
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7990
SELECT DISTINCT - ( - COUNT( * ) ), CAST( NULL AS SIGNED ) AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-7990
SELECT DISTINCT - ( - COUNT ( * ) ), CAST ( NULL AS INTEGER ) AS col1
----
1
NULL

query I rowsort
SELECT ( + - 22 )
----
-22

query I rowsort
SELECT - 79 + 44 AS col0
----
-35

query I rowsort
SELECT ( + 29 )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7994
SELECT + SUM( ALL + 54 ) * + - 69
----
-3726

skipif mysql # not compatible
query I rowsort label-7994
SELECT + SUM ( ALL + 54 ) * + - 69
----
-3726

query II rowsort
SELECT ALL 60 AS col0, 34 col1
----
60
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7996
SELECT + CAST( NULL AS SIGNED ) + - - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-7996
SELECT + CAST ( NULL AS INTEGER ) + - - 65
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7997
SELECT - CAST( - 20 AS SIGNED )
----
20

skipif mysql # not compatible
query I rowsort label-7997
SELECT - CAST ( - 20 AS INTEGER )
----
20

query I rowsort
SELECT DISTINCT + 16 col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-7999
SELECT + COUNT( 26 )
----
1

skipif mysql # not compatible
query I rowsort label-7999
SELECT + COUNT ( 26 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8000
SELECT ALL + ( + + CAST( + - COUNT( * ) AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8000
SELECT ALL + ( + + CAST ( + - COUNT ( * ) AS INTEGER ) )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8001
SELECT DISTINCT COUNT( * ) DIV - 40 - + 21
----
-21

skipif mysql # not compatible
query I rowsort label-8001
SELECT DISTINCT COUNT ( * ) / - 40 - + 21
----
-21

query I rowsort
SELECT + - 95 col0
----
-95

query I rowsort
SELECT ALL - + 46
----
-46

query I rowsort
SELECT - 38 + - 36 col2
----
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-8005
SELECT - - MIN( DISTINCT 97 ) AS col0, 49
----
97
49

skipif mysql # not compatible
query II rowsort label-8005
SELECT - - MIN ( DISTINCT 97 ) AS col0, 49
----
97
49

query I rowsort
SELECT ALL 68 + - + 81
----
-13

query I rowsort
SELECT 61 * 88 AS col2
----
5368

onlyif mysql # aggregate syntax: 
query I rowsort label-8008
SELECT DISTINCT - COUNT( + 13 )
----
-1

skipif mysql # not compatible
query I rowsort label-8008
SELECT DISTINCT - COUNT ( + 13 )
----
-1

query I rowsort
SELECT ALL - + ( + 67 )
----
-67

query I rowsort
SELECT ALL - + 43 AS col2
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-8011
SELECT - COUNT( * ) * - + 32 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-8011
SELECT - COUNT ( * ) * - + 32 AS col2
----
32

query I rowsort
SELECT + - 79 AS col0
----
-79

query I rowsort
SELECT - 22 AS col1
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8014
SELECT 61 * CAST( NULL AS SIGNED ) col0, - 73
----
NULL
-73

skipif mysql # not compatible
query II rowsort label-8014
SELECT 61 * CAST ( NULL AS INTEGER ) col0, - 73
----
NULL
-73

query II rowsort
SELECT - 2 col2, + 66 + - + 51 AS col1
----
-2
15

query I rowsort
SELECT + 28 AS col2
----
28

query I rowsort
SELECT ALL - - 61 * - 56 + 32
----
-3384

onlyif mysql # aggregate syntax: 
query I rowsort label-8018
SELECT - ( + 39 ) + + COUNT( DISTINCT + 33 ) AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-8018
SELECT - ( + 39 ) + + COUNT ( DISTINCT + 33 ) AS col1
----
-38

query I rowsort
SELECT 1 AS col1
----
1

query I rowsort
SELECT ALL ( + 4 ) col0
----
4

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8021
SELECT - CAST( NULL AS DECIMAL ) / + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-8021
SELECT - CAST ( NULL AS REAL ) / + 56
----
NULL

query I rowsort
SELECT DISTINCT + ( + 50 )
----
50

query I rowsort
SELECT DISTINCT + 1 AS col2
----
1

query II rowsort
SELECT 76 AS col0, + 28
----
76
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8025
SELECT - COUNT( * ) * 49
----
-49

skipif mysql # not compatible
query I rowsort label-8025
SELECT - COUNT ( * ) * 49
----
-49

query I rowsort
SELECT 56 + - - 0 - 99
----
-43

query I rowsort
SELECT + + 90 AS col2
----
90

query I rowsort
SELECT + 73 AS col2
----
73

query I rowsort
SELECT - 87 AS col1
----
-87

query I rowsort
SELECT - 38 AS col0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-8031
SELECT COUNT( * ) * ( + 64 ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-8031
SELECT COUNT ( * ) * ( + 64 ) AS col0
----
64

query I rowsort
SELECT DISTINCT 1 AS col0
----
1

query I rowsort
SELECT ALL ( + 52 ) AS col1
----
52

query I rowsort
SELECT - + 76 AS col2
----
-76

query I rowsort
SELECT ALL + ( 17 ) AS col0
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-8036
SELECT COUNT( * ) AS col0, + 3
----
1
3

skipif mysql # not compatible
query II rowsort label-8036
SELECT COUNT ( * ) AS col0, + 3
----
1
3

query I rowsort
SELECT ALL + 4 col1
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8038
SELECT DISTINCT - CAST( 72 AS SIGNED ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-8038
SELECT DISTINCT - CAST ( 72 AS INTEGER ) AS col2
----
-72

query I rowsort
SELECT ALL + + 74
----
74

query I rowsort
SELECT ( 39 ) AS col1
----
39

query I rowsort
SELECT - 43 * 37 AS col1
----
-1591

onlyif mysql # aggregate syntax: 
query I rowsort label-8042
SELECT COUNT( + - 80 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8042
SELECT COUNT ( + - 80 ) AS col0
----
1

query I rowsort
SELECT - - ( - - 79 ) col1
----
79

query I rowsort
SELECT - + 49
----
-49

query I rowsort
SELECT DISTINCT - 59 col0
----
-59

query I rowsort
SELECT DISTINCT - 68 AS col1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-8047
SELECT SUM( + 72 ) + + 87 AS col1
----
159

skipif mysql # not compatible
query I rowsort label-8047
SELECT SUM ( + 72 ) + + 87 AS col1
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-8048
SELECT DISTINCT - - 70 + + COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-8048
SELECT DISTINCT - - 70 + + COUNT ( * )
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-8049
SELECT ALL - - 57 DIV + - 22 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-8049
SELECT ALL - - 57 / + - 22 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8050
SELECT SUM( - + 16 )
----
-16

skipif mysql # not compatible
query I rowsort label-8050
SELECT SUM ( - + 16 )
----
-16

query I rowsort
SELECT 21 * - 80
----
-1680

onlyif mysql # aggregate syntax: 
query I rowsort label-8052
SELECT COUNT( * ) * + - 30
----
-30

skipif mysql # not compatible
query I rowsort label-8052
SELECT COUNT ( * ) * + - 30
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8053
SELECT COUNT( * ) - + NULLIF ( - SUM( + 42 ), + CAST( NULL AS SIGNED ) ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-8053
SELECT COUNT ( * ) - + NULLIF ( - SUM ( + 42 ), + CAST ( NULL AS INTEGER ) ) AS col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8054
SELECT ALL - SUM( DISTINCT 88 )
----
-88

skipif mysql # not compatible
query I rowsort label-8054
SELECT ALL - SUM ( DISTINCT 88 )
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-8055
SELECT DISTINCT - + COUNT( * ) + + + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8055
SELECT DISTINCT - + COUNT ( * ) + + + COUNT ( * ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8056
SELECT DISTINCT MIN( ALL + - 53 ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-8056
SELECT DISTINCT MIN ( ALL + - 53 ) AS col2
----
-53

query I rowsort
SELECT DISTINCT 44 * + - 96 AS col1
----
-4224

query I rowsort
SELECT ALL + 59 col1
----
59

query I rowsort
SELECT - - 31 * - ( + 66 )
----
-2046

query I rowsort
SELECT - 68 + 7 AS col1
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-8061
SELECT - COUNT( * ) + 77 col0
----
76

skipif mysql # not compatible
query I rowsort label-8061
SELECT - COUNT ( * ) + 77 col0
----
76

query I rowsort
SELECT + 44 col1
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8063
SELECT DISTINCT - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8063
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL - 52 AS col0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-8065
SELECT ( + + 62 ) * + MIN( - 32 ) col1
----
-1984

skipif mysql # not compatible
query I rowsort label-8065
SELECT ( + + 62 ) * + MIN ( - 32 ) col1
----
-1984

query I rowsort
SELECT ALL - 0 AS col1
----
0

query I rowsort
SELECT 83 AS col1
----
83

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8068
SELECT - CAST( NULL AS DECIMAL ) * + 42 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8068
SELECT - CAST ( NULL AS REAL ) * + 42 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 75 * 89
----
-6675

onlyif mysql # aggregate syntax: 
query I rowsort label-8070
SELECT ALL + 17 + + COUNT( * ) * - 36
----
-19

skipif mysql # not compatible
query I rowsort label-8070
SELECT ALL + 17 + + COUNT ( * ) * - 36
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-8071
SELECT ALL - - COUNT( * ) col1
----
1

skipif mysql # not compatible
query I rowsort label-8071
SELECT ALL - - COUNT ( * ) col1
----
1

query I rowsort
SELECT + - 79
----
-79

query II rowsort
SELECT + - 56, ( 27 ) AS col1
----
-56
27

query II rowsort
SELECT 14 * - 85 AS col1, - 58
----
-1190
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8075
SELECT COUNT( * ) * - 35
----
-35

skipif mysql # not compatible
query I rowsort label-8075
SELECT COUNT ( * ) * - 35
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-8076
SELECT DISTINCT COALESCE ( + 48, COUNT( * ) ) AS col0, 48 AS col0
----
48
48

skipif mysql # not compatible
query II rowsort label-8076
SELECT DISTINCT COALESCE ( + 48, COUNT ( * ) ) AS col0, 48 AS col0
----
48
48

query I rowsort
SELECT ALL + 35
----
35

query I rowsort
SELECT ALL - 14 + - 18 + + 34
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8079
SELECT ALL MIN( DISTINCT - 86 )
----
-86

skipif mysql # not compatible
query I rowsort label-8079
SELECT ALL MIN ( DISTINCT - 86 )
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-8080
SELECT DISTINCT SUM( DISTINCT + 48 )
----
48

skipif mysql # not compatible
query I rowsort label-8080
SELECT DISTINCT SUM ( DISTINCT + 48 )
----
48

query I rowsort
SELECT - 73 + - - 36
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-8082
SELECT - SUM( + - 60 ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-8082
SELECT - SUM ( + - 60 ) AS col2
----
60

query I rowsort
SELECT DISTINCT ( - + ( - 20 ) ) AS col2
----
20

query I rowsort
SELECT + + 94
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8085
SELECT DISTINCT + MIN( + 13 ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-8085
SELECT DISTINCT + MIN ( + 13 ) AS col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8086
SELECT SUM( + - 89 )
----
-89

skipif mysql # not compatible
query I rowsort label-8086
SELECT SUM ( + - 89 )
----
-89

query I rowsort
SELECT - 87 AS col2
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-8088
SELECT 31 DIV + 67 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8088
SELECT 31 / + 67 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8089
SELECT - 59 * + COUNT( * ) * 55 col1
----
-3245

skipif mysql # not compatible
query I rowsort label-8089
SELECT - 59 * + COUNT ( * ) * 55 col1
----
-3245

onlyif mysql # aggregate syntax: 
query I rowsort label-8090
SELECT + 25 * - + ( + - COUNT( * ) )
----
25

skipif mysql # not compatible
query I rowsort label-8090
SELECT + 25 * - + ( + - COUNT ( * ) )
----
25

query I rowsort
SELECT ALL - - 92
----
92

query I rowsort
SELECT + 13 AS col1
----
13

query I rowsort
SELECT - 82 col0
----
-82

query I rowsort
SELECT DISTINCT + 87 AS col1
----
87

query I rowsort
SELECT ALL + 83 - - 95 AS col1
----
178

query I rowsort
SELECT DISTINCT + 6
----
6

query I rowsort
SELECT - 45 AS col2
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-8098
SELECT ALL - 30 DIV + 64 * - 9
----
0

skipif mysql # not compatible
query I rowsort label-8098
SELECT ALL - 30 / + 64 * - 9
----
0

query I rowsort
SELECT ALL - 77 * - 23 AS col0
----
1771

query I rowsort
SELECT + 5 + - ( 3 ) AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8101
SELECT ( COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8101
SELECT ( COUNT ( * ) ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8102
SELECT ALL + COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) col2
----
0

skipif mysql # not compatible
query I rowsort label-8102
SELECT ALL + COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) col2
----
0

query I rowsort
SELECT ALL + 73 col0
----
73

query I rowsort
SELECT ALL - 98 AS col2
----
-98

query I rowsort
SELECT + 55 - 49 + + ( - 92 ) col1
----
-86

query I rowsort
SELECT DISTINCT - 7 AS col2
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-8107
SELECT ALL - 20, - COUNT( * ) AS col1
----
-20
-1

skipif mysql # not compatible
query II rowsort label-8107
SELECT ALL - 20, - COUNT ( * ) AS col1
----
-20
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8108
SELECT ALL 13 + COUNT( * ) col2
----
14

skipif mysql # not compatible
query I rowsort label-8108
SELECT ALL 13 + COUNT ( * ) col2
----
14

query I rowsort
SELECT DISTINCT - ( - 35 )
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8110
SELECT ALL - CAST( 1 AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-8110
SELECT ALL - CAST ( 1 AS INTEGER )
----
-1

query I rowsort
SELECT ALL ( 63 ) AS col2
----
63

query I rowsort
SELECT ALL 0 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8113
SELECT 55 * + COUNT( * )
----
55

skipif mysql # not compatible
query I rowsort label-8113
SELECT 55 * + COUNT ( * )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8114
SELECT ALL COUNT( * ) + 59
----
60

skipif mysql # not compatible
query I rowsort label-8114
SELECT ALL COUNT ( * ) + 59
----
60

query I rowsort
SELECT + 30 col2
----
30

query I rowsort
SELECT 78 col2
----
78

query I rowsort
SELECT ALL - ( - 51 )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8118
SELECT ALL + 65 * - COUNT( * )
----
-65

skipif mysql # not compatible
query I rowsort label-8118
SELECT ALL + 65 * - COUNT ( * )
----
-65

query I rowsort
SELECT + ( - - 50 )
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8120
SELECT ALL ( + CAST( NULL AS SIGNED ) ) - - 88 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8120
SELECT ALL ( + CAST ( NULL AS INTEGER ) ) - - 88 AS col0
----
NULL

query I rowsort
SELECT 8 col2
----
8

query I rowsort
SELECT ALL 43 col1
----
43

query I rowsort
SELECT DISTINCT - ( 61 )
----
-61

query I rowsort
SELECT ( + 89 )
----
89

query I rowsort
SELECT ( + 75 ) AS col2
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8126
SELECT ALL 69 * + CAST( NULL AS SIGNED ) + - + ( - 10 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8126
SELECT ALL 69 * + CAST ( NULL AS INTEGER ) + - + ( - 10 ) AS col0
----
NULL

query I rowsort
SELECT + 12 * + 43
----
516

query I rowsort
SELECT DISTINCT 16 AS col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8129
SELECT ALL - COUNT( * ) + - 61
----
-62

skipif mysql # not compatible
query I rowsort label-8129
SELECT ALL - COUNT ( * ) + - 61
----
-62

query I rowsort
SELECT ALL ( + - 44 )
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8131
SELECT DISTINCT + CAST( - 88 AS SIGNED )
----
-88

skipif mysql # not compatible
query I rowsort label-8131
SELECT DISTINCT + CAST ( - 88 AS INTEGER )
----
-88

query II rowsort
SELECT ALL + + 72 AS col0, ( - 12 ) * - 71 AS col1
----
72
852

onlyif mysql # aggregate syntax: 
query I rowsort label-8133
SELECT ALL - - 54 * - COUNT( * ) col1
----
-54

skipif mysql # not compatible
query I rowsort label-8133
SELECT ALL - - 54 * - COUNT ( * ) col1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-8134
SELECT DISTINCT + + COUNT( * ) * + + 26 * + 55
----
1430

skipif mysql # not compatible
query I rowsort label-8134
SELECT DISTINCT + + COUNT ( * ) * + + 26 * + 55
----
1430

onlyif mysql # aggregate syntax: 
query I rowsort label-8135
SELECT ALL - SUM( + 64 )
----
-64

skipif mysql # not compatible
query I rowsort label-8135
SELECT ALL - SUM ( + 64 )
----
-64

query I rowsort
SELECT - - 1 col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8137
SELECT 83 DIV 29 DIV - + 29
----
0

skipif mysql # not compatible
query I rowsort label-8137
SELECT 83 / 29 / - + 29
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8138
SELECT COUNT( * ) * 35 AS col0, - 19 + + + 77
----
35
58

skipif mysql # not compatible
query II rowsort label-8138
SELECT COUNT ( * ) * 35 AS col0, - 19 + + + 77
----
35
58

query I rowsort
SELECT DISTINCT - 47 AS col1
----
-47

query I rowsort
SELECT ALL - - 79 AS col0
----
79

query I rowsort
SELECT DISTINCT - + 19 AS col2
----
-19

query I rowsort
SELECT + + 82 AS col0
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8143
SELECT DISTINCT - + COUNT( * ) DIV COUNT( DISTINCT - 26 ) * 86 + - MAX( DISTINCT + 17 ) AS col1
----
-103

skipif mysql # not compatible
query I rowsort label-8143
SELECT DISTINCT - + COUNT ( * ) / COUNT ( DISTINCT - 26 ) * 86 + - MAX ( DISTINCT + 17 ) AS col1
----
-103

query I rowsort
SELECT - ( ( - 29 ) ) AS col1
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8145
SELECT 59 DIV - COUNT( * ) + - + 33 AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-8145
SELECT 59 / - COUNT ( * ) + - + 33 AS col0
----
-92

query I rowsort
SELECT + + 84
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8147
SELECT - + 93 * + 78 + - + MAX( ( 4 ) )
----
-7258

skipif mysql # not compatible
query I rowsort label-8147
SELECT - + 93 * + 78 + - + MAX ( ( 4 ) )
----
-7258

query I rowsort
SELECT + - ( - 34 )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8149
SELECT ALL NULLIF ( - COUNT( * ), COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8149
SELECT ALL NULLIF ( - COUNT ( * ), COUNT ( * ) )
----
-1

query I rowsort
SELECT + 31 * 1 AS col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8151
SELECT ALL ( MAX( + - 34 ) )
----
-34

skipif mysql # not compatible
query I rowsort label-8151
SELECT ALL ( MAX ( + - 34 ) )
----
-34

query I rowsort
SELECT DISTINCT ( 8 ) col0
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8153
SELECT DISTINCT CAST( ( - + 83 ) AS SIGNED )
----
-83

skipif mysql # not compatible
query I rowsort label-8153
SELECT DISTINCT CAST ( ( - + 83 ) AS INTEGER )
----
-83

query I rowsort
SELECT ALL + - 85 AS col1
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8155
SELECT + 32 * - + 42 AS col2, + CAST( NULL AS SIGNED ) AS col0
----
-1344
NULL

skipif mysql # not compatible
query II rowsort label-8155
SELECT + 32 * - + 42 AS col2, + CAST ( NULL AS INTEGER ) AS col0
----
-1344
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8156
SELECT DISTINCT 91 * - + COUNT( * )
----
-91

skipif mysql # not compatible
query I rowsort label-8156
SELECT DISTINCT 91 * - + COUNT ( * )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8157
SELECT - COUNT( * ) * - - 83 + - - 41 AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-8157
SELECT - COUNT ( * ) * - - 83 + - - 41 AS col2
----
-42

query I rowsort
SELECT DISTINCT 19
----
19

query I rowsort
SELECT DISTINCT 12
----
12

query I rowsort
SELECT + - 47
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8161
SELECT CAST( NULL AS SIGNED ) * + 64 * + 69 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8161
SELECT CAST ( NULL AS INTEGER ) * + 64 * + 69 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8162
SELECT 69 * - CAST( NULL AS SIGNED ) * - ( 9 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8162
SELECT 69 * - CAST ( NULL AS INTEGER ) * - ( 9 )
----
NULL

query I rowsort
SELECT ALL + ( + 97 ) + - + 24 + + 50 AS col0
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-8164
SELECT ALL + 31 * + MIN( ALL + + 47 )
----
1457

skipif mysql # not compatible
query I rowsort label-8164
SELECT ALL + 31 * + MIN ( ALL + + 47 )
----
1457

query I rowsort
SELECT ALL + 79 col2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8166
SELECT + 65 * - COUNT( * ) * COUNT( * ) * + 51 AS col2
----
-3315

skipif mysql # not compatible
query I rowsort label-8166
SELECT + 65 * - COUNT ( * ) * COUNT ( * ) * + 51 AS col2
----
-3315

query I rowsort
SELECT - 2 AS col1
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8168
SELECT - + SUM( DISTINCT + ( CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8168
SELECT - + SUM ( DISTINCT + ( CAST ( NULL AS INTEGER ) ) )
----
NULL

query I rowsort
SELECT ALL + + ( + 33 ) AS col2
----
33

query I rowsort
SELECT + - 69
----
-69

query I rowsort
SELECT DISTINCT ( + 22 ) AS col1
----
22

query I rowsort
SELECT - 86 AS col0
----
-86

query I rowsort
SELECT - + 86 + 93
----
7

query I rowsort
SELECT - + 99 AS col2
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8175
SELECT ALL MAX( DISTINCT + 11 ) * + 7 AS col0
----
77

skipif mysql # not compatible
query I rowsort label-8175
SELECT ALL MAX ( DISTINCT + 11 ) * + 7 AS col0
----
77

query I rowsort
SELECT - - ( + + 30 ) AS col2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8177
SELECT - 64 * COUNT( * ) + - 35 AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-8177
SELECT - 64 * COUNT ( * ) + - 35 AS col0
----
-99

query I rowsort
SELECT DISTINCT - 69 AS col1
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8179
SELECT + 63 * + + CAST( NULL AS SIGNED ) + 81
----
NULL

skipif mysql # not compatible
query I rowsort label-8179
SELECT + 63 * + + CAST ( NULL AS INTEGER ) + 81
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8180
SELECT 68 * + COUNT( * ) col2
----
68

skipif mysql # not compatible
query I rowsort label-8180
SELECT 68 * + COUNT ( * ) col2
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8181
SELECT COUNT( * ) * ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8181
SELECT COUNT ( * ) * ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8182
SELECT - COUNT( * ) * + 42
----
-42

skipif mysql # not compatible
query I rowsort label-8182
SELECT - COUNT ( * ) * + 42
----
-42

query I rowsort
SELECT ALL + + 14 * 8
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-8184
SELECT - COUNT( * ) + + ( + 62 ) col2
----
61

skipif mysql # not compatible
query I rowsort label-8184
SELECT - COUNT ( * ) + + ( + 62 ) col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8185
SELECT ALL + COUNT( * ) + - - 40 + - 66
----
-25

skipif mysql # not compatible
query I rowsort label-8185
SELECT ALL + COUNT ( * ) + - - 40 + - 66
----
-25

query I rowsort
SELECT 8 * + 31
----
248

onlyif mysql # aggregate syntax: 
query I rowsort label-8187
SELECT COUNT( * ) * - 1
----
-1

skipif mysql # not compatible
query I rowsort label-8187
SELECT COUNT ( * ) * - 1
----
-1

query I rowsort
SELECT + 74 col2
----
74

query II rowsort
SELECT 91 AS col2, 48 AS col0
----
91
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8190
SELECT COALESCE ( CASE 88 WHEN + 19 / 66 THEN + 65 END, - COUNT( * ) ) * - COUNT( * ) + 67
----
68

skipif mysql # not compatible
query I rowsort label-8190
SELECT COALESCE ( CASE 88 WHEN + 19 / 66 THEN + 65 END, - COUNT ( * ) ) * - COUNT ( * ) + 67
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8191
SELECT 77 + COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-8191
SELECT 77 + COUNT ( * )
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8192
SELECT ALL MIN( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8192
SELECT ALL MIN ( CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT 28 * 39
----
1092

query I rowsort
SELECT DISTINCT 9 + 29 col0
----
38

query I rowsort
SELECT ALL + 63 * 72
----
4536

query I rowsort
SELECT ALL + + 6 * - 97 + 97
----
-485

onlyif mysql # aggregate syntax: 
query I rowsort label-8197
SELECT + 51 * COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-8197
SELECT + 51 * COUNT ( * )
----
51

query I rowsort
SELECT ALL + 56
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8199
SELECT ALL COALESCE ( + - 75, 57 * - 18 - 61 * COUNT( * ) )
----
-75

skipif mysql # not compatible
query I rowsort label-8199
SELECT ALL COALESCE ( + - 75, 57 * - 18 - 61 * COUNT ( * ) )
----
-75

query I rowsort
SELECT DISTINCT 53 AS col1
----
53

query I rowsort
SELECT - 95 * - 99
----
9405

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8202
SELECT CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8202
SELECT CAST ( NULL AS REAL ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8203
SELECT ALL + ( - + COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8203
SELECT ALL + ( - + COUNT ( * ) ) AS col0
----
-1

query I rowsort
SELECT DISTINCT + 0
----
0

query I rowsort
SELECT ALL + + 59
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8206
SELECT - CAST( NULL AS SIGNED ) / - 37 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8206
SELECT - CAST ( NULL AS INTEGER ) / - 37 AS col1
----
NULL

query I rowsort
SELECT + + 12 AS col0
----
12

query I rowsort
SELECT + + 68 AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8209
SELECT COUNT( * ) * + COUNT( * ) col1
----
1

skipif mysql # not compatible
query I rowsort label-8209
SELECT COUNT ( * ) * + COUNT ( * ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8210
SELECT 62 + + COUNT( * ) * + 27
----
89

skipif mysql # not compatible
query I rowsort label-8210
SELECT 62 + + COUNT ( * ) * + 27
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8211
SELECT ALL - COUNT( * ) + - - 58
----
57

skipif mysql # not compatible
query I rowsort label-8211
SELECT ALL - COUNT ( * ) + - - 58
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8212
SELECT CAST( - + COUNT( * ) AS SIGNED ) + - + COUNT( * ) DIV + 46
----
-1

skipif mysql # not compatible
query I rowsort label-8212
SELECT CAST ( - + COUNT ( * ) AS INTEGER ) + - + COUNT ( * ) / + 46
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8213
SELECT - SUM( ALL + 14 )
----
-14

skipif mysql # not compatible
query I rowsort label-8213
SELECT - SUM ( ALL + 14 )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-8214
SELECT ALL - + MAX( ALL + + 98 ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-8214
SELECT ALL - + MAX ( ALL + + 98 ) AS col1
----
-98

query II rowsort
SELECT 57 AS col1, 0 AS col1
----
57
0

query I rowsort
SELECT DISTINCT - - 98
----
98

query I rowsort
SELECT ALL - 9 - + ( - 23 ) AS col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8218
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8218
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8219
SELECT ALL + SUM( ALL - 70 ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-8219
SELECT ALL + SUM ( ALL - 70 ) AS col2
----
-70

query I rowsort
SELECT ALL 92 AS col1
----
92

query I rowsort
SELECT 46 - - 71 * 30
----
2176

onlyif mysql # DIV for integer division: 
query I rowsort label-8222
SELECT 59 DIV - + 62 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8222
SELECT 59 / - + 62 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8223
SELECT DISTINCT + - COUNT( * ) * + 3 + COUNT( DISTINCT + 21 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-8223
SELECT DISTINCT + - COUNT ( * ) * + 3 + COUNT ( DISTINCT + 21 ) AS col1
----
-2

query I rowsort
SELECT + 59 AS col1
----
59

query I rowsort
SELECT 46 col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8226
SELECT - COUNT( * ) * + + ( + + COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8226
SELECT - COUNT ( * ) * + + ( + + COUNT ( * ) )
----
-1

query I rowsort
SELECT ALL ( + 8 )
----
8

query I rowsort
SELECT - - 20 AS col0
----
20

query I rowsort
SELECT ALL + - ( + 8 ) col2
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8230
SELECT ALL CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) + - - 75 * 2 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8230
SELECT ALL CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) + - - 75 * 2 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8231
SELECT + CAST( - COUNT( * ) AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8231
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) AS col1
----
-1

query I rowsort
SELECT - - 66 AS col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8233
SELECT ALL - - 56 - - - COUNT( * ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-8233
SELECT ALL - - 56 - - - COUNT ( * ) AS col1
----
55

query II rowsort
SELECT 88 AS col1, - 4 AS col0
----
88
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8235
SELECT - 22 AS col0, 98 DIV - + ( - + COUNT( * ) ) AS col0
----
-22
98

skipif mysql # not compatible
query II rowsort label-8235
SELECT - 22 AS col0, 98 / - + ( - + COUNT ( * ) ) AS col0
----
-22
98

query I rowsort
SELECT ALL - 26 AS col2
----
-26

query I rowsort
SELECT - 73 AS col2
----
-73

query I rowsort
SELECT - ( 18 )
----
-18

query I rowsort
SELECT - 20 - + 54
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-8240
SELECT ALL + COUNT( * ) * - COUNT( * ) + - 19 AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-8240
SELECT ALL + COUNT ( * ) * - COUNT ( * ) + - 19 AS col0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-8241
SELECT - COUNT( DISTINCT + 3 )
----
-1

skipif mysql # not compatible
query I rowsort label-8241
SELECT - COUNT ( DISTINCT + 3 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8242
SELECT DISTINCT 96 * - COUNT( * ) AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-8242
SELECT DISTINCT 96 * - COUNT ( * ) AS col1
----
-96

query I rowsort
SELECT 81 * 73 AS col1
----
5913

onlyif mysql # aggregate syntax: 
query I rowsort label-8244
SELECT 71 - - COUNT( * ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-8244
SELECT 71 - - COUNT ( * ) AS col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8245
SELECT ALL COUNT( * ) * - 71
----
-71

skipif mysql # not compatible
query I rowsort label-8245
SELECT ALL COUNT ( * ) * - 71
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8246
SELECT - 99 AS col2, + COUNT( * ) DIV COUNT( * ) AS col1
----
-99
1

skipif mysql # not compatible
query II rowsort label-8246
SELECT - 99 AS col2, + COUNT ( * ) / COUNT ( * ) AS col1
----
-99
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8247
SELECT + CAST( NULL AS SIGNED ) * - 4
----
NULL

skipif mysql # not compatible
query I rowsort label-8247
SELECT + CAST ( NULL AS INTEGER ) * - 4
----
NULL

query II rowsort
SELECT ALL 61 AS col1, - 51 AS col0
----
61
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8249
SELECT ALL 67 + - SUM( - + 50 ) AS col0
----
117

skipif mysql # not compatible
query I rowsort label-8249
SELECT ALL 67 + - SUM ( - + 50 ) AS col0
----
117

onlyif mysql # aggregate syntax: 
query II rowsort label-8250
SELECT DISTINCT + 28, + COUNT( * ) AS col1
----
28
1

skipif mysql # not compatible
query II rowsort label-8250
SELECT DISTINCT + 28, + COUNT ( * ) AS col1
----
28
1

query I rowsort
SELECT ALL + 7 col1
----
7

query I rowsort
SELECT DISTINCT + ( + - ( + 75 ) )
----
-75

query I rowsort
SELECT NULLIF ( - ( - 88 ), 35 ) AS col2
----
88

query I rowsort
SELECT DISTINCT + 67 AS col2
----
67

query I rowsort
SELECT ALL + COALESCE ( - 83, 67 )
----
-83

query I rowsort
SELECT DISTINCT + 57
----
57

query I rowsort
SELECT + + 66 AS col1
----
66

query I rowsort
SELECT - + 56 AS col2
----
-56

query I rowsort
SELECT DISTINCT 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8260
SELECT - 66 * + 77 - + COUNT( * ) AS col0
----
-5083

skipif mysql # not compatible
query I rowsort label-8260
SELECT - 66 * + 77 - + COUNT ( * ) AS col0
----
-5083

onlyif mysql # aggregate syntax: 
query I rowsort label-8261
SELECT ALL + COUNT( * ) * 71
----
71

skipif mysql # not compatible
query I rowsort label-8261
SELECT ALL + COUNT ( * ) * 71
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8262
SELECT - - 46 + + COUNT( * ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-8262
SELECT - - 46 + + COUNT ( * ) AS col0
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8263
SELECT - CAST( 43 AS SIGNED )
----
-43

skipif mysql # not compatible
query I rowsort label-8263
SELECT - CAST ( 43 AS INTEGER )
----
-43

query I rowsort
SELECT ALL - 32 AS col0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-8265
SELECT DISTINCT + COUNT( * ) + - COUNT( * ) * - COUNT( * ) + + 16 AS col1
----
18

skipif mysql # not compatible
query I rowsort label-8265
SELECT DISTINCT + COUNT ( * ) + - COUNT ( * ) * - COUNT ( * ) + + 16 AS col1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8266
SELECT DISTINCT - COUNT( * ) + - + COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-8266
SELECT DISTINCT - COUNT ( * ) + - + COUNT ( * )
----
-2

query I rowsort
SELECT - + 83 AS col2
----
-83

query I rowsort
SELECT - + 60
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8269
SELECT DISTINCT COUNT( * ) * + 79 DIV - + 71 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8269
SELECT DISTINCT COUNT ( * ) * + 79 / - + 71 AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8270
SELECT 81 + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8270
SELECT 81 + + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 77 AS col0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8272
SELECT ALL COUNT( * ) + ( COUNT( * ) )
----
2

skipif mysql # not compatible
query I rowsort label-8272
SELECT ALL COUNT ( * ) + ( COUNT ( * ) )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8273
SELECT ALL NULLIF ( - 12, - ( - + 57 ) ) + + ( - - COUNT( * ) ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-8273
SELECT ALL NULLIF ( - 12, - ( - + 57 ) ) + + ( - - COUNT ( * ) ) AS col2
----
-11

query II rowsort
SELECT + 82, - 74 - - 30 AS col0
----
82
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-8275
SELECT NULLIF ( 92, COUNT( * ) ) col1
----
92

skipif mysql # not compatible
query I rowsort label-8275
SELECT NULLIF ( 92, COUNT ( * ) ) col1
----
92

query I rowsort
SELECT - 3 + + + 31
----
28

query I rowsort
SELECT DISTINCT + 67
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8278
SELECT NULLIF ( - 13, + COUNT( * ) - + + 25 )
----
-13

skipif mysql # not compatible
query I rowsort label-8278
SELECT NULLIF ( - 13, + COUNT ( * ) - + + 25 )
----
-13

query I rowsort
SELECT DISTINCT + 57 col1
----
57

query I rowsort
SELECT DISTINCT + 2 col2
----
2

query I rowsort
SELECT - 74 AS col2
----
-74

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8282
SELECT ALL + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8282
SELECT ALL + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8283
SELECT - MIN( - 52 ) DIV - 40
----
-1

skipif mysql # not compatible
query I rowsort label-8283
SELECT - MIN ( - 52 ) / - 40
----
-1

query I rowsort
SELECT 97 col0
----
97

query I rowsort
SELECT ALL 37 + - - 52 AS col1
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8286
SELECT - CAST( - MAX( ( + 51 ) ) AS SIGNED ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-8286
SELECT - CAST ( - MAX ( ( + 51 ) ) AS INTEGER ) AS col1
----
51

query I rowsort
SELECT - 1 * 37 AS col0
----
-37

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8288
SELECT - CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8288
SELECT - CAST ( NULL AS REAL ) col0
----
NULL

query I rowsort
SELECT DISTINCT + 2 AS col1
----
2

query I rowsort
SELECT + + ( 26 ) AS col1
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8291
SELECT + - COUNT( * ) * - 25 + - CAST( NULL AS SIGNED ), COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-8291
SELECT + - COUNT ( * ) * - 25 + - CAST ( NULL AS INTEGER ), COUNT ( * ) AS col2
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8292
SELECT DISTINCT SUM( - 45 ) * - - 31 AS col2
----
-1395

skipif mysql # not compatible
query I rowsort label-8292
SELECT DISTINCT SUM ( - 45 ) * - - 31 AS col2
----
-1395

onlyif mysql # aggregate syntax: 
query I rowsort label-8293
SELECT + ( - 61 ) + + 87 * - - COUNT( * ) + - 81 AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-8293
SELECT + ( - 61 ) + + 87 * - - COUNT ( * ) + - 81 AS col1
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-8294
SELECT SUM( 28 ) - - 62
----
90

skipif mysql # not compatible
query I rowsort label-8294
SELECT SUM ( 28 ) - - 62
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8295
SELECT ALL - CAST( 0 AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8295
SELECT ALL - CAST ( 0 AS INTEGER ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8296
SELECT COALESCE ( + COUNT( * ), + 5 ) DIV + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8296
SELECT COALESCE ( + COUNT ( * ), + 5 ) / + COUNT ( * ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8297
SELECT CAST( + ( 33 ) AS SIGNED ) * + - COUNT( * ) col2
----
-33

skipif mysql # not compatible
query I rowsort label-8297
SELECT CAST ( + ( 33 ) AS INTEGER ) * + - COUNT ( * ) col2
----
-33

query II rowsort
SELECT ALL - 52 col2, - 52 AS col1
----
-52
-52

query I rowsort
SELECT + ( - 74 ) AS col0
----
-74

query I rowsort
SELECT + + 98 AS col0
----
98

query I rowsort
SELECT 38 col2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8302
SELECT - 78 * COUNT( * )
----
-78

skipif mysql # not compatible
query I rowsort label-8302
SELECT - 78 * COUNT ( * )
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8303
SELECT ALL + CAST( + 65 AS SIGNED )
----
65

skipif mysql # not compatible
query I rowsort label-8303
SELECT ALL + CAST ( + 65 AS INTEGER )
----
65

query I rowsort
SELECT ALL ( + 75 )
----
75

query I rowsort
SELECT DISTINCT ( + - 18 )
----
-18

query I rowsort
SELECT - 53 * + 10 AS col2
----
-530

query I rowsort
SELECT DISTINCT ( - + 89 ) AS col1
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8308
SELECT + MIN( ALL - CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8308
SELECT + MIN ( ALL - CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT + 28 col2
----
28

query I rowsort
SELECT DISTINCT 33 * 63 AS col1
----
2079

onlyif mysql # aggregate syntax: 
query II rowsort label-8311
SELECT DISTINCT + 18 AS col1, + COUNT( * ) - COUNT( * ) + - 43 AS col2
----
18
-43

skipif mysql # not compatible
query II rowsort label-8311
SELECT DISTINCT + 18 AS col1, + COUNT ( * ) - COUNT ( * ) + - 43 AS col2
----
18
-43

query I rowsort
SELECT - 55 * 28 * - 15 AS col0
----
23100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8313
SELECT ALL CAST( - 40 AS SIGNED ) AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-8313
SELECT ALL CAST ( - 40 AS INTEGER ) AS col0
----
-40

query I rowsort
SELECT - 47 - - 61 * - CASE + 90 WHEN 14 + - 76 THEN NULL ELSE - 47 END
----
2820

onlyif mysql # aggregate syntax: 
query II rowsort label-8315
SELECT COUNT( 40 ), - 71 AS col2
----
1
-71

skipif mysql # not compatible
query II rowsort label-8315
SELECT COUNT ( 40 ), - 71 AS col2
----
1
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-8316
SELECT 4 + MAX( 88 ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-8316
SELECT 4 + MAX ( 88 ) AS col1
----
92

query I rowsort
SELECT DISTINCT - 2 AS col0
----
-2

query I rowsort
SELECT DISTINCT - 92
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-8319
SELECT DISTINCT ( - COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8319
SELECT DISTINCT ( - COUNT ( * ) ) AS col2
----
-1

query I rowsort
SELECT - - 76
----
76

query I rowsort
SELECT + 46 AS col0
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8322
SELECT MIN( ALL + - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8322
SELECT MIN ( ALL + - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT 90 col2
----
90

query I rowsort
SELECT - - 55 col2
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8325
SELECT CAST( - - 55 AS SIGNED )
----
55

skipif mysql # not compatible
query I rowsort label-8325
SELECT CAST ( - - 55 AS INTEGER )
----
55

query I rowsort
SELECT DISTINCT - 11
----
-11

query I rowsort
SELECT ALL 76 col2
----
76

query I rowsort
SELECT ALL + 79
----
79

query I rowsort
SELECT ( 85 ) AS col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8330
SELECT ALL MAX( DISTINCT 19 )
----
19

skipif mysql # not compatible
query I rowsort label-8330
SELECT ALL MAX ( DISTINCT 19 )
----
19

query I rowsort
SELECT + + 46 + + - 73
----
-27

query I rowsort
SELECT - + 82 AS col1
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-8333
SELECT + + MIN( DISTINCT 81 ) + COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-8333
SELECT + + MIN ( DISTINCT 81 ) + COUNT ( * )
----
82

query II rowsort
SELECT 18, 64 AS col1
----
18
64

query I rowsort
SELECT ALL 21 AS col1
----
21

query I rowsort
SELECT ( + 70 ) AS col1
----
70

query I rowsort
SELECT + 57 AS col1
----
57

query I rowsort
SELECT + 23 AS col2
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8339
SELECT ALL 5 / CAST( NULL AS SIGNED ) AS col1, 53 AS col1
----
NULL
53

skipif mysql # not compatible
query II rowsort label-8339
SELECT ALL 5 / CAST ( NULL AS INTEGER ) AS col1, 53 AS col1
----
NULL
53

query I rowsort
SELECT DISTINCT + 63 AS col0
----
63

query I rowsort
SELECT - + 45 AS col1
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-8342
SELECT ALL + COUNT( * ) * - 8 AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-8342
SELECT ALL + COUNT ( * ) * - 8 AS col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8343
SELECT - COUNT( DISTINCT - 18 ) * - + 85 col0
----
85

skipif mysql # not compatible
query I rowsort label-8343
SELECT - COUNT ( DISTINCT - 18 ) * - + 85 col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8344
SELECT DISTINCT COUNT( - 89 ) * + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-8344
SELECT DISTINCT COUNT ( - 89 ) * + COUNT ( * )
----
1

query I rowsort
SELECT DISTINCT + 16 * + + 54 * - 7 AS col1
----
-6048

query I rowsort
SELECT + 61
----
61

query I rowsort
SELECT + - 82 col2
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8348
SELECT - ( + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8348
SELECT - ( + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT 32 col1
----
32

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8350
SELECT ALL - 92 * + 44, CAST( NULL AS DECIMAL ) col2
----
-4048
NULL

skipif mysql # not compatible
query II rowsort label-8350
SELECT ALL - 92 * + 44, CAST ( NULL AS REAL ) col2
----
-4048
NULL

query I rowsort
SELECT DISTINCT + 45
----
45

query I rowsort
SELECT DISTINCT + + 27
----
27

query I rowsort
SELECT + - 18 AS col1
----
-18

query I rowsort
SELECT DISTINCT + 69 col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8355
SELECT + 65 + + COUNT( * ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-8355
SELECT + 65 + + COUNT ( * ) AS col1
----
66

query I rowsort
SELECT DISTINCT + ( 53 )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8357
SELECT + 5 * - COUNT( * ) col2
----
-5

skipif mysql # not compatible
query I rowsort label-8357
SELECT + 5 * - COUNT ( * ) col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8358
SELECT ALL COUNT( * ) * + 3
----
3

skipif mysql # not compatible
query I rowsort label-8358
SELECT ALL COUNT ( * ) * + 3
----
3

query I rowsort
SELECT - 16 col2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-8360
SELECT DISTINCT - - COUNT( * ) + 28 AS col0
----
29

skipif mysql # not compatible
query I rowsort label-8360
SELECT DISTINCT - - COUNT ( * ) + 28 AS col0
----
29

query I rowsort
SELECT ALL - 53 col1
----
-53

query I rowsort
SELECT + - 97
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8363
SELECT DISTINCT - - ( - - COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8363
SELECT DISTINCT - - ( - - COUNT ( * ) ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8364
SELECT DISTINCT MAX( + COALESCE ( + ( - 54 ), - CAST( - NULLIF ( - + CAST( NULL AS SIGNED ), - + 6 ) AS SIGNED ) ) )
----
-54

skipif mysql # not compatible
query I rowsort label-8364
SELECT DISTINCT MAX ( + COALESCE ( + ( - 54 ), - CAST ( - NULLIF ( - + CAST ( NULL AS INTEGER ), - + 6 ) AS INTEGER ) ) )
----
-54

query I rowsort
SELECT DISTINCT + 35 AS col1
----
35

query I rowsort
SELECT ALL 18 AS col0
----
18

query I rowsort
SELECT - 58 + 31
----
-27

query I rowsort
SELECT + - 32 AS col1
----
-32

query I rowsort
SELECT - 6 col1
----
-6

query I rowsort
SELECT 28 AS col0
----
28

query I rowsort
SELECT DISTINCT - 99 + + 28
----
-71

query I rowsort
SELECT DISTINCT + 40 AS col1
----
40

query I rowsort
SELECT + ( + 72 ) * 39 AS col2
----
2808

onlyif mysql # aggregate syntax: 
query I rowsort label-8374
SELECT - COUNT( * ) * + 13
----
-13

skipif mysql # not compatible
query I rowsort label-8374
SELECT - COUNT ( * ) * + 13
----
-13

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8375
SELECT ALL - 84 * + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8375
SELECT ALL - 84 * + CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT ALL ( 78 ) AS col0
----
78

query I rowsort
SELECT - - 45 + 63
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-8378
SELECT - - 34 * + + COUNT( * )
----
34

skipif mysql # not compatible
query I rowsort label-8378
SELECT - - 34 * + + COUNT ( * )
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8379
SELECT COUNT( * ) DIV 44 DIV - MIN( - - 80 )
----
0

skipif mysql # not compatible
query I rowsort label-8379
SELECT COUNT ( * ) / 44 / - MIN ( - - 80 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8380
SELECT + 95 * - COUNT( * ) * - 37 - - ( + 27 ) col1
----
3542

skipif mysql # not compatible
query I rowsort label-8380
SELECT + 95 * - COUNT ( * ) * - 37 - - ( + 27 ) col1
----
3542

onlyif mysql # aggregate syntax: 
query I rowsort label-8381
SELECT 84 * + COUNT( ALL + ( - 1 ) ) col0
----
84

skipif mysql # not compatible
query I rowsort label-8381
SELECT 84 * + COUNT ( ALL + ( - 1 ) ) col0
----
84

query I rowsort
SELECT - + 9
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8383
SELECT COUNT( * ) - - 34
----
35

skipif mysql # not compatible
query I rowsort label-8383
SELECT COUNT ( * ) - - 34
----
35

query I rowsort
SELECT DISTINCT + 14
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8385
SELECT ( + COUNT( * ) ) + 65
----
66

skipif mysql # not compatible
query I rowsort label-8385
SELECT ( + COUNT ( * ) ) + 65
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8386
SELECT ALL + ( - COUNT( * ) ) + + + 84 AS col0
----
83

skipif mysql # not compatible
query I rowsort label-8386
SELECT ALL + ( - COUNT ( * ) ) + + + 84 AS col0
----
83

query I rowsort
SELECT DISTINCT 82 AS col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8388
SELECT - MIN( ALL + - 78 ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-8388
SELECT - MIN ( ALL + - 78 ) AS col2
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8389
SELECT ALL ( + + MAX( CAST( NULL AS SIGNED ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8389
SELECT ALL ( + + MAX ( CAST ( NULL AS INTEGER ) ) ) AS col1
----
NULL

query I rowsort
SELECT - 34 AS col0
----
-34

query I rowsort
SELECT ALL + ( + + 19 )
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8392
SELECT ALL - + CAST( NULL AS SIGNED ) * - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-8392
SELECT ALL - + CAST ( NULL AS INTEGER ) * - 30
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8393
SELECT 54 * + 95 + - - 66 + - + MAX( 22 ) AS col2
----
5174

skipif mysql # not compatible
query I rowsort label-8393
SELECT 54 * + 95 + - - 66 + - + MAX ( 22 ) AS col2
----
5174

onlyif mysql # aggregate syntax: 
query I rowsort label-8394
SELECT DISTINCT + ( - COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8394
SELECT DISTINCT + ( - COUNT ( * ) ) AS col0
----
-1

query II rowsort
SELECT - + 49, - 79 AS col2
----
-49
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8396
SELECT ALL - 1 + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8396
SELECT ALL - 1 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8397
SELECT - - SUM( + 86 )
----
86

skipif mysql # not compatible
query I rowsort label-8397
SELECT - - SUM ( + 86 )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8398
SELECT ALL MIN( DISTINCT + - 51 ) AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-8398
SELECT ALL MIN ( DISTINCT + - 51 ) AS col2
----
-51

query I rowsort
SELECT DISTINCT + 64
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8400
SELECT CAST( - 67 AS SIGNED )
----
-67

skipif mysql # not compatible
query I rowsort label-8400
SELECT CAST ( - 67 AS INTEGER )
----
-67

query I rowsort
SELECT + - 61 AS col2
----
-61

query I rowsort
SELECT - 73 AS col1
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8403
SELECT ALL - SUM( ALL - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8403
SELECT ALL - SUM ( ALL - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT - 99 AS col2
----
-99

query II rowsort
SELECT 98, 34 * + 23 col2
----
98
782

query I rowsort
SELECT - 4 + 17 + - ( + - 47 )
----
60

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8407
SELECT ALL + CAST( NULL AS DECIMAL ) * 83
----
NULL

skipif mysql # not compatible
query I rowsort label-8407
SELECT ALL + CAST ( NULL AS REAL ) * 83
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8408
SELECT ALL - + MIN( + 11 ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-8408
SELECT ALL - + MIN ( + 11 ) AS col1
----
-11

query I rowsort
SELECT DISTINCT - - 19 col0
----
19

query I rowsort
SELECT 4 - + 54 * - ( + 69 ) AS col0
----
3730

onlyif mysql # aggregate syntax: 
query I rowsort label-8411
SELECT COUNT( * ) * - 33 AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-8411
SELECT COUNT ( * ) * - 33 AS col0
----
-33

query I rowsort
SELECT ALL + 23 + - 28 * + 50
----
-1377

onlyif mysql # DIV for integer division: 
query I rowsort label-8413
SELECT DISTINCT - 50 DIV 70
----
0

skipif mysql # not compatible
query I rowsort label-8413
SELECT DISTINCT - 50 / 70
----
0

query I rowsort
SELECT - + 52 * + 38
----
-1976

onlyif mysql # aggregate syntax: 
query I rowsort label-8415
SELECT DISTINCT + + ( - - COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8415
SELECT DISTINCT + + ( - - COUNT ( * ) ) AS col2
----
1

query I rowsort
SELECT DISTINCT + 42 AS col1
----
42

query I rowsort
SELECT + + 16 AS col0
----
16

query I rowsort
SELECT ALL 53 col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8419
SELECT ALL MIN( ALL + 14 ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-8419
SELECT ALL MIN ( ALL + 14 ) AS col2
----
14

query I rowsort
SELECT 93 AS col2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8421
SELECT - COUNT( * ) + + 27 AS col1
----
26

skipif mysql # not compatible
query I rowsort label-8421
SELECT - COUNT ( * ) + + 27 AS col1
----
26

query I rowsort
SELECT ALL - 36 + - ( - 56 )
----
20

query I rowsort
SELECT DISTINCT + 24 AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8424
SELECT ALL + NULLIF ( COUNT( * ), AVG ( DISTINCT + - 16 ) )
----
1

skipif mysql # not compatible
query I rowsort label-8424
SELECT ALL + NULLIF ( COUNT ( * ), AVG ( DISTINCT + - 16 ) )
----
1

query I rowsort
SELECT ALL + 44 AS col0
----
44

query I rowsort
SELECT COALESCE ( 7, - + 49 )
----
7

query I rowsort
SELECT DISTINCT 40 - + ( 55 ) AS col1
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8428
SELECT DISTINCT + - 90 - - MIN( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8428
SELECT DISTINCT + - 90 - - MIN ( + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL - 94 * + 88 + - 38 AS col0
----
-8310

query I rowsort
SELECT 83 col0
----
83

query I rowsort
SELECT 23 * + - 25 AS col1
----
-575

onlyif mysql # aggregate syntax: 
query I rowsort label-8432
SELECT DISTINCT + 12 + + COUNT( * ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-8432
SELECT DISTINCT + 12 + + COUNT ( * ) AS col0
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8433
SELECT ALL + CAST( + 65 AS SIGNED ) + COUNT( * ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-8433
SELECT ALL + CAST ( + 65 AS INTEGER ) + COUNT ( * ) AS col1
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8434
SELECT ALL CAST( NULL AS SIGNED ) + - COUNT( * ) * - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8434
SELECT ALL CAST ( NULL AS INTEGER ) + - COUNT ( * ) * - + COUNT ( * )
----
NULL

query I rowsort
SELECT ( + 40 ) + 23 AS col0
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-8436
SELECT 31 * 32, - 81 * + - COUNT( * ) * - 35 AS col1
----
992
-2835

skipif mysql # not compatible
query II rowsort label-8436
SELECT 31 * 32, - 81 * + - COUNT ( * ) * - 35 AS col1
----
992
-2835

query I rowsort
SELECT ALL 29 * + 21
----
609

query I rowsort
SELECT + + 81
----
81

query I rowsort
SELECT DISTINCT - ( 91 )
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8440
SELECT DISTINCT + ( - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8440
SELECT DISTINCT + ( - + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL 47 + - - 46
----
93

query I rowsort
SELECT DISTINCT + 73
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8443
SELECT ALL + SUM( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8443
SELECT ALL + SUM ( + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL + 2 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8445
SELECT + COUNT( * ) + 60 AS col2
----
61

skipif mysql # not compatible
query I rowsort label-8445
SELECT + COUNT ( * ) + 60 AS col2
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8446
SELECT - CAST( NULL AS SIGNED ) * + + 49 / COUNT( * ) * - + 88 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8446
SELECT - CAST ( NULL AS INTEGER ) * + + 49 / COUNT ( * ) * - + 88 AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8447
SELECT ALL + CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8447
SELECT ALL + CAST ( NULL AS REAL ) col2
----
NULL

query I rowsort
SELECT DISTINCT + 5 AS col2
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8449
SELECT ALL CAST( - 37 AS SIGNED )
----
-37

skipif mysql # not compatible
query I rowsort label-8449
SELECT ALL CAST ( - 37 AS INTEGER )
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-8450
SELECT + - 12 DIV 92 + - 65 AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-8450
SELECT + - 12 / 92 + - 65 AS col0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-8451
SELECT DISTINCT + COUNT( DISTINCT 47 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8451
SELECT DISTINCT + COUNT ( DISTINCT 47 ) AS col2
----
1

query I rowsort
SELECT + + 80 AS col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8453
SELECT ALL + COUNT( * ) * - + 57 * - COUNT( * )
----
57

skipif mysql # not compatible
query I rowsort label-8453
SELECT ALL + COUNT ( * ) * - + 57 * - COUNT ( * )
----
57

query I rowsort
SELECT 57 + 75
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-8455
SELECT ALL 83 * - COUNT( * )
----
-83

skipif mysql # not compatible
query I rowsort label-8455
SELECT ALL 83 * - COUNT ( * )
----
-83

query I rowsort
SELECT DISTINCT - 18 AS col1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-8457
SELECT ALL + COUNT( * ) * - 41 AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-8457
SELECT ALL + COUNT ( * ) * - 41 AS col0
----
-41

query I rowsort
SELECT ALL 70 * 14
----
980

query I rowsort
SELECT - 65 AS col2
----
-65

query I rowsort
SELECT ALL + 66 AS col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8461
SELECT ALL - COUNT( * ) - 50
----
-51

skipif mysql # not compatible
query I rowsort label-8461
SELECT ALL - COUNT ( * ) - 50
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8462
SELECT - CAST( COUNT( * ) AS SIGNED ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8462
SELECT - CAST ( COUNT ( * ) AS INTEGER ) AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8463
SELECT ALL - COUNT( * ) DIV 36 * + ( - COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-8463
SELECT ALL - COUNT ( * ) / 36 * + ( - COUNT ( * ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8464
SELECT ALL 65 * - + MAX( - 35 )
----
2275

skipif mysql # not compatible
query I rowsort label-8464
SELECT ALL 65 * - + MAX ( - 35 )
----
2275

query II rowsort
SELECT + 95 AS col0, + 22
----
95
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8466
SELECT ALL MAX( - 75 ) + - CAST( COUNT( * ) AS SIGNED ) AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-8466
SELECT ALL MAX ( - 75 ) + - CAST ( COUNT ( * ) AS INTEGER ) AS col0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-8467
SELECT DISTINCT 28 + + COUNT( * )
----
29

skipif mysql # not compatible
query I rowsort label-8467
SELECT DISTINCT 28 + + COUNT ( * )
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-8468
SELECT ALL + 12 AS col2, + COUNT( * )
----
12
1

skipif mysql # not compatible
query II rowsort label-8468
SELECT ALL + 12 AS col2, + COUNT ( * )
----
12
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8469
SELECT - - CAST( NULL AS DECIMAL ) + - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-8469
SELECT - - CAST ( NULL AS REAL ) + - 34
----
NULL

query I rowsort
SELECT - 31 + - 65 AS col0
----
-96

query I rowsort
SELECT DISTINCT + 42 * + 80 * 23
----
77280

onlyif mysql # aggregate syntax: 
query I rowsort label-8472
SELECT + COUNT( 71 )
----
1

skipif mysql # not compatible
query I rowsort label-8472
SELECT + COUNT ( 71 )
----
1

query I rowsort
SELECT ALL - 90 AS col1
----
-90

query I rowsort
SELECT DISTINCT + 11 * + + 88 AS col1
----
968

onlyif mysql # aggregate syntax: 
query II rowsort label-8475
SELECT DISTINCT + COUNT( * ), + COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-8475
SELECT DISTINCT + COUNT ( * ), + COUNT ( * )
----
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8476
SELECT CAST( NULL AS SIGNED ) AS col1, 43
----
NULL
43

skipif mysql # not compatible
query II rowsort label-8476
SELECT CAST ( NULL AS INTEGER ) AS col1, 43
----
NULL
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8477
SELECT ALL + COUNT( * ) * - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-8477
SELECT ALL + COUNT ( * ) * - COUNT ( * )
----
-1

query I rowsort
SELECT ALL - 95 AS col1
----
-95

query I rowsort
SELECT DISTINCT - 59
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8480
SELECT ALL + CAST( + 61 AS SIGNED ) + + - 30 AS col2, COUNT( * )
----
31
1

skipif mysql # not compatible
query II rowsort label-8480
SELECT ALL + CAST ( + 61 AS INTEGER ) + + - 30 AS col2, COUNT ( * )
----
31
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8481
SELECT + SUM( 74 ) + - 58
----
16

skipif mysql # not compatible
query I rowsort label-8481
SELECT + SUM ( 74 ) + - 58
----
16

query I rowsort
SELECT DISTINCT + 60 + + 95 AS col0
----
155

query I rowsort
SELECT DISTINCT - 42
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8484
SELECT COUNT( * ) + + - 9 * - COUNT( * ) DIV + ( + COUNT( * ) ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-8484
SELECT COUNT ( * ) + + - 9 * - COUNT ( * ) / + ( + COUNT ( * ) ) AS col0
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8485
SELECT + CAST( + 95 AS SIGNED ) col2
----
95

skipif mysql # not compatible
query I rowsort label-8485
SELECT + CAST ( + 95 AS INTEGER ) col2
----
95

query I rowsort
SELECT - + 94 AS col2
----
-94

query I rowsort
SELECT 1 * ( - + 72 ) AS col1
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8488
SELECT 91 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8488
SELECT 91 / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8489
SELECT ALL + - MAX( - 38 )
----
38

skipif mysql # not compatible
query I rowsort label-8489
SELECT ALL + - MAX ( - 38 )
----
38

query I rowsort
SELECT + - 6 + + + 3
----
-3

query I rowsort
SELECT - 89 AS col1
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-8492
SELECT DISTINCT MAX( + 89 ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-8492
SELECT DISTINCT MAX ( + 89 ) AS col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8493
SELECT + 5 + - COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-8493
SELECT + 5 + - COUNT ( * )
----
4

query I rowsort
SELECT DISTINCT + 11 AS col2
----
11

query I rowsort
SELECT + - ( 15 ) AS col1
----
-15

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8496
SELECT ALL CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8496
SELECT ALL CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8497
SELECT + CAST( NULL AS SIGNED ) * + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-8497
SELECT + CAST ( NULL AS INTEGER ) * + 10
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8498
SELECT ALL - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8498
SELECT ALL - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - ( + 82 ) col2
----
-82

query I rowsort
SELECT ALL - 36 AS col1
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8501
SELECT CAST( NULL AS SIGNED ) * - 42 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8501
SELECT CAST ( NULL AS INTEGER ) * - 42 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8502
SELECT COUNT( * ) + + - ( + COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-8502
SELECT COUNT ( * ) + + - ( + COUNT ( * ) )
----
0

query I rowsort
SELECT ALL 0 col1
----
0

query I rowsort
SELECT ALL - ( - 31 ) AS col1
----
31

query I rowsort
SELECT ALL - + 93 AS col1
----
-93

query I rowsort
SELECT ALL - 74 AS col2
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8507
SELECT DISTINCT CAST( NULL AS SIGNED ) * - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8507
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT 81 col0
----
81

query I rowsort
SELECT DISTINCT 46 AS col1
----
46

query I rowsort
SELECT DISTINCT 7 AS col1
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8511
SELECT + - ( 45 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8511
SELECT + - ( 45 ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8512
SELECT DISTINCT + 33 * + SUM( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8512
SELECT DISTINCT + 33 * + SUM ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8513
SELECT - COUNT( * ) - + COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-8513
SELECT - COUNT ( * ) - + COUNT ( * )
----
-2

query I rowsort
SELECT - 86 * 70 AS col2
----
-6020

onlyif mysql # aggregate syntax: 
query I rowsort label-8515
SELECT + COUNT( * ) * 31 col1
----
31

skipif mysql # not compatible
query I rowsort label-8515
SELECT + COUNT ( * ) * 31 col1
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8516
SELECT CAST( NULL AS SIGNED ) + - 49 * - 85
----
NULL

skipif mysql # not compatible
query I rowsort label-8516
SELECT CAST ( NULL AS INTEGER ) + - 49 * - 85
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8517
SELECT + COUNT( 95 )
----
1

skipif mysql # not compatible
query I rowsort label-8517
SELECT + COUNT ( 95 )
----
1

query I rowsort
SELECT - 48 col1
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-8519
SELECT ALL + - 63 DIV 76
----
0

skipif mysql # not compatible
query I rowsort label-8519
SELECT ALL + - 63 / 76
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8520
SELECT DISTINCT + + 96 DIV + 14 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-8520
SELECT DISTINCT + + 96 / + 14 AS col1
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8521
SELECT ALL - CAST( - COUNT( * ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8521
SELECT ALL - CAST ( - COUNT ( * ) AS INTEGER ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8522
SELECT 15 - + COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-8522
SELECT 15 - + COUNT ( * )
----
14

query I rowsort
SELECT DISTINCT - 58
----
-58

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8524
SELECT NULLIF ( CAST( NULL AS DECIMAL ), - ( ( + 77 ) ) ) + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8524
SELECT NULLIF ( CAST ( NULL AS REAL ), - ( ( + 77 ) ) ) + + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8525
SELECT DISTINCT CAST( - - 99 AS SIGNED ) - 84
----
15

skipif mysql # not compatible
query I rowsort label-8525
SELECT DISTINCT CAST ( - - 99 AS INTEGER ) - 84
----
15

query I rowsort
SELECT 84 AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8527
SELECT + SUM( ALL - - 71 ) col0
----
71

skipif mysql # not compatible
query I rowsort label-8527
SELECT + SUM ( ALL - - 71 ) col0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8528
SELECT ALL MIN( + 15 )
----
15

skipif mysql # not compatible
query I rowsort label-8528
SELECT ALL MIN ( + 15 )
----
15

query I rowsort
SELECT + NULLIF ( + 37, 10 )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-8530
SELECT ALL - 96 * - COUNT( * ) - + COUNT( * ) - - 70
----
165

skipif mysql # not compatible
query I rowsort label-8530
SELECT ALL - 96 * - COUNT ( * ) - + COUNT ( * ) - - 70
----
165

query I rowsort
SELECT ALL + 13 * + 10
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-8532
SELECT - MIN( DISTINCT + ( - 38 ) ) * 32
----
1216

skipif mysql # not compatible
query I rowsort label-8532
SELECT - MIN ( DISTINCT + ( - 38 ) ) * 32
----
1216

query I rowsort
SELECT - 63 - - 3 AS col1
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-8534
SELECT ALL 82 DIV + - 21
----
-3

skipif mysql # not compatible
query I rowsort label-8534
SELECT ALL 82 / + - 21
----
-3

query I rowsort
SELECT ALL ( - 43 ) + - - 54
----
11

query I rowsort
SELECT DISTINCT 63 AS col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8537
SELECT - 23 - MIN( DISTINCT - - 53 )
----
-76

skipif mysql # not compatible
query I rowsort label-8537
SELECT - 23 - MIN ( DISTINCT - - 53 )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-8538
SELECT ALL COALESCE ( + 91, - COUNT( * ) )
----
91

skipif mysql # not compatible
query I rowsort label-8538
SELECT ALL COALESCE ( + 91, - COUNT ( * ) )
----
91

query I rowsort
SELECT ALL + 80 AS col1
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8540
SELECT DISTINCT + ( - ( - 47 ) ) * + - ( CAST( NULL AS SIGNED ) ) + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-8540
SELECT DISTINCT + ( - ( - 47 ) ) * + - ( CAST ( NULL AS INTEGER ) ) + 2
----
NULL

query I rowsort
SELECT + + 67
----
67

query I rowsort
SELECT ALL 55 - 99 AS col2
----
-44

query I rowsort
SELECT ( 50 ) + + ( 73 )
----
123

query I rowsort
SELECT 58 * - - 31 AS col0
----
1798

query I rowsort
SELECT 35 * 68 AS col0
----
2380

query I rowsort
SELECT + 58 col1
----
58

query I rowsort
SELECT DISTINCT - + 21 AS col0
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8548
SELECT CAST( + 1 AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-8548
SELECT CAST ( + 1 AS INTEGER )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8549
SELECT + SUM( DISTINCT + 76 )
----
76

skipif mysql # not compatible
query I rowsort label-8549
SELECT + SUM ( DISTINCT + 76 )
----
76

query I rowsort
SELECT ALL 74 * 50 AS col0
----
3700

onlyif mysql # aggregate syntax: 
query I rowsort label-8551
SELECT DISTINCT - COUNT( * ) * + MAX( ALL + + 6 ) - + COUNT( * ) - + COUNT( * ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-8551
SELECT DISTINCT - COUNT ( * ) * + MAX ( ALL + + 6 ) - + COUNT ( * ) - + COUNT ( * ) AS col1
----