sqllogictest
Artifact Content
Not logged in

Artifact 271c6431f2fbcc768742ba8d58e744ac71aa8bdd:


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)

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

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

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

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

query II rowsort
SELECT + 6, 39 col2
----
6
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3
SELECT SUM( ALL - ( - - 61 ) ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-3
SELECT SUM ( ALL - ( - - 61 ) ) AS col1
----
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-4
SELECT - + 82 DIV + 97
----
0

skipif mysql # not compatible
query I rowsort label-4
SELECT - + 82 / + 97
----
0

query I rowsort
SELECT - 50 * - + 82
----
4100

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7
SELECT ALL 94 DIV 88 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7
SELECT ALL 94 / 88 AS col1
----
1

query II rowsort
SELECT 31 AS col2, + 10 AS col1
----
31
10

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

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

query I rowsort
SELECT 13 * - - 18
----
234

query II rowsort
SELECT ALL - 54, - 48 AS col0
----
-54
-48

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

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

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

skipif mysql # not compatible
query I rowsort label-13
SELECT 7 * - + 93 * + SUM ( ALL CAST ( NULL AS INTEGER ) ) - + + COUNT ( * ) + - 34 AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-14
SELECT ALL - COUNT ( * ) * + 71 * + 23 AS col0
----
-1633

onlyif mysql # aggregate syntax: 
query I rowsort label-15
SELECT DISTINCT - MAX( ALL + 47 ) - + COUNT( * )
----
-48

skipif mysql # not compatible
query I rowsort label-15
SELECT DISTINCT - MAX ( ALL + 47 ) - + COUNT ( * )
----
-48

query I rowsort
SELECT + NULLIF ( - 59, + 50 )
----
-59

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

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

query II rowsort
SELECT DISTINCT + 78 col1, 61
----
78
61

onlyif mysql # DIV for integer division: 
query I rowsort label-19
SELECT - + 64 DIV COALESCE ( - + 69, + 4 * - 8 + - 88, 48 ) DIV 76
----
0

skipif mysql # not compatible
query I rowsort label-19
SELECT - + 64 / COALESCE ( - + 69, + 4 * - 8 + - 88, 48 ) / 76
----
0

query I rowsort
SELECT ALL + 94 * - 76 + + ( - - 63 ) col2
----
-7081

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT 44 * - 12 AS col1
----
-528

query I rowsort
SELECT DISTINCT - 3 + 40
----
37

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

onlyif mysql # aggregate syntax: 
query II rowsort label-29
SELECT + COUNT( * ) col1, - ( - 41 ) + 80 + + - 86 AS col1
----
1
35

skipif mysql # not compatible
query II rowsort label-29
SELECT + COUNT ( * ) col1, - ( - 41 ) + 80 + + - 86 AS col1
----
1
35

query I rowsort
SELECT DISTINCT + 48 * + - 14 AS col0
----
-672

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-31
SELECT - CAST( + ( 56 ) AS SIGNED ) * - 82 AS col1
----
4592

skipif mysql # not compatible
query I rowsort label-31
SELECT - CAST ( + ( 56 ) AS INTEGER ) * - 82 AS col1
----
4592

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

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

query I rowsort
SELECT + 51 * + - 41 AS col2
----
-2091

onlyif mysql # aggregate syntax: 
query I rowsort label-34
SELECT + MAX( ALL - 99 ) + + 8
----
-91

skipif mysql # not compatible
query I rowsort label-34
SELECT + MAX ( ALL - 99 ) + + 8
----
-91

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

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

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

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-43
SELECT ALL - + CAST( - 61 AS SIGNED ) * 65 / + - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-43
SELECT ALL - + CAST ( - 61 AS INTEGER ) * 65 / + - CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT - 96 * + 64 AS col0
----
-6144

query I rowsort
SELECT DISTINCT + 48 + 97
----
145

query I rowsort
SELECT DISTINCT - ( + + ( 5 ) ) * + + ( 66 ) AS col2
----
-330

query I rowsort
SELECT ALL - 19 - + 31 AS col0
----
-50

query I rowsort
SELECT - 86 * 33
----
-2838

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-49
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1, + 34 * 94
----
NULL
3196

skipif mysql # not compatible
query II rowsort label-49
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1, + 34 * 94
----
NULL
3196

query I rowsort
SELECT - NULLIF ( - 12, + 85 ) AS col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-51
SELECT MIN( DISTINCT 20 ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-51
SELECT MIN ( DISTINCT 20 ) AS col0
----
20

query I rowsort
SELECT 82 + + 49 col0
----
131

query I rowsort
SELECT 16 col0
----
16

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-56
SELECT ALL - 91 * - - 9 / + SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) col1
----
NULL

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

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

query I rowsort
SELECT DISTINCT + + 59 + 88
----
147

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

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

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

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

query I rowsort
SELECT + 42 * + 83 + + 13 AS col0
----
3499

onlyif mysql # DIV for integer division: 
query I rowsort label-62
SELECT 19 DIV - 27 * + ( + 8 ) + + + 96 DIV COALESCE ( - 91, - 88 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-62
SELECT 19 / - 27 * + ( + 8 ) + + + 96 / COALESCE ( - 91, - 88 ) AS col0
----
-1

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

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

query I rowsort
SELECT DISTINCT 91 + - 9
----
82

query I rowsort
SELECT 75 + 30 * - 54 AS col1
----
-1545

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

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

query II rowsort
SELECT ALL 64, 21 col1
----
64
21

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

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

query I rowsort
SELECT + - 20 * + 73 AS col0
----
-1460

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

skipif mysql # not compatible
query I rowsort label-70
SELECT MIN ( + 54 )
----
54

query I rowsort
SELECT DISTINCT - 27 + 42
----
15

query I rowsort
SELECT 75 * - - 27
----
2025

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

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

query I rowsort
SELECT ALL 87 * + - 31
----
-2697

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

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

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

query I rowsort
SELECT 67 + + 10 AS col2
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-78
SELECT ALL + 16, - COUNT( * ) + 64 col2
----
16
63

skipif mysql # not compatible
query II rowsort label-78
SELECT ALL + 16, - COUNT ( * ) + 64 col2
----
16
63

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

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

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

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

query I rowsort
SELECT - 30 * 15
----
-450

query I rowsort
SELECT - + 75 + + 39
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-83
SELECT + 94 AS col2, 10 - - - SUM( - - 15 )
----
94
-5

skipif mysql # not compatible
query II rowsort label-83
SELECT + 94 AS col2, 10 - - - SUM ( - - 15 )
----
94
-5

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

query I rowsort
SELECT ALL - 8 * - 53
----
424

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

skipif mysql # not compatible
query I rowsort label-86
SELECT DISTINCT - MAX ( 14 )
----
-14

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

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-93
SELECT DISTINCT + 18 DIV + SUM( ALL - 11 )
----
-1

skipif mysql # not compatible
query I rowsort label-93
SELECT DISTINCT + 18 / + SUM ( ALL - 11 )
----
-1

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

query I rowsort
SELECT + 18 * 1
----
18

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

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

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

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

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

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

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

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

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

query II rowsort
SELECT ALL - + 41 AS col0, + 11 + 70 AS col0
----
-41
81

query I rowsort
SELECT DISTINCT - 51 - 17 AS col1
----
-68

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-106
SELECT + SUM( + 27 ) - 7 * - ( - 75 ) AS col2
----
-498

skipif mysql # not compatible
query I rowsort label-106
SELECT + SUM ( + 27 ) - 7 * - ( - 75 ) AS col2
----
-498

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

skipif mysql # not compatible
query I rowsort label-107
SELECT DISTINCT MAX ( - - ( 46 ) )
----
46

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-109
SELECT - + ( + SUM( ALL 45 ) ) - + 33 AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-109
SELECT - + ( + SUM ( ALL 45 ) ) - + 33 AS col1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-110
SELECT DISTINCT - COUNT( * ) * - - 77 * - + 3
----
231

skipif mysql # not compatible
query I rowsort label-110
SELECT DISTINCT - COUNT ( * ) * - - 77 * - + 3
----
231

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-114
SELECT COALESCE ( MIN( - 40 ), 51 ) AS col1, + 95 AS col2
----
-40
95

skipif mysql # not compatible
query II rowsort label-114
SELECT COALESCE ( MIN ( - 40 ), 51 ) AS col1, + 95 AS col2
----
-40
95

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

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

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

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

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

query I rowsort
SELECT DISTINCT 63 col2
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-119
SELECT DISTINCT MIN( - 84 ), + 22 * - 67 AS col0
----
-84
-1474

skipif mysql # not compatible
query II rowsort label-119
SELECT DISTINCT MIN ( - 84 ), + 22 * - 67 AS col0
----
-84
-1474

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT - 36 + + + 50
----
14

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

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

query I rowsort
SELECT 98 + + + 2 AS col0
----
100

query II rowsort
SELECT DISTINCT - 36 AS col0, - 26 AS col1
----
-36
-26

query I rowsort
SELECT ALL - + 10 * + 57 AS col0
----
-570

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

skipif mysql # not compatible
query I rowsort label-131
SELECT ALL - MAX ( ( - 88 ) )
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-132
SELECT DISTINCT 83 AS col1, 19 DIV + - COUNT( * ) AS col2
----
83
-19

skipif mysql # not compatible
query II rowsort label-132
SELECT DISTINCT 83 AS col1, 19 / + - COUNT ( * ) AS col2
----
83
-19

query I rowsort
SELECT - ( - + 24 ) + + + 93 AS col1
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-134
SELECT ALL 71 * MAX( - + 31 ) AS col2
----
-2201

skipif mysql # not compatible
query I rowsort label-134
SELECT ALL 71 * MAX ( - + 31 ) AS col2
----
-2201

onlyif mysql # aggregate syntax: 
query I rowsort label-135
SELECT ALL + + MIN( DISTINCT - + 91 ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-135
SELECT ALL + + MIN ( DISTINCT - + 91 ) AS col1
----
-91

query I rowsort
SELECT - 46 - - 60
----
14

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT 94 * 36
----
3384

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

onlyif mysql # aggregate syntax: 
query II rowsort label-143
SELECT ALL + 72 * - 16, - 71 + + COUNT( * ) AS col1
----
-1152
-70

skipif mysql # not compatible
query II rowsort label-143
SELECT ALL + 72 * - 16, - 71 + + COUNT ( * ) AS col1
----
-1152
-70

query I rowsort
SELECT ALL + 63 * + 6
----
378

query I rowsort
SELECT ALL - 0 * + 91 AS col0
----
0

query I rowsort
SELECT ALL - - 86 + - 43 AS col2
----
43

query I rowsort
SELECT ( - 71 ) * 46
----
-3266

onlyif mysql # aggregate syntax: 
query I rowsort label-148
SELECT - COALESCE ( 45, + + COUNT( * ) ) col2
----
-45

skipif mysql # not compatible
query I rowsort label-148
SELECT - COALESCE ( 45, + + COUNT ( * ) ) col2
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-149
SELECT ALL 26 * + 60 * SUM( - 34 )
----
-53040

skipif mysql # not compatible
query I rowsort label-149
SELECT ALL 26 * + 60 * SUM ( - 34 )
----
-53040

query II rowsort
SELECT ALL 61 col0, - 78
----
61
-78

query I rowsort
SELECT - 0 * 28
----
0

query I rowsort
SELECT + 71 * 82 AS col2
----
5822

query I rowsort
SELECT ALL 2 col0
----
2

query I rowsort
SELECT DISTINCT 41 + + ( - ( - 47 ) )
----
88

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-156
SELECT - + 5 DIV 79 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-156
SELECT - + 5 / 79 AS col1
----
0

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT + 54 * + 42 AS col2
----
2268

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-166
SELECT + - 76 * CAST( 32 AS SIGNED ) AS col0, + 10 col1
----
-2432
10

skipif mysql # not compatible
query II rowsort label-166
SELECT + - 76 * CAST ( 32 AS INTEGER ) AS col0, + 10 col1
----
-2432
10

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-168
SELECT 33 * SUM( - 21 )
----
-693

skipif mysql # not compatible
query I rowsort label-168
SELECT 33 * SUM ( - 21 )
----
-693

onlyif mysql # aggregate syntax: 
query I rowsort label-169
SELECT ALL - SUM( DISTINCT 93 ) col1
----
-93

skipif mysql # not compatible
query I rowsort label-169
SELECT ALL - SUM ( DISTINCT 93 ) col1
----
-93

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

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

query I rowsort
SELECT ALL + 55 + + 61 AS col1
----
116

query I rowsort
SELECT ALL 67 + + - 95
----
-28

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-176
SELECT - COUNT ( DISTINCT - + 11 ) * - - ( 90 ) AS col1
----
-90

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

skipif mysql # not compatible
query I rowsort label-177
SELECT ALL ( + + COUNT ( * ) ) * - COUNT ( * ) + - 40 AS col1
----
-41

query II rowsort
SELECT - 15 AS col1, + 92
----
-15
92

query I rowsort
SELECT ALL 24 * + 89
----
2136

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

skipif mysql # not compatible
query I rowsort label-180
SELECT DISTINCT + NULLIF ( COUNT ( * ), - + 10 )
----
1

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

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

query I rowsort
SELECT 92 + 45
----
137

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

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

query I rowsort
SELECT 16 + 97
----
113

query I rowsort
SELECT DISTINCT + 85 + + 59 AS col1
----
144

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

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

query I rowsort
SELECT 86 - 96 AS col0
----
-10

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

query I rowsort
SELECT - + 83 + 18 AS col1
----
-65

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-191
SELECT + MAX( ALL - 43 ) + - 27 AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-191
SELECT + MAX ( ALL - 43 ) + - 27 AS col0
----
-70

query I rowsort
SELECT ALL 61 * 7
----
427

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-194
SELECT + COUNT( * ) + - MIN( 88 ) + 57
----
-30

skipif mysql # not compatible
query I rowsort label-194
SELECT + COUNT ( * ) + - MIN ( 88 ) + 57
----
-30

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

query I rowsort
SELECT ( ( 38 ) )
----
38

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

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

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

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

query I rowsort
SELECT DISTINCT - + 95 * + + 45 + 76 AS col2
----
-4199

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

onlyif mysql # aggregate syntax: 
query I rowsort label-202
SELECT SUM( DISTINCT + 25 ) col0
----
25

skipif mysql # not compatible
query I rowsort label-202
SELECT SUM ( DISTINCT + 25 ) col0
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-203
SELECT DISTINCT - 54 DIV + ( + + 72 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-203
SELECT DISTINCT - 54 / + ( + + 72 ) col2
----
0

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

query I rowsort
SELECT ALL - + 27 * + - 99 AS col0
----
2673

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

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

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

query I rowsort
SELECT - 47 + - 22 + 67
----
-2

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

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

query I rowsort
SELECT + - 17 * + + 65 AS col1
----
-1105

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-213
SELECT DISTINCT + - ( + 99 ) * + 72 * - 51 * COUNT( * ) AS col2, 44
----
363528
44

skipif mysql # not compatible
query II rowsort label-213
SELECT DISTINCT + - ( + 99 ) * + 72 * - 51 * COUNT ( * ) AS col2, 44
----
363528
44

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

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

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

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

query I rowsort
SELECT 26 * 27 AS col1
----
702

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

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

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

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

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

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

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

query I rowsort
SELECT ALL 58 + - 98
----
-40

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

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

query I rowsort
SELECT ALL + COALESCE ( + - 87, + 4 ) AS col2
----
-87

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

query I rowsort
SELECT + CASE + + 78 WHEN 6 THEN NULL ELSE + 16 END AS col2
----
16

query I rowsort
SELECT ALL - + 93 + - 49 AS col2
----
-142

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

skipif mysql # not compatible
query I rowsort label-228
SELECT + CAST ( - MIN ( - 52 ) AS INTEGER )
----
52

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

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

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

query I rowsort
SELECT 30 * + + 16 AS col1
----
480

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

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

skipif mysql # not compatible
query I rowsort label-234
SELECT + SUM ( ( + 7 ) )
----
7

query I rowsort
SELECT + 13 * + - 64 AS col1
----
-832

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-239
SELECT DISTINCT 39 + - COUNT ( * ) AS col0
----
38

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

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

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

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

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

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

query I rowsort
SELECT ALL 7 * 54 AS col0
----
378

onlyif mysql # aggregate syntax: 
query I rowsort label-244
SELECT 38 * + 24 - - COUNT( * ) + - - 30 col0
----
943

skipif mysql # not compatible
query I rowsort label-244
SELECT 38 * + 24 - - COUNT ( * ) + - - 30 col0
----
943

onlyif mysql # aggregate syntax: 
query I rowsort label-245
SELECT - CASE MIN( DISTINCT + + 82 ) WHEN - COUNT( * ) THEN NULL ELSE 31 END
----
-31

skipif mysql # not compatible
query I rowsort label-245
SELECT - CASE MIN ( DISTINCT + + 82 ) WHEN - COUNT ( * ) THEN NULL ELSE 31 END
----
-31

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

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

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

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

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

query I rowsort
SELECT 45 + 83
----
128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-250
SELECT 64 * - COALESCE ( NULLIF ( - 83, - 85 ), - ( CAST( NULL AS SIGNED ) ) )
----
5312

skipif mysql # not compatible
query I rowsort label-250
SELECT 64 * - COALESCE ( NULLIF ( - 83, - 85 ), - ( CAST ( NULL AS INTEGER ) ) )
----
5312

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

skipif mysql # not compatible
query I rowsort label-251
SELECT MIN ( - 51 )
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-252
SELECT DISTINCT - SUM( ALL - 76 ) AS col2, 65 AS col2
----
76
65

skipif mysql # not compatible
query II rowsort label-252
SELECT DISTINCT - SUM ( ALL - 76 ) AS col2, 65 AS col2
----
76
65

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-255
SELECT - SUM( DISTINCT - 69 ) + + 35 AS col0
----
104

skipif mysql # not compatible
query I rowsort label-255
SELECT - SUM ( DISTINCT - 69 ) + + 35 AS col0
----
104

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-257
SELECT + CASE + - COUNT( * ) WHEN 94 THEN NULL WHEN + - 72 - - - MIN( DISTINCT + CAST( NULL AS SIGNED ) ) + - COUNT( * ) THEN - COUNT( * ) END, + 64 AS col2
----
NULL
64

skipif mysql # not compatible
query II rowsort label-257
SELECT + CASE + - COUNT ( * ) WHEN 94 THEN NULL WHEN + - 72 - - - MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) THEN - COUNT ( * ) END, + 64 AS col2
----
NULL
64

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

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

query I rowsort
SELECT ALL 96 * - - 47 * ( 22 )
----
99264

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

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

query I rowsort
SELECT - 71 + + 40 AS col1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-262
SELECT DISTINCT - + SUM( DISTINCT 63 ) + - 22 AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-262
SELECT DISTINCT - + SUM ( DISTINCT 63 ) + - 22 AS col2
----
-85

query II rowsort
SELECT ALL - ( - + CASE WHEN - 15 IS NOT NULL THEN + 6 END ) AS col1, 76 AS col1
----
6
76

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

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

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

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

query I rowsort
SELECT ALL - ( - - 65 ) col1
----
-65

query I rowsort
SELECT DISTINCT 1 + - - 0 col0
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-268
SELECT DISTINCT 25 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-268
SELECT DISTINCT 25 * - CAST ( NULL AS REAL )
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-270
SELECT + 0 DIV + 26 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-270
SELECT + 0 / + 26 AS col2
----
0

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL + + CASE WHEN NOT NULL IS NULL THEN 13 ELSE NULL END AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-276
SELECT DISTINCT - MIN ( - - ( 67 ) )
----
-67

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

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

query I rowsort
SELECT 32 + - 89
----
-57

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT 47 - + - 18
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-283
SELECT DISTINCT MIN( ALL + ( + 46 ) ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-283
SELECT DISTINCT MIN ( ALL + ( + 46 ) ) AS col1
----
46

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

onlyif mysql # aggregate syntax: 
query I rowsort label-285
SELECT - SUM( + 4 ) - - COUNT( ALL 95 )
----
-3

skipif mysql # not compatible
query I rowsort label-285
SELECT - SUM ( + 4 ) - - COUNT ( ALL 95 )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-286
SELECT + COUNT( * ) * - 16 + - - 20 col1
----
4

skipif mysql # not compatible
query I rowsort label-286
SELECT + COUNT ( * ) * - 16 + - - 20 col1
----
4

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

skipif mysql # not compatible
query I rowsort label-287
SELECT - COUNT ( * ) * - - 4 + - - 26 AS col0
----
22

query II rowsort
SELECT ALL + 28 col1, - 89 AS col0
----
28
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-289
SELECT MAX( 96 )
----
96

skipif mysql # not compatible
query I rowsort label-289
SELECT MAX ( 96 )
----
96

query I rowsort
SELECT DISTINCT - 82 * + 8 AS col1
----
-656

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

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

query I rowsort
SELECT + 52 - + 97 AS col2
----
-45

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

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

query I rowsort
SELECT DISTINCT - 31 col0
----
-31

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

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

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

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

query I rowsort
SELECT 93 * + 54
----
5022

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-301
SELECT ALL + NULLIF ( COUNT( + 36 ), + - NULLIF ( + 11, 93 * COUNT( * ) ) ) * - 49
----
-49

skipif mysql # not compatible
query I rowsort label-301
SELECT ALL + NULLIF ( COUNT ( + 36 ), + - NULLIF ( + 11, 93 * COUNT ( * ) ) ) * - 49
----
-49

query I rowsort
SELECT ALL + 61 * + 34 AS col2
----
2074

query II rowsort
SELECT - 8 + 85 AS col1, - 3
----
77
-3

query I rowsort
SELECT + NULLIF ( - 32, 81 )
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-305
SELECT - + 85 + - CAST( 96 AS SIGNED ) - + COUNT( * ) - + - 15
----
-167

skipif mysql # not compatible
query I rowsort label-305
SELECT - + 85 + - CAST ( 96 AS INTEGER ) - + COUNT ( * ) - + - 15
----
-167

onlyif mysql # DIV for integer division: 
query I rowsort label-306
SELECT 21 DIV 54
----
0

skipif mysql # not compatible
query I rowsort label-306
SELECT 21 / 54
----
0

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

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

query II rowsort
SELECT - 56 AS col1, 1
----
-56
1

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

query II rowsort
SELECT ALL + 1, 23 AS col2
----
1
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-311
SELECT - COALESCE ( + CAST( 49 AS SIGNED ), COUNT( * ), 89 ) * - + COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-311
SELECT - COALESCE ( + CAST ( 49 AS INTEGER ), COUNT ( * ), 89 ) * - + COUNT ( * )
----
49

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

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

query III rowsort
SELECT ALL + 84 AS col2, + 57, + 36 AS col1
----
84
57
36

onlyif mysql # aggregate syntax: 
query I rowsort label-314
SELECT + + ( + MAX( + - 69 ) ) * + 19 AS col2
----
-1311

skipif mysql # not compatible
query I rowsort label-314
SELECT + + ( + MAX ( + - 69 ) ) * + 19 AS col2
----
-1311

onlyif mysql # aggregate syntax: 
query I rowsort label-315
SELECT - - MAX( - - 22 ) * + + 78 AS col2
----
1716

skipif mysql # not compatible
query I rowsort label-315
SELECT - - MAX ( - - 22 ) * + + 78 AS col2
----
1716

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

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

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

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

query I rowsort
SELECT 62 + 59
----
121

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-319
SELECT ALL - 98 DIV - - MAX( + 22 ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-319
SELECT ALL - 98 / - - MAX ( + 22 ) AS col2
----
-4

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-324
SELECT - CAST( + + 44 AS SIGNED ) AS col2, ( + 74 )
----
-44
74

skipif mysql # not compatible
query II rowsort label-324
SELECT - CAST ( + + 44 AS INTEGER ) AS col2, ( + 74 )
----
-44
74

onlyif mysql # aggregate syntax: 
query I rowsort label-325
SELECT DISTINCT - 90 * - COUNT( * ) col1
----
90

skipif mysql # not compatible
query I rowsort label-325
SELECT DISTINCT - 90 * - COUNT ( * ) col1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-326
SELECT ALL + 2 + 82 + + MAX( - - 54 ) * 69 * + + COUNT( * ) AS col0
----
3810

skipif mysql # not compatible
query I rowsort label-326
SELECT ALL + 2 + 82 + + MAX ( - - 54 ) * 69 * + + COUNT ( * ) AS col0
----
3810

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

skipif mysql # not compatible
query I rowsort label-327
SELECT DISTINCT + ( - 57 ) + COUNT ( * ) AS col0
----
-56

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

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

query I rowsort
SELECT ALL - NULLIF ( + - 68, 50 )
----
68

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

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

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

query I rowsort
SELECT ALL - 70 + 8 AS col2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-333
SELECT COUNT( * ) * - - 9 + - 67 * + 67
----
-4480

skipif mysql # not compatible
query I rowsort label-333
SELECT COUNT ( * ) * - - 9 + - 67 * + 67
----
-4480

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

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

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

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

query I rowsort
SELECT ALL + 36 - - 54 AS col2
----
90

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-340
SELECT - + 70 + MAX( DISTINCT 97 ) col1
----
27

skipif mysql # not compatible
query I rowsort label-340
SELECT - + 70 + MAX ( DISTINCT 97 ) col1
----
27

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

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

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

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

query II rowsort
SELECT DISTINCT - 98 AS col0, - 42 AS col1
----
-98
-42

query II rowsort
SELECT + + 39 AS col1, 84 AS col2
----
39
84

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

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

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

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

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

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

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

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

query II rowsort
SELECT + 92, - 56 AS col2
----
92
-56

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL - - 65
----
65

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

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

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

query I rowsort
SELECT + 34 col1
----
34

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

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

query I rowsort
SELECT DISTINCT 83 col1
----
83

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

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

query I rowsort
SELECT - - 61 col1
----
61

query I rowsort
SELECT - NULLIF ( - 17, - + 53 ) col0
----
17

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

query I rowsort
SELECT 50 * + ( 54 ) AS col2
----
2700

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-370
SELECT 24 + + COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-370
SELECT 24 + + COUNT ( * )
----
25

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT - ( 57 ) * 20
----
-1140

query I rowsort
SELECT - 66 * - 83
----
5478

onlyif mysql # aggregate syntax: 
query I rowsort label-378
SELECT ALL NULLIF ( 21, + COUNT( * ) )
----
21

skipif mysql # not compatible
query I rowsort label-378
SELECT ALL NULLIF ( 21, + COUNT ( * ) )
----
21

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

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

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

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-385
SELECT 94 / COUNT ( * ) AS col0
----
94

query I rowsort
SELECT 85 * + + 6
----
510

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

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

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

skipif mysql # not compatible
query I rowsort label-388
SELECT DISTINCT + CAST ( - + 39 AS INTEGER ) * 36
----
-1404

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - ( - 17 ) + - 79 col2
----
-62

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

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

query I rowsort
SELECT + 54 * + 18 + - - 51
----
1023

onlyif mysql # aggregate syntax: 
query I rowsort label-395
SELECT ALL - + 40 * + 31 * - + 68 + + - COUNT( * ) AS col2
----
84319

skipif mysql # not compatible
query I rowsort label-395
SELECT ALL - + 40 * + 31 * - + 68 + + - COUNT ( * ) AS col2
----
84319

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-397
SELECT ALL + 64 * COUNT( * ) * 97 - - ( 2 )
----
6210

skipif mysql # not compatible
query I rowsort label-397
SELECT ALL + 64 * COUNT ( * ) * 97 - - ( 2 )
----
6210

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-398
SELECT DISTINCT CAST( NULL AS SIGNED ), MIN( DISTINCT + 45 ) AS col1
----
NULL
45

skipif mysql # not compatible
query II rowsort label-398
SELECT DISTINCT CAST ( NULL AS INTEGER ), MIN ( DISTINCT + 45 ) AS col1
----
NULL
45

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-400
SELECT 58 DIV + - 82 * - 72
----
0

skipif mysql # not compatible
query I rowsort label-400
SELECT 58 / + - 82 * - 72
----
0

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

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

query I rowsort
SELECT ALL - 18 + + - 74 AS col2
----
-92

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

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

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

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

query I rowsort
SELECT ALL - + 3 * - 21
----
63

query I rowsort
SELECT - 57 + - 84 AS col1
----
-141

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

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

query I rowsort
SELECT - - 29 * - 78 AS col0
----
-2262

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

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

query I rowsort
SELECT ALL + 71 + + 32
----
103

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-413
SELECT DISTINCT - 10 + - - ( + COUNT( * ) ) + + 41, + 31 AS col0
----
32
31

skipif mysql # not compatible
query II rowsort label-413
SELECT DISTINCT - 10 + - - ( + COUNT ( * ) ) + + 41, + 31 AS col0
----
32
31

query I rowsort
SELECT ALL + 3 + + + 13 AS col2
----
16

query I rowsort
SELECT ALL - 39 + + 95 AS col2
----
56

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

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

query II rowsort
SELECT ALL - 51 AS col2, - 20 AS col0
----
-51
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-418
SELECT 44 DIV + 74 + + - 89
----
-89

skipif mysql # not compatible
query I rowsort label-418
SELECT 44 / + 74 + + - 89
----
-89

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

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

query II rowsort
SELECT ALL + 86, + 85 AS col0
----
86
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-421
SELECT DISTINCT - + CASE 61 WHEN + CAST( NULL AS SIGNED ) THEN 62 + - 84 WHEN COUNT( * ) THEN NULL END * 82
----
NULL

skipif mysql # not compatible
query I rowsort label-421
SELECT DISTINCT - + CASE 61 WHEN + CAST ( NULL AS INTEGER ) THEN 62 + - 84 WHEN COUNT ( * ) THEN NULL END * 82
----
NULL

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-425
SELECT ( - MAX( 59 ) ) col2
----
-59

skipif mysql # not compatible
query I rowsort label-425
SELECT ( - MAX ( 59 ) ) col2
----
-59

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

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

query I rowsort
SELECT ALL - 51 col2
----
-51

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-431
SELECT 45 * + ( + 55 ) + + MIN( 10 ) * + 12 AS col0
----
2595

skipif mysql # not compatible
query I rowsort label-431
SELECT 45 * + ( + 55 ) + + MIN ( 10 ) * + 12 AS col0
----
2595

onlyif mysql # DIV for integer division: 
query I rowsort label-432
SELECT - 90 DIV - 62 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-432
SELECT - 90 / - 62 AS col1
----
1

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

query I rowsort
SELECT + 47 * - + 60 + - + 36 AS col0
----
-2856

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

query I rowsort
SELECT + 22 * + - 21 AS col2
----
-462

onlyif mysql # DIV for integer division: 
query I rowsort label-437
SELECT ALL 22 DIV 12
----
1

skipif mysql # not compatible
query I rowsort label-437
SELECT ALL 22 / 12
----
1

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

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

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

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

query I rowsort
SELECT + - 3 * - - 47 AS col1
----
-141

query I rowsort
SELECT ALL 45 * - 37
----
-1665

query I rowsort
SELECT DISTINCT ( 41 ) + - + 99
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-443
SELECT 47 DIV 3
----
15

skipif mysql # not compatible
query I rowsort label-443
SELECT 47 / 3
----
15

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-447
SELECT DISTINCT + 49 - + COUNT ( * ) AS col0
----
48

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-450
SELECT DISTINCT COUNT( * ) * - + 37 * + 11 AS col1, 82 * - COUNT( * ) AS col0
----
-407
-82

skipif mysql # not compatible
query II rowsort label-450
SELECT DISTINCT COUNT ( * ) * - + 37 * + 11 AS col1, 82 * - COUNT ( * ) AS col0
----
-407
-82

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

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

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

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

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

query I rowsort
SELECT + 62 + + + 79
----
141

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT 74 * + 11 + - - 95
----
909

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

skipif mysql # not compatible
query I rowsort label-462
SELECT - SUM ( ALL 44 )
----
-44

query I rowsort
SELECT DISTINCT 93 - + + 29
----
64

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

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

query I rowsort
SELECT + NULLIF ( 62, - + 85 / + 73 )
----
62

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-467
SELECT DISTINCT NULLIF ( + 90, - 75 ) * + COUNT( * ) + + 61 * - + 21 * + 99 AS col2, - 24
----
-126729
-24

skipif mysql # not compatible
query II rowsort label-467
SELECT DISTINCT NULLIF ( + 90, - 75 ) * + COUNT ( * ) + + 61 * - + 21 * + 99 AS col2, - 24
----
-126729
-24

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

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

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

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

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

query I rowsort
SELECT - + ( + CASE + 18 WHEN 37 THEN + 88 END ) AS col1
----
NULL

query I rowsort
SELECT ( 70 ) + - ( - + ( + 33 ) ) AS col1
----
103

query I rowsort
SELECT DISTINCT + 96 * - 14 * - + 81
----
108864

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

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-479
SELECT ALL + COUNT( * ) + - 56
----
-55

skipif mysql # not compatible
query I rowsort label-479
SELECT ALL + COUNT ( * ) + - 56
----
-55

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-482
SELECT DISTINCT ( - + COALESCE ( - CAST( NULL AS SIGNED ), 40 ) ) col1
----
-40

skipif mysql # not compatible
query I rowsort label-482
SELECT DISTINCT ( - + COALESCE ( - CAST ( NULL AS INTEGER ), 40 ) ) col1
----
-40

query I rowsort
SELECT - 46 + - 86
----
-132

onlyif mysql # aggregate syntax: 
query II rowsort label-484
SELECT 59, + MIN( + 64 ) * 75 AS col2
----
59
4800

skipif mysql # not compatible
query II rowsort label-484
SELECT 59, + MIN ( + 64 ) * 75 AS col2
----
59
4800

query I rowsort
SELECT ALL - 19 * - 27 AS col1
----
513

query I rowsort
SELECT - ( 56 )
----
-56

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

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

query I rowsort
SELECT 94 * + + 68 AS col1
----
6392

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

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

query I rowsort
SELECT 29 + + 23 AS col2
----
52

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-493
SELECT + CAST( NULL AS SIGNED ) * - 11 / - 57 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-493
SELECT + CAST ( NULL AS INTEGER ) * - 11 / - 57 AS col2
----
NULL

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-497
SELECT - 2 DIV - + 64 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-497
SELECT - 2 / - + 64 AS col2
----
0

query I rowsort
SELECT + 57 + 69
----
126

query I rowsort
SELECT - 84 + - 9 AS col2
----
-93

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-503
SELECT ALL - 0 AS col0, COUNT( ( 35 ) )
----
0
1

skipif mysql # not compatible
query II rowsort label-503
SELECT ALL - 0 AS col0, COUNT ( ( 35 ) )
----
0
1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-505
SELECT 28 * + MIN( + CAST( - - 90 AS SIGNED ) ) AS col1
----
2520

skipif mysql # not compatible
query I rowsort label-505
SELECT 28 * + MIN ( + CAST ( - - 90 AS INTEGER ) ) AS col1
----
2520

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

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

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

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

query I rowsort
SELECT - - 48 col2
----
48

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

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

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT + 10 - + + 34
----
-24

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

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

query I rowsort
SELECT 28 - - - 11
----
17

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

skipif mysql # not compatible
query I rowsort label-519
SELECT ALL - MAX ( ALL - - 81 )
----
-81

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-524
SELECT MAX( 3 ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-524
SELECT MAX ( 3 ) AS col2
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-525
SELECT ALL 35 AS col1, 40 DIV - 20
----
35
-2

skipif mysql # not compatible
query II rowsort label-525
SELECT ALL 35 AS col1, 40 / - 20
----
35
-2

query I rowsort
SELECT + 78 + 4 AS col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-527
SELECT - COUNT( ALL + 42 ) + + 86 AS col0
----
85

skipif mysql # not compatible
query I rowsort label-527
SELECT - COUNT ( ALL + 42 ) + + 86 AS col0
----
85

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-530
SELECT - 99 DIV + 9 AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-530
SELECT - 99 / + 9 AS col1
----
-11

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

query I rowsort
SELECT ALL 73 * - 8 AS col1
----
-584

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

query I rowsort
SELECT - 38 + + 87
----
49

query I rowsort
SELECT ALL + + 38 + 0 AS col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-536
SELECT ALL MIN( DISTINCT + + 32 )
----
32

skipif mysql # not compatible
query I rowsort label-536
SELECT ALL MIN ( DISTINCT + + 32 )
----
32

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

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

query I rowsort
SELECT ALL 50 * - 47
----
-2350

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

onlyif mysql # aggregate syntax: 
query I rowsort label-540
SELECT - 61 + - COUNT( * ) * 15 + + COUNT( * ) + COUNT( * )
----
-74

skipif mysql # not compatible
query I rowsort label-540
SELECT - 61 + - COUNT ( * ) * 15 + + COUNT ( * ) + COUNT ( * )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-541
SELECT + SUM( + 53 ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-541
SELECT + SUM ( + 53 ) AS col0
----
53

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

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

query II rowsort
SELECT DISTINCT + 6 AS col1, - 0 + + 60 AS col2
----
6
60

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

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

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

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

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

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

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

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

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

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

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

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

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

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

query II rowsort
SELECT 52 AS col1, - 95 AS col1
----
52
-95

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

query I rowsort
SELECT 57 * 90
----
5130

onlyif mysql # aggregate syntax: 
query I rowsort label-554
SELECT ALL - 39 * + SUM( DISTINCT + + 2 ) AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-554
SELECT ALL - 39 * + SUM ( DISTINCT + + 2 ) AS col1
----
-78

query I rowsort
SELECT + 67 * - + 16
----
-1072

onlyif mysql # aggregate syntax: 
query I rowsort label-556
SELECT ALL - 54 * - MIN( + + 58 ) AS col0
----
3132

skipif mysql # not compatible
query I rowsort label-556
SELECT ALL - 54 * - MIN ( + + 58 ) AS col0
----
3132

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-563
SELECT - 30 AS col1, + 18 * + COUNT( * ) AS col1
----
-30
18

skipif mysql # not compatible
query II rowsort label-563
SELECT - 30 AS col1, + 18 * + COUNT ( * ) AS col1
----
-30
18

onlyif mysql # aggregate syntax: 
query I rowsort label-564
SELECT DISTINCT ( - SUM( + 54 ) ) * 60 AS col0
----
-3240

skipif mysql # not compatible
query I rowsort label-564
SELECT DISTINCT ( - SUM ( + 54 ) ) * 60 AS col0
----
-3240

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

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

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

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

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

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

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

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

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

query II rowsort
SELECT ALL 51 AS col0, 20
----
51
20

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

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

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

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

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

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

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

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

query I rowsort
SELECT 32 + 35
----
67

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

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

query I rowsort
SELECT ALL 18 + - 58 AS col1
----
-40

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

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

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

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

query I rowsort
SELECT - 40 + + 78 * - 97
----
-7606

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

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

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

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

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

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

query I rowsort
SELECT + 80 - 87 col1
----
-7

query I rowsort
SELECT 58 * - 72 - 35
----
-4211

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL + 5 * + + 97 AS col1
----
485

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

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

query II rowsort
SELECT DISTINCT - 90 AS col2, + 40 * - - 79 AS col1
----
-90
3160

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-598
SELECT + 32 + + - COUNT( * ) + - 92 * + - CAST( 54 AS SIGNED ) + 17
----
5016

skipif mysql # not compatible
query I rowsort label-598
SELECT + 32 + + - COUNT ( * ) + - 92 * + - CAST ( 54 AS INTEGER ) + 17
----
5016

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

query I rowsort
SELECT ALL + 74 * + 91
----
6734

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

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

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

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

query I rowsort
SELECT - + ( 56 ) + + 59 + - 55 AS col1
----
-52

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

query I rowsort
SELECT - 62 + 25 + - + 96
----
-133

query I rowsort
SELECT DISTINCT ( 86 ) AS col2
----
86

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-608
SELECT ALL CAST( NULL AS DECIMAL ) / - - 18 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-608
SELECT ALL CAST ( NULL AS REAL ) / - - 18 AS col1
----
NULL

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

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

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

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

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

query I rowsort
SELECT ALL ( + 27 ) * + 64 AS col1
----
1728

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-614
SELECT + COUNT( - 97 ) - 89
----
-88

skipif mysql # not compatible
query I rowsort label-614
SELECT + COUNT ( - 97 ) - 89
----
-88

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

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

query I rowsort
SELECT DISTINCT - 52 * 49 AS col0
----
-2548

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

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

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

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

query I rowsort
SELECT DISTINCT 39 - 42
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-620
SELECT + COALESCE ( - 56, - + 41 ) + - MIN( ALL 91 ) - - 6 AS col2
----
-141

skipif mysql # not compatible
query I rowsort label-620
SELECT + COALESCE ( - 56, - + 41 ) + - MIN ( ALL 91 ) - - 6 AS col2
----
-141

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

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

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

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

query I rowsort
SELECT + 62 * - 85 AS col1
----
-5270

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

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

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

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

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

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

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

query I rowsort
SELECT ALL 39 * 84 AS col1
----
3276

onlyif mysql # DIV for integer division: 
query I rowsort label-629
SELECT 70 DIV - 75
----
0

skipif mysql # not compatible
query I rowsort label-629
SELECT 70 / - 75
----
0

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-635
SELECT DISTINCT SUM( ALL + 22 ), + 66 col0
----
22
66

skipif mysql # not compatible
query II rowsort label-635
SELECT DISTINCT SUM ( ALL + 22 ), + 66 col0
----
22
66

query I rowsort
SELECT 11 - 47
----
-36

query I rowsort
SELECT 31 * + 52 AS col0
----
1612

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-639
SELECT + COUNT( 99 ) + + 19
----
20

skipif mysql # not compatible
query I rowsort label-639
SELECT + COUNT ( 99 ) + + 19
----
20

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-642
SELECT - - 15 * + COUNT ( * ) + 61 AS col2
----
76

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-645
SELECT ALL COUNT( * ) * - 35 * - - 67 AS col2
----
-2345

skipif mysql # not compatible
query I rowsort label-645
SELECT ALL COUNT ( * ) * - 35 * - - 67 AS col2
----
-2345

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

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

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

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

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

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

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

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

query II rowsort
SELECT ALL 74 AS col2, ( + + 24 ) * 27 col1
----
74
648

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

skipif mysql # not compatible
query I rowsort label-651
SELECT ALL - MAX ( ALL - 20 )
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-652
SELECT ALL - 99 * - - 6 AS col0, CAST( NULL AS SIGNED ) AS col2
----
-594
NULL

skipif mysql # not compatible
query II rowsort label-652
SELECT ALL - 99 * - - 6 AS col0, CAST ( NULL AS INTEGER ) AS col2
----
-594
NULL

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

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

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-658
SELECT ALL + COALESCE ( + - CAST( 93 AS SIGNED ), + + 51 * + 89 + ( - 83 ) ) AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-658
SELECT ALL + COALESCE ( + - CAST ( 93 AS INTEGER ), + + 51 * + 89 + ( - 83 ) ) AS col2
----
-93

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

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

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

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-667
SELECT DISTINCT - - CAST( + COALESCE ( + + ( - + 10 ), + 45 ) AS SIGNED ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-667
SELECT DISTINCT - - CAST ( + COALESCE ( + + ( - + 10 ), + 45 ) AS INTEGER ) AS col1
----
-10

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-670
SELECT MIN( - 53 )
----
-53

skipif mysql # not compatible
query I rowsort label-670
SELECT MIN ( - 53 )
----
-53

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

skipif mysql # not compatible
query II rowsort label-671
SELECT - CAST ( NULL AS INTEGER ), 18 AS col0
----
NULL
18

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

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-676
SELECT DISTINCT 85 - 99 + + + 7 DIV - - 29
----
-14

skipif mysql # not compatible
query I rowsort label-676
SELECT DISTINCT 85 - 99 + + + 7 / - - 29
----
-14

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-683
SELECT - - 37 + - 82 - + + COUNT( * ) AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-683
SELECT - - 37 + - 82 - + + COUNT ( * ) AS col1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-684
SELECT + COUNT( * ) + + 88
----
89

skipif mysql # not compatible
query I rowsort label-684
SELECT + COUNT ( * ) + + 88
----
89

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

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

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

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

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

query I rowsort
SELECT 65 * - + 91 AS col1
----
-5915

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT 83 * - 47 AS col0
----
-3901

onlyif mysql # DIV for integer division: 
query I rowsort label-696
SELECT DISTINCT + + 93 DIV + - 21 col2
----
-4

skipif mysql # not compatible
query I rowsort label-696
SELECT DISTINCT + + 93 / + - 21 col2
----
-4

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-700
SELECT ALL SUM( DISTINCT - - 40 ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-700
SELECT ALL SUM ( DISTINCT - - 40 ) AS col1
----
40

query II rowsort
SELECT + 12 + 34, 74 AS col2
----
46
74

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-705
SELECT 1 DIV + 30 col1
----
0

skipif mysql # not compatible
query I rowsort label-705
SELECT 1 / + 30 col1
----
0

query II rowsort
SELECT 95 AS col1, + 30
----
95
30

query II rowsort
SELECT 65 AS col2, - 79 AS col1
----
65
-79

query I rowsort
SELECT - 94 * - 65
----
6110

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-710
SELECT + - NULLIF ( CAST( NULL AS SIGNED ), + + 28 ) * - 51 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-710
SELECT + - NULLIF ( CAST ( NULL AS INTEGER ), + + 28 ) * - 51 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-711
SELECT ALL + + ( MAX( DISTINCT - - 16 ) ) col2
----
16

skipif mysql # not compatible
query I rowsort label-711
SELECT ALL + + ( MAX ( DISTINCT - - 16 ) ) col2
----
16

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

query I rowsort
SELECT 31 * + + 81 AS col2
----
2511

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

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

query I rowsort
SELECT 11 + 66
----
77

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL - 94 * - 38 AS col1
----
3572

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-722
SELECT DISTINCT + 46 col1, - CAST( NULL AS DECIMAL )
----
46
NULL

skipif mysql # not compatible
query II rowsort label-722
SELECT DISTINCT + 46 col1, - CAST ( NULL AS REAL )
----
46
NULL

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-726
SELECT ALL - COUNT ( * ) + 66 AS col2
----
65

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

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

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

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

query II rowsort
SELECT ALL 65 AS col0, - 11 AS col0
----
65
-11

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

query I rowsort
SELECT 71 + 82
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-732
SELECT + 36 * - COUNT( * ) * + 3
----
-108

skipif mysql # not compatible
query I rowsort label-732
SELECT + 36 * - COUNT ( * ) * + 3
----
-108

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

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

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

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

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-739
SELECT + 36 - CAST ( NULL AS INTEGER ) + + + 14 * + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 70 * - 97 col1
----
-6790

onlyif mysql # DIV for integer division: 
query I rowsort label-741
SELECT 71 DIV - 84 col1
----
0

skipif mysql # not compatible
query I rowsort label-741
SELECT 71 / - 84 col1
----
0

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

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

query II rowsort
SELECT + + 25, 20 AS col1
----
25
20

query I rowsort
SELECT DISTINCT - - 48
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-745
SELECT ALL + 79 * 40 + + COUNT( * ) AS col1
----
3161

skipif mysql # not compatible
query I rowsort label-745
SELECT ALL + 79 * 40 + + COUNT ( * ) AS col1
----
3161

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

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

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

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

query I rowsort
SELECT + 49 * 11 AS col0
----
539

onlyif mysql # DIV for integer division: 
query I rowsort label-749
SELECT ALL + 10 DIV - 24
----
0

skipif mysql # not compatible
query I rowsort label-749
SELECT ALL + 10 / - 24
----
0

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL 0 - + - 10 AS col0
----
10

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

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

query I rowsort
SELECT DISTINCT - 53 col2
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-757
SELECT ALL + COUNT( * ) col1, - 67, + CAST( NULL AS SIGNED ) AS col0
----
1
-67
NULL

skipif mysql # not compatible
query III rowsort label-757
SELECT ALL + COUNT ( * ) col1, - 67, + CAST ( NULL AS INTEGER ) AS col0
----
1
-67
NULL

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

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

query I rowsort
SELECT - 58 + - 61 AS col1
----
-119

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-761
SELECT CASE 13 WHEN ( COUNT( - 49 ) ) THEN - - MIN( - 85 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-761
SELECT CASE 13 WHEN ( COUNT ( - 49 ) ) THEN - - MIN ( - 85 ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT 84 * 47 AS col2
----
3948

query II rowsort
SELECT + 2 AS col0, + 63 AS col1
----
2
63

query I rowsort
SELECT ALL 12 * + ( - 26 )
----
-312

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-766
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) DIV - 83 AS col1
----
0

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

query I rowsort
SELECT ALL + 55 * 15
----
825

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

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

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

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

query I rowsort
SELECT ALL 0 * 33
----
0

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

query I rowsort
SELECT ALL ( ( 73 ) ) * - 53
----
-3869

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

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

query I rowsort
SELECT + 74 + 36 AS col1
----
110

query I rowsort
SELECT - 74 * 85
----
-6290

query I rowsort
SELECT - 20 + 95 col1
----
75

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

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

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-782
SELECT + 94 + COALESCE ( + 72, + COUNT( * ), - CAST( NULL AS SIGNED ) + - COUNT( * ) )
----
166

skipif mysql # not compatible
query I rowsort label-782
SELECT + 94 + COALESCE ( + 72, + COUNT ( * ), - CAST ( NULL AS INTEGER ) + - COUNT ( * ) )
----
166

query I rowsort
SELECT ALL 59 * 41
----
2419

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT 27 + + 90
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-789
SELECT DISTINCT - 89 * - + MIN( DISTINCT - 50 )
----
-4450

skipif mysql # not compatible
query I rowsort label-789
SELECT DISTINCT - 89 * - + MIN ( DISTINCT - 50 )
----
-4450

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

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

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

query I rowsort
SELECT - 5 * + - 0 AS col0
----
0

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

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

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

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

query I rowsort
SELECT ( + 85 ) * + 14 col0
----
1190

query I rowsort
SELECT 53 * 53
----
2809

query I rowsort
SELECT 43 + + 91 AS col2
----
134

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

skipif mysql # not compatible
query I rowsort label-798
SELECT - ( + - COUNT ( * ) ) / - 28 col1
----
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-800
SELECT DISTINCT + COUNT( * ) AS col2, 49 * 35 AS col0
----
1
1715

skipif mysql # not compatible
query II rowsort label-800
SELECT DISTINCT + COUNT ( * ) AS col2, 49 * 35 AS col0
----
1
1715

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

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

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

query I rowsort
SELECT - 64 - - 19
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-804
SELECT - 2 * - COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-804
SELECT - 2 * - COUNT ( * ) AS col2
----
2

query I rowsort
SELECT ALL - 12 * - 27
----
324

onlyif mysql # aggregate syntax: 
query I rowsort label-806
SELECT ( + + ( + ( MAX( 21 ) ) ) )
----
21

skipif mysql # not compatible
query I rowsort label-806
SELECT ( + + ( + ( MAX ( 21 ) ) ) )
----
21

query I rowsort
SELECT ALL - + 16 * 34
----
-544

query I rowsort
SELECT 49 * + - 87
----
-4263

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-809
SELECT COUNT( * ) * CAST( NULL AS SIGNED ) + 39 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-809
SELECT COUNT ( * ) * CAST ( NULL AS INTEGER ) + 39 col0
----
NULL

query I rowsort
SELECT DISTINCT - ( - 25 ) + + ( - 75 ) AS col2
----
-50

query I rowsort
SELECT ALL - ( + 92 ) AS col2
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-812
SELECT DISTINCT - CAST( + 29 AS SIGNED ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-812
SELECT DISTINCT - CAST ( + 29 AS INTEGER ) AS col2
----
-29

query I rowsort
SELECT ( 25 ) + + 17
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-814
SELECT + + 55 * - COUNT( * )
----
-55

skipif mysql # not compatible
query I rowsort label-814
SELECT + + 55 * - COUNT ( * )
----
-55

query I rowsort
SELECT ALL + + ( - + 84 ) AS col2
----
-84

query I rowsort
SELECT ALL 17 * ( - 95 )
----
-1615

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-817
SELECT DISTINCT + 60, + CAST( NULL AS SIGNED ) * + + 41 col2
----
60
NULL

skipif mysql # not compatible
query II rowsort label-817
SELECT DISTINCT + 60, + CAST ( NULL AS INTEGER ) * + + 41 col2
----
60
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-818
SELECT - - ( + + COUNT( + 28 ) ) * + COUNT( * ) - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-818
SELECT - - ( + + COUNT ( + 28 ) ) * + COUNT ( * ) - COUNT ( * ) AS col2
----
0

query I rowsort
SELECT - 95 * - 25 AS col0
----
2375

onlyif mysql # aggregate syntax: 
query I rowsort label-820
SELECT DISTINCT - COUNT( * ) + + - COUNT( * ) * ( - - COUNT( * ) )
----
-2

skipif mysql # not compatible
query I rowsort label-820
SELECT DISTINCT - COUNT ( * ) + + - COUNT ( * ) * ( - - COUNT ( * ) )
----
-2

query I rowsort
SELECT 46 + 7 + - 3 col2
----
50

query I rowsort
SELECT ALL - + 60 col2
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-823
SELECT + ( COUNT( * ) ) * + + 79
----
79

skipif mysql # not compatible
query I rowsort label-823
SELECT + ( COUNT ( * ) ) * + + 79
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-824
SELECT ALL ( + + COUNT( * ) ) + + 47 AS col0
----
48

skipif mysql # not compatible
query I rowsort label-824
SELECT ALL ( + + COUNT ( * ) ) + + 47 AS col0
----
48

query I rowsort
SELECT ALL - + ( - - 61 ) col2
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-826
SELECT ALL COUNT( * ), - COUNT( * ) col0
----
1
-1

skipif mysql # not compatible
query II rowsort label-826
SELECT ALL COUNT ( * ), - COUNT ( * ) col0
----
1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-827
SELECT DISTINCT - - ( + + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-827
SELECT DISTINCT - - ( + + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT ALL - 23 * 39 + 9 * - 25 col2
----
-1122

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-829
SELECT + + CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-829
SELECT + + CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-830
SELECT ALL + - COUNT( 88 )
----
-1

skipif mysql # not compatible
query I rowsort label-830
SELECT ALL + - COUNT ( 88 )
----
-1

query I rowsort
SELECT DISTINCT ( - 68 ) AS col0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-832
SELECT + MIN( ALL + ( + - 12 ) ) - - ( COUNT( * ) ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-832
SELECT + MIN ( ALL + ( + - 12 ) ) - - ( COUNT ( * ) ) AS col0
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-833
SELECT - - 27 + - 90 * + COALESCE ( + - NULLIF ( 47, + AVG ( - 43 ) ), COUNT( * ) + + 94, - 72 ) col2, + 88
----
4257
88

skipif mysql # not compatible
query II rowsort label-833
SELECT - - 27 + - 90 * + COALESCE ( + - NULLIF ( 47, + AVG ( - 43 ) ), COUNT ( * ) + + 94, - 72 ) col2, + 88
----
4257
88

query I rowsort
SELECT DISTINCT - CASE + - 35 WHEN 2 THEN 18 END AS col1
----
NULL

query I rowsort
SELECT - + ( - - 54 )
----
-54

query II rowsort
SELECT + 9 * - 37 + - 36 col2, - 54 col0
----
-369
-54

query I rowsort
SELECT DISTINCT - 28 * - 9
----
252

query I rowsort
SELECT 77 * - + 43 AS col2
----
-3311

onlyif mysql # aggregate syntax: 
query II rowsort label-839
SELECT 32 + - + 53 AS col0, + COUNT( * ) col0
----
-21
1

skipif mysql # not compatible
query II rowsort label-839
SELECT 32 + - + 53 AS col0, + COUNT ( * ) col0
----
-21
1

query II rowsort
SELECT - + 6 - 90 AS col2, + 3 * - 1 AS col0
----
-96
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-841
SELECT + 48 DIV COUNT( * ) AS col0
----
48

skipif mysql # not compatible
query I rowsort label-841
SELECT + 48 / COUNT ( * ) AS col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-842
SELECT + SUM( + 51 ) * + 80 AS col0
----
4080

skipif mysql # not compatible
query I rowsort label-842
SELECT + SUM ( + 51 ) * + 80 AS col0
----
4080

onlyif mysql # aggregate syntax: 
query I rowsort label-843
SELECT MIN( ALL + ( 85 ) )
----
85

skipif mysql # not compatible
query I rowsort label-843
SELECT MIN ( ALL + ( 85 ) )
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-844
SELECT + CAST( NULL AS SIGNED ) + 73 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-844
SELECT + CAST ( NULL AS INTEGER ) + 73 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-845
SELECT + COUNT( - 97 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-845
SELECT + COUNT ( - 97 ) col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-846
SELECT ALL + CAST( NULL AS SIGNED ), - CAST( NULL AS SIGNED ) AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-846
SELECT ALL + CAST ( NULL AS INTEGER ), - CAST ( NULL AS INTEGER ) AS col1
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-847
SELECT DISTINCT + 83, - 93 + - CAST( NULL AS SIGNED ) AS col1
----
83
NULL

skipif mysql # not compatible
query II rowsort label-847
SELECT DISTINCT + 83, - 93 + - CAST ( NULL AS INTEGER ) AS col1
----
83
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-848
SELECT DISTINCT - 69 + - - COUNT( * )
----
-68

skipif mysql # not compatible
query I rowsort label-848
SELECT DISTINCT - 69 + - - COUNT ( * )
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-849
SELECT DISTINCT + COUNT( * ) * + 27 * - COUNT( * ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-849
SELECT DISTINCT + COUNT ( * ) * + 27 * - COUNT ( * ) AS col2
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-850
SELECT - - ( - 73 ) * + + 73 + + COUNT( - 24 ) AS col2
----
-5328

skipif mysql # not compatible
query I rowsort label-850
SELECT - - ( - 73 ) * + + 73 + + COUNT ( - 24 ) AS col2
----
-5328

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-851
SELECT DISTINCT + MAX( DISTINCT - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-851
SELECT DISTINCT + MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-852
SELECT COUNT( 96 ) + - COUNT( * ) + - 59
----
-59

skipif mysql # not compatible
query I rowsort label-852
SELECT COUNT ( 96 ) + - COUNT ( * ) + - 59
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-853
SELECT DISTINCT + COUNT( * ) * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-853
SELECT DISTINCT + COUNT ( * ) * + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-854
SELECT ALL + SUM( - 14 )
----
-14

skipif mysql # not compatible
query I rowsort label-854
SELECT ALL + SUM ( - 14 )
----
-14

query I rowsort
SELECT - + ( 71 ) AS col0
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-856
SELECT ALL - CAST( NULL AS SIGNED ) / - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-856
SELECT ALL - CAST ( NULL AS INTEGER ) / - 30
----
NULL

query I rowsort
SELECT ALL ( - 7 ) AS col2
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-858
SELECT ALL COUNT( * ) * - 69 AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-858
SELECT ALL COUNT ( * ) * - 69 AS col0
----
-69

query I rowsort
SELECT + 48 * + ( + + 45 )
----
2160

query I rowsort
SELECT + 41 + + - 89
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-861
SELECT ( - - SUM( ALL 50 ) ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-861
SELECT ( - - SUM ( ALL 50 ) ) AS col1
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-862
SELECT + CAST( 79 AS SIGNED ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-862
SELECT + CAST ( 79 AS INTEGER ) AS col0
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-863
SELECT ALL CAST( NULL AS SIGNED ) AS col2, + 40
----
NULL
40

skipif mysql # not compatible
query II rowsort label-863
SELECT ALL CAST ( NULL AS INTEGER ) AS col2, + 40
----
NULL
40

query I rowsort
SELECT + 24 * - - 32 col0
----
768

onlyif mysql # aggregate syntax: 
query II rowsort label-865
SELECT DISTINCT + MAX( ALL + 50 ) + + COUNT( * ) col2, + 64 col2
----
51
64

skipif mysql # not compatible
query II rowsort label-865
SELECT DISTINCT + MAX ( ALL + 50 ) + + COUNT ( * ) col2, + 64 col2
----
51
64

query I rowsort
SELECT 85 * - 84 - + 67 + 54
----
-7153

onlyif mysql # aggregate syntax: 
query I rowsort label-867
SELECT + 45 * - 42 * - + COUNT( * ) * - 73 AS col0
----
-137970

skipif mysql # not compatible
query I rowsort label-867
SELECT + 45 * - 42 * - + COUNT ( * ) * - 73 AS col0
----
-137970

query I rowsort
SELECT DISTINCT 24 * ( - + 23 )
----
-552

query I rowsort
SELECT - + 54 AS col1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-870
SELECT ALL COUNT( * ) + + 85 * - COUNT( * )
----
-84

skipif mysql # not compatible
query I rowsort label-870
SELECT ALL COUNT ( * ) + + 85 * - COUNT ( * )
----
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-871
SELECT 41 DIV + + COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-871
SELECT 41 / + + COUNT ( * )
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-872
SELECT ALL 12 AS col1, + 51 + ( - COUNT( * ) )
----
12
50

skipif mysql # not compatible
query II rowsort label-872
SELECT ALL 12 AS col1, + 51 + ( - COUNT ( * ) )
----
12
50

query I rowsort
SELECT ALL - - ( - 52 ) AS col2
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-874
SELECT ALL - NULLIF ( - - 55, + CAST( NULL AS SIGNED ) ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-874
SELECT ALL - NULLIF ( - - 55, + CAST ( NULL AS INTEGER ) ) AS col0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-875
SELECT 0 + + 11 * COUNT( * ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-875
SELECT 0 + + 11 * COUNT ( * ) AS col1
----
11

query I rowsort
SELECT ALL 18 + 88
----
106

query I rowsort
SELECT DISTINCT + + 17 AS col0
----
17

query I rowsort
SELECT + 65 * - - NULLIF ( - - 91, - 83 ) AS col2
----
5915

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-879
SELECT ALL CAST( - 67 AS SIGNED ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-879
SELECT ALL CAST ( - 67 AS INTEGER ) AS col1
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-880
SELECT ALL MAX( ALL + 47 )
----
47

skipif mysql # not compatible
query I rowsort label-880
SELECT ALL MAX ( ALL + 47 )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-881
SELECT DISTINCT - - 99 * - COUNT( * ) AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-881
SELECT DISTINCT - - 99 * - COUNT ( * ) AS col2
----
-99

query I rowsort
SELECT DISTINCT - ( - 89 )
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-883
SELECT 34 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-883
SELECT 34 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 59 + - 28 + - - 12 AS col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-885
SELECT DISTINCT - + ( + COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-885
SELECT DISTINCT - + ( + COUNT ( * ) )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-886
SELECT ALL - + COUNT( * ) + + - 49 - - + COUNT( * ) DIV ( - ( + 82 ) ) - COUNT( * ) AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-886
SELECT ALL - + COUNT ( * ) + + - 49 - - + COUNT ( * ) / ( - ( + 82 ) ) - COUNT ( * ) AS col0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-887
SELECT ALL - MAX( ALL 14 )
----
-14

skipif mysql # not compatible
query I rowsort label-887
SELECT ALL - MAX ( ALL 14 )
----
-14

query I rowsort
SELECT ALL - 86 col2
----
-86

query I rowsort
SELECT ALL - 99 * 20
----
-1980

query I rowsort
SELECT DISTINCT - 82 + + 45 AS col0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-891
SELECT ALL - MIN( 93 )
----
-93

skipif mysql # not compatible
query I rowsort label-891
SELECT ALL - MIN ( 93 )
----
-93

query I rowsort
SELECT NULLIF ( + 86, + + 27 ) AS col0
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-893
SELECT CASE WHEN MIN( ALL + CAST( - 62 AS SIGNED ) ) >= - COUNT( * ) THEN NULL ELSE + - 24 + ( - 13 ) END
----
-37

skipif mysql # not compatible
query I rowsort label-893
SELECT CASE WHEN MIN ( ALL + CAST ( - 62 AS INTEGER ) ) >= - COUNT ( * ) THEN NULL ELSE + - 24 + ( - 13 ) END
----
-37

query I rowsort
SELECT - 99 - - + 56
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-895
SELECT ALL - CAST( NULL AS SIGNED ) + - - 8
----
NULL

skipif mysql # not compatible
query I rowsort label-895
SELECT ALL - CAST ( NULL AS INTEGER ) + - - 8
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-896
SELECT - SUM( - + CAST( 86 AS SIGNED ) ) DIV + 60
----
1

skipif mysql # not compatible
query I rowsort label-896
SELECT - SUM ( - + CAST ( 86 AS INTEGER ) ) / + 60
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-897
SELECT - SUM( DISTINCT + + 31 ) * - 80
----
2480

skipif mysql # not compatible
query I rowsort label-897
SELECT - SUM ( DISTINCT + + 31 ) * - 80
----
2480

onlyif mysql # aggregate syntax: 
query I rowsort label-898
SELECT ALL + + COUNT( * ) - - 60
----
61

skipif mysql # not compatible
query I rowsort label-898
SELECT ALL + + COUNT ( * ) - - 60
----
61

query I rowsort
SELECT + - 49 - + 77 AS col1
----
-126

query I rowsort
SELECT ALL - 36 * 42 + - 95
----
-1607

onlyif mysql # aggregate syntax: 
query I rowsort label-901
SELECT ALL - - COUNT( ALL - 44 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-901
SELECT ALL - - COUNT ( ALL - 44 ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-902
SELECT - - CAST( + 4 AS SIGNED ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-902
SELECT - - CAST ( + 4 AS INTEGER ) AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-903
SELECT MIN( DISTINCT 52 )
----
52

skipif mysql # not compatible
query I rowsort label-903
SELECT MIN ( DISTINCT 52 )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-904
SELECT - 4 * + COUNT( * )
----
-4

skipif mysql # not compatible
query I rowsort label-904
SELECT - 4 * + COUNT ( * )
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-905
SELECT ALL CAST( 13 AS SIGNED ), 46 AS col2
----
13
46

skipif mysql # not compatible
query II rowsort label-905
SELECT ALL CAST ( 13 AS INTEGER ), 46 AS col2
----
13
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-906
SELECT + 54 * - CAST( - COUNT( * ) AS SIGNED ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-906
SELECT + 54 * - CAST ( - COUNT ( * ) AS INTEGER ) AS col0
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-907
SELECT ALL + CAST( NULL AS SIGNED ) * - - 97 + + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-907
SELECT ALL + CAST ( NULL AS INTEGER ) * - - 97 + + - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-908
SELECT - COUNT( * ) + - COUNT( * ) DIV - COUNT( - 42 )
----
0

skipif mysql # not compatible
query I rowsort label-908
SELECT - COUNT ( * ) + - COUNT ( * ) / - COUNT ( - 42 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-909
SELECT DISTINCT CAST( 91 AS SIGNED ) col0
----
91

skipif mysql # not compatible
query I rowsort label-909
SELECT DISTINCT CAST ( 91 AS INTEGER ) col0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-910
SELECT - SUM( + 66 ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-910
SELECT - SUM ( + 66 ) AS col1
----
-66

query II rowsort
SELECT DISTINCT - 71, - 70 col2
----
-71
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-912
SELECT + + CAST( + COUNT( * ) AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-912
SELECT + + CAST ( + COUNT ( * ) AS INTEGER ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-913
SELECT + 99 AS col2, CAST( NULL AS SIGNED ) AS col1
----
99
NULL

skipif mysql # not compatible
query II rowsort label-913
SELECT + 99 AS col2, CAST ( NULL AS INTEGER ) AS col1
----
99
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-914
SELECT DISTINCT - - 9 + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-914
SELECT DISTINCT - - 9 + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL + 28 + + + 26
----
54

query I rowsort
SELECT - 49 * - 74 AS col0
----
3626

query I rowsort
SELECT - ( - - 5 )
----
-5

query I rowsort
SELECT DISTINCT + 5 * - 91
----
-455

onlyif mysql # aggregate syntax: 
query I rowsort label-919
SELECT + SUM( DISTINCT + 63 ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-919
SELECT + SUM ( DISTINCT + 63 ) AS col1
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-920
SELECT CAST( + ( - 17 ) AS SIGNED ) * 40 AS col0
----
-680

skipif mysql # not compatible
query I rowsort label-920
SELECT CAST ( + ( - 17 ) AS INTEGER ) * 40 AS col0
----
-680

onlyif mysql # aggregate syntax: 
query I rowsort label-921
SELECT ALL 47 * - COUNT( * ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-921
SELECT ALL 47 * - COUNT ( * ) AS col1
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-922
SELECT + COUNT( * ) + - - NULLIF ( - 99, + CAST( NULL AS SIGNED ) + 5 ) AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-922
SELECT + COUNT ( * ) + - - NULLIF ( - 99, + CAST ( NULL AS INTEGER ) + 5 ) AS col2
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-923
SELECT ALL SUM( ALL + 62 )
----
62

skipif mysql # not compatible
query I rowsort label-923
SELECT ALL SUM ( ALL + 62 )
----
62

query I rowsort
SELECT - 68 * - - 39
----
-2652

onlyif mysql # aggregate syntax: 
query II rowsort label-925
SELECT COUNT( ALL + - 96 ) AS col2, - ( - - 42 ) AS col2
----
1
-42

skipif mysql # not compatible
query II rowsort label-925
SELECT COUNT ( ALL + - 96 ) AS col2, - ( - - 42 ) AS col2
----
1
-42

query I rowsort
SELECT + ( 22 ) AS col2
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-927
SELECT ALL + COUNT( * ) + + 10 col2, - 87 AS col1
----
11
-87

skipif mysql # not compatible
query II rowsort label-927
SELECT ALL + COUNT ( * ) + + 10 col2, - 87 AS col1
----
11
-87

query I rowsort
SELECT 9 + + 35 AS col0
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-929
SELECT 54 - + 59 DIV + 72
----
54

skipif mysql # not compatible
query I rowsort label-929
SELECT 54 - + 59 / + 72
----
54

query I rowsort
SELECT ALL - 59 - - 22
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-931
SELECT + COUNT( + CAST( - 33 AS SIGNED ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-931
SELECT + COUNT ( + CAST ( - 33 AS INTEGER ) ) AS col1
----
1

query I rowsort
SELECT ALL 88 + + 69
----
157

query I rowsort
SELECT 29 * ( + - 78 )
----
-2262

onlyif mysql # aggregate syntax: 
query I rowsort label-934
SELECT ALL + 86 * - COUNT( * ) AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-934
SELECT ALL + 86 * - COUNT ( * ) AS col1
----
-86

query I rowsort
SELECT + 26 * - 68
----
-1768

query I rowsort
SELECT - + 46 + + 57
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-937
SELECT - + 2 DIV COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-937
SELECT - + 2 / COUNT ( * )
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-938
SELECT ( - COUNT( * ) ) AS col1, ( 69 )
----
-1
69

skipif mysql # not compatible
query II rowsort label-938
SELECT ( - COUNT ( * ) ) AS col1, ( 69 )
----
-1
69

onlyif mysql # DIV for integer division: 
query I rowsort label-939
SELECT - 41 DIV - 13
----
3

skipif mysql # not compatible
query I rowsort label-939
SELECT - 41 / - 13
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-940
SELECT ( ( + CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-940
SELECT ( ( + CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-941
SELECT + ( - CASE + + COUNT( * ) WHEN COUNT( * ) THEN - - COUNT( * ) END )
----
-1

skipif mysql # not compatible
query I rowsort label-941
SELECT + ( - CASE + + COUNT ( * ) WHEN COUNT ( * ) THEN - - COUNT ( * ) END )
----
-1

query I rowsort
SELECT ( 73 ) AS col0
----
73

query I rowsort
SELECT + 83 * - 54 AS col2
----
-4482

onlyif mysql # aggregate syntax: 
query I rowsort label-944
SELECT DISTINCT - 80 * COUNT( * )
----
-80

skipif mysql # not compatible
query I rowsort label-944
SELECT DISTINCT - 80 * COUNT ( * )
----
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-945
SELECT ALL - + COUNT( * ) + + + 40 - - COUNT( * ) * - 91 - + 95 * + 85 AS col0, + 43 col2
----
-8127
43

skipif mysql # not compatible
query II rowsort label-945
SELECT ALL - + COUNT ( * ) + + + 40 - - COUNT ( * ) * - 91 - + 95 * + 85 AS col0, + 43 col2
----
-8127
43

onlyif mysql # aggregate syntax: 
query II rowsort label-946
SELECT COUNT( * ), 31 * - 56 col0
----
1
-1736

skipif mysql # not compatible
query II rowsort label-946
SELECT COUNT ( * ), 31 * - 56 col0
----
1
-1736

onlyif mysql # aggregate syntax: 
query I rowsort label-947
SELECT MIN( DISTINCT + 47 ) + + MAX( 11 )
----
58

skipif mysql # not compatible
query I rowsort label-947
SELECT MIN ( DISTINCT + 47 ) + + MAX ( 11 )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-948
SELECT ALL - ( + 81 ) - - COUNT( * ) - - + 12 col0
----
-68

skipif mysql # not compatible
query I rowsort label-948
SELECT ALL - ( + 81 ) - - COUNT ( * ) - - + 12 col0
----
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-949
SELECT DISTINCT - COALESCE ( - 25, COUNT( * ) ) * - 24, + COUNT( * ) AS col2
----
-600
1

skipif mysql # not compatible
query II rowsort label-949
SELECT DISTINCT - COALESCE ( - 25, COUNT ( * ) ) * - 24, + COUNT ( * ) AS col2
----
-600
1

query I rowsort
SELECT DISTINCT - COALESCE ( 30, - 92 ) AS col2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-951
SELECT DISTINCT - + MIN( + 16 ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-951
SELECT DISTINCT - + MIN ( + 16 ) AS col2
----
-16

query I rowsort
SELECT DISTINCT - + 36 AS col2
----
-36

query I rowsort
SELECT + 23 col2
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-954
SELECT ALL - CAST( CAST( - + 8 AS SIGNED ) AS SIGNED )
----
8

skipif mysql # not compatible
query I rowsort label-954
SELECT ALL - CAST ( CAST ( - + 8 AS INTEGER ) AS INTEGER )
----
8

query I rowsort
SELECT ALL + - 88 * - 22 col1
----
1936

query I rowsort
SELECT ALL ( + + 34 )
----
34

query II rowsort
SELECT ALL 97 AS col2, 12
----
97
12

query I rowsort
SELECT ALL + 49 * 0 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-959
SELECT + + 68 + - - COUNT( * )
----
69

skipif mysql # not compatible
query I rowsort label-959
SELECT + + 68 + - - COUNT ( * )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-960
SELECT DISTINCT - + MIN( + 0 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-960
SELECT DISTINCT - + MIN ( + 0 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-961
SELECT 63 * - 60 col1, SUM( ALL 3 )
----
-3780
3

skipif mysql # not compatible
query II rowsort label-961
SELECT 63 * - 60 col1, SUM ( ALL 3 )
----
-3780
3

query I rowsort
SELECT + + 96 AS col2
----
96

query I rowsort
SELECT DISTINCT ( 97 ) * 86
----
8342

query I rowsort
SELECT DISTINCT - + 4 AS col0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-965
SELECT - COALESCE ( 29, - COUNT( * ) )
----
-29

skipif mysql # not compatible
query I rowsort label-965
SELECT - COALESCE ( 29, - COUNT ( * ) )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-966
SELECT 38 + - COUNT( * ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-966
SELECT 38 + - COUNT ( * ) AS col1
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-967
SELECT + + ( + 27 ) AS col2, COUNT( * )
----
27
1

skipif mysql # not compatible
query II rowsort label-967
SELECT + + ( + 27 ) AS col2, COUNT ( * )
----
27
1

onlyif mysql # DIV for integer division: 
query I rowsort label-968
SELECT - 94 DIV + - 35 col1
----
2

skipif mysql # not compatible
query I rowsort label-968
SELECT - 94 / + - 35 col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-969
SELECT - COALESCE ( + 47, + COUNT( * ) ) AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-969
SELECT - COALESCE ( + 47, + COUNT ( * ) ) AS col0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-970
SELECT + MIN( - 92 ) + - COUNT( * )
----
-93

skipif mysql # not compatible
query I rowsort label-970
SELECT + MIN ( - 92 ) + - COUNT ( * )
----
-93

query I rowsort
SELECT - - 97 AS col2
----
97

query I rowsort
SELECT - - 19 + 78 AS col2
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-973
SELECT ALL + + CAST( + 35 AS SIGNED )
----
35

skipif mysql # not compatible
query I rowsort label-973
SELECT ALL + + CAST ( + 35 AS INTEGER )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-974
SELECT + MIN( DISTINCT + + 57 ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-974
SELECT + MIN ( DISTINCT + + 57 ) AS col2
----
57

query I rowsort
SELECT ( + 96 ) col0
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-976
SELECT ALL - COUNT( * ), 84 col2
----
-1
84

skipif mysql # not compatible
query II rowsort label-976
SELECT ALL - COUNT ( * ), 84 col2
----
-1
84

onlyif mysql # aggregate syntax: 
query II rowsort label-977
SELECT DISTINCT - COUNT( * ) AS col0, - 51
----
-1
-51

skipif mysql # not compatible
query II rowsort label-977
SELECT DISTINCT - COUNT ( * ) AS col0, - 51
----
-1
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-978
SELECT DISTINCT MAX( + 53 ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-978
SELECT DISTINCT MAX ( + 53 ) AS col1
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-979
SELECT ALL COUNT( * ) + + - 85
----
-84

skipif mysql # not compatible
query I rowsort label-979
SELECT ALL COUNT ( * ) + + - 85
----
-84

query I rowsort
SELECT DISTINCT - 58 - 35
----
-93

query I rowsort
SELECT ALL - ( - - 98 ) AS col2
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-982
SELECT 76 * - COUNT( * ) AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-982
SELECT 76 * - COUNT ( * ) AS col0
----
-76

query I rowsort
SELECT 29 * - ( 12 ) AS col0
----
-348

query I rowsort
SELECT + 81 * 43 col0
----
3483

query I rowsort
SELECT - - 46 * - 45
----
-2070

query I rowsort
SELECT ALL 29 * - ( + + 50 ) AS col0
----
-1450

query I rowsort
SELECT ALL - - 67 * - ( + - 42 ) AS col1
----
2814

query I rowsort
SELECT ALL + ( + ( 87 ) ) AS col2
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-989
SELECT 66 * - COUNT( * ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-989
SELECT 66 * - COUNT ( * ) AS col1
----
-66

query I rowsort
SELECT DISTINCT - 55 + - 51
----
-106

query I rowsort
SELECT ALL 19 * 60
----
1140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-992
SELECT CAST( 3 AS SIGNED ) * 94
----
282

skipif mysql # not compatible
query I rowsort label-992
SELECT CAST ( 3 AS INTEGER ) * 94
----
282

query I rowsort
SELECT 5 * 32 AS col0
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-994
SELECT SUM( DISTINCT COALESCE ( - 49, + 90 ) ) + - 87 AS col1
----
-136

skipif mysql # not compatible
query I rowsort label-994
SELECT SUM ( DISTINCT COALESCE ( - 49, + 90 ) ) + - 87 AS col1
----
-136

query I rowsort
SELECT DISTINCT - + 66 AS col1
----
-66

query I rowsort
SELECT - 58 * + 20
----
-1160

query I rowsort
SELECT + + 8 * - 9 AS col2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-998
SELECT DISTINCT + + ( 52 ) * COUNT( * ) col0
----
52

skipif mysql # not compatible
query I rowsort label-998
SELECT DISTINCT + + ( 52 ) * COUNT ( * ) col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-999
SELECT + COUNT( * ) - 84 col0
----
-83

skipif mysql # not compatible
query I rowsort label-999
SELECT + COUNT ( * ) - 84 col0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-1000
SELECT + COUNT( * ) - 69
----
-68

skipif mysql # not compatible
query I rowsort label-1000
SELECT + COUNT ( * ) - 69
----
-68

query I rowsort
SELECT - 98 * + 98
----
-9604

onlyif mysql # aggregate syntax: 
query I rowsort label-1002
SELECT ALL + MAX( + - 57 )
----
-57

skipif mysql # not compatible
query I rowsort label-1002
SELECT ALL + MAX ( + - 57 )
----
-57

query I rowsort
SELECT ALL - + 69 * 48
----
-3312

query I rowsort
SELECT - - ( - 71 ) + 31 AS col1
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1005
SELECT + CAST( + - COUNT( * ) AS SIGNED ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1005
SELECT + CAST ( + - COUNT ( * ) AS INTEGER ) AS col2
----
-1

query I rowsort
SELECT DISTINCT 21 col0
----
21

query I rowsort
SELECT - ( - - 18 )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-1008
SELECT + - MAX( - - 36 )
----
-36

skipif mysql # not compatible
query I rowsort label-1008
SELECT + - MAX ( - - 36 )
----
-36

query I rowsort
SELECT 11 - - + 77 AS col2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1010
SELECT COUNT( * ) + - + ( + 12 ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-1010
SELECT COUNT ( * ) + - + ( + 12 ) AS col1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-1011
SELECT 1 + + COUNT( + 69 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-1011
SELECT 1 + + COUNT ( + 69 ) AS col0
----
2

query I rowsort
SELECT - 83 + - 36
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-1013
SELECT + 49 + ( - + COUNT( * ) )
----
48

skipif mysql # not compatible
query I rowsort label-1013
SELECT + 49 + ( - + COUNT ( * ) )
----
48

query I rowsort
SELECT ALL - ( + - 75 ) AS col1
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1015
SELECT + CAST( - 7 AS SIGNED )
----
-7

skipif mysql # not compatible
query I rowsort label-1015
SELECT + CAST ( - 7 AS INTEGER )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1016
SELECT MIN( - 1 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1016
SELECT MIN ( - 1 ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1017
SELECT - NULLIF ( + 74, CAST( NULL AS SIGNED ) )
----
-74

skipif mysql # not compatible
query I rowsort label-1017
SELECT - NULLIF ( + 74, CAST ( NULL AS INTEGER ) )
----
-74

query I rowsort
SELECT DISTINCT - - 34 + - 26 AS col2
----
8

query II rowsort
SELECT 21 AS col2, - ( + 20 ) AS col0
----
21
-20

query I rowsort
SELECT + - ( 13 ) + 81
----
68

query I rowsort
SELECT - 42 + - 51
----
-93

query I rowsort
SELECT DISTINCT - - 42 + + 38 * + + 81
----
3120

query I rowsort
SELECT ALL + - 88 * 3 AS col2
----
-264

query I rowsort
SELECT DISTINCT + ( + + 72 ) AS col0
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-1025
SELECT 29 DIV + 85 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1025
SELECT 29 / + 85 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1026
SELECT COUNT( * ) + - 31 - 33 AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-1026
SELECT COUNT ( * ) + - 31 - 33 AS col2
----
-63

query I rowsort
SELECT ( + 88 ) * - - 48 AS col0
----
4224

query I rowsort
SELECT + ( 3 ) AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1029
SELECT DISTINCT - MAX( ( 73 ) ) AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-1029
SELECT DISTINCT - MAX ( ( 73 ) ) AS col2
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1030
SELECT ALL - CAST( - - 13 AS SIGNED ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-1030
SELECT ALL - CAST ( - - 13 AS INTEGER ) AS col1
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-1031
SELECT ALL + COUNT( * ) - 25 AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-1031
SELECT ALL + COUNT ( * ) - 25 AS col2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-1032
SELECT ALL - COUNT( 97 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1032
SELECT ALL - COUNT ( 97 ) AS col0
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1033
SELECT + 57 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1033
SELECT + 57 * + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + 67 * - 0 AS col2
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1035
SELECT - - 30 * - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1035
SELECT - - 30 * - CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT + ( + 65 ) AS col1
----
65

query I rowsort
SELECT ( 38 )
----
38

query I rowsort
SELECT DISTINCT + - 38 AS col0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-1039
SELECT DISTINCT - MAX( ALL + 51 ) + + 13 * + 44 AS col0
----
521

skipif mysql # not compatible
query I rowsort label-1039
SELECT DISTINCT - MAX ( ALL + 51 ) + + 13 * + 44 AS col0
----
521

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1040
SELECT ( 86 ) + - CAST( NULL AS DECIMAL ) / + + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-1040
SELECT ( 86 ) + - CAST ( NULL AS REAL ) / + + 53
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1041
SELECT 29 * - + COUNT( * ) AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-1041
SELECT 29 * - + COUNT ( * ) AS col1
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1042
SELECT CAST( NULL AS SIGNED ) + + 23 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1042
SELECT CAST ( NULL AS INTEGER ) + + 23 AS col0
----
NULL

query I rowsort
SELECT - 44 + - 19 col1
----
-63

query I rowsort
SELECT + 71 + 82 AS col0
----
153

query II rowsort
SELECT ALL 90 - - 72 AS col2, + 16
----
162
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1046
SELECT - COALESCE ( + COUNT( - - 89 ), - - 28 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1046
SELECT - COALESCE ( + COUNT ( - - 89 ), - - 28 ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1047
SELECT + 57 DIV 3
----
19

skipif mysql # not compatible
query I rowsort label-1047
SELECT + 57 / 3
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-1048
SELECT ALL MAX( + 15 ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-1048
SELECT ALL MAX ( + 15 ) AS col1
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1049
SELECT - CAST( - + CAST( + + MIN( ALL 36 ) AS SIGNED ) AS SIGNED ) + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1049
SELECT - CAST ( - + CAST ( + + MIN ( ALL 36 ) AS INTEGER ) AS INTEGER ) + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - 34 + 34
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1051
SELECT ALL CAST( - - 29 AS SIGNED ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-1051
SELECT ALL CAST ( - - 29 AS INTEGER ) AS col1
----
29

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1052
SELECT + CAST( + 12 AS SIGNED ) DIV + + 6 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-1052
SELECT + CAST ( + 12 AS INTEGER ) / + + 6 AS col0
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1053
SELECT 46 - + MAX( + 95 ) * - ( CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1053
SELECT 46 - + MAX ( + 95 ) * - ( CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1054
SELECT ALL - 78 - - 15, COUNT( * ) AS col2
----
-63
1

skipif mysql # not compatible
query II rowsort label-1054
SELECT ALL - 78 - - 15, COUNT ( * ) AS col2
----
-63
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1055
SELECT MAX( DISTINCT 28 ) * + - ( + 84 ) AS col2
----
-2352

skipif mysql # not compatible
query I rowsort label-1055
SELECT MAX ( DISTINCT 28 ) * + - ( + 84 ) AS col2
----
-2352

onlyif mysql # aggregate syntax: 
query I rowsort label-1056
SELECT 91 + + + COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-1056
SELECT 91 + + + COUNT ( * )
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1057
SELECT ALL - - ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1057
SELECT ALL - - ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1058
SELECT ALL - 9, + COUNT( * ) col1
----
-9
1

skipif mysql # not compatible
query II rowsort label-1058
SELECT ALL - 9, + COUNT ( * ) col1
----
-9
1

query II rowsort
SELECT DISTINCT 70, 86 AS col2
----
70
86

onlyif mysql # aggregate syntax: 
query I rowsort label-1060
SELECT ALL + 50 + - COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-1060
SELECT ALL + 50 + - COUNT ( * )
----
49

query I rowsort
SELECT ALL + + 80 AS col0
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1062
SELECT DISTINCT + CAST( - 97 AS SIGNED )
----
-97

skipif mysql # not compatible
query I rowsort label-1062
SELECT DISTINCT + CAST ( - 97 AS INTEGER )
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-1063
SELECT + MIN( + 2 ) AS col1, + 89
----
2
89

skipif mysql # not compatible
query II rowsort label-1063
SELECT + MIN ( + 2 ) AS col1, + 89
----
2
89

query I rowsort
SELECT + 21 * + 83 col1
----
1743

query I rowsort
SELECT - ( 13 )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-1066
SELECT + COUNT( * ) + - 30 AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-1066
SELECT + COUNT ( * ) + - 30 AS col0
----
-29

query I rowsort
SELECT - - 85 + 3 + + ( + + 79 )
----
167

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1068
SELECT - + CAST( NULL AS SIGNED ) + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1068
SELECT - + CAST ( NULL AS INTEGER ) + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1069
SELECT - COUNT( * ) * + 12 AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-1069
SELECT - COUNT ( * ) * + 12 AS col1
----
-12

query I rowsort
SELECT ( 22 )
----
22

query I rowsort
SELECT DISTINCT - 5 * + 43
----
-215

onlyif mysql # aggregate syntax: 
query I rowsort label-1072
SELECT - COUNT( * ) - - + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1072
SELECT - COUNT ( * ) - - + COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1073
SELECT + COUNT( + 13 ) + - COUNT( DISTINCT 38 )
----
0

skipif mysql # not compatible
query I rowsort label-1073
SELECT + COUNT ( + 13 ) + - COUNT ( DISTINCT 38 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1074
SELECT DISTINCT - - ( - COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1074
SELECT DISTINCT - - ( - COUNT ( * ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1075
SELECT COUNT( * ) * + - 57 AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-1075
SELECT COUNT ( * ) * + - 57 AS col0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-1076
SELECT DISTINCT - COUNT( DISTINCT 37 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-1076
SELECT DISTINCT - COUNT ( DISTINCT 37 ) col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1077
SELECT ALL + COUNT( * ) DIV - - 38
----
0

skipif mysql # not compatible
query I rowsort label-1077
SELECT ALL + COUNT ( * ) / - - 38
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1078
SELECT SUM( - + 69 )
----
-69

skipif mysql # not compatible
query I rowsort label-1078
SELECT SUM ( - + 69 )
----
-69

query I rowsort
SELECT DISTINCT NULLIF ( + 47, - ( - 93 ) )
----
47

query I rowsort
SELECT DISTINCT 23 - 33
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-1081
SELECT MIN( ALL + + 16 )
----
16

skipif mysql # not compatible
query I rowsort label-1081
SELECT MIN ( ALL + + 16 )
----
16

query I rowsort
SELECT DISTINCT + 85 col2
----
85

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1083
SELECT + 57 * - CAST( NULL AS DECIMAL ) * - - 67 - - 32
----
NULL

skipif mysql # not compatible
query I rowsort label-1083
SELECT + 57 * - CAST ( NULL AS REAL ) * - - 67 - - 32
----
NULL

query I rowsort
SELECT - 62 * + + 60 AS col2
----
-3720

onlyif mysql # aggregate syntax: 
query I rowsort label-1085
SELECT ALL + COUNT( ALL 83 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1085
SELECT ALL + COUNT ( ALL 83 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1086
SELECT DISTINCT + + COUNT( * ) + 69
----
70

skipif mysql # not compatible
query I rowsort label-1086
SELECT DISTINCT + + COUNT ( * ) + 69
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-1087
SELECT ALL - - 10 + + + COUNT( * ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-1087
SELECT ALL - - 10 + + + COUNT ( * ) AS col2
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-1088
SELECT - 90 AS col0, - COUNT( * ) AS col2
----
-90
-1

skipif mysql # not compatible
query II rowsort label-1088
SELECT - 90 AS col0, - COUNT ( * ) AS col2
----
-90
-1

query I rowsort
SELECT DISTINCT + ( + - 28 ) AS col1
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-1090
SELECT - COUNT( * ) AS col2, - 83 AS col0
----
-1
-83

skipif mysql # not compatible
query II rowsort label-1090
SELECT - COUNT ( * ) AS col2, - 83 AS col0
----
-1
-83

query I rowsort
SELECT - ( - 57 )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1092
SELECT - MAX( ALL 21 )
----
-21

skipif mysql # not compatible
query I rowsort label-1092
SELECT - MAX ( ALL 21 )
----
-21

query I rowsort
SELECT DISTINCT - ( + + 38 )
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1094
SELECT ALL - CAST( + - COUNT( * ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-1094
SELECT ALL - CAST ( + - COUNT ( * ) AS INTEGER )
----
1

query I rowsort
SELECT ALL 57 * 76
----
4332

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1096
SELECT ALL + COUNT( * ) DIV - - 50 col2
----
0

skipif mysql # not compatible
query I rowsort label-1096
SELECT ALL + COUNT ( * ) / - - 50 col2
----
0

query I rowsort
SELECT ALL - 38 + + 59 * - - 67
----
3915

onlyif mysql # DIV for integer division: 
query I rowsort label-1098
SELECT 32 DIV + 37
----
0

skipif mysql # not compatible
query I rowsort label-1098
SELECT 32 / + 37
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1099
SELECT ALL + CAST( + - 21 AS SIGNED ) + + 54 AS col0
----
33

skipif mysql # not compatible
query I rowsort label-1099
SELECT ALL + CAST ( + - 21 AS INTEGER ) + + 54 AS col0
----
33

query I rowsort
SELECT + 80 * 28
----
2240

onlyif mysql # aggregate syntax: 
query II rowsort label-1101
SELECT ( - COUNT( * ) ) AS col0, 66 AS col0
----
-1
66

skipif mysql # not compatible
query II rowsort label-1101
SELECT ( - COUNT ( * ) ) AS col0, 66 AS col0
----
-1
66

query I rowsort
SELECT DISTINCT + - 79 AS col0
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-1103
SELECT - + 63 * - + COUNT( * ) + - 78 AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-1103
SELECT - + 63 * - + COUNT ( * ) + - 78 AS col0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-1104
SELECT - + COUNT( * ) + - COUNT( * ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-1104
SELECT - + COUNT ( * ) + - COUNT ( * ) AS col1
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1105
SELECT - 50 AS col1, + CAST( NULL AS SIGNED )
----
-50
NULL

skipif mysql # not compatible
query II rowsort label-1105
SELECT - 50 AS col1, + CAST ( NULL AS INTEGER )
----
-50
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1106
SELECT ALL - 52 * COUNT( * ) AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-1106
SELECT ALL - 52 * COUNT ( * ) AS col1
----
-52

query I rowsort
SELECT DISTINCT 43 - + 44 + - + 21
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-1108
SELECT COUNT( * ) AS col1, COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-1108
SELECT COUNT ( * ) AS col1, COUNT ( * )
----
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1109
SELECT ALL - 93 - + MAX( 66 ) / 85 - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1109
SELECT ALL - 93 - + MAX ( 66 ) / 85 - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1110
SELECT - MAX( + + 31 )
----
-31

skipif mysql # not compatible
query I rowsort label-1110
SELECT - MAX ( + + 31 )
----
-31

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1111
SELECT 58 - - + CAST( NULL AS DECIMAL ) * + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-1111
SELECT 58 - - + CAST ( NULL AS REAL ) * + 8
----
NULL

query I rowsort
SELECT DISTINCT 96 * 94
----
9024

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1113
SELECT ALL - CAST( NULL AS DECIMAL ) + - 57 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1113
SELECT ALL - CAST ( NULL AS REAL ) + - 57 AS col2
----
NULL

query I rowsort
SELECT ALL + - 31 AS col0
----
-31

query I rowsort
SELECT + 81 + - 22 col0
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-1116
SELECT 85 AS col1, COUNT( * )
----
85
1

skipif mysql # not compatible
query II rowsort label-1116
SELECT 85 AS col1, COUNT ( * )
----
85
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1117
SELECT DISTINCT - 22 + + - COUNT( * ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-1117
SELECT DISTINCT - 22 + + - COUNT ( * ) AS col1
----
-23

query I rowsort
SELECT - - 34 - ( + 71 )
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-1119
SELECT ALL + MIN( ALL + 95 )
----
95

skipif mysql # not compatible
query I rowsort label-1119
SELECT ALL + MIN ( ALL + 95 )
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-1120
SELECT ALL SUM( - 37 ) * - MAX( ALL - 67 ) + - 91 col2, - ( + CAST( NULL AS SIGNED ) ) AS col2, COUNT( * ) DIV - COUNT( * ) AS col0
----
-2570
NULL
-1

skipif mysql # not compatible
query III rowsort label-1120
SELECT ALL SUM ( - 37 ) * - MAX ( ALL - 67 ) + - 91 col2, - ( + CAST ( NULL AS INTEGER ) ) AS col2, COUNT ( * ) / - COUNT ( * ) AS col0
----
-2570
NULL
-1

query I rowsort
SELECT + ( + + 94 )
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1122
SELECT DISTINCT - MIN( DISTINCT - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1122
SELECT DISTINCT - MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1123
SELECT CAST( + 0 AS SIGNED ) * COUNT( DISTINCT + + 1 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1123
SELECT CAST ( + 0 AS INTEGER ) * COUNT ( DISTINCT + + 1 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1124
SELECT DISTINCT - COUNT( * ) - + 15 col1
----
-16

skipif mysql # not compatible
query I rowsort label-1124
SELECT DISTINCT - COUNT ( * ) - + 15 col1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-1125
SELECT - COUNT( * ) * + 70 col1
----
-70

skipif mysql # not compatible
query I rowsort label-1125
SELECT - COUNT ( * ) * + 70 col1
----
-70

query I rowsort
SELECT ALL ( - + ( + 1 ) )
----
-1

query I rowsort
SELECT ALL 62 * - - 77 AS col2
----
4774

query I rowsort
SELECT ( - 62 )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-1129
SELECT - SUM( ALL + + 89 )
----
-89

skipif mysql # not compatible
query I rowsort label-1129
SELECT - SUM ( ALL + + 89 )
----
-89

query I rowsort
SELECT - COALESCE ( + + 47, 59 * + 79 ) AS col2
----
-47

query I rowsort
SELECT - + ( - - 38 )
----
-38

query I rowsort
SELECT 71 + + 83
----
154

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1133
SELECT COUNT( * ) + + 31 DIV + 97
----
1

skipif mysql # not compatible
query I rowsort label-1133
SELECT COUNT ( * ) + + 31 / + 97
----
1

query I rowsort
SELECT ALL ( 74 ) AS col1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1135
SELECT DISTINCT MIN( - 86 )
----
-86

skipif mysql # not compatible
query I rowsort label-1135
SELECT DISTINCT MIN ( - 86 )
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-1136
SELECT ALL SUM( DISTINCT 96 )
----
96

skipif mysql # not compatible
query I rowsort label-1136
SELECT ALL SUM ( DISTINCT 96 )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1137
SELECT + MAX( - + 80 )
----
-80

skipif mysql # not compatible
query I rowsort label-1137
SELECT + MAX ( - + 80 )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-1138
SELECT + - ( COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1138
SELECT + - ( COUNT ( * ) ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1139
SELECT ALL ( - 15 ) DIV - 45 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1139
SELECT ALL ( - 15 ) / - 45 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1140
SELECT ALL + ( + 0 ) * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-1140
SELECT ALL + ( + 0 ) * COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1141
SELECT ( - 39 ) * + COUNT( * )
----
-39

skipif mysql # not compatible
query I rowsort label-1141
SELECT ( - 39 ) * + COUNT ( * )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-1142
SELECT ALL - COUNT( * ) - - + 86 + - 29 AS col1
----
56

skipif mysql # not compatible
query I rowsort label-1142
SELECT ALL - COUNT ( * ) - - + 86 + - 29 AS col1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-1143
SELECT + COUNT( DISTINCT - 38 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-1143
SELECT + COUNT ( DISTINCT - 38 ) col0
----
1

query I rowsort
SELECT 21 - - 82 AS col1
----
103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1145
SELECT - - MAX( ALL CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1145
SELECT - - MAX ( ALL CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1146
SELECT ALL 28 DIV COUNT( * ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-1146
SELECT ALL 28 / COUNT ( * ) AS col2
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1147
SELECT - + 27 DIV + 98 + - + ( + 86 ) * + COUNT( ALL 62 )
----
-86

skipif mysql # not compatible
query I rowsort label-1147
SELECT - + 27 / + 98 + - + ( + 86 ) * + COUNT ( ALL 62 )
----
-86

query I rowsort
SELECT ( 84 ) AS col2
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1149
SELECT + ( - COALESCE ( COUNT( * ), + 49, - 68 DIV - 21 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1149
SELECT + ( - COALESCE ( COUNT ( * ), + 49, - 68 / - 21 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1150
SELECT + 55 * - - COUNT( * ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-1150
SELECT + 55 * - - COUNT ( * ) AS col0
----
55

query I rowsort
SELECT ALL 72 * + + 10 AS col2
----
720

onlyif mysql # aggregate syntax: 
query I rowsort label-1152
SELECT - 47 + COUNT( * ) AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-1152
SELECT - 47 + COUNT ( * ) AS col0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-1153
SELECT DISTINCT - COUNT( * ) + + - 31
----
-32

skipif mysql # not compatible
query I rowsort label-1153
SELECT DISTINCT - COUNT ( * ) + + - 31
----
-32

query I rowsort
SELECT DISTINCT - ( ( 9 ) ) col0
----
-9

query I rowsort
SELECT ALL + 32 * - 49 AS col1
----
-1568

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1156
SELECT ALL - 85 AS col1, CAST( COUNT( * ) AS SIGNED ) * + COUNT( * ) + - - 52 AS col2
----
-85
53

skipif mysql # not compatible
query II rowsort label-1156
SELECT ALL - 85 AS col1, CAST ( COUNT ( * ) AS INTEGER ) * + COUNT ( * ) + - - 52 AS col2
----
-85
53

query I rowsort
SELECT DISTINCT - ( 73 ) AS col0
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-1158
SELECT - MIN( 26 ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-1158
SELECT - MIN ( 26 ) AS col0
----
-26

query I rowsort
SELECT - ( - 3 ) AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1160
SELECT DISTINCT - COUNT( 4 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1160
SELECT DISTINCT - COUNT ( 4 ) AS col0
----
-1

query I rowsort
SELECT DISTINCT 97 * - 56 AS col0
----
-5432

query I rowsort
SELECT ( - 31 ) * + 92 AS col0
----
-2852

onlyif mysql # aggregate syntax: 
query I rowsort label-1163
SELECT ALL - COUNT( + + 97 )
----
-1

skipif mysql # not compatible
query I rowsort label-1163
SELECT ALL - COUNT ( + + 97 )
----
-1

query I rowsort
SELECT ALL + 59 * - 4
----
-236

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1165
SELECT ALL 42 AS col2, COALESCE ( - 89, ( CAST( NULL AS SIGNED ) ) ) AS col2
----
42
-89

skipif mysql # not compatible
query II rowsort label-1165
SELECT ALL 42 AS col2, COALESCE ( - 89, ( CAST ( NULL AS INTEGER ) ) ) AS col2
----
42
-89

query I rowsort
SELECT - ( - + 82 ) AS col1
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1167
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 75 - - 34 + - + 50 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1167
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 75 - - 34 + - + 50 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1168
SELECT ALL + + ( - 13 ) DIV - + 67
----
0

skipif mysql # not compatible
query I rowsort label-1168
SELECT ALL + + ( - 13 ) / - + 67
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1169
SELECT ALL - 78 - COUNT( * )
----
-79

skipif mysql # not compatible
query I rowsort label-1169
SELECT ALL - 78 - COUNT ( * )
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1170
SELECT ALL CAST( + 69 AS SIGNED )
----
69

skipif mysql # not compatible
query I rowsort label-1170
SELECT ALL CAST ( + 69 AS INTEGER )
----
69

query I rowsort
SELECT - 8 * 35
----
-280

query I rowsort
SELECT ( - - 46 ) + 48 AS col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1173
SELECT ALL - ( + + 95 ) * + - SUM( ALL - 79 )
----
-7505

skipif mysql # not compatible
query I rowsort label-1173
SELECT ALL - ( + + 95 ) * + - SUM ( ALL - 79 )
----
-7505

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1174
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1174
SELECT DISTINCT - CAST ( NULL AS REAL ) + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - ( + - 37 )
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1176
SELECT + COUNT( * ) DIV + 44 col1
----
0

skipif mysql # not compatible
query I rowsort label-1176
SELECT + COUNT ( * ) / + 44 col1
----
0

query I rowsort
SELECT + ( + + 50 ) AS col0
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1178
SELECT - NULLIF ( + CAST( NULL AS SIGNED ), - 46 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1178
SELECT - NULLIF ( + CAST ( NULL AS INTEGER ), - 46 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1179
SELECT ALL MAX( ALL - - 59 )
----
59

skipif mysql # not compatible
query I rowsort label-1179
SELECT ALL MAX ( ALL - - 59 )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1180
SELECT ALL 91 + + COUNT( * ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-1180
SELECT ALL 91 + + COUNT ( * ) AS col2
----
92

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1181
SELECT + COUNT( * ) * - CAST( NULL AS DECIMAL ) * 18
----
NULL

skipif mysql # not compatible
query I rowsort label-1181
SELECT + COUNT ( * ) * - CAST ( NULL AS REAL ) * 18
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1182
SELECT ALL COUNT( * ) * 76
----
76

skipif mysql # not compatible
query I rowsort label-1182
SELECT ALL COUNT ( * ) * 76
----
76

query I rowsort
SELECT - 94 + 35 AS col0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-1184
SELECT ALL 27 * - + MIN( - ( 13 ) )
----
351

skipif mysql # not compatible
query I rowsort label-1184
SELECT ALL 27 * - + MIN ( - ( 13 ) )
----
351

onlyif mysql # aggregate syntax: 
query I rowsort label-1185
SELECT DISTINCT 27 * + SUM( 54 )
----
1458

skipif mysql # not compatible
query I rowsort label-1185
SELECT DISTINCT 27 * + SUM ( 54 )
----
1458

query I rowsort
SELECT 12 * - 12
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-1187
SELECT + MAX( DISTINCT 75 )
----
75

skipif mysql # not compatible
query I rowsort label-1187
SELECT + MAX ( DISTINCT 75 )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1188
SELECT DISTINCT + SUM( ALL + 75 ) AS col1
----
75

skipif mysql # not compatible
query I rowsort label-1188
SELECT DISTINCT + SUM ( ALL + 75 ) AS col1
----
75

query I rowsort
SELECT + COALESCE ( - 15, + + 90 ) AS col0
----
-15

query I rowsort
SELECT ALL ( 92 ) AS col2
----
92

query I rowsort
SELECT ALL + 24 * 45
----
1080

onlyif mysql # aggregate syntax: 
query I rowsort label-1192
SELECT - MIN( DISTINCT + 40 ) AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-1192
SELECT - MIN ( DISTINCT + 40 ) AS col2
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1193
SELECT CAST( ( 3 ) AS SIGNED ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-1193
SELECT CAST ( ( 3 ) AS INTEGER ) AS col0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1194
SELECT DISTINCT 32 DIV 19
----
1

skipif mysql # not compatible
query I rowsort label-1194
SELECT DISTINCT 32 / 19
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1195
SELECT + CAST( - ( + MAX( + 82 ) ) AS SIGNED ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-1195
SELECT + CAST ( - ( + MAX ( + 82 ) ) AS INTEGER ) AS col0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-1196
SELECT + - 98 * COUNT( * )
----
-98

skipif mysql # not compatible
query I rowsort label-1196
SELECT + - 98 * COUNT ( * )
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-1197
SELECT ALL + - 10 * COUNT( * ) + 86
----
76

skipif mysql # not compatible
query I rowsort label-1197
SELECT ALL + - 10 * COUNT ( * ) + 86
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1198
SELECT + + CAST( NULL AS SIGNED ) + - MAX( DISTINCT - 79 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1198
SELECT + + CAST ( NULL AS INTEGER ) + - MAX ( DISTINCT - 79 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1199
SELECT ALL + - COUNT( * ) - 17 * - 78 AS col1
----
1325

skipif mysql # not compatible
query I rowsort label-1199
SELECT ALL + - COUNT ( * ) - 17 * - 78 AS col1
----
1325

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1200
SELECT + CAST( NULL AS SIGNED ) * 45
----
NULL

skipif mysql # not compatible
query I rowsort label-1200
SELECT + CAST ( NULL AS INTEGER ) * 45
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1201
SELECT + CAST( NULL AS SIGNED ) / 15
----
NULL

skipif mysql # not compatible
query I rowsort label-1201
SELECT + CAST ( NULL AS INTEGER ) / 15
----
NULL

query I rowsort
SELECT DISTINCT + 76 * 19 AS col2
----
1444

onlyif mysql # aggregate syntax: 
query I rowsort label-1203
SELECT DISTINCT SUM( - 46 ) + 32 col2
----
-14

skipif mysql # not compatible
query I rowsort label-1203
SELECT DISTINCT SUM ( - 46 ) + 32 col2
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1204
SELECT DISTINCT + COUNT( * ) * CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1204
SELECT DISTINCT + COUNT ( * ) * CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1205
SELECT COUNT( * ) * + ( 86 )
----
86

skipif mysql # not compatible
query I rowsort label-1205
SELECT COUNT ( * ) * + ( 86 )
----
86

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1206
SELECT ALL - COUNT( * ) + - COUNT( - CAST( NULL AS DECIMAL ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1206
SELECT ALL - COUNT ( * ) + - COUNT ( - CAST ( NULL AS REAL ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1207
SELECT DISTINCT COUNT( * ) * - 37 * SUM( ALL 73 ) AS col1
----
-2701

skipif mysql # not compatible
query I rowsort label-1207
SELECT DISTINCT COUNT ( * ) * - 37 * SUM ( ALL 73 ) AS col1
----
-2701

query I rowsort
SELECT - + 36 AS col1
----
-36

query I rowsort
SELECT DISTINCT 56 + 22 AS col2
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1210
SELECT COUNT( DISTINCT CAST( NULL AS SIGNED ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1210
SELECT COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col2
----
0

query I rowsort
SELECT DISTINCT - ( 44 ) AS col0
----
-44

query I rowsort
SELECT DISTINCT - 18 * + 24 col1
----
-432

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1213
SELECT DISTINCT - 46 + + - AVG ( ALL - ( + CAST( NULL AS SIGNED ) ) ) / 73
----
NULL

skipif mysql # not compatible
query I rowsort label-1213
SELECT DISTINCT - 46 + + - AVG ( ALL - ( + CAST ( NULL AS INTEGER ) ) ) / 73
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1214
SELECT DISTINCT 82 DIV 54
----
1

skipif mysql # not compatible
query I rowsort label-1214
SELECT DISTINCT 82 / 54
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1215
SELECT + 84 + 71 DIV + MAX( 97 )
----
84

skipif mysql # not compatible
query I rowsort label-1215
SELECT + 84 + 71 / + MAX ( 97 )
----
84

query I rowsort
SELECT + ( 55 ) + + 21
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-1217
SELECT + 80 DIV - 83 * - - 39
----
0

skipif mysql # not compatible
query I rowsort label-1217
SELECT + 80 / - 83 * - - 39
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1218
SELECT - SUM( DISTINCT + 3 )
----
-3

skipif mysql # not compatible
query I rowsort label-1218
SELECT - SUM ( DISTINCT + 3 )
----
-3

query I rowsort
SELECT ALL 44 + - 89
----
-45

query I rowsort
SELECT - 68 * 42
----
-2856

query I rowsort
SELECT ALL - 63 + - 28 AS col1
----
-91

query I rowsort
SELECT - ( 24 ) AS col0
----
-24

query I rowsort
SELECT ALL 0 col0
----
0

query I rowsort
SELECT 86 * - - 79 AS col2
----
6794

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1225
SELECT + COUNT( * ) DIV - 10
----
0

skipif mysql # not compatible
query I rowsort label-1225
SELECT + COUNT ( * ) / - 10
----
0

query I rowsort
SELECT ALL + 31 + + 92
----
123

query I rowsort
SELECT 22 * + + 67
----
1474

onlyif mysql # aggregate syntax: 
query I rowsort label-1228
SELECT COUNT( * ) * - 16
----
-16

skipif mysql # not compatible
query I rowsort label-1228
SELECT COUNT ( * ) * - 16
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-1229
SELECT 91 * COUNT( * ) + 28
----
119

skipif mysql # not compatible
query I rowsort label-1229
SELECT 91 * COUNT ( * ) + 28
----
119

query I rowsort
SELECT DISTINCT 18 col2
----
18

query I rowsort
SELECT DISTINCT + + ( + + 83 )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1232
SELECT + COUNT( 97 )
----
1

skipif mysql # not compatible
query I rowsort label-1232
SELECT + COUNT ( 97 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1233
SELECT MAX( DISTINCT + 55 )
----
55

skipif mysql # not compatible
query I rowsort label-1233
SELECT MAX ( DISTINCT + 55 )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1234
SELECT - COUNT( ALL - 48 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1234
SELECT - COUNT ( ALL - 48 ) AS col1
----
-1

query I rowsort
SELECT - ( - 11 ) col2
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-1236
SELECT ALL 71 DIV - + 3 AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-1236
SELECT ALL 71 / - + 3 AS col2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-1237
SELECT - 52 + - + COUNT( * ) col0
----
-53

skipif mysql # not compatible
query I rowsort label-1237
SELECT - 52 + - + COUNT ( * ) col0
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1238
SELECT ALL + + 4 + - 9 + - CAST( + - 33 AS SIGNED ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-1238
SELECT ALL + + 4 + - 9 + - CAST ( + - 33 AS INTEGER ) AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-1239
SELECT ALL + SUM( ALL - 11 ) col1
----
-11

skipif mysql # not compatible
query I rowsort label-1239
SELECT ALL + SUM ( ALL - 11 ) col1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-1240
SELECT DISTINCT + + 54 + - + COUNT( * ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-1240
SELECT DISTINCT + + 54 + - + COUNT ( * ) AS col0
----
53

query I rowsort
SELECT - - 93 * - + 94 AS col2
----
-8742

onlyif mysql # aggregate syntax: 
query I rowsort label-1242
SELECT 63 * - SUM( + - 17 ) AS col0
----
1071

skipif mysql # not compatible
query I rowsort label-1242
SELECT 63 * - SUM ( + - 17 ) AS col0
----
1071

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1243
SELECT ALL + 83 + - + 96 - - - CAST( NULL AS SIGNED ) * - 18 AS col1, 68 + + 83
----
NULL
151

skipif mysql # not compatible
query II rowsort label-1243
SELECT ALL + 83 + - + 96 - - - CAST ( NULL AS INTEGER ) * - 18 AS col1, 68 + + 83
----
NULL
151

onlyif mysql # aggregate syntax: 
query I rowsort label-1244
SELECT DISTINCT - - MIN( 41 ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-1244
SELECT DISTINCT - - MIN ( 41 ) AS col1
----
41

query I rowsort
SELECT 92 + + 97
----
189

query I rowsort
SELECT ( - - 30 ) AS col0
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1247
SELECT - 84 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1247
SELECT - 84 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1248
SELECT ALL + COUNT( * ), + COUNT( * ) AS col0
----
1
1

skipif mysql # not compatible
query II rowsort label-1248
SELECT ALL + COUNT ( * ), + COUNT ( * ) AS col0
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1249
SELECT + 48 * SUM( DISTINCT - 16 )
----
-768

skipif mysql # not compatible
query I rowsort label-1249
SELECT + 48 * SUM ( DISTINCT - 16 )
----
-768

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1250
SELECT - COUNT( * ) + - CAST( - COUNT( * ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-1250
SELECT - COUNT ( * ) + - CAST ( - COUNT ( * ) AS INTEGER )
----
0

query I rowsort
SELECT - + ( 84 ) + - + ( - 65 ) AS col1
----
-19

query I rowsort
SELECT + + 54 + + 94
----
148

query I rowsort
SELECT ( + - 42 ) AS col0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-1254
SELECT DISTINCT MAX( ALL + 73 )
----
73

skipif mysql # not compatible
query I rowsort label-1254
SELECT DISTINCT MAX ( ALL + 73 )
----
73

query I rowsort
SELECT + - 39 * - 18 col1
----
702

onlyif mysql # aggregate syntax: 
query II rowsort label-1256
SELECT DISTINCT - 37 + + COUNT( * ) - - - COUNT( * ) AS col0, + 67
----
-37
67

skipif mysql # not compatible
query II rowsort label-1256
SELECT DISTINCT - 37 + + COUNT ( * ) - - - COUNT ( * ) AS col0, + 67
----
-37
67

query I rowsort
SELECT ALL - ( - 36 ) AS col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-1258
SELECT DISTINCT - SUM( - 97 )
----
97

skipif mysql # not compatible
query I rowsort label-1258
SELECT DISTINCT - SUM ( - 97 )
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1259
SELECT DISTINCT 97 DIV - - 99 * COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1259
SELECT DISTINCT 97 / - - 99 * COUNT ( * ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1260
SELECT ALL - 38 * - - ( - COUNT( * ) ) col1
----
38

skipif mysql # not compatible
query I rowsort label-1260
SELECT ALL - 38 * - - ( - COUNT ( * ) ) col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-1261
SELECT ALL 14 + - COUNT( * ) + + COUNT( * ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-1261
SELECT ALL 14 + - COUNT ( * ) + + COUNT ( * ) AS col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1262
SELECT - 38 * + COUNT( * ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-1262
SELECT - 38 * + COUNT ( * ) AS col2
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1263
SELECT ( - ( + + AVG ( CAST( NULL AS SIGNED ) ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1263
SELECT ( - ( + + AVG ( CAST ( NULL AS INTEGER ) ) ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1264
SELECT COUNT( - - 86 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-1264
SELECT COUNT ( - - 86 ) col0
----
1

query I rowsort
SELECT DISTINCT ( 47 )
----
47

query I rowsort
SELECT DISTINCT + 45 * + - 66 * + 35 AS col2
----
-103950

query I rowsort
SELECT + + ( - ( - 75 ) ) AS col1
----
75

query I rowsort
SELECT + ( 73 ) col0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-1269
SELECT DISTINCT 85 - + + COUNT( * ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-1269
SELECT DISTINCT 85 - + + COUNT ( * ) AS col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1270
SELECT DISTINCT 38 - COUNT( * )
----
37

skipif mysql # not compatible
query I rowsort label-1270
SELECT DISTINCT 38 - COUNT ( * )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-1271
SELECT 66 * - + COUNT( * ) col2
----
-66

skipif mysql # not compatible
query I rowsort label-1271
SELECT 66 * - + COUNT ( * ) col2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-1272
SELECT DISTINCT - 57 + - MIN( DISTINCT - 17 )
----
-40

skipif mysql # not compatible
query I rowsort label-1272
SELECT DISTINCT - 57 + - MIN ( DISTINCT - 17 )
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-1273
SELECT ALL + - COUNT( * ) * - - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1273
SELECT ALL + - COUNT ( * ) * - - COUNT ( * ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1274
SELECT MAX( - - 69 ) col0
----
69

skipif mysql # not compatible
query I rowsort label-1274
SELECT MAX ( - - 69 ) col0
----
69

query I rowsort
SELECT 95 * ( - 60 ) col1
----
-5700

onlyif mysql # aggregate syntax: 
query I rowsort label-1276
SELECT DISTINCT - COUNT( * ) + 88 * - - MIN( ALL - + 43 )
----
-3785

skipif mysql # not compatible
query I rowsort label-1276
SELECT DISTINCT - COUNT ( * ) + 88 * - - MIN ( ALL - + 43 )
----
-3785

query II rowsort
SELECT ALL 49, 94 AS col0
----
49
94

query I rowsort
SELECT ALL - 72 + - 0 AS col1
----
-72

query I rowsort
SELECT ALL + 8 + 88 AS col1
----
96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1280
SELECT 6 + - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1280
SELECT 6 + - CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT - 53 * - + 60
----
3180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1282
SELECT + - ( CAST( + COUNT( * ) AS SIGNED ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1282
SELECT + - ( CAST ( + COUNT ( * ) AS INTEGER ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1283
SELECT SUM( DISTINCT + 67 ) col2
----
67

skipif mysql # not compatible
query I rowsort label-1283
SELECT SUM ( DISTINCT + 67 ) col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1284
SELECT + COUNT( * ) * - 46 AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-1284
SELECT + COUNT ( * ) * - 46 AS col2
----
-46

query I rowsort
SELECT ( 75 ) AS col0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1286
SELECT + COUNT( * ) * - 31 AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-1286
SELECT + COUNT ( * ) * - 31 AS col1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-1287
SELECT + SUM( - 82 ) AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-1287
SELECT + SUM ( - 82 ) AS col2
----
-82

query I rowsort
SELECT DISTINCT + ( + + 39 )
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1289
SELECT DISTINCT - 84 / - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1289
SELECT DISTINCT - 84 / - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL 56 + + - 39
----
17

query I rowsort
SELECT ( 79 ) + 90 AS col1
----
169

onlyif mysql # DIV for integer division: 
query I rowsort label-1292
SELECT ALL + 13 DIV + + 96 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1292
SELECT ALL + 13 / + + 96 AS col0
----
0

query II rowsort
SELECT 3 AS col2, + 28 AS col2
----
3
28

onlyif mysql # aggregate syntax: 
query I rowsort label-1294
SELECT COUNT( * ) + + + 97 AS col2
----
98

skipif mysql # not compatible
query I rowsort label-1294
SELECT COUNT ( * ) + + + 97 AS col2
----
98

query I rowsort
SELECT ALL + 23 * - 12 AS col2
----
-276

query I rowsort
SELECT - - ( + 71 ) col0
----
71

query I rowsort
SELECT + 21 * + + 61
----
1281

onlyif mysql # aggregate syntax: 
query I rowsort label-1298
SELECT - + COUNT( - - 79 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-1298
SELECT - + COUNT ( - - 79 ) col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1299
SELECT ALL + 70 + - CAST( - 93 AS SIGNED ) AS col2
----
163

skipif mysql # not compatible
query I rowsort label-1299
SELECT ALL + 70 + - CAST ( - 93 AS INTEGER ) AS col2
----
163

onlyif mysql # aggregate syntax: 
query I rowsort label-1300
SELECT MAX( DISTINCT 17 ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-1300
SELECT MAX ( DISTINCT 17 ) AS col0
----
17

query I rowsort
SELECT DISTINCT + 8 * 67 AS col2
----
536

query I rowsort
SELECT DISTINCT + 38 col0
----
38

query I rowsort
SELECT DISTINCT + ( - 28 ) AS col0
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1304
SELECT DISTINCT 7 - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1304
SELECT DISTINCT 7 - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1305
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1305
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) AS col1
----
1

query I rowsort
SELECT 26 * 76
----
1976

onlyif mysql # DIV for integer division: 
query I rowsort label-1307
SELECT ( - 80 ) DIV 7 AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-1307
SELECT ( - 80 ) / 7 AS col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-1308
SELECT DISTINCT - COUNT( * ) + 80 AS col1
----
79

skipif mysql # not compatible
query I rowsort label-1308
SELECT DISTINCT - COUNT ( * ) + 80 AS col1
----
79

query I rowsort
SELECT + 46 - 31 AS col0
----
15

query I rowsort
SELECT ALL ( - 49 ) AS col0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-1311
SELECT ALL - MIN( ALL - 56 ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-1311
SELECT ALL - MIN ( ALL - 56 ) AS col2
----
56

query II rowsort
SELECT ALL - - 52 AS col2, 90
----
52
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1313
SELECT 98 * - MAX( ALL - 12 ) * + COUNT( * ) AS col0
----
1176

skipif mysql # not compatible
query I rowsort label-1313
SELECT 98 * - MAX ( ALL - 12 ) * + COUNT ( * ) AS col0
----
1176

query I rowsort
SELECT DISTINCT ( 19 ) col2
----
19

query I rowsort
SELECT ALL 96 * - + 94 AS col2
----
-9024

query I rowsort
SELECT ( - 70 )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-1317
SELECT ALL + - COUNT( - 37 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-1317
SELECT ALL + - COUNT ( - 37 ) col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1318
SELECT - COUNT( * ) DIV + + 55
----
0

skipif mysql # not compatible
query I rowsort label-1318
SELECT - COUNT ( * ) / + + 55
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1319
SELECT ALL - COUNT( DISTINCT + 42 ) + + 65 AS col2
----
64

skipif mysql # not compatible
query I rowsort label-1319
SELECT ALL - COUNT ( DISTINCT + 42 ) + + 65 AS col2
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1320
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + 75 + - 37 * + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-1320
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + 75 + - 37 * + 66
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1321
SELECT ALL - + COUNT( - 67 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1321
SELECT ALL - + COUNT ( - 67 ) AS col1
----
-1

query I rowsort
SELECT - 45 * + 36 + + 84
----
-1536

onlyif mysql # aggregate syntax: 
query I rowsort label-1323
SELECT + - COUNT( ALL + + 52 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1323
SELECT + - COUNT ( ALL + + 52 ) AS col2
----
-1

query I rowsort
SELECT + 96 * + ( - 29 )
----
-2784

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1325
SELECT ALL ( + COUNT( * ) ) DIV + 96 * - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-1325
SELECT ALL ( + COUNT ( * ) ) / + 96 * - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1326
SELECT + 36 * - + ( COUNT( * ) ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-1326
SELECT + 36 * - + ( COUNT ( * ) ) AS col2
----
-36

query I rowsort
SELECT - ( + ( + + 25 ) )
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-1328
SELECT + MIN( + 82 )
----
82

skipif mysql # not compatible
query I rowsort label-1328
SELECT + MIN ( + 82 )
----
82

query I rowsort
SELECT - ( 1 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1330
SELECT ALL + COUNT( * ) * 74
----
74

skipif mysql # not compatible
query I rowsort label-1330
SELECT ALL + COUNT ( * ) * 74
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1331
SELECT ALL SUM( CAST( 2 AS SIGNED ) ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-1331
SELECT ALL SUM ( CAST ( 2 AS INTEGER ) ) AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1332
SELECT DISTINCT - COUNT( - 94 )
----
-1

skipif mysql # not compatible
query I rowsort label-1332
SELECT DISTINCT - COUNT ( - 94 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1333
SELECT + COUNT( * ) DIV - + 51
----
0

skipif mysql # not compatible
query I rowsort label-1333
SELECT + COUNT ( * ) / - + 51
----
0

query II rowsort
SELECT + 7 col0, + 89 col1
----
7
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1335
SELECT + MAX( DISTINCT CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1335
SELECT + MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1336
SELECT ALL CAST( + 84 AS SIGNED )
----
84

skipif mysql # not compatible
query I rowsort label-1336
SELECT ALL CAST ( + 84 AS INTEGER )
----
84

query I rowsort
SELECT DISTINCT + NULLIF ( - + 29, - 6 ) AS col0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-1338
SELECT - - SUM( ALL + - 94 ) AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-1338
SELECT - - SUM ( ALL + - 94 ) AS col2
----
-94

query I rowsort
SELECT ALL + 56 * 14 AS col0
----
784

query I rowsort
SELECT ( - - 26 )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-1341
SELECT ( + MAX( ALL - + 65 ) ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-1341
SELECT ( + MAX ( ALL - + 65 ) ) AS col2
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1342
SELECT + CAST( - 32 AS SIGNED ) AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-1342
SELECT + CAST ( - 32 AS INTEGER ) AS col0
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1343
SELECT - + ( + COUNT( * ) ) + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1343
SELECT - + ( + COUNT ( * ) ) + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1344
SELECT - CAST( NULL AS SIGNED ) * + + 42 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1344
SELECT - CAST ( NULL AS INTEGER ) * + + 42 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1345
SELECT DISTINCT - - 50 + + ( + + COUNT( * ) )
----
51

skipif mysql # not compatible
query I rowsort label-1345
SELECT DISTINCT - - 50 + + ( + + COUNT ( * ) )
----
51

query I rowsort
SELECT - 20 * + 66 AS col0
----
-1320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1347
SELECT DISTINCT ( MAX( DISTINCT - CAST( + - 72 AS SIGNED ) ) )
----
72

skipif mysql # not compatible
query I rowsort label-1347
SELECT DISTINCT ( MAX ( DISTINCT - CAST ( + - 72 AS INTEGER ) ) )
----
72

query I rowsort
SELECT ALL ( - 77 ) col2
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1349
SELECT ALL COUNT( * ) * + CAST( - - 31 AS SIGNED ) col2
----
31

skipif mysql # not compatible
query I rowsort label-1349
SELECT ALL COUNT ( * ) * + CAST ( - - 31 AS INTEGER ) col2
----
31

query I rowsort
SELECT ALL 94 - - + 89
----
183

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1351
SELECT DISTINCT - - ( + CAST( - 47 AS SIGNED ) ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-1351
SELECT DISTINCT - - ( + CAST ( - 47 AS INTEGER ) ) AS col1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-1352
SELECT + + MAX( + 82 ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-1352
SELECT + + MAX ( + 82 ) AS col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1353
SELECT DISTINCT - 48 - + - 58 + + + COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-1353
SELECT DISTINCT - 48 - + - 58 + + + COUNT ( * )
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1354
SELECT DISTINCT - 66 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1354
SELECT DISTINCT - 66 - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1355
SELECT 75 DIV + 13 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-1355
SELECT 75 / + 13 AS col1
----
5

query I rowsort
SELECT 6 - + 67
----
-61

query I rowsort
SELECT ALL 55 * 66
----
3630

onlyif mysql # aggregate syntax: 
query I rowsort label-1358
SELECT + 1 + MIN( - 13 )
----
-12

skipif mysql # not compatible
query I rowsort label-1358
SELECT + 1 + MIN ( - 13 )
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1359
SELECT - 19 * 52 * - CAST( - + ( - 87 ) AS SIGNED ) AS col0
----
85956

skipif mysql # not compatible
query I rowsort label-1359
SELECT - 19 * 52 * - CAST ( - + ( - 87 ) AS INTEGER ) AS col0
----
85956

onlyif mysql # aggregate syntax: 
query I rowsort label-1360
SELECT ALL - 90 * ( - + COUNT( * ) )
----
90

skipif mysql # not compatible
query I rowsort label-1360
SELECT ALL - 90 * ( - + COUNT ( * ) )
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1361
SELECT ALL + - ( + ( CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1361
SELECT ALL + - ( + ( CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1362
SELECT DISTINCT 0 * + + AVG ( DISTINCT CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1362
SELECT DISTINCT 0 * + + AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1363
SELECT DISTINCT SUM( DISTINCT + 89 )
----
89

skipif mysql # not compatible
query I rowsort label-1363
SELECT DISTINCT SUM ( DISTINCT + 89 )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-1364
SELECT - - COUNT( * ) + + + 85
----
86

skipif mysql # not compatible
query I rowsort label-1364
SELECT - - COUNT ( * ) + + + 85
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-1365
SELECT ALL COUNT( * ) * + - 68
----
-68

skipif mysql # not compatible
query I rowsort label-1365
SELECT ALL COUNT ( * ) * + - 68
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-1366
SELECT 97 + + COUNT( * ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-1366
SELECT 97 + + COUNT ( * ) AS col1
----
98

query I rowsort
SELECT 94 + + 55 AS col0
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-1368
SELECT - COUNT( * ) * + 45 AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-1368
SELECT - COUNT ( * ) * + 45 AS col1
----
-45

query I rowsort
SELECT ALL 15 * ( - - 16 )
----
240

query I rowsort
SELECT DISTINCT - + 26 AS col0
----
-26

query I rowsort
SELECT ALL + - 51 * + 15
----
-765

query I rowsort
SELECT 16 * + + 37 col2
----
592

onlyif mysql # aggregate syntax: 
query I rowsort label-1373
SELECT ALL - ( - + COUNT( ALL 5 ) ) + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-1373
SELECT ALL - ( - + COUNT ( ALL 5 ) ) + COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1374
SELECT ALL + COUNT( * ) + - 51 AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-1374
SELECT ALL + COUNT ( * ) + - 51 AS col0
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1375
SELECT DISTINCT + COUNT( ALL + CAST( NULL AS SIGNED ) ) col1
----
0

skipif mysql # not compatible
query I rowsort label-1375
SELECT DISTINCT + COUNT ( ALL + CAST ( NULL AS INTEGER ) ) col1
----
0

query I rowsort
SELECT ALL + ( + - 70 ) AS col2
----
-70

query I rowsort
SELECT DISTINCT - 1 * + 92 AS col2
----
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-1378
SELECT + COUNT( * ) col2, COUNT( * ) AS col2
----
1
1

skipif mysql # not compatible
query II rowsort label-1378
SELECT + COUNT ( * ) col2, COUNT ( * ) AS col2
----
1
1

query I rowsort
SELECT + 1 + - 70 AS col1
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-1380
SELECT ALL COALESCE ( + COUNT( * ), - COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1380
SELECT ALL COALESCE ( + COUNT ( * ), - COUNT ( * ) ) AS col1
----
1

query I rowsort
SELECT ALL - NULLIF ( + 5, - 28 * + 95 + + + 52 ) AS col2
----
-5

query I rowsort
SELECT - NULLIF ( - 16, 75 ) col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1383
SELECT + COUNT( 60 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1383
SELECT + COUNT ( 60 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1384
SELECT + ( - ( + + COUNT( DISTINCT 8 ) ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1384
SELECT + ( - ( + + COUNT ( DISTINCT 8 ) ) ) AS col0
----
-1

query I rowsort
SELECT + 17 * 63 AS col2
----
1071

onlyif mysql # aggregate syntax: 
query I rowsort label-1386
SELECT + - ( + + COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1386
SELECT + - ( + + COUNT ( * ) )
----
-1

query I rowsort
SELECT ALL - 71 + - 87 AS col1
----
-158

query I rowsort
SELECT ALL - ( + 10 ) AS col2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-1389
SELECT ALL COUNT( * ) * - - 27 AS col1
----
27

skipif mysql # not compatible
query I rowsort label-1389
SELECT ALL COUNT ( * ) * - - 27 AS col1
----
27

query I rowsort
SELECT 28 * + 65 col0
----
1820

query I rowsort
SELECT - - ( 76 ) AS col1
----
76

query I rowsort
SELECT 77 * 57 + + 92 AS col0
----
4481

onlyif mysql # aggregate syntax: 
query I rowsort label-1393
SELECT 51 * + COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-1393
SELECT 51 * + COUNT ( * )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1394
SELECT DISTINCT + + 86 + COUNT( * )
----
87

skipif mysql # not compatible
query I rowsort label-1394
SELECT DISTINCT + + 86 + COUNT ( * )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1395
SELECT - COUNT( DISTINCT - + 50 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1395
SELECT - COUNT ( DISTINCT - + 50 ) AS col0
----
-1

query I rowsort
SELECT DISTINCT ( 88 ) AS col0
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1397
SELECT ALL CAST( + ( - 18 ) AS SIGNED )
----
-18

skipif mysql # not compatible
query I rowsort label-1397
SELECT ALL CAST ( + ( - 18 ) AS INTEGER )
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-1398
SELECT + 24 + + 96 AS col0, COUNT( * ) AS col1
----
120
1

skipif mysql # not compatible
query II rowsort label-1398
SELECT + 24 + + 96 AS col0, COUNT ( * ) AS col1
----
120
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1399
SELECT ALL - COUNT( * ) + - + ( + MIN( DISTINCT 25 ) ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-1399
SELECT ALL - COUNT ( * ) + - + ( + MIN ( DISTINCT 25 ) ) AS col1
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1400
SELECT 35 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1400
SELECT 35 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 89 + + 8 AS col0
----
97

query I rowsort
SELECT DISTINCT 88 * + - 46 AS col2
----
-4048

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1403
SELECT ALL - COUNT( * ) DIV - COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1403
SELECT ALL - COUNT ( * ) / - COUNT ( * ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1404
SELECT CAST( - 83 AS SIGNED )
----
-83

skipif mysql # not compatible
query I rowsort label-1404
SELECT CAST ( - 83 AS INTEGER )
----
-83

query I rowsort
SELECT ALL + - 59 AS col0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-1406
SELECT DISTINCT - + COUNT( * ) * - 96 AS col0
----
96

skipif mysql # not compatible
query I rowsort label-1406
SELECT DISTINCT - + COUNT ( * ) * - 96 AS col0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1407
SELECT DISTINCT CAST( - 49 AS SIGNED ) AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-1407
SELECT DISTINCT CAST ( - 49 AS INTEGER ) AS col1
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1408
SELECT DISTINCT CAST( NULL AS SIGNED ) / 7 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1408
SELECT DISTINCT CAST ( NULL AS INTEGER ) / 7 AS col2
----
NULL

query I rowsort
SELECT + + 90 * + ( + + ( - 54 ) )
----
-4860

onlyif mysql # aggregate syntax: 
query I rowsort label-1410
SELECT ALL MAX( ALL 38 )
----
38

skipif mysql # not compatible
query I rowsort label-1410
SELECT ALL MAX ( ALL 38 )
----
38

query I rowsort
SELECT + 31 - 81
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-1412
SELECT SUM( DISTINCT + 79 )
----
79

skipif mysql # not compatible
query I rowsort label-1412
SELECT SUM ( DISTINCT + 79 )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1413
SELECT - MAX( ALL - 37 )
----
37

skipif mysql # not compatible
query I rowsort label-1413
SELECT - MAX ( ALL - 37 )
----
37

query I rowsort
SELECT - - 29 AS col0
----
29

query I rowsort
SELECT ALL + - 21 AS col1
----
-21

query I rowsort
SELECT - + 51 * - 2
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-1417
SELECT + COALESCE ( - 16, - MAX( + 77 ) + 58 ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-1417
SELECT + COALESCE ( - 16, - MAX ( + 77 ) + 58 ) AS col2
----
-16

query I rowsort
SELECT ( + 18 ) AS col2
----
18

query I rowsort
SELECT - ( + 57 )
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-1420
SELECT 74 - + + COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-1420
SELECT 74 - + + COUNT ( * )
----
73

query I rowsort
SELECT ALL - ( 48 ) AS col0
----
-48

query I rowsort
SELECT ALL ( 40 )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1423
SELECT COUNT( * ) * - - 7
----
7

skipif mysql # not compatible
query I rowsort label-1423
SELECT COUNT ( * ) * - - 7
----
7

query I rowsort
SELECT - + 61 AS col2
----
-61

query I rowsort
SELECT - ( + - 31 )
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1426
SELECT ALL CAST( NULL AS SIGNED ) / NULLIF ( - + 15, - - COUNT( * ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1426
SELECT ALL CAST ( NULL AS INTEGER ) / NULLIF ( - + 15, - - COUNT ( * ) ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1427
SELECT - CASE + COUNT( * ) WHEN 44 THEN COUNT( * ) * - 4 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1427
SELECT - CASE + COUNT ( * ) WHEN 44 THEN COUNT ( * ) * - 4 END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1428
SELECT ALL 81 DIV - + 83
----
0

skipif mysql # not compatible
query I rowsort label-1428
SELECT ALL 81 / - + 83
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1429
SELECT - 47 * - + ( - + COUNT( * ) ) * 37
----
-1739

skipif mysql # not compatible
query I rowsort label-1429
SELECT - 47 * - + ( - + COUNT ( * ) ) * 37
----
-1739

query II rowsort
SELECT ( 78 ), + 36 * - ( + + 4 ) AS col2
----
78
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-1431
SELECT 95 * + COUNT( * ) * + 57
----
5415

skipif mysql # not compatible
query I rowsort label-1431
SELECT 95 * + COUNT ( * ) * + 57
----
5415

onlyif mysql # aggregate syntax: 
query I rowsort label-1432
SELECT + 86 + + MAX( 35 ) AS col0
----
121

skipif mysql # not compatible
query I rowsort label-1432
SELECT + 86 + + MAX ( 35 ) AS col0
----
121

query I rowsort
SELECT + 60 * + 29
----
1740

query I rowsort
SELECT 10 * - 45 AS col1
----
-450

query I rowsort
SELECT ALL - ( + 48 )
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1436
SELECT DISTINCT - - CAST( - 90 AS SIGNED ) AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-1436
SELECT DISTINCT - - CAST ( - 90 AS INTEGER ) AS col0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-1437
SELECT ALL 84 + - + NULLIF ( + 68, - ( + + ( + + COUNT( - 75 ) ) ) ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-1437
SELECT ALL 84 + - + NULLIF ( + 68, - ( + + ( + + COUNT ( - 75 ) ) ) ) AS col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1438
SELECT ALL COUNT( ALL + 75 ) + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-1438
SELECT ALL COUNT ( ALL + 75 ) + COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1439
SELECT - SUM( DISTINCT 44 )
----
-44

skipif mysql # not compatible
query I rowsort label-1439
SELECT - SUM ( DISTINCT 44 )
----
-44

query I rowsort
SELECT + + 65 AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-1441
SELECT ALL ( + ( - COUNT( * ) ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1441
SELECT ALL ( + ( - COUNT ( * ) ) ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1442
SELECT - 64 DIV - - 65
----
0

skipif mysql # not compatible
query I rowsort label-1442
SELECT - 64 / - - 65
----
0

query I rowsort
SELECT + + 57 * - 78
----
-4446

onlyif mysql # aggregate syntax: 
query I rowsort label-1444
SELECT DISTINCT - 76 * MAX( DISTINCT - 76 )
----
5776

skipif mysql # not compatible
query I rowsort label-1444
SELECT DISTINCT - 76 * MAX ( DISTINCT - 76 )
----
5776

query I rowsort
SELECT 55 + + 41 AS col1
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-1446
SELECT 33 DIV - - 15
----
2

skipif mysql # not compatible
query I rowsort label-1446
SELECT 33 / - - 15
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1447
SELECT - CAST( NULL AS SIGNED ) * - 64
----
NULL

skipif mysql # not compatible
query I rowsort label-1447
SELECT - CAST ( NULL AS INTEGER ) * - 64
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1448
SELECT ALL - + SUM( + + 84 ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-1448
SELECT ALL - + SUM ( + + 84 ) AS col2
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1449
SELECT DISTINCT - CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) * + + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-1449
SELECT DISTINCT - CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) * + + 6
----
NULL

query I rowsort
SELECT - 47 * + 76
----
-3572

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1451
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-1451
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + 0
----
NULL

query I rowsort
SELECT + ( - 23 )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-1453
SELECT ALL + - COUNT( * ) * COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-1453
SELECT ALL + - COUNT ( * ) * COUNT ( * )
----
-1

query I rowsort
SELECT ( + + 0 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1455
SELECT ALL - CAST( 16 AS SIGNED )
----
-16

skipif mysql # not compatible
query I rowsort label-1455
SELECT ALL - CAST ( 16 AS INTEGER )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-1456
SELECT DISTINCT + 28 + COUNT( * ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-1456
SELECT DISTINCT + 28 + COUNT ( * ) AS col2
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1457
SELECT ALL - 69 DIV - MAX( + 15 ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-1457
SELECT ALL - 69 / - MAX ( + 15 ) AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1458
SELECT + MAX( ALL - 49 ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-1458
SELECT + MAX ( ALL - 49 ) AS col2
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-1459
SELECT COUNT( * ) + + - 6 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-1459
SELECT COUNT ( * ) + + - 6 AS col0
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1460
SELECT CAST( NULL AS SIGNED ) * - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1460
SELECT CAST ( NULL AS INTEGER ) * - + COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT 42 + 93
----
135

query I rowsort
SELECT ALL - 73 * 97 AS col0
----
-7081

query I rowsort
SELECT ALL - 94 + 91 AS col0
----
-3

query I rowsort
SELECT ALL - 83 + + 12 AS col0
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1465
SELECT + 24 DIV - MAX( ALL CAST( + 83 AS SIGNED ) ) + - 86 col0
----
-86

skipif mysql # not compatible
query I rowsort label-1465
SELECT + 24 / - MAX ( ALL CAST ( + 83 AS INTEGER ) ) + - 86 col0
----
-86

query I rowsort
SELECT + ( 10 ) AS col0
----
10

query I rowsort
SELECT + 39 * - 39
----
-1521

query I rowsort
SELECT DISTINCT + COALESCE ( 11, + - 29 )
----
11

query I rowsort
SELECT + ( + 0 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1470
SELECT DISTINCT - MIN( - 32 ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-1470
SELECT DISTINCT - MIN ( - 32 ) AS col0
----
32

query I rowsort
SELECT 64 * - - 50 AS col0
----
3200

onlyif mysql # aggregate syntax: 
query I rowsort label-1472
SELECT ALL COUNT( * ) + + 96 AS col1
----
97

skipif mysql # not compatible
query I rowsort label-1472
SELECT ALL COUNT ( * ) + + 96 AS col1
----
97

query I rowsort
SELECT 92 + - 36
----
56

query I rowsort
SELECT DISTINCT - + 69 + + + COALESCE ( - - 32, + 4 )
----
-37

query I rowsort
SELECT ALL - 16 + - 74 + 81 col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1476
SELECT + 88 * + COUNT( * )
----
88

skipif mysql # not compatible
query I rowsort label-1476
SELECT + 88 * + COUNT ( * )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1477
SELECT ALL - 76 * COUNT( * )
----
-76

skipif mysql # not compatible
query I rowsort label-1477
SELECT ALL - 76 * COUNT ( * )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-1478
SELECT + SUM( - - 55 ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-1478
SELECT + SUM ( - - 55 ) AS col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1479
SELECT COUNT( DISTINCT 46 )
----
1

skipif mysql # not compatible
query I rowsort label-1479
SELECT COUNT ( DISTINCT 46 )
----
1

query I rowsort
SELECT - COALESCE ( 7, + + ( 45 ) ) AS col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1481
SELECT ALL 4 * + + COUNT( * ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-1481
SELECT ALL 4 * + + COUNT ( * ) AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1482
SELECT + - COUNT( * ) * + COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1482
SELECT + - COUNT ( * ) * + COUNT ( * ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1483
SELECT MAX( + - 65 )
----
-65

skipif mysql # not compatible
query I rowsort label-1483
SELECT MAX ( + - 65 )
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1484
SELECT CAST( - - 79 AS SIGNED )
----
79

skipif mysql # not compatible
query I rowsort label-1484
SELECT CAST ( - - 79 AS INTEGER )
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-1485
SELECT - ( - + 15 ) DIV - 87 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1485
SELECT - ( - + 15 ) / - 87 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1486
SELECT ALL 22 * - COUNT( * ) + - + 41
----
-63

skipif mysql # not compatible
query I rowsort label-1486
SELECT ALL 22 * - COUNT ( * ) + - + 41
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1487
SELECT ALL - CAST( NULL AS SIGNED ) + + + CAST( NULL AS DECIMAL ) * + SUM( 8 ) - - 70 col1, ( - COUNT( * ) )
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-1487
SELECT ALL - CAST ( NULL AS INTEGER ) + + + CAST ( NULL AS REAL ) * + SUM ( 8 ) - - 70 col1, ( - COUNT ( * ) )
----
NULL
-1

query I rowsort
SELECT 74 * - 23 AS col1
----
-1702

onlyif mysql # aggregate syntax: 
query I rowsort label-1489
SELECT DISTINCT + COUNT( * ) * + 23
----
23

skipif mysql # not compatible
query I rowsort label-1489
SELECT DISTINCT + COUNT ( * ) * + 23
----
23

query I rowsort
SELECT ALL 69 col1
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1491
SELECT 88 * - + 27 / + AVG ( - - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1491
SELECT 88 * - + 27 / + AVG ( - - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT 27 + - + 78
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-1493
SELECT MIN( ALL - + 84 )
----
-84

skipif mysql # not compatible
query I rowsort label-1493
SELECT MIN ( ALL - + 84 )
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-1494
SELECT MAX( ALL 78 )
----
78

skipif mysql # not compatible
query I rowsort label-1494
SELECT MAX ( ALL 78 )
----
78

query I rowsort
SELECT ALL - 30 * + ( 71 )
----
-2130

onlyif mysql # aggregate syntax: 
query I rowsort label-1496
SELECT DISTINCT SUM( + 6 ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-1496
SELECT DISTINCT SUM ( + 6 ) AS col1
----
6

query I rowsort
SELECT - + 7 col0
----
-7

query I rowsort
SELECT - 83 * - 9 * + 42 AS col0
----
31374

query I rowsort
SELECT + 6 * + + 20 + 68
----
188

query I rowsort
SELECT ALL 99 + - 40 col1
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1501
SELECT ALL + COUNT( * ) DIV + COUNT( * ) col1
----
1

skipif mysql # not compatible
query I rowsort label-1501
SELECT ALL + COUNT ( * ) / + COUNT ( * ) col1
----
1

query I rowsort
SELECT ALL 51 + 17
----
68

query I rowsort
SELECT 27 * + 27
----
729

onlyif mysql # aggregate syntax: 
query I rowsort label-1504
SELECT - - ( - - COUNT( * ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-1504
SELECT - - ( - - COUNT ( * ) ) col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1505
SELECT 27 DIV - + 95
----
0

skipif mysql # not compatible
query I rowsort label-1505
SELECT 27 / - + 95
----
0

query I rowsort
SELECT ALL - ( + - 8 ) AS col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1507
SELECT ALL 28 * + COUNT( * ) * - 66 AS col1
----
-1848

skipif mysql # not compatible
query I rowsort label-1507
SELECT ALL 28 * + COUNT ( * ) * - 66 AS col1
----
-1848

query I rowsort
SELECT ALL + 68 - 57 * + 10 - - + 78
----
-424

query I rowsort
SELECT + 41 - 27
----
14

query I rowsort
SELECT NULLIF ( + + 42, + 7 )
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1511
SELECT - 27 + - CAST( - 8 AS SIGNED )
----
-19

skipif mysql # not compatible
query I rowsort label-1511
SELECT - 27 + - CAST ( - 8 AS INTEGER )
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-1512
SELECT + MAX( + 34 )
----
34

skipif mysql # not compatible
query I rowsort label-1512
SELECT + MAX ( + 34 )
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1513
SELECT - 89 DIV + 40 + ( + COUNT( * ) ) * 81 AS col1
----
79

skipif mysql # not compatible
query I rowsort label-1513
SELECT - 89 / + 40 + ( + COUNT ( * ) ) * 81 AS col1
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1514
SELECT + CAST( + + ( 96 ) AS SIGNED ) col2
----
96

skipif mysql # not compatible
query I rowsort label-1514
SELECT + CAST ( + + ( 96 ) AS INTEGER ) col2
----
96

query I rowsort
SELECT + + 22 AS col0
----
22

query I rowsort
SELECT 96 * + 58 + - 90 AS col1
----
5478

onlyif mysql # aggregate syntax: 
query I rowsort label-1517
SELECT ALL + + 61 + COUNT( * ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-1517
SELECT ALL + + 61 + COUNT ( * ) AS col2
----
62

query I rowsort
SELECT ALL - + ( - 72 ) AS col1
----
72

query I rowsort
SELECT - ( 36 )
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1520
SELECT - CAST( + AVG ( DISTINCT - + 81 ) AS SIGNED )
----
81

skipif mysql # not compatible
query I rowsort label-1520
SELECT - CAST ( + AVG ( DISTINCT - + 81 ) AS INTEGER )
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1521
SELECT ALL 12 col2, - CAST( 47 AS SIGNED )
----
12
-47

skipif mysql # not compatible
query II rowsort label-1521
SELECT ALL 12 col2, - CAST ( 47 AS INTEGER )
----
12
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-1522
SELECT DISTINCT COUNT( ALL - + 13 )
----
1

skipif mysql # not compatible
query I rowsort label-1522
SELECT DISTINCT COUNT ( ALL - + 13 )
----
1

query I rowsort
SELECT ALL 23 col0
----
23

query I rowsort
SELECT - 21 * - + ( 75 ) AS col1
----
1575

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1525
SELECT ALL + MIN( - - 2 ), 46 DIV 20 col0
----
2
2

skipif mysql # not compatible
query II rowsort label-1525
SELECT ALL + MIN ( - - 2 ), 46 / 20 col0
----
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1526
SELECT ALL NULLIF ( - COUNT( * ), 16 )
----
-1

skipif mysql # not compatible
query I rowsort label-1526
SELECT ALL NULLIF ( - COUNT ( * ), 16 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1527
SELECT ALL CAST( + - CAST( NULL AS DECIMAL ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1527
SELECT ALL CAST ( + - CAST ( NULL AS REAL ) AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 27 + - 67 AS col2
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-1529
SELECT COUNT( * ) * 33 + - 10, - ( - 49 ) AS col0
----
23
49

skipif mysql # not compatible
query II rowsort label-1529
SELECT COUNT ( * ) * 33 + - 10, - ( - 49 ) AS col0
----
23
49

onlyif mysql # DIV for integer division: 
query I rowsort label-1530
SELECT ALL - 59 DIV - 57 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1530
SELECT ALL - 59 / - 57 AS col2
----
1

query I rowsort
SELECT ALL - + 37 AS col0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-1532
SELECT ALL COUNT( 78 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1532
SELECT ALL COUNT ( 78 ) AS col0
----
1

query I rowsort
SELECT + 92 - 63 AS col2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1534
SELECT + 69 * COUNT( * )
----
69

skipif mysql # not compatible
query I rowsort label-1534
SELECT + 69 * COUNT ( * )
----
69

query I rowsort
SELECT DISTINCT - 75 * + - 33
----
2475

onlyif mysql # aggregate syntax: 
query II rowsort label-1536
SELECT + 44 + - 11, COUNT( * ) AS col0
----
33
1

skipif mysql # not compatible
query II rowsort label-1536
SELECT + 44 + - 11, COUNT ( * ) AS col0
----
33
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1537
SELECT + + 15 DIV - 58 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1537
SELECT + + 15 / - 58 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1538
SELECT DISTINCT + 66 AS col1, COUNT( * ) AS col1
----
66
1

skipif mysql # not compatible
query II rowsort label-1538
SELECT DISTINCT + 66 AS col1, COUNT ( * ) AS col1
----
66
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1539
SELECT COUNT( - + ( 96 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1539
SELECT COUNT ( - + ( 96 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1540
SELECT ALL - + COUNT( * ) + - + 88
----
-89

skipif mysql # not compatible
query I rowsort label-1540
SELECT ALL - + COUNT ( * ) + - + 88
----
-89

query I rowsort
SELECT ALL 87 + - COALESCE ( - 12, - 23 )
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-1542
SELECT DISTINCT - COUNT( * ) col2, + COUNT( * )
----
-1
1

skipif mysql # not compatible
query II rowsort label-1542
SELECT DISTINCT - COUNT ( * ) col2, + COUNT ( * )
----
-1
1

query I rowsort
SELECT ALL - ( + 5 ) AS col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1544
SELECT COUNT( * ) * + 5 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-1544
SELECT COUNT ( * ) * + 5 AS col0
----
5

query I rowsort
SELECT ALL - ( + 12 ) AS col0
----
-12

query I rowsort
SELECT ALL - - ( + 35 )
----
35

query I rowsort
SELECT ALL + 20 + 49 AS col2
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1548
SELECT ALL CAST( NULL AS SIGNED ) / - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1548
SELECT ALL CAST ( NULL AS INTEGER ) / - COUNT ( * ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1549
SELECT ALL 82 - + 43 DIV 76 AS col0
----
82

skipif mysql # not compatible
query I rowsort label-1549
SELECT ALL 82 - + 43 / 76 AS col0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1550
SELECT DISTINCT MIN( ALL - + ( - 43 ) )
----
43

skipif mysql # not compatible
query I rowsort label-1550
SELECT DISTINCT MIN ( ALL - + ( - 43 ) )
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1551
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 31 * + 90 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1551
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 31 * + 90 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1552
SELECT ALL - 15 * + COUNT( * ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-1552
SELECT ALL - 15 * + COUNT ( * ) AS col2
----
-15

query I rowsort
SELECT + ( + 33 ) + - - 84
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-1554
SELECT ALL COUNT( - - 60 ) * 22 AS col2
----
22

skipif mysql # not compatible
query I rowsort label-1554
SELECT ALL COUNT ( - - 60 ) * 22 AS col2
----
22

query I rowsort
SELECT DISTINCT + + 58 AS col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1556
SELECT DISTINCT - - ( + COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1556
SELECT DISTINCT - - ( + COUNT ( * ) ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1557
SELECT 74 DIV 5 DIV + + 76 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1557
SELECT 74 / 5 / + + 76 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1558
SELECT ALL 21 + + - CAST( - 21 AS SIGNED )
----
42

skipif mysql # not compatible
query I rowsort label-1558
SELECT ALL 21 + + - CAST ( - 21 AS INTEGER )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1559
SELECT ALL - COUNT( 34 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1559
SELECT ALL - COUNT ( 34 ) AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1560
SELECT ALL 5 DIV + 55 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1560
SELECT ALL 5 / + 55 AS col2
----
0

query I rowsort
SELECT ALL - 80 + + 76
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-1562
SELECT DISTINCT MIN( ALL + 31 )
----
31

skipif mysql # not compatible
query I rowsort label-1562
SELECT DISTINCT MIN ( ALL + 31 )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1563
SELECT ALL SUM( DISTINCT + ( 68 ) ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-1563
SELECT ALL SUM ( DISTINCT + ( 68 ) ) AS col0
----
68

query I rowsort
SELECT - 63 * - 82 col0
----
5166

query I rowsort
SELECT - 4 + - 47
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-1566
SELECT - 21 + - - COUNT( * )
----
-20

skipif mysql # not compatible
query I rowsort label-1566
SELECT - 21 + - - COUNT ( * )
----
-20

query II rowsort
SELECT DISTINCT 6 AS col2, 25 * - + 85 AS col1
----
6
-2125

onlyif mysql # aggregate syntax: 
query I rowsort label-1568
SELECT DISTINCT - COUNT( * ) - - 28
----
27

skipif mysql # not compatible
query I rowsort label-1568
SELECT DISTINCT - COUNT ( * ) - - 28
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-1569
SELECT - SUM( 60 ) AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-1569
SELECT - SUM ( 60 ) AS col2
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-1570
SELECT ALL - 80 * + + COUNT( * )
----
-80

skipif mysql # not compatible
query I rowsort label-1570
SELECT ALL - 80 * + + COUNT ( * )
----
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1571
SELECT ALL 52 DIV + COUNT( * ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-1571
SELECT ALL 52 / + COUNT ( * ) AS col1
----
52

query I rowsort
SELECT + 94 + 25 AS col2
----
119

query I rowsort
SELECT 74 * + 9 AS col2
----
666

onlyif mysql # aggregate syntax: 
query I rowsort label-1574
SELECT + COUNT( * ) * 16
----
16

skipif mysql # not compatible
query I rowsort label-1574
SELECT + COUNT ( * ) * 16
----
16

query I rowsort
SELECT + + ( - 54 )
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-1576
SELECT ALL COUNT( * ) * + 22
----
22

skipif mysql # not compatible
query I rowsort label-1576
SELECT ALL COUNT ( * ) * + 22
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1577
SELECT DISTINCT + ( COUNT( * ) ) DIV SUM( - 79 )
----
0

skipif mysql # not compatible
query I rowsort label-1577
SELECT DISTINCT + ( COUNT ( * ) ) / SUM ( - 79 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1578
SELECT COUNT( * ) AS col2, + 59
----
1
59

skipif mysql # not compatible
query II rowsort label-1578
SELECT COUNT ( * ) AS col2, + 59
----
1
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1579
SELECT + COUNT( 81 )
----
1

skipif mysql # not compatible
query I rowsort label-1579
SELECT + COUNT ( 81 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1580
SELECT - SUM( DISTINCT - 88 ) + + COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-1580
SELECT - SUM ( DISTINCT - 88 ) + + COUNT ( * )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-1581
SELECT ALL COUNT( * ) * + 44
----
44

skipif mysql # not compatible
query I rowsort label-1581
SELECT ALL COUNT ( * ) * + 44
----
44

query I rowsort
SELECT - 52 + + 17 AS col2
----
-35

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1583
SELECT DISTINCT + CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1583
SELECT DISTINCT + CAST ( NULL AS REAL ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1584
SELECT - MAX( - 46 ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-1584
SELECT - MAX ( - 46 ) AS col1
----
46

query I rowsort
SELECT + - 81 * + 37 - 72 AS col2
----
-3069

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1586
SELECT ALL + 65 + ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1586
SELECT ALL + 65 + ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1587
SELECT ALL - SUM( - 87 )
----
87

skipif mysql # not compatible
query I rowsort label-1587
SELECT ALL - SUM ( - 87 )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1588
SELECT 53 + - - CASE - 55 WHEN + COUNT( * ) THEN - COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1588
SELECT 53 + - - CASE - 55 WHEN + COUNT ( * ) THEN - COUNT ( * ) END AS col2
----
NULL

query I rowsort
SELECT ALL 34 + - + 98
----
-64

query I rowsort
SELECT ALL + 45 + - + 27 AS col1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-1591
SELECT + 62 - - 80 + - COUNT( * ) + - - 39
----
180

skipif mysql # not compatible
query I rowsort label-1591
SELECT + 62 - - 80 + - COUNT ( * ) + - - 39
----
180

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1592
SELECT ALL - COUNT( * ) * 42 + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1592
SELECT ALL - COUNT ( * ) * 42 + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1593
SELECT DISTINCT CAST( NULL AS SIGNED ) + + 25 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1593
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + 25 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1594
SELECT + COUNT( * ) - - 6 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-1594
SELECT + COUNT ( * ) - - 6 AS col1
----
7

query I rowsort
SELECT - ( - 90 ) AS col2
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1596
SELECT 34 + + CAST( NULL AS SIGNED ) + + 29 / 28
----
NULL

skipif mysql # not compatible
query I rowsort label-1596
SELECT 34 + + CAST ( NULL AS INTEGER ) + + 29 / 28
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1597
SELECT ( - 2 ) + + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-1597
SELECT ( - 2 ) + + COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1598
SELECT COUNT( * ) * - 85 * - 55 AS col2
----
4675

skipif mysql # not compatible
query I rowsort label-1598
SELECT COUNT ( * ) * - 85 * - 55 AS col2
----
4675

onlyif mysql # aggregate syntax: 
query I rowsort label-1599
SELECT 59 + COUNT( * ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-1599
SELECT 59 + COUNT ( * ) AS col1
----
60

query I rowsort
SELECT 87 + + 16
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-1601
SELECT DISTINCT - MIN( DISTINCT + 73 )
----
-73

skipif mysql # not compatible
query I rowsort label-1601
SELECT DISTINCT - MIN ( DISTINCT + 73 )
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-1602
SELECT ALL COUNT( ALL - 54 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1602
SELECT ALL COUNT ( ALL - 54 ) AS col2
----
1

query I rowsort
SELECT ALL - NULLIF ( - 72, + 97 )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-1604
SELECT ALL - 76 * - COUNT( * )
----
76

skipif mysql # not compatible
query I rowsort label-1604
SELECT ALL - 76 * - COUNT ( * )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1605
SELECT - 87 * + COUNT( * )
----
-87

skipif mysql # not compatible
query I rowsort label-1605
SELECT - 87 * + COUNT ( * )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-1606
SELECT SUM( - 51 )
----
-51

skipif mysql # not compatible
query I rowsort label-1606
SELECT SUM ( - 51 )
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-1607
SELECT + 98 DIV - + 82 col0
----
-1

skipif mysql # not compatible
query I rowsort label-1607
SELECT + 98 / - + 82 col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1608
SELECT - NULLIF ( - + 28, - 94 ) * COUNT( * ) DIV + 51
----
0

skipif mysql # not compatible
query I rowsort label-1608
SELECT - NULLIF ( - + 28, - 94 ) * COUNT ( * ) / + 51
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1609
SELECT ALL + - CAST( NULL AS SIGNED ) + + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1609
SELECT ALL + - CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT - 74 + + 29
----
-45

query I rowsort
SELECT + + 61 AS col0
----
61

query I rowsort
SELECT + 59 * 20 AS col0
----
1180

query II rowsort
SELECT + 72, 81 AS col0
----
72
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1614
SELECT DISTINCT + COUNT( ALL - 0 )
----
1

skipif mysql # not compatible
query I rowsort label-1614
SELECT DISTINCT + COUNT ( ALL - 0 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1615
SELECT MIN( DISTINCT - 50 )
----
-50

skipif mysql # not compatible
query I rowsort label-1615
SELECT MIN ( DISTINCT - 50 )
----
-50

query I rowsort
SELECT DISTINCT - ( - - 36 )
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1617
SELECT ( - SUM( - CAST( + + 40 AS SIGNED ) ) ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-1617
SELECT ( - SUM ( - CAST ( + + 40 AS INTEGER ) ) ) AS col2
----
40

query I rowsort
SELECT ALL ( - - 84 ) AS col0
----
84

query I rowsort
SELECT 68 + 59
----
127

query I rowsort
SELECT 87 * 25
----
2175

onlyif mysql # aggregate syntax: 
query I rowsort label-1621
SELECT ALL + SUM( DISTINCT + - 44 )
----
-44

skipif mysql # not compatible
query I rowsort label-1621
SELECT ALL + SUM ( DISTINCT + - 44 )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-1622
SELECT DISTINCT - MIN( + 98 )
----
-98

skipif mysql # not compatible
query I rowsort label-1622
SELECT DISTINCT - MIN ( + 98 )
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1623
SELECT - NULLIF ( 25, - CAST( NULL AS SIGNED ) )
----
-25

skipif mysql # not compatible
query I rowsort label-1623
SELECT - NULLIF ( 25, - CAST ( NULL AS INTEGER ) )
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1624
SELECT - CAST( - 0 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-1624
SELECT - CAST ( - 0 AS INTEGER )
----
0

query I rowsort
SELECT - + 13 AS col1
----
-13

query I rowsort
SELECT + ( + - 5 )
----
-5

query I rowsort
SELECT ( - 54 ) col2
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1628
SELECT ALL COUNT( * ) * + CAST( + COUNT( * ) AS SIGNED ) + + COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-1628
SELECT ALL COUNT ( * ) * + CAST ( + COUNT ( * ) AS INTEGER ) + + COUNT ( * ) AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1629
SELECT ALL - MAX( - 59 )
----
59

skipif mysql # not compatible
query I rowsort label-1629
SELECT ALL - MAX ( - 59 )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1630
SELECT DISTINCT - 4 * + COUNT( * )
----
-4

skipif mysql # not compatible
query I rowsort label-1630
SELECT DISTINCT - 4 * + COUNT ( * )
----
-4

query I rowsort
SELECT ALL - 70 * + + 39
----
-2730

onlyif mysql # aggregate syntax: 
query I rowsort label-1632
SELECT COUNT( * ) + + 20
----
21

skipif mysql # not compatible
query I rowsort label-1632
SELECT COUNT ( * ) + + 20
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1633
SELECT ALL - CAST( - 36 AS SIGNED ) col1
----
36

skipif mysql # not compatible
query I rowsort label-1633
SELECT ALL - CAST ( - 36 AS INTEGER ) col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-1634
SELECT DISTINCT - + MIN( DISTINCT - 10 )
----
10

skipif mysql # not compatible
query I rowsort label-1634
SELECT DISTINCT - + MIN ( DISTINCT - 10 )
----
10

query I rowsort
SELECT DISTINCT - + 21 AS col2
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-1636
SELECT + ( - - MAX( + 10 ) ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-1636
SELECT + ( - - MAX ( + 10 ) ) AS col2
----
10

query I rowsort
SELECT DISTINCT 64 + - 87
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-1638
SELECT ALL COUNT( * ) col1, 25 AS col2
----
1
25

skipif mysql # not compatible
query II rowsort label-1638
SELECT ALL COUNT ( * ) col1, 25 AS col2
----
1
25

query I rowsort
SELECT - 69 * + 26 AS col1
----
-1794

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1640
SELECT + CAST( NULL AS SIGNED ) * - 53 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1640
SELECT + CAST ( NULL AS INTEGER ) * - 53 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1641
SELECT ALL SUM( + 81 )
----
81

skipif mysql # not compatible
query I rowsort label-1641
SELECT ALL SUM ( + 81 )
----
81

query I rowsort
SELECT ALL + + 88 col1
----
88

query I rowsort
SELECT 22 * - + 76 AS col2
----
-1672

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1644
SELECT DISTINCT - 98 / + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1644
SELECT DISTINCT - 98 / + CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT ALL - ( - 12 ) AS col1
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-1646
SELECT ALL + 84 DIV - 12 AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-1646
SELECT ALL + 84 / - 12 AS col0
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1647
SELECT 22 DIV - + MAX( 24 ) * + 17 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1647
SELECT 22 / - + MAX ( 24 ) * + 17 AS col1
----
0

query I rowsort
SELECT ALL - + 6 AS col1
----
-6

query I rowsort
SELECT DISTINCT - 24 col2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-1650
SELECT MAX( + 89 ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-1650
SELECT MAX ( + 89 ) AS col0
----
89

query I rowsort
SELECT - 21 * + ( 53 )
----
-1113

onlyif mysql # aggregate syntax: 
query I rowsort label-1652
SELECT - MIN( - 76 )
----
76

skipif mysql # not compatible
query I rowsort label-1652
SELECT - MIN ( - 76 )
----
76

query II rowsort
SELECT - 79 col2, - 68
----
-79
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1654
SELECT - CAST( + 46 AS SIGNED ) AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-1654
SELECT - CAST ( + 46 AS INTEGER ) AS col0
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1655
SELECT + + CAST( NULL AS SIGNED ) * - 93 + + 12 + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-1655
SELECT + + CAST ( NULL AS INTEGER ) * - 93 + + 12 + 30
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1656
SELECT ALL CAST( NULL AS SIGNED ) * 45 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1656
SELECT ALL CAST ( NULL AS INTEGER ) * 45 col0
----
NULL

query I rowsort
SELECT DISTINCT - ( - 69 ) AS col1
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1658
SELECT ALL + ( - CAST( 98 AS SIGNED ) ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-1658
SELECT ALL + ( - CAST ( 98 AS INTEGER ) ) AS col1
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1659
SELECT + MAX( DISTINCT - CAST( 84 AS SIGNED ) ) AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-1659
SELECT + MAX ( DISTINCT - CAST ( 84 AS INTEGER ) ) AS col1
----
-84

query I rowsort
SELECT 57 - - - 89
----
-32

query II rowsort
SELECT ALL - 85 AS col2, 16
----
-85
16

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1662
SELECT 99 AS col0, CAST( - 89 AS SIGNED ) DIV - 26 AS col2
----
99
3

skipif mysql # not compatible
query II rowsort label-1662
SELECT 99 AS col0, CAST ( - 89 AS INTEGER ) / - 26 AS col2
----
99
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1663
SELECT 75 + - CAST( + 41 AS SIGNED )
----
34

skipif mysql # not compatible
query I rowsort label-1663
SELECT 75 + - CAST ( + 41 AS INTEGER )
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1664
SELECT CAST( NULL AS SIGNED ) AS col1, + ( - - 75 ) AS col1
----
NULL
75

skipif mysql # not compatible
query II rowsort label-1664
SELECT CAST ( NULL AS INTEGER ) AS col1, + ( - - 75 ) AS col1
----
NULL
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1665
SELECT - - ( NULLIF ( + 82, + - CAST( NULL AS SIGNED ) ) ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-1665
SELECT - - ( NULLIF ( + 82, + - CAST ( NULL AS INTEGER ) ) ) AS col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1666
SELECT - NULLIF ( + COUNT( * ), - 70 )
----
-1

skipif mysql # not compatible
query I rowsort label-1666
SELECT - NULLIF ( + COUNT ( * ), - 70 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1667
SELECT ALL COUNT( DISTINCT + - 18 )
----
1

skipif mysql # not compatible
query I rowsort label-1667
SELECT ALL COUNT ( DISTINCT + - 18 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1668
SELECT ALL + ( COUNT( * ) ) DIV - 43 * + 65 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1668
SELECT ALL + ( COUNT ( * ) ) / - 43 * + 65 AS col2
----
0

query I rowsort
SELECT - 67 - - - 40 col1
----
-107

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1670
SELECT ALL CAST( - - 91 AS SIGNED )
----
91

skipif mysql # not compatible
query I rowsort label-1670
SELECT ALL CAST ( - - 91 AS INTEGER )
----
91

query I rowsort
SELECT + ( + 6 ) col1
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1672
SELECT + CAST( NULL AS SIGNED ) * + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-1672
SELECT + CAST ( NULL AS INTEGER ) * + 11
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1673
SELECT ALL - + CASE COUNT( * ) WHEN 77 THEN 2 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1673
SELECT ALL - + CASE COUNT ( * ) WHEN 77 THEN 2 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1674
SELECT ALL + 73 + + COUNT( * )
----
74

skipif mysql # not compatible
query I rowsort label-1674
SELECT ALL + 73 + + COUNT ( * )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1675
SELECT ALL 84 + + COUNT( * ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-1675
SELECT ALL 84 + + COUNT ( * ) AS col2
----
85

query I rowsort
SELECT ALL - + 88 - + 38 AS col2
----
-126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1677
SELECT + - COUNT( * ), - MIN( - + CAST( NULL AS SIGNED ) ) AS col2
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-1677
SELECT + - COUNT ( * ), - MIN ( - + CAST ( NULL AS INTEGER ) ) AS col2
----
-1
NULL

query I rowsort
SELECT DISTINCT 1 * 41 + - 52
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-1679
SELECT - COALESCE ( + 15, + ( + COUNT( * ) ) ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-1679
SELECT - COALESCE ( + 15, + ( + COUNT ( * ) ) ) AS col2
----
-15

query I rowsort
SELECT DISTINCT - 59 * + 33 AS col0
----
-1947

query II rowsort
SELECT DISTINCT ( + 71 ), 51 AS col2
----
71
51

query I rowsort
SELECT - ( - 67 ) col0
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1683
SELECT + COUNT( * ) * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1683
SELECT + COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1684
SELECT ALL 49 + + COUNT( * ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-1684
SELECT ALL 49 + + COUNT ( * ) AS col2
----
50

query I rowsort
SELECT ALL + - ( - 67 )
----
67

query I rowsort
SELECT NULLIF ( + 40, 57 ) AS col2
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-1687
SELECT DISTINCT + 55 DIV 40
----
1

skipif mysql # not compatible
query I rowsort label-1687
SELECT DISTINCT + 55 / 40
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1688
SELECT + - MIN( DISTINCT - + CAST( - ( - 61 ) AS SIGNED ) ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-1688
SELECT + - MIN ( DISTINCT - + CAST ( - ( - 61 ) AS INTEGER ) ) AS col0
----
61

query I rowsort
SELECT DISTINCT - 1 + - 76
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1690
SELECT 91 + - - CAST( + - 34 AS SIGNED ) * 38 AS col1
----
-1201

skipif mysql # not compatible
query I rowsort label-1690
SELECT 91 + - - CAST ( + - 34 AS INTEGER ) * 38 AS col1
----
-1201

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1691
SELECT COUNT( * ) DIV 64
----
0

skipif mysql # not compatible
query I rowsort label-1691
SELECT COUNT ( * ) / 64
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1692
SELECT 81 + ( + + CAST( NULL AS SIGNED ) ) AS col1, - CAST( NULL AS SIGNED ) / + 13
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1692
SELECT 81 + ( + + CAST ( NULL AS INTEGER ) ) AS col1, - CAST ( NULL AS INTEGER ) / + 13
----
NULL
NULL

query I rowsort
SELECT ALL 56 + + 46
----
102

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1694
SELECT - CAST( NULL AS DECIMAL ) - + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-1694
SELECT - CAST ( NULL AS REAL ) - + 14
----
NULL

query I rowsort
SELECT ALL 33 * - + 22
----
-726

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1696
SELECT - - COALESCE ( + 66, - 35 ) - - CAST( NULL AS SIGNED ) * - - AVG ( - + 48 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1696
SELECT - - COALESCE ( + 66, - 35 ) - - CAST ( NULL AS INTEGER ) * - - AVG ( - + 48 ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1697
SELECT ALL + + 14 + - 63 * + MAX( CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1697
SELECT ALL + + 14 + - 63 * + MAX ( CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query II rowsort
SELECT - 99 AS col1, 98
----
-99
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1699
SELECT ALL + SUM( - - ( - 73 ) )
----
-73

skipif mysql # not compatible
query I rowsort label-1699
SELECT ALL + SUM ( - - ( - 73 ) )
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1700
SELECT + ( + CAST( NULL AS SIGNED ) ) AS col0, - 91 AS col2
----
NULL
-91

skipif mysql # not compatible
query II rowsort label-1700
SELECT + ( + CAST ( NULL AS INTEGER ) ) AS col0, - 91 AS col2
----
NULL
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1701
SELECT - CAST( - 60 AS SIGNED ) AS col1, 86 * + COUNT( * )
----
60
86

skipif mysql # not compatible
query II rowsort label-1701
SELECT - CAST ( - 60 AS INTEGER ) AS col1, 86 * + COUNT ( * )
----
60
86

query I rowsort
SELECT - + ( + + 23 ) AS col2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-1703
SELECT COUNT( * ) + + 63
----
64

skipif mysql # not compatible
query I rowsort label-1703
SELECT COUNT ( * ) + + 63
----
64

query I rowsort
SELECT 15 * - 6
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1705
SELECT - - CAST( NULL AS SIGNED ), 89 AS col1
----
NULL
89

skipif mysql # not compatible
query II rowsort label-1705
SELECT - - CAST ( NULL AS INTEGER ), 89 AS col1
----
NULL
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1706
SELECT + 41 DIV + 22 - + 67 * + MAX( ALL 28 )
----
-1875

skipif mysql # not compatible
query I rowsort label-1706
SELECT + 41 / + 22 - + 67 * + MAX ( ALL 28 )
----
-1875

onlyif mysql # aggregate syntax: 
query I rowsort label-1707
SELECT ALL MIN( + 16 ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-1707
SELECT ALL MIN ( + 16 ) AS col2
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1708
SELECT - CAST( - COUNT( * ) AS SIGNED ) * - - 83 + 95, 67 * COUNT( * ) AS col2
----
178
67

skipif mysql # not compatible
query II rowsort label-1708
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) * - - 83 + 95, 67 * COUNT ( * ) AS col2
----
178
67

query I rowsort
SELECT ( + - 11 )
----
-11

query I rowsort
SELECT DISTINCT ( ( 98 ) )
----
98

query II rowsort
SELECT DISTINCT 67 AS col2, 26 AS col1
----
67
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1712
SELECT DISTINCT 38 * - CAST( 90 AS SIGNED ) AS col2
----
-3420

skipif mysql # not compatible
query I rowsort label-1712
SELECT DISTINCT 38 * - CAST ( 90 AS INTEGER ) AS col2
----
-3420

query I rowsort
SELECT DISTINCT + 76 * - 39 * - 36
----
106704

query I rowsort
SELECT + 55 + - 13 + - - 91
----
133

onlyif mysql # aggregate syntax: 
query II rowsort label-1715
SELECT - COUNT( * ) col2, + COUNT( * ) col2
----
-1
1

skipif mysql # not compatible
query II rowsort label-1715
SELECT - COUNT ( * ) col2, + COUNT ( * ) col2
----
-1
1

query I rowsort
SELECT ALL - ( + 0 ) AS col0
----
0

query II rowsort
SELECT DISTINCT - 44 AS col1, - 25
----
-44
-25

query I rowsort
SELECT DISTINCT - 16 - + + 73 AS col0
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-1719
SELECT DISTINCT - SUM( + + 27 ) col0
----
-27

skipif mysql # not compatible
query I rowsort label-1719
SELECT DISTINCT - SUM ( + + 27 ) col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-1720
SELECT DISTINCT - + 4 * - - ( COUNT( * ) ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-1720
SELECT DISTINCT - + 4 * - - ( COUNT ( * ) ) AS col2
----
-4

query I rowsort
SELECT DISTINCT - + 51 col0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-1722
SELECT ALL COUNT( * ) * - 77
----
-77

skipif mysql # not compatible
query I rowsort label-1722
SELECT ALL COUNT ( * ) * - 77
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1723
SELECT ALL + CAST( NULL AS SIGNED ) - + ( COUNT( * ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1723
SELECT ALL + CAST ( NULL AS INTEGER ) - + ( COUNT ( * ) ) col2
----
NULL

query I rowsort
SELECT 54 + + - 43
----
11

query I rowsort
SELECT ALL 11 col1
----
11

query I rowsort
SELECT DISTINCT ( + 36 )
----
36

query I rowsort
SELECT ALL - 36 * - - 5 AS col0
----
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-1728
SELECT ALL + SUM( - + 31 )
----
-31

skipif mysql # not compatible
query I rowsort label-1728
SELECT ALL + SUM ( - + 31 )
----
-31

query I rowsort
SELECT ( - 67 ) + 13 AS col2
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1730
SELECT DISTINCT - 16 + - ( + CAST( NULL AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1730
SELECT DISTINCT - 16 + - ( + CAST ( NULL AS INTEGER ) ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1731
SELECT + - MIN( - 14 )
----
14

skipif mysql # not compatible
query I rowsort label-1731
SELECT + - MIN ( - 14 )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1732
SELECT ALL - SUM( + 78 ) AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-1732
SELECT ALL - SUM ( + 78 ) AS col0
----
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1733
SELECT 63 DIV SUM( 20 )
----
3

skipif mysql # not compatible
query I rowsort label-1733
SELECT 63 / SUM ( 20 )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1734
SELECT CAST( + + CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1734
SELECT CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - ( + 72 ) AS col2
----
-72

query I rowsort
SELECT - 73 + 94 AS col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-1737
SELECT MAX( + 41 ) AS col0
----
41

skipif mysql # not compatible
query I rowsort label-1737
SELECT MAX ( + 41 ) AS col0
----
41

query I rowsort
SELECT ALL + ( 14 ) AS col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1739
SELECT - - MIN( ALL + 8 )
----
8

skipif mysql # not compatible
query I rowsort label-1739
SELECT - - MIN ( ALL + 8 )
----
8

query I rowsort
SELECT ALL + ( + 31 )
----
31

query I rowsort
SELECT ALL - ( - 83 ) AS col1
----
83

query I rowsort
SELECT 69 - + - 58 + 71 AS col2
----
198

query I rowsort
SELECT - 18 - 66 AS col1
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-1744
SELECT ALL + 23 + + + COUNT( * ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-1744
SELECT ALL + 23 + + + COUNT ( * ) AS col0
----
24

query I rowsort
SELECT + 12 + - 96 AS col2
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-1746
SELECT 7 * + COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-1746
SELECT 7 * + COUNT ( * )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1747
SELECT COUNT( DISTINCT - 88 ) + - + 28
----
-27

skipif mysql # not compatible
query I rowsort label-1747
SELECT COUNT ( DISTINCT - 88 ) + - + 28
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-1748
SELECT ALL ( - - COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1748
SELECT ALL ( - - COUNT ( * ) ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1749
SELECT + - COALESCE ( + CAST( 82 AS SIGNED ), + 7 * 99 ) * + - COUNT( * ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-1749
SELECT + - COALESCE ( + CAST ( 82 AS INTEGER ), + 7 * 99 ) * + - COUNT ( * ) AS col1
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1750
SELECT DISTINCT 62, - CAST( + COUNT( * ) AS SIGNED ) * COUNT( * ) AS col1
----
62
-1

skipif mysql # not compatible
query II rowsort label-1750
SELECT DISTINCT 62, - CAST ( + COUNT ( * ) AS INTEGER ) * COUNT ( * ) AS col1
----
62
-1

query I rowsort
SELECT ( - + 30 )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-1752
SELECT ALL - 60 * + 66 * - + COUNT( * ) AS col2
----
3960

skipif mysql # not compatible
query I rowsort label-1752
SELECT ALL - 60 * + 66 * - + COUNT ( * ) AS col2
----
3960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1753
SELECT ALL + CAST( + 2 AS SIGNED )
----
2

skipif mysql # not compatible
query I rowsort label-1753
SELECT ALL + CAST ( + 2 AS INTEGER )
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1754
SELECT - + MIN( - 25 ) DIV + 18 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1754
SELECT - + MIN ( - 25 ) / + 18 AS col0
----
1

query I rowsort
SELECT DISTINCT + + ( - 27 )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-1756
SELECT + SUM( 95 )
----
95

skipif mysql # not compatible
query I rowsort label-1756
SELECT + SUM ( 95 )
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1757
SELECT + 61 * - - CAST( NULL AS SIGNED ) / - ( - 22 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1757
SELECT + 61 * - - CAST ( NULL AS INTEGER ) / - ( - 22 )
----
NULL

query I rowsort
SELECT + ( + - 8 ) AS col1
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1759
SELECT CAST( + 96 AS SIGNED ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-1759
SELECT CAST ( + 96 AS INTEGER ) AS col2
----
96

query I rowsort
SELECT + - 5 + + 48
----
43

query I rowsort
SELECT ALL - + 48 AS col0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-1762
SELECT - COUNT( * ) * - 92 + - 19 AS col2
----
73

skipif mysql # not compatible
query I rowsort label-1762
SELECT - COUNT ( * ) * - 92 + - 19 AS col2
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1763
SELECT ALL + + COUNT( * ) DIV COUNT( * ) - + 5 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-1763
SELECT ALL + + COUNT ( * ) / COUNT ( * ) - + 5 AS col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-1764
SELECT DISTINCT + COUNT( * ) + COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-1764
SELECT DISTINCT + COUNT ( * ) + COUNT ( * ) AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1765
SELECT ALL + COUNT( * ) + 87
----
88

skipif mysql # not compatible
query I rowsort label-1765
SELECT ALL + COUNT ( * ) + 87
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1766
SELECT - 2 + + 41 DIV + - 45 * + - ( + - COUNT( * ) )
----
-2

skipif mysql # not compatible
query I rowsort label-1766
SELECT - 2 + + 41 / + - 45 * + - ( + - COUNT ( * ) )
----
-2

query I rowsort
SELECT ALL + 39 * + 37 AS col2
----
1443

onlyif mysql # aggregate syntax: 
query I rowsort label-1768
SELECT - 22 + - COUNT( * )
----
-23

skipif mysql # not compatible
query I rowsort label-1768
SELECT - 22 + - COUNT ( * )
----
-23

query I rowsort
SELECT DISTINCT + - 75 AS col2
----
-75

query I rowsort
SELECT + - NULLIF ( + 70, 83 ) AS col1
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-1771
SELECT - SUM( ALL + - 83 ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-1771
SELECT - SUM ( ALL + - 83 ) AS col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1772
SELECT MIN( DISTINCT + - 18 ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-1772
SELECT MIN ( DISTINCT + - 18 ) AS col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-1773
SELECT - - MAX( ALL - + 76 ) AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-1773
SELECT - - MAX ( ALL - + 76 ) AS col0
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1774
SELECT + + 22 AS col0, CAST( NULL AS SIGNED ) AS col1
----
22
NULL

skipif mysql # not compatible
query II rowsort label-1774
SELECT + + 22 AS col0, CAST ( NULL AS INTEGER ) AS col1
----
22
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1775
SELECT + - CAST( + - ( - COUNT( * ) ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-1775
SELECT + - CAST ( + - ( - COUNT ( * ) ) AS INTEGER )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1776
SELECT - + 67 * COUNT( * )
----
-67

skipif mysql # not compatible
query I rowsort label-1776
SELECT - + 67 * COUNT ( * )
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1777
SELECT - - 31 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1777
SELECT - - 31 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1778
SELECT COUNT( * ) col1, 83 AS col2
----
1
83

skipif mysql # not compatible
query II rowsort label-1778
SELECT COUNT ( * ) col1, 83 AS col2
----
1
83

query I rowsort
SELECT ALL 43 + 79 + 96 AS col0
----
218

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1780
SELECT 83 DIV + - 43 * - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-1780
SELECT 83 / + - 43 * - COUNT ( * )
----
1

query I rowsort
SELECT 82 + + - ( + 36 )
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-1782
SELECT DISTINCT - COUNT( * ) AS col0, - 58 + - - 26 AS col1
----
-1
-32

skipif mysql # not compatible
query II rowsort label-1782
SELECT DISTINCT - COUNT ( * ) AS col0, - 58 + - - 26 AS col1
----
-1
-32

query I rowsort
SELECT 16 + + 94
----
110

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1784
SELECT + 38 * - COALESCE ( - + 45, COUNT( * ) * + COUNT( * ) DIV + 29 * - COUNT( * ) + 94 ) AS col0
----
1710

skipif mysql # not compatible
query I rowsort label-1784
SELECT + 38 * - COALESCE ( - + 45, COUNT ( * ) * + COUNT ( * ) / + 29 * - COUNT ( * ) + 94 ) AS col0
----
1710

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1785
SELECT DISTINCT COUNT( * ) DIV 89 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1785
SELECT DISTINCT COUNT ( * ) / 89 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1786
SELECT ALL COUNT( * ) - - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1786
SELECT ALL COUNT ( * ) - - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1787
SELECT DISTINCT 28 AS col1, - COUNT( * ) AS col2
----
28
-1

skipif mysql # not compatible
query II rowsort label-1787
SELECT DISTINCT 28 AS col1, - COUNT ( * ) AS col2
----
28
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1788
SELECT DISTINCT COUNT( 96 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1788
SELECT DISTINCT COUNT ( 96 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1789
SELECT + + COUNT( * ) + 81
----
82

skipif mysql # not compatible
query I rowsort label-1789
SELECT + + COUNT ( * ) + 81
----
82

query I rowsort
SELECT + ( + 34 ) AS col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1791
SELECT + MAX( - 58 ) * + 4
----
-232

skipif mysql # not compatible
query I rowsort label-1791
SELECT + MAX ( - 58 ) * + 4
----
-232

onlyif mysql # aggregate syntax: 
query I rowsort label-1792
SELECT MAX( + 52 ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-1792
SELECT MAX ( + 52 ) AS col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-1793
SELECT COUNT( 83 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1793
SELECT COUNT ( 83 ) AS col1
----
1

query I rowsort
SELECT - 91 + 48 AS col0
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-1795
SELECT DISTINCT - + 46 * - 65 col2, COUNT( * ) AS col2
----
2990
1

skipif mysql # not compatible
query II rowsort label-1795
SELECT DISTINCT - + 46 * - 65 col2, COUNT ( * ) AS col2
----
2990
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1796
SELECT - COUNT( DISTINCT + - 65 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1796
SELECT - COUNT ( DISTINCT + - 65 ) AS col2
----
-1

query I rowsort
SELECT ALL + + 10 AS col2
----
10

query I rowsort
SELECT ALL 78 * 88
----
6864

onlyif mysql # aggregate syntax: 
query I rowsort label-1799
SELECT COUNT( * ) + 80
----
81

skipif mysql # not compatible
query I rowsort label-1799
SELECT COUNT ( * ) + 80
----
81

query I rowsort
SELECT 85 * 84 + + 15
----
7155

query I rowsort
SELECT ALL - - 97 * 92
----
8924

onlyif mysql # aggregate syntax: 
query I rowsort label-1802
SELECT + 79 * - - ( COUNT( * ) ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-1802
SELECT + 79 * - - ( COUNT ( * ) ) AS col2
----
79

query I rowsort
SELECT - ( 3 )
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1804
SELECT ALL + - CAST( COUNT( * ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-1804
SELECT ALL + - CAST ( COUNT ( * ) AS INTEGER )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1805
SELECT DISTINCT + COUNT( * ) * - 74 AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-1805
SELECT DISTINCT + COUNT ( * ) * - 74 AS col2
----
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1806
SELECT DISTINCT + - COUNT( * ) * + + SUM( ALL - 30 ) DIV COUNT( * ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-1806
SELECT DISTINCT + - COUNT ( * ) * + + SUM ( ALL - 30 ) / COUNT ( * ) AS col1
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1807
SELECT CAST( 52 AS SIGNED ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-1807
SELECT CAST ( 52 AS INTEGER ) AS col1
----
52

query I rowsort
SELECT + ( - ( - + 98 ) )
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1809
SELECT ALL ( + 43 ) / - + 36 - 54 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1809
SELECT ALL ( + 43 ) / - + 36 - 54 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1810
SELECT CAST( 83 AS SIGNED ) col2
----
83

skipif mysql # not compatible
query I rowsort label-1810
SELECT CAST ( 83 AS INTEGER ) col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1811
SELECT - 42 * COUNT( * ) col0
----
-42

skipif mysql # not compatible
query I rowsort label-1811
SELECT - 42 * COUNT ( * ) col0
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-1812
SELECT 58, - COUNT( * ) AS col0
----
58
-1

skipif mysql # not compatible
query II rowsort label-1812
SELECT 58, - COUNT ( * ) AS col0
----
58
-1

query I rowsort
SELECT - ( - 69 )
----
69

query I rowsort
SELECT - - 75 AS col0
----
75

query I rowsort
SELECT 80 * 73 AS col2
----
5840

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1816
SELECT 96 DIV 58 + - COUNT( * ) * ( + 84 ) col0
----
-83

skipif mysql # not compatible
query I rowsort label-1816
SELECT 96 / 58 + - COUNT ( * ) * ( + 84 ) col0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-1817
SELECT ALL COUNT( * ) + 27 AS col0
----
28

skipif mysql # not compatible
query I rowsort label-1817
SELECT ALL COUNT ( * ) + 27 AS col0
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1818
SELECT ALL - COUNT( * ) DIV - ( - 57 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-1818
SELECT ALL - COUNT ( * ) / - ( - 57 ) col1
----
0

query I rowsort
SELECT DISTINCT - 55 * - 14
----
770

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1820
SELECT + COUNT( * ) DIV - COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1820
SELECT + COUNT ( * ) / - COUNT ( * ) AS col1
----
-1

query I rowsort
SELECT - 79 - + + 20
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1822
SELECT ALL 46 + + COUNT( * ) + - + 74
----
-27

skipif mysql # not compatible
query I rowsort label-1822
SELECT ALL 46 + + COUNT ( * ) + - + 74
----
-27

query II rowsort
SELECT ALL 80, + NULLIF ( + 43, - ( - 93 ) ) AS col2
----
80
43

query I rowsort
SELECT + 88 + 60 AS col0
----
148

query I rowsort
SELECT DISTINCT + ( 4 ) AS col2
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1826
SELECT CAST( + 81 AS SIGNED ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-1826
SELECT CAST ( + 81 AS INTEGER ) AS col1
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1827
SELECT - - ( - - MAX( DISTINCT - - 19 ) ) * + 95 * + 12 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1827
SELECT - - ( - - MAX ( DISTINCT - - 19 ) ) * + 95 * + 12 / CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + COALESCE ( + 22, - - 33 )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-1829
SELECT DISTINCT + SUM( - 86 ) AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-1829
SELECT DISTINCT + SUM ( - 86 ) AS col1
----
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1830
SELECT DISTINCT + CAST( 29 AS SIGNED ) col2
----
29

skipif mysql # not compatible
query I rowsort label-1830
SELECT DISTINCT + CAST ( 29 AS INTEGER ) col2
----
29

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1831
SELECT + MAX( 31 ) * - + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1831
SELECT + MAX ( 31 ) * - + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1832
SELECT SUM( DISTINCT + - 64 ) * - COUNT( * ) * - + 53 + + + 98 * + COUNT( * )
----
-3294

skipif mysql # not compatible
query I rowsort label-1832
SELECT SUM ( DISTINCT + - 64 ) * - COUNT ( * ) * - + 53 + + + 98 * + COUNT ( * )
----
-3294

onlyif mysql # aggregate syntax: 
query I rowsort label-1833
SELECT - MAX( ALL 30 ) * - - 21
----
-630

skipif mysql # not compatible
query I rowsort label-1833
SELECT - MAX ( ALL 30 ) * - - 21
----
-630

onlyif mysql # aggregate syntax: 
query I rowsort label-1834
SELECT MAX( DISTINCT 15 ) col2
----
15

skipif mysql # not compatible
query I rowsort label-1834
SELECT MAX ( DISTINCT 15 ) col2
----
15

query I rowsort
SELECT ALL 83 + + + 55 AS col0
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-1836
SELECT 79 - - COUNT( * )
----
80

skipif mysql # not compatible
query I rowsort label-1836
SELECT 79 - - COUNT ( * )
----
80

onlyif mysql # aggregate syntax: 
query II rowsort label-1837
SELECT DISTINCT 39, + COUNT( * ) AS col2
----
39
1

skipif mysql # not compatible
query II rowsort label-1837
SELECT DISTINCT 39, + COUNT ( * ) AS col2
----
39
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1838
SELECT ALL - MAX( - + 52 )
----
52

skipif mysql # not compatible
query I rowsort label-1838
SELECT ALL - MAX ( - + 52 )
----
52

query I rowsort
SELECT 82 * - 69
----
-5658

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1840
SELECT - 93 DIV + 33 + + + COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1840
SELECT - 93 / + 33 + + + COUNT ( * ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1841
SELECT COUNT( * ) + + - 85 AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-1841
SELECT COUNT ( * ) + + - 85 AS col1
----
-84

query II rowsort
SELECT 69 * - 51 AS col1, - 95 AS col2
----
-3519
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-1843
SELECT ALL + ( - 16 ) * + COUNT( * ) AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-1843
SELECT ALL + ( - 16 ) * + COUNT ( * ) AS col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-1844
SELECT - - ( MIN( - + 57 ) )
----
-57

skipif mysql # not compatible
query I rowsort label-1844
SELECT - - ( MIN ( - + 57 ) )
----
-57

query I rowsort
SELECT + 14 * - 20
----
-280

onlyif mysql # aggregate syntax: 
query I rowsort label-1846
SELECT ALL - COUNT( * ) * - - 93 * - 12 AS col2
----
1116

skipif mysql # not compatible
query I rowsort label-1846
SELECT ALL - COUNT ( * ) * - - 93 * - 12 AS col2
----
1116

query I rowsort
SELECT ( + 1 ) AS col2
----
1

query I rowsort
SELECT DISTINCT - 44 * + 25
----
-1100

query II rowsort
SELECT DISTINCT - 62 AS col1, 34 AS col1
----
-62
34

query I rowsort
SELECT ALL + 92 * + + 14
----
1288

onlyif mysql # aggregate syntax: 
query I rowsort label-1851
SELECT DISTINCT COUNT( + ( ( 92 ) ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1851
SELECT DISTINCT COUNT ( + ( ( 92 ) ) ) AS col1
----
1

query I rowsort
SELECT - 61 * - + 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1853
SELECT ALL + - 97 + + COUNT( * ) - + - COUNT( * ) * COUNT( * ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-1853
SELECT ALL + - 97 + + COUNT ( * ) - + - COUNT ( * ) * COUNT ( * ) AS col2
----
-95

query II rowsort
SELECT - 15 AS col0, 30 AS col0
----
-15
30

query I rowsort
SELECT ALL + 23 * + 68 AS col0
----
1564

onlyif mysql # aggregate syntax: 
query I rowsort label-1856
SELECT DISTINCT + COUNT( * ) + + - 94
----
-93

skipif mysql # not compatible
query I rowsort label-1856
SELECT DISTINCT + COUNT ( * ) + + - 94
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1857
SELECT 95 - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1857
SELECT 95 - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1858
SELECT 13 + - 13 * - + 83 - - COUNT( * ) AS col2
----
1093

skipif mysql # not compatible
query I rowsort label-1858
SELECT 13 + - 13 * - + 83 - - COUNT ( * ) AS col2
----
1093

onlyif mysql # aggregate syntax: 
query I rowsort label-1859
SELECT ALL + COUNT( ALL - + 40 )
----
1

skipif mysql # not compatible
query I rowsort label-1859
SELECT ALL + COUNT ( ALL - + 40 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1860
SELECT - COUNT( * ) + MAX( DISTINCT 6 ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-1860
SELECT - COUNT ( * ) + MAX ( DISTINCT 6 ) AS col2
----
5

query I rowsort
SELECT ALL + 57 * COALESCE ( + - 70, - - 46 ) AS col2
----
-3990

onlyif mysql # aggregate syntax: 
query I rowsort label-1862
SELECT ALL + - COUNT( * ) * ( - - 94 ) AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-1862
SELECT ALL + - COUNT ( * ) * ( - - 94 ) AS col2
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-1863
SELECT DISTINCT + COUNT( DISTINCT 76 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1863
SELECT DISTINCT + COUNT ( DISTINCT 76 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1864
SELECT ALL - 23 * - - COUNT( * ) col0
----
-23

skipif mysql # not compatible
query I rowsort label-1864
SELECT ALL - 23 * - - COUNT ( * ) col0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-1865
SELECT DISTINCT - MIN( DISTINCT + 27 )
----
-27

skipif mysql # not compatible
query I rowsort label-1865
SELECT DISTINCT - MIN ( DISTINCT + 27 )
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1866
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1866
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + + - COUNT ( * )
----
NULL

query I rowsort
SELECT - - 26 + - 8 AS col0
----
18

query I rowsort
SELECT ALL - 78 * 37 + + - 74
----
-2960

query I rowsort
SELECT - + 97 + 5 AS col0
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1870
SELECT DISTINCT 65 + + + CAST( 17 AS SIGNED ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-1870
SELECT DISTINCT 65 + + + CAST ( 17 AS INTEGER ) AS col2
----
82

query II rowsort
SELECT ALL 48, 21 AS col1
----
48
21

query I rowsort
SELECT DISTINCT 6 col0
----
6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1873
SELECT 39 + + + CAST( NULL AS DECIMAL ) - + 1 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1873
SELECT 39 + + + CAST ( NULL AS REAL ) - + 1 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1874
SELECT ALL - 61 + + COUNT( * ) col0
----
-60

skipif mysql # not compatible
query I rowsort label-1874
SELECT ALL - 61 + + COUNT ( * ) col0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-1875
SELECT + + COUNT( * ) - + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-1875
SELECT + + COUNT ( * ) - + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1876
SELECT DISTINCT + COUNT( * ) AS col2, + 86 col2
----
1
86

skipif mysql # not compatible
query II rowsort label-1876
SELECT DISTINCT + COUNT ( * ) AS col2, + 86 col2
----
1
86

query I rowsort
SELECT ALL + 29 + - 94 col1
----
-65

query I rowsort
SELECT ALL + 40 - 60
----
-20

query I rowsort
SELECT - - 59 + 27 col0
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1880
SELECT ALL 41 DIV - + COUNT( * ) col2
----
-41

skipif mysql # not compatible
query I rowsort label-1880
SELECT ALL 41 / - + COUNT ( * ) col2
----
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-1881
SELECT COUNT( * ) * - + 83 * - + COUNT( * ), 73 AS col0
----
83
73

skipif mysql # not compatible
query II rowsort label-1881
SELECT COUNT ( * ) * - + 83 * - + COUNT ( * ), 73 AS col0
----
83
73

query I rowsort
SELECT 64 - 9
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1883
SELECT ALL MIN( - 31 ) AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-1883
SELECT ALL MIN ( - 31 ) AS col0
----
-31

query I rowsort
SELECT 68 * 97
----
6596

onlyif mysql # DIV for integer division: 
query I rowsort label-1885
SELECT ALL + 8 DIV + 75
----
0

skipif mysql # not compatible
query I rowsort label-1885
SELECT ALL + 8 / + 75
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1886
SELECT - 70 + + CAST( - + COUNT( * ) AS SIGNED ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-1886
SELECT - 70 + + CAST ( - + COUNT ( * ) AS INTEGER ) AS col0
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-1887
SELECT - 5 DIV + + 57 - - 19
----
19

skipif mysql # not compatible
query I rowsort label-1887
SELECT - 5 / + + 57 - - 19
----
19

query II rowsort
SELECT + 48 AS col2, 19 AS col1
----
48
19

query I rowsort
SELECT - + 99 + 89
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-1890
SELECT DISTINCT + MAX( 24 ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-1890
SELECT DISTINCT + MAX ( 24 ) AS col2
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1891
SELECT DISTINCT 6 * + CAST( - 34 AS SIGNED ) AS col0
----
-204

skipif mysql # not compatible
query I rowsort label-1891
SELECT DISTINCT 6 * + CAST ( - 34 AS INTEGER ) AS col0
----
-204

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1892
SELECT ALL CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1892
SELECT ALL CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1893
SELECT + 70 AS col1, CAST( NULL AS SIGNED ) col2
----
70
NULL

skipif mysql # not compatible
query II rowsort label-1893
SELECT + 70 AS col1, CAST ( NULL AS INTEGER ) col2
----
70
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1894
SELECT DISTINCT - COUNT( * ) / + ( + - CAST( NULL AS SIGNED ) ) + + 56 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1894
SELECT DISTINCT - COUNT ( * ) / + ( + - CAST ( NULL AS INTEGER ) ) + + 56 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1895
SELECT COALESCE ( + - 44, - COUNT( * ) ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-1895
SELECT COALESCE ( + - 44, - COUNT ( * ) ) AS col2
----
-44

query I rowsort
SELECT + NULLIF ( 94, + ( 45 ) ) col2
----
94

query I rowsort
SELECT + 30 + + 8 + + 21 AS col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1898
SELECT + - MAX( ALL - - 66 ) AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-1898
SELECT + - MAX ( ALL - - 66 ) AS col2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-1899
SELECT - SUM( 36 ) * + + 25
----
-900

skipif mysql # not compatible
query I rowsort label-1899
SELECT - SUM ( 36 ) * + + 25
----
-900

onlyif mysql # aggregate syntax: 
query I rowsort label-1900
SELECT + MIN( - + 84 ) * + 24 * + - 48 AS col2
----
96768

skipif mysql # not compatible
query I rowsort label-1900
SELECT + MIN ( - + 84 ) * + 24 * + - 48 AS col2
----
96768

onlyif mysql # DIV for integer division: 
query I rowsort label-1901
SELECT ALL 12 DIV + + 24 * - 73 + - 51
----
-51

skipif mysql # not compatible
query I rowsort label-1901
SELECT ALL 12 / + + 24 * - 73 + - 51
----
-51

query I rowsort
SELECT + + 87 AS col1
----
87

query II rowsort
SELECT DISTINCT + 61 AS col0, - 78
----
61
-78

query I rowsort
SELECT DISTINCT + - 29 col1
----
-29

query I rowsort
SELECT ALL + + 68 col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1906
SELECT DISTINCT + 18 * - COUNT( * ) AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-1906
SELECT DISTINCT + 18 * - COUNT ( * ) AS col0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-1907
SELECT + MIN( 60 )
----
60

skipif mysql # not compatible
query I rowsort label-1907
SELECT + MIN ( 60 )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1908
SELECT MIN( - 43 ) + + 74 AS col0
----
31

skipif mysql # not compatible
query I rowsort label-1908
SELECT MIN ( - 43 ) + + 74 AS col0
----
31

query I rowsort
SELECT DISTINCT + 9 + - 47 AS col1
----
-38

query I rowsort
SELECT 2 + + 4
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-1911
SELECT 10 DIV - - 83 + + 81 AS col2
----
81

skipif mysql # not compatible
query I rowsort label-1911
SELECT 10 / - - 83 + + 81 AS col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1912
SELECT DISTINCT - + COUNT( DISTINCT + 34 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-1912
SELECT DISTINCT - + COUNT ( DISTINCT + 34 ) col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1913
SELECT DISTINCT - - CAST( - 77 AS SIGNED )
----
-77

skipif mysql # not compatible
query I rowsort label-1913
SELECT DISTINCT - - CAST ( - 77 AS INTEGER )
----
-77

query I rowsort
SELECT ALL 75 + - 36 AS col0
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1915
SELECT + MIN( DISTINCT + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1915
SELECT + MIN ( DISTINCT + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1916
SELECT + + CAST( 4 AS SIGNED )
----
4

skipif mysql # not compatible
query I rowsort label-1916
SELECT + + CAST ( 4 AS INTEGER )
----
4

query I rowsort
SELECT DISTINCT + - 34 col2
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-1918
SELECT COUNT( ALL - 96 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1918
SELECT COUNT ( ALL - 96 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1919
SELECT DISTINCT SUM( DISTINCT + 38 )
----
38

skipif mysql # not compatible
query I rowsort label-1919
SELECT DISTINCT SUM ( DISTINCT + 38 )
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1920
SELECT DISTINCT - COUNT( * ) DIV - 56
----
0

skipif mysql # not compatible
query I rowsort label-1920
SELECT DISTINCT - COUNT ( * ) / - 56
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1921
SELECT ALL - 24 DIV - + COUNT( * ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-1921
SELECT ALL - 24 / - + COUNT ( * ) AS col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-1922
SELECT ALL + MIN( DISTINCT + 3 ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-1922
SELECT ALL + MIN ( DISTINCT + 3 ) AS col0
----
3

query I rowsort
SELECT - 2 * 26
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1924
SELECT + COUNT( + - 32 ) DIV COUNT( * ) * - 18
----
-18

skipif mysql # not compatible
query I rowsort label-1924
SELECT + COUNT ( + - 32 ) / COUNT ( * ) * - 18
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-1925
SELECT - MAX( ALL + 77 )
----
-77

skipif mysql # not compatible
query I rowsort label-1925
SELECT - MAX ( ALL + 77 )
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-1926
SELECT DISTINCT + + 13 - COUNT( * ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-1926
SELECT DISTINCT + + 13 - COUNT ( * ) AS col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-1927
SELECT + SUM( ALL + + 11 ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-1927
SELECT + SUM ( ALL + + 11 ) AS col1
----
11

query I rowsort
SELECT DISTINCT - ( 20 )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-1929
SELECT ALL - COUNT( * ) + - - 56 + COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-1929
SELECT ALL - COUNT ( * ) + - - 56 + COUNT ( * )
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1930
SELECT - 85 * - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1930
SELECT - 85 * - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1931
SELECT ALL + 14 DIV + + 70 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1931
SELECT ALL + 14 / + + 70 AS col0
----
0

query I rowsort
SELECT 27 + + 17
----
44

query I rowsort
SELECT ALL - 79 + + ( 10 ) AS col1
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-1934
SELECT DISTINCT 10, - COUNT( * ) AS col1
----
10
-1

skipif mysql # not compatible
query II rowsort label-1934
SELECT DISTINCT 10, - COUNT ( * ) AS col1
----
10
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1935
SELECT + NULLIF ( + COUNT( * ), - 50 )
----
1

skipif mysql # not compatible
query I rowsort label-1935
SELECT + NULLIF ( + COUNT ( * ), - 50 )
----
1

query I rowsort
SELECT - 18 + - 45 AS col1
----
-63

query I rowsort
SELECT ALL + ( + + 29 )
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1938
SELECT CAST( + 1 AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1938
SELECT CAST ( + 1 AS INTEGER ) AS col0
----
1

query I rowsort
SELECT + ( 39 ) col0
----
39

query I rowsort
SELECT ALL - - ( + 66 )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1941
SELECT ALL MAX( ALL - 3 ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-1941
SELECT ALL MAX ( ALL - 3 ) AS col2
----
-3

query I rowsort
SELECT ALL ( + 34 ) * 74
----
2516

query I rowsort
SELECT ALL + - 29 + - - 51 AS col0
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1944
SELECT ALL - 56 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1944
SELECT ALL - 56 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 21 * 22 AS col2
----
462

query I rowsort
SELECT ALL - 11 - 52
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1947
SELECT CAST( NULL AS SIGNED ) + + 57 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1947
SELECT CAST ( NULL AS INTEGER ) + + 57 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1948
SELECT ALL - COUNT( DISTINCT CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-1948
SELECT ALL - COUNT ( DISTINCT CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1949
SELECT - MIN( DISTINCT 86 ) * + - COUNT( * )
----
86

skipif mysql # not compatible
query I rowsort label-1949
SELECT - MIN ( DISTINCT 86 ) * + - COUNT ( * )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-1950
SELECT DISTINCT COUNT( * ) * - 98 * + + COUNT( * )
----
-98

skipif mysql # not compatible
query I rowsort label-1950
SELECT DISTINCT COUNT ( * ) * - 98 * + + COUNT ( * )
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-1951
SELECT - COUNT( * ) * + 36 AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-1951
SELECT - COUNT ( * ) * + 36 AS col2
----
-36

query I rowsort
SELECT DISTINCT + ( - - 21 ) AS col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-1953
SELECT - SUM( - + 88 ) * - COUNT( * ) AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-1953
SELECT - SUM ( - + 88 ) * - COUNT ( * ) AS col1
----
-88

query I rowsort
SELECT - 53 - 17
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1955
SELECT DISTINCT 96 + CAST( 90 AS SIGNED )
----
186

skipif mysql # not compatible
query I rowsort label-1955
SELECT DISTINCT 96 + CAST ( 90 AS INTEGER )
----
186

query I rowsort
SELECT - ( + - 33 ) AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-1957
SELECT - + COUNT( * ) + - 88 col1
----
-89

skipif mysql # not compatible
query I rowsort label-1957
SELECT - + COUNT ( * ) + - 88 col1
----
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-1958
SELECT - 37 + - COUNT( * ) col1, - 57 - - COUNT( - 25 ) * + COUNT( * )
----
-38
-56

skipif mysql # not compatible
query II rowsort label-1958
SELECT - 37 + - COUNT ( * ) col1, - 57 - - COUNT ( - 25 ) * + COUNT ( * )
----
-38
-56

query I rowsort
SELECT 49 + - 41 AS col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1960
SELECT 27 + + + 90 * 82 * COUNT( * ) * + - 78
----
-575613

skipif mysql # not compatible
query I rowsort label-1960
SELECT 27 + + + 90 * 82 * COUNT ( * ) * + - 78
----
-575613

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1961
SELECT ALL + COUNT( 48 ) * + + ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1961
SELECT ALL + COUNT ( 48 ) * + + ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1962
SELECT 29 + + COUNT( * ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-1962
SELECT 29 + + COUNT ( * ) AS col0
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-1963
SELECT 81 DIV - + 7
----
-11

skipif mysql # not compatible
query I rowsort label-1963
SELECT 81 / - + 7
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-1964
SELECT ALL + 30 DIV - 74 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1964
SELECT ALL + 30 / - 74 AS col0
----
0

query I rowsort
SELECT DISTINCT - + 14 AS col1
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1966
SELECT DISTINCT - - ( + CAST( NULL AS SIGNED ) ) * + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1966
SELECT DISTINCT - - ( + CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1967
SELECT + 71 DIV + 93
----
0

skipif mysql # not compatible
query I rowsort label-1967
SELECT + 71 / + 93
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1968
SELECT 55 - + - COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-1968
SELECT 55 - + - COUNT ( * )
----
56

query I rowsort
SELECT 64 + 25
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-1970
SELECT ALL - - SUM( DISTINCT 63 ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-1970
SELECT ALL - - SUM ( DISTINCT 63 ) AS col1
----
63

query I rowsort
SELECT + 80 * 28 + - 0 AS col2
----
2240

onlyif mysql # aggregate syntax: 
query I rowsort label-1972
SELECT ALL NULLIF ( COUNT( * ), + 97 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1972
SELECT ALL NULLIF ( COUNT ( * ), + 97 ) AS col1
----
1

query I rowsort
SELECT - 83 * ( 16 )
----
-1328

onlyif mysql # DIV for integer division: 
query I rowsort label-1974
SELECT - 11 DIV - - 23
----
0

skipif mysql # not compatible
query I rowsort label-1974
SELECT - 11 / - - 23
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1975
SELECT + ( - - 28 ) * - ( - 62 ) * - COUNT( * )
----
-1736

skipif mysql # not compatible
query I rowsort label-1975
SELECT + ( - - 28 ) * - ( - 62 ) * - COUNT ( * )
----
-1736

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1976
SELECT + COUNT( * ) DIV 82
----
0

skipif mysql # not compatible
query I rowsort label-1976
SELECT + COUNT ( * ) / 82
----
0

query I rowsort
SELECT + 88 - 49
----
39

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1978
SELECT ALL ( ( - CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1978
SELECT ALL ( ( - CAST ( CAST ( NULL AS REAL ) AS INTEGER ) ) )
----
NULL

query I rowsort
SELECT + - 38 AS col0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-1980
SELECT + MIN( - 36 )
----
-36

skipif mysql # not compatible
query I rowsort label-1980
SELECT + MIN ( - 36 )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-1981
SELECT ALL + COUNT( * ) + + 29
----
30

skipif mysql # not compatible
query I rowsort label-1981
SELECT ALL + COUNT ( * ) + + 29
----
30

query I rowsort
SELECT DISTINCT 75 * - + 96
----
-7200

onlyif mysql # aggregate syntax: 
query I rowsort label-1983
SELECT DISTINCT + MAX( + - 87 ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-1983
SELECT DISTINCT + MAX ( + - 87 ) AS col2
----
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1984
SELECT COUNT( * ) DIV - 77
----
0

skipif mysql # not compatible
query I rowsort label-1984
SELECT COUNT ( * ) / - 77
----
0

query I rowsort
SELECT 80 + + 91 AS col2
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-1986
SELECT ALL + MAX( + 66 ) * + 12 AS col2
----
792

skipif mysql # not compatible
query I rowsort label-1986
SELECT ALL + MAX ( + 66 ) * + 12 AS col2
----
792

query I rowsort
SELECT + 48 * 33
----
1584

onlyif mysql # aggregate syntax: 
query I rowsort label-1988
SELECT SUM( - 53 )
----
-53

skipif mysql # not compatible
query I rowsort label-1988
SELECT SUM ( - 53 )
----
-53

query I rowsort
SELECT - - ( - 41 )
----
-41

query I rowsort
SELECT DISTINCT ( + 31 )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1991
SELECT ALL - MIN( 60 ) * + COUNT( * ) AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-1991
SELECT ALL - MIN ( 60 ) * + COUNT ( * ) AS col2
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-1992
SELECT + COUNT( - + 8 ) * - - COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1992
SELECT + COUNT ( - + 8 ) * - - COUNT ( * ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1993
SELECT ALL + MIN( DISTINCT + + 6 ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-1993
SELECT ALL + MIN ( DISTINCT + + 6 ) AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1994
SELECT DISTINCT - COUNT( * ) - + COUNT( * ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-1994
SELECT DISTINCT - COUNT ( * ) - + COUNT ( * ) AS col2
----
-2

query I rowsort
SELECT 17 * - 27
----
-459

query I rowsort
SELECT DISTINCT + 37 + + 96
----
133

query I rowsort
SELECT 4 + 50
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-1998
SELECT DISTINCT + COUNT( * ) * - 44 * + 8
----
-352

skipif mysql # not compatible
query I rowsort label-1998
SELECT DISTINCT + COUNT ( * ) * - 44 * + 8
----
-352

onlyif mysql # aggregate syntax: 
query I rowsort label-1999
SELECT DISTINCT - + COUNT( ALL - 34 )
----
-1

skipif mysql # not compatible
query I rowsort label-1999
SELECT DISTINCT - + COUNT ( ALL - 34 )
----
-1

query I rowsort
SELECT 30 * 68
----
2040

onlyif mysql # aggregate syntax: 
query I rowsort label-2001
SELECT NULLIF ( - + COUNT( * ), 39 ) - + 31 AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-2001
SELECT NULLIF ( - + COUNT ( * ), 39 ) - + 31 AS col1
----
-32

query I rowsort
SELECT ALL 41 * ( + 60 ) AS col1
----
2460

onlyif mysql # aggregate syntax: 
query I rowsort label-2003
SELECT ALL - MAX( - 66 )
----
66

skipif mysql # not compatible
query I rowsort label-2003
SELECT ALL - MAX ( - 66 )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2004
SELECT SUM( ALL + ( - + ( - 3 ) ) )
----
3

skipif mysql # not compatible
query I rowsort label-2004
SELECT SUM ( ALL + ( - + ( - 3 ) ) )
----
3

query I rowsort
SELECT - NULLIF ( - 43, + 33 ) AS col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-2006
SELECT ALL - COUNT( * ) * ( + COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2006
SELECT ALL - COUNT ( * ) * ( + COUNT ( * ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2007
SELECT ALL MIN( ALL + 90 )
----
90

skipif mysql # not compatible
query I rowsort label-2007
SELECT ALL MIN ( ALL + 90 )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2008
SELECT ALL COUNT( * ) + - 83
----
-82

skipif mysql # not compatible
query I rowsort label-2008
SELECT ALL COUNT ( * ) + - 83
----
-82

query I rowsort
SELECT ALL + - 4 AS col1
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2010
SELECT ALL - ( + CAST( NULL AS SIGNED ) ) * - + 61 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2010
SELECT ALL - ( + CAST ( NULL AS INTEGER ) ) * - + 61 AS col0
----
NULL

query I rowsort
SELECT - + 56 * + + 71
----
-3976

query I rowsort
SELECT ALL 88 * + + 5 AS col0
----
440

onlyif mysql # aggregate syntax: 
query I rowsort label-2013
SELECT + 96 * - COUNT( * )
----
-96

skipif mysql # not compatible
query I rowsort label-2013
SELECT + 96 * - COUNT ( * )
----
-96

query II rowsort
SELECT + + 46 AS col0, 75
----
46
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2015
SELECT ALL COUNT( * ) * - COUNT( * ) + - COUNT( * ) + COUNT( * ) * - MAX( DISTINCT + 88 )
----
-90

skipif mysql # not compatible
query I rowsort label-2015
SELECT ALL COUNT ( * ) * - COUNT ( * ) + - COUNT ( * ) + COUNT ( * ) * - MAX ( DISTINCT + 88 )
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2016
SELECT ALL + 63 + CAST( NULL AS SIGNED ) + + - ( - MAX( 32 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2016
SELECT ALL + 63 + CAST ( NULL AS INTEGER ) + + - ( - MAX ( 32 ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2017
SELECT ALL - COUNT( * ) - + COUNT( * ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2017
SELECT ALL - COUNT ( * ) - + COUNT ( * ) * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - ( - 36 )
----
36

query I rowsort
SELECT - 3 - - ( + + 68 ) AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2020
SELECT + MAX( - 55 )
----
-55

skipif mysql # not compatible
query I rowsort label-2020
SELECT + MAX ( - 55 )
----
-55

query I rowsort
SELECT DISTINCT - 32 col0
----
-32

query I rowsort
SELECT + 76 - - 95
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-2023
SELECT ALL + 61 * SUM( + + 54 )
----
3294

skipif mysql # not compatible
query I rowsort label-2023
SELECT ALL + 61 * SUM ( + + 54 )
----
3294

query I rowsort
SELECT ( - 44 ) col1
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-2025
SELECT DISTINCT CASE 97 WHEN 64 + - COUNT( * ) THEN + ( COUNT( * ) ) END * 11 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2025
SELECT DISTINCT CASE 97 WHEN 64 + - COUNT ( * ) THEN + ( COUNT ( * ) ) END * 11 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2026
SELECT DISTINCT COUNT( ALL + ( - 54 ) )
----
1

skipif mysql # not compatible
query I rowsort label-2026
SELECT DISTINCT COUNT ( ALL + ( - 54 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2027
SELECT DISTINCT COUNT( + 40 )
----
1

skipif mysql # not compatible
query I rowsort label-2027
SELECT DISTINCT COUNT ( + 40 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2028
SELECT ALL - COUNT( * ) + 30 AS col1
----
29

skipif mysql # not compatible
query I rowsort label-2028
SELECT ALL - COUNT ( * ) + 30 AS col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-2029
SELECT DISTINCT MIN( ALL 52 ) + 5
----
57

skipif mysql # not compatible
query I rowsort label-2029
SELECT DISTINCT MIN ( ALL 52 ) + 5
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2030
SELECT DISTINCT - + 87 DIV + COUNT( * )
----
-87

skipif mysql # not compatible
query I rowsort label-2030
SELECT DISTINCT - + 87 / + COUNT ( * )
----
-87

query I rowsort
SELECT - 14 + - 36
----
-50

query I rowsort
SELECT ALL + + 20 AS col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-2033
SELECT ALL - 2 - - COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2033
SELECT ALL - 2 - - COUNT ( * ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2034
SELECT DISTINCT - ( COUNT( ALL 17 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-2034
SELECT DISTINCT - ( COUNT ( ALL 17 ) )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2035
SELECT 27 * - ( CAST( - 43 AS SIGNED ) )
----
1161

skipif mysql # not compatible
query I rowsort label-2035
SELECT 27 * - ( CAST ( - 43 AS INTEGER ) )
----
1161

onlyif mysql # aggregate syntax: 
query I rowsort label-2036
SELECT COUNT( * ) - COUNT( * ) + 67 AS col1
----
67

skipif mysql # not compatible
query I rowsort label-2036
SELECT COUNT ( * ) - COUNT ( * ) + 67 AS col1
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2037
SELECT ALL - COUNT( + ( + CAST( NULL AS SIGNED ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-2037
SELECT ALL - COUNT ( + ( + CAST ( NULL AS INTEGER ) ) )
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2038
SELECT - ( + - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2038
SELECT - ( + - CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2039
SELECT ALL + 38 + + - COUNT( * ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-2039
SELECT ALL + 38 + + - COUNT ( * ) AS col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2040
SELECT ALL - 62 * + COUNT( DISTINCT - 3 )
----
-62

skipif mysql # not compatible
query I rowsort label-2040
SELECT ALL - 62 * + COUNT ( DISTINCT - 3 )
----
-62

query I rowsort
SELECT 92 + 7 col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2042
SELECT 99 * - - COUNT( * ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-2042
SELECT 99 * - - COUNT ( * ) AS col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2043
SELECT ALL - COUNT( * ) * + 3 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-2043
SELECT ALL - COUNT ( * ) * + 3 AS col2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2044
SELECT ALL - CAST( NULL AS SIGNED ) * - - 29 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2044
SELECT ALL - CAST ( NULL AS INTEGER ) * - - 29 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2045
SELECT ALL - CAST( - 89 AS SIGNED )
----
89

skipif mysql # not compatible
query I rowsort label-2045
SELECT ALL - CAST ( - 89 AS INTEGER )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2046
SELECT COUNT( * ) + - COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2046
SELECT COUNT ( * ) + - COUNT ( * ) AS col1
----
0

query I rowsort
SELECT ALL + 1 - - 5 * + + 91 - - 87
----
543

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2048
SELECT + 40 DIV - COUNT( * )
----
-40

skipif mysql # not compatible
query I rowsort label-2048
SELECT + 40 / - COUNT ( * )
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-2049
SELECT ALL - NULLIF ( 2, COUNT( * ) ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-2049
SELECT ALL - NULLIF ( 2, COUNT ( * ) ) AS col0
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2050
SELECT DISTINCT + COUNT( * ) + - 96 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2050
SELECT DISTINCT + COUNT ( * ) + - 96 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ( + 46 ) AS col0
----
46

query I rowsort
SELECT DISTINCT - ( + + 68 ) col2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-2053
SELECT ALL + SUM( ALL + 77 ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-2053
SELECT ALL + SUM ( ALL + 77 ) AS col0
----
77

query I rowsort
SELECT DISTINCT + - 81 * - + 73 AS col2
----
5913

query I rowsort
SELECT ALL - 30 col2
----
-30

query I rowsort
SELECT + ( 23 ) - 67
----
-44

query I rowsort
SELECT DISTINCT 89 col1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2058
SELECT ALL COUNT( * ) * + + 6 - - COUNT( * ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-2058
SELECT ALL COUNT ( * ) * + + 6 - - COUNT ( * ) AS col0
----
7

query I rowsort
SELECT ALL + + 30 AS col1
----
30

query I rowsort
SELECT DISTINCT + - 70 AS col0
----
-70

query I rowsort
SELECT ( 59 ) AS col2
----
59

query I rowsort
SELECT ALL + + 77 AS col0
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2063
SELECT + 5 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2063
SELECT + 5 * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2064
SELECT CAST( 33 AS SIGNED )
----
33

skipif mysql # not compatible
query I rowsort label-2064
SELECT CAST ( 33 AS INTEGER )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2065
SELECT DISTINCT + COUNT( - 78 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2065
SELECT DISTINCT + COUNT ( - 78 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2066
SELECT ALL + - 8 * - CAST( - COUNT( * ) AS SIGNED ) col0
----
-8

skipif mysql # not compatible
query I rowsort label-2066
SELECT ALL + - 8 * - CAST ( - COUNT ( * ) AS INTEGER ) col0
----
-8

query I rowsort
SELECT + + 93 col2
----
93

query I rowsort
SELECT ALL + + ( + 71 )
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2069
SELECT - CAST( + + AVG ( - 38 ) AS SIGNED )
----
38

skipif mysql # not compatible
query I rowsort label-2069
SELECT - CAST ( + + AVG ( - 38 ) AS INTEGER )
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2070
SELECT CAST( + - 76 AS SIGNED )
----
-76

skipif mysql # not compatible
query I rowsort label-2070
SELECT CAST ( + - 76 AS INTEGER )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-2071
SELECT 68 + 14 + - - COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-2071
SELECT 68 + 14 + - - COUNT ( * )
----
83

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2072
SELECT ALL COUNT( DISTINCT + 54 ) + - + 21 AS col1, + CAST( NULL AS DECIMAL ) col0
----
-20
NULL

skipif mysql # not compatible
query II rowsort label-2072
SELECT ALL COUNT ( DISTINCT + 54 ) + - + 21 AS col1, + CAST ( NULL AS REAL ) col0
----
-20
NULL

query I rowsort
SELECT - ( - 57 ) AS col0
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2074
SELECT SUM( + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2074
SELECT SUM ( + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT 43 * + 79
----
3397

query I rowsort
SELECT DISTINCT + 32 + - - 12 AS col2
----
44

query II rowsort
SELECT DISTINCT + 86, 98 * + 93 AS col2
----
86
9114

query I rowsort
SELECT + 59 * - 97 AS col1
----
-5723

query I rowsort
SELECT + ( - - 9 ) col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2080
SELECT - + 63 * + MAX( ALL + 75 ) AS col2
----
-4725

skipif mysql # not compatible
query I rowsort label-2080
SELECT - + 63 * + MAX ( ALL + 75 ) AS col2
----
-4725

onlyif mysql # aggregate syntax: 
query I rowsort label-2081
SELECT ALL COUNT( * ) * - NULLIF ( - COUNT( * ), - 70 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2081
SELECT ALL COUNT ( * ) * - NULLIF ( - COUNT ( * ), - 70 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2082
SELECT - - SUM( + 20 )
----
20

skipif mysql # not compatible
query I rowsort label-2082
SELECT - - SUM ( + 20 )
----
20

query I rowsort
SELECT - + ( - - 83 )
----
-83

query I rowsort
SELECT ALL - 46 + - - 54
----
8

query I rowsort
SELECT + 8 col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2086
SELECT COUNT( * ) * + + 7
----
7

skipif mysql # not compatible
query I rowsort label-2086
SELECT COUNT ( * ) * + + 7
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2087
SELECT DISTINCT + COUNT( * ) - + 29
----
-28

skipif mysql # not compatible
query I rowsort label-2087
SELECT DISTINCT + COUNT ( * ) - + 29
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-2088
SELECT 96 * + COUNT( * ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-2088
SELECT 96 * + COUNT ( * ) AS col1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2089
SELECT - SUM( + 49 ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-2089
SELECT - SUM ( + 49 ) AS col2
----
-49

query I rowsort
SELECT DISTINCT + 58 + + 48 AS col0
----
106

query I rowsort
SELECT ALL + 41 * 57
----
2337

onlyif mysql # aggregate syntax: 
query I rowsort label-2092
SELECT ALL + COUNT( + - 51 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2092
SELECT ALL + COUNT ( + - 51 ) AS col0
----
1

query I rowsort
SELECT ALL ( + 34 ) AS col2
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2094
SELECT DISTINCT CAST( - 25 AS SIGNED ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-2094
SELECT DISTINCT CAST ( - 25 AS INTEGER ) AS col0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-2095
SELECT + 76 * - + 38 * - COUNT( * ) * 3
----
8664

skipif mysql # not compatible
query I rowsort label-2095
SELECT + 76 * - + 38 * - COUNT ( * ) * 3
----
8664

onlyif mysql # aggregate syntax: 
query I rowsort label-2096
SELECT - SUM( ALL - 57 ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-2096
SELECT - SUM ( ALL - 57 ) AS col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2097
SELECT + 23 + + - ( - COUNT( * ) ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-2097
SELECT + 23 + + - ( - COUNT ( * ) ) AS col2
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-2098
SELECT ALL 51 DIV + 86
----
0

skipif mysql # not compatible
query I rowsort label-2098
SELECT ALL 51 / + 86
----
0

query I rowsort
SELECT + ( - 59 )
----
-59

query I rowsort
SELECT ( - + 61 )
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-2101
SELECT ALL + 67 - - COUNT( * )
----
68

skipif mysql # not compatible
query I rowsort label-2101
SELECT ALL + 67 - - COUNT ( * )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2102
SELECT 25 + + + COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-2102
SELECT 25 + + + COUNT ( * )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2103
SELECT + COUNT( * ) * - 69
----
-69

skipif mysql # not compatible
query I rowsort label-2103
SELECT + COUNT ( * ) * - 69
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2104
SELECT ALL - COALESCE ( + 26, - CAST( NULL AS SIGNED ) )
----
-26

skipif mysql # not compatible
query I rowsort label-2104
SELECT ALL - COALESCE ( + 26, - CAST ( NULL AS INTEGER ) )
----
-26

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2105
SELECT ALL + 52 * + - COUNT( DISTINCT + CAST( NULL AS DECIMAL ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2105
SELECT ALL + 52 * + - COUNT ( DISTINCT + CAST ( NULL AS REAL ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2106
SELECT ALL + - 40 AS col2, + 14 * - COUNT( * )
----
-40
-14

skipif mysql # not compatible
query II rowsort label-2106
SELECT ALL + - 40 AS col2, + 14 * - COUNT ( * )
----
-40
-14

onlyif mysql # DIV for integer division: 
query II rowsort label-2107
SELECT + - 91, + ( - - 23 ) DIV - 5 col2
----
-91
-4

skipif mysql # not compatible
query II rowsort label-2107
SELECT + - 91, + ( - - 23 ) / - 5 col2
----
-91
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-2108
SELECT ALL 82 * - COUNT( * )
----
-82

skipif mysql # not compatible
query I rowsort label-2108
SELECT ALL 82 * - COUNT ( * )
----
-82

query I rowsort
SELECT ALL 28 + - 67
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-2110
SELECT DISTINCT COUNT( * ) + 96 AS col1
----
97

skipif mysql # not compatible
query I rowsort label-2110
SELECT DISTINCT COUNT ( * ) + 96 AS col1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2111
SELECT SUM( 20 ) col2
----
20

skipif mysql # not compatible
query I rowsort label-2111
SELECT SUM ( 20 ) col2
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2112
SELECT DISTINCT CAST( NULL AS SIGNED ) * - AVG ( ALL 55 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2112
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - AVG ( ALL 55 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2113
SELECT DISTINCT 0 AS col1, + COUNT( * ) AS col1
----
0
1

skipif mysql # not compatible
query II rowsort label-2113
SELECT DISTINCT 0 AS col1, + COUNT ( * ) AS col1
----
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2114
SELECT ALL - CAST( + SUM( DISTINCT + 44 ) AS SIGNED ) + - 23 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2114
SELECT ALL - CAST ( + SUM ( DISTINCT + 44 ) AS INTEGER ) + - 23 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2115
SELECT ALL + COUNT( * ) + + + 6
----
7

skipif mysql # not compatible
query I rowsort label-2115
SELECT ALL + COUNT ( * ) + + + 6
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2116
SELECT + 12 * + - COUNT( * )
----
-12

skipif mysql # not compatible
query I rowsort label-2116
SELECT + 12 * + - COUNT ( * )
----
-12

query I rowsort
SELECT ALL 79 + + 76
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-2118
SELECT DISTINCT COUNT( * ) + + MIN( DISTINCT + 99 )
----
100

skipif mysql # not compatible
query I rowsort label-2118
SELECT DISTINCT COUNT ( * ) + + MIN ( DISTINCT + 99 )
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-2119
SELECT DISTINCT - SUM( + + 87 )
----
-87

skipif mysql # not compatible
query I rowsort label-2119
SELECT DISTINCT - SUM ( + + 87 )
----
-87

query I rowsort
SELECT - + 95 + + 60
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2121
SELECT DISTINCT CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2121
SELECT DISTINCT CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2122
SELECT DISTINCT + COUNT( * ) AS col2, COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-2122
SELECT DISTINCT + COUNT ( * ) AS col2, COUNT ( * )
----
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2123
SELECT - ( COUNT( * ) ) * + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2123
SELECT - ( COUNT ( * ) ) * + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2124
SELECT - SUM( + + 24 ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-2124
SELECT - SUM ( + + 24 ) AS col0
----
-24

query I rowsort
SELECT ALL + + 39 + - 42
----
-3

query I rowsort
SELECT ALL - 92 * + 12
----
-1104

onlyif mysql # aggregate syntax: 
query I rowsort label-2127
SELECT ALL - ( COUNT( * ) ) * 72
----
-72

skipif mysql # not compatible
query I rowsort label-2127
SELECT ALL - ( COUNT ( * ) ) * 72
----
-72

query I rowsort
SELECT 29 * 41 - + 1 col2
----
1188

query I rowsort
SELECT DISTINCT - 17 col0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2130
SELECT - 55 * + SUM( ALL - - 80 )
----
-4400

skipif mysql # not compatible
query I rowsort label-2130
SELECT - 55 * + SUM ( ALL - - 80 )
----
-4400

query I rowsort
SELECT DISTINCT ( - 20 )
----
-20

query I rowsort
SELECT DISTINCT - ( - 89 ) AS col2
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2133
SELECT ALL - CAST( 98 AS SIGNED ) + 78
----
-20

skipif mysql # not compatible
query I rowsort label-2133
SELECT ALL - CAST ( 98 AS INTEGER ) + 78
----
-20

query II rowsort
SELECT + 49 AS col1, 89 AS col0
----
49
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2135
SELECT ALL - COUNT( DISTINCT CAST( 15 AS SIGNED ) ), + 33 AS col2
----
-1
33

skipif mysql # not compatible
query II rowsort label-2135
SELECT ALL - COUNT ( DISTINCT CAST ( 15 AS INTEGER ) ), + 33 AS col2
----
-1
33

query I rowsort
SELECT - - 79 col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2137
SELECT ALL COUNT( * ) * + + ( COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2137
SELECT ALL COUNT ( * ) * + + ( COUNT ( * ) ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2138
SELECT ALL COUNT( * ) DIV + 38 DIV + + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-2138
SELECT ALL COUNT ( * ) / + 38 / + + COUNT ( * )
----
0

query I rowsort
SELECT DISTINCT + 17 col0
----
17

query I rowsort
SELECT ALL + + ( - 37 ) AS col0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-2141
SELECT - - COUNT( * ) + - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2141
SELECT - - COUNT ( * ) + - COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2142
SELECT ALL + COALESCE ( 36, 8 + + ( + 67 ) DIV + 78 * COUNT( * ) ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-2142
SELECT ALL + COALESCE ( 36, 8 + + ( + 67 ) / + 78 * COUNT ( * ) ) AS col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2143
SELECT ALL COUNT( * ) * 38
----
38

skipif mysql # not compatible
query I rowsort label-2143
SELECT ALL COUNT ( * ) * 38
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2144
SELECT ALL - 69 * COUNT( * ) AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-2144
SELECT ALL - 69 * COUNT ( * ) AS col1
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-2145
SELECT DISTINCT MIN( ALL + 7 ) col0
----
7

skipif mysql # not compatible
query I rowsort label-2145
SELECT DISTINCT MIN ( ALL + 7 ) col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2146
SELECT DISTINCT ( + + ( COUNT( * ) ) ) * - 78 * + + 81 AS col2
----
-6318

skipif mysql # not compatible
query I rowsort label-2146
SELECT DISTINCT ( + + ( COUNT ( * ) ) ) * - 78 * + + 81 AS col2
----
-6318

onlyif mysql # aggregate syntax: 
query I rowsort label-2147
SELECT SUM( ALL + - 90 ) * - 23 AS col1
----
2070

skipif mysql # not compatible
query I rowsort label-2147
SELECT SUM ( ALL + - 90 ) * - 23 AS col1
----
2070

query I rowsort
SELECT DISTINCT - 59 * + - 2 + - 97
----
21

query II rowsort
SELECT - 22 * + ( - 82 ), + 4 AS col2
----
1804
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2150
SELECT ALL MIN( + 3 ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-2150
SELECT ALL MIN ( + 3 ) AS col2
----
3

query I rowsort
SELECT - - 61 - + 61 AS col2
----
0

query I rowsort
SELECT ( + ( 65 ) ) col0
----
65

query I rowsort
SELECT DISTINCT 44 * - + 50 * 57 + 45 AS col2
----
-125355

onlyif mysql # aggregate syntax: 
query I rowsort label-2154
SELECT NULLIF ( 31, + + COUNT( * ) )
----
31

skipif mysql # not compatible
query I rowsort label-2154
SELECT NULLIF ( 31, + + COUNT ( * ) )
----
31

query I rowsort
SELECT ALL 21 * + - 94
----
-1974

onlyif mysql # aggregate syntax: 
query II rowsort label-2156
SELECT DISTINCT COUNT( * ) AS col1, + COUNT( * ) AS col2
----
1
1

skipif mysql # not compatible
query II rowsort label-2156
SELECT DISTINCT COUNT ( * ) AS col1, + COUNT ( * ) AS col2
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2157
SELECT ALL SUM( - 71 )
----
-71

skipif mysql # not compatible
query I rowsort label-2157
SELECT ALL SUM ( - 71 )
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-2158
SELECT DISTINCT - COUNT( ALL 38 )
----
-1

skipif mysql # not compatible
query I rowsort label-2158
SELECT DISTINCT - COUNT ( ALL 38 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2159
SELECT COUNT( * ) + + 53
----
54

skipif mysql # not compatible
query I rowsort label-2159
SELECT COUNT ( * ) + + 53
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2160
SELECT + COUNT( * ) - 86
----
-85

skipif mysql # not compatible
query I rowsort label-2160
SELECT + COUNT ( * ) - 86
----
-85

query I rowsort
SELECT ALL - 93 + - - 31 AS col2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-2162
SELECT ALL + 48 * COUNT( * ) + 40 AS col2
----
88

skipif mysql # not compatible
query I rowsort label-2162
SELECT ALL + 48 * COUNT ( * ) + 40 AS col2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2163
SELECT ALL SUM( DISTINCT - 17 ) col1
----
-17

skipif mysql # not compatible
query I rowsort label-2163
SELECT ALL SUM ( DISTINCT - 17 ) col1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2164
SELECT DISTINCT ( + + COUNT( DISTINCT - + 12 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2164
SELECT DISTINCT ( + + COUNT ( DISTINCT - + 12 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2165
SELECT - - 49 * + COUNT( * ) * + 43 * 2
----
4214

skipif mysql # not compatible
query I rowsort label-2165
SELECT - - 49 * + COUNT ( * ) * + 43 * 2
----
4214

onlyif mysql # aggregate syntax: 
query I rowsort label-2166
SELECT + MIN( DISTINCT + 83 ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-2166
SELECT + MIN ( DISTINCT + 83 ) AS col1
----
83

query I rowsort
SELECT ALL - COALESCE ( + 56, + - 86 + 62 )
----
-56

query I rowsort
SELECT - ( 56 ) AS col1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-2169
SELECT DISTINCT + COUNT( * ) + + MAX( DISTINCT - 29 ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-2169
SELECT DISTINCT + COUNT ( * ) + + MAX ( DISTINCT - 29 ) AS col0
----
-28

query I rowsort
SELECT DISTINCT - ( 77 )
----
-77

query II rowsort
SELECT 22 AS col1, - ( + - 72 ) AS col1
----
22
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2172
SELECT CAST( + - 98 AS SIGNED )
----
-98

skipif mysql # not compatible
query I rowsort label-2172
SELECT CAST ( + - 98 AS INTEGER )
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-2173
SELECT - 92 * - + COUNT( * ) col0
----
92

skipif mysql # not compatible
query I rowsort label-2173
SELECT - 92 * - + COUNT ( * ) col0
----
92

query I rowsort
SELECT CASE + 46 WHEN 0 THEN - + 7 END
----
NULL

query I rowsort
SELECT 1 * - ( - + 42 ) - 25
----
17

query I rowsort
SELECT ALL + ( - 60 )
----
-60

query I rowsort
SELECT - - 41 col0
----
41

query I rowsort
SELECT + - 26 * + - 59 AS col1
----
1534

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2179
SELECT + 51 + - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2179
SELECT + 51 + - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2180
SELECT CAST( + - 81 AS SIGNED ) col2
----
-81

skipif mysql # not compatible
query I rowsort label-2180
SELECT CAST ( + - 81 AS INTEGER ) col2
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2181
SELECT + ( + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2181
SELECT + ( + - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2182
SELECT - ( + CAST( NULL AS SIGNED ) ) + - + ( - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2182
SELECT - ( + CAST ( NULL AS INTEGER ) ) + - + ( - COUNT ( * ) )
----
NULL

query II rowsort
SELECT DISTINCT + 79 AS col1, + 49 AS col0
----
79
49

query I rowsort
SELECT ALL 96 + - 77
----
19

query I rowsort
SELECT ALL + 90 + 45 AS col0
----
135

onlyif mysql # aggregate syntax: 
query II rowsort label-2186
SELECT DISTINCT - ( - + COUNT( * ) ) * 72 AS col0, + 62
----
72
62

skipif mysql # not compatible
query II rowsort label-2186
SELECT DISTINCT - ( - + COUNT ( * ) ) * 72 AS col0, + 62
----
72
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2187
SELECT 73 + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2187
SELECT 73 + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2188
SELECT ALL 23 * COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-2188
SELECT ALL 23 * COUNT ( * )
----
23

query I rowsort
SELECT + - 16 col0
----
-16

query I rowsort
SELECT DISTINCT - + 8 AS col1
----
-8

query I rowsort
SELECT ( - ( + ( + 69 ) ) )
----
-69

query I rowsort
SELECT + 11 - - - 93 AS col2
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-2193
SELECT ALL COUNT( * ) * + COUNT( - 88 )
----
1

skipif mysql # not compatible
query I rowsort label-2193
SELECT ALL COUNT ( * ) * + COUNT ( - 88 )
----
1

query I rowsort
SELECT - ( - 53 ) col2
----
53

query I rowsort
SELECT ALL + ( - - 20 )
----
20

query I rowsort
SELECT + + 76 * 38
----
2888

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2197
SELECT ALL + - 63 / - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2197
SELECT ALL + - 63 / - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + 69 * 62
----
4278

onlyif mysql # aggregate syntax: 
query I rowsort label-2199
SELECT SUM( ALL + 8 ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-2199
SELECT SUM ( ALL + 8 ) AS col0
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2200
SELECT - ( + COUNT( - + CAST( NULL AS SIGNED ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-2200
SELECT - ( + COUNT ( - + CAST ( NULL AS INTEGER ) ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2201
SELECT DISTINCT - 61 * - + COUNT( * ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-2201
SELECT DISTINCT - 61 * - + COUNT ( * ) AS col0
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2202
SELECT CAST( + 67 AS SIGNED ) * 60 AS col0
----
4020

skipif mysql # not compatible
query I rowsort label-2202
SELECT CAST ( + 67 AS INTEGER ) * 60 AS col0
----
4020

onlyif mysql # aggregate syntax: 
query I rowsort label-2203
SELECT ALL - COUNT( DISTINCT 80 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2203
SELECT ALL - COUNT ( DISTINCT 80 ) AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2204
SELECT 76 + + 11 DIV - 2 AS col0
----
71

skipif mysql # not compatible
query I rowsort label-2204
SELECT 76 + + 11 / - 2 AS col0
----
71

query I rowsort
SELECT ALL ( - 21 ) AS col1
----
-21

query I rowsort
SELECT 46 + + 96 AS col1
----
142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2207
SELECT ALL CAST( COUNT( * ) AS SIGNED ) DIV - 51 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2207
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) / - 51 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2208
SELECT ALL + 59 + + 53 + - COUNT( * )
----
111

skipif mysql # not compatible
query I rowsort label-2208
SELECT ALL + 59 + + 53 + - COUNT ( * )
----
111

query I rowsort
SELECT + 46 * + + 7 AS col0
----
322

query I rowsort
SELECT - 8 * - 38 AS col0
----
304

query I rowsort
SELECT - 84 * - - 77 AS col2
----
-6468

onlyif mysql # aggregate syntax: 
query I rowsort label-2212
SELECT + + 16 * - COUNT( * ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-2212
SELECT + + 16 * - COUNT ( * ) AS col2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-2213
SELECT ALL + MAX( 50 ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-2213
SELECT ALL + MAX ( 50 ) AS col1
----
50

query I rowsort
SELECT - 86 * - 99
----
8514

query I rowsort
SELECT ALL + ( - 70 ) AS col0
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2216
SELECT ALL + 5 * + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2216
SELECT ALL + 5 * + CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2217
SELECT ALL SUM( ALL + 34 ) + + COUNT( * )
----
35

skipif mysql # not compatible
query I rowsort label-2217
SELECT ALL SUM ( ALL + 34 ) + + COUNT ( * )
----
35

query I rowsort
SELECT ALL 77 * + ( - - 72 ) AS col1
----
5544

query II rowsort
SELECT ALL + 49 col2, 41
----
49
41

query I rowsort
SELECT ALL 92 + 31
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-2221
SELECT ALL + SUM( DISTINCT - 14 ) AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-2221
SELECT ALL + SUM ( DISTINCT - 14 ) AS col1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-2222
SELECT MAX( ALL - 0 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2222
SELECT MAX ( ALL - 0 ) AS col2
----
0

query I rowsort
SELECT DISTINCT + + 3 AS col0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2224
SELECT ALL 78 - ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2224
SELECT ALL 78 - ( - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT 6 * + 22 AS col0
----
132

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2226
SELECT COUNT( * ) * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2226
SELECT COUNT ( * ) * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2227
SELECT DISTINCT ( - 58 ) DIV 69
----
0

skipif mysql # not compatible
query I rowsort label-2227
SELECT DISTINCT ( - 58 ) / 69
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2228
SELECT ALL CAST( NULL AS SIGNED ) * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2228
SELECT ALL CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT ALL + 13 * - 20 AS col2
----
-260

query I rowsort
SELECT ALL - 40 - 83
----
-123

query I rowsort
SELECT 16 * 83
----
1328

query I rowsort
SELECT - - ( 77 )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2233
SELECT DISTINCT - 20 * + COUNT( * ) AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-2233
SELECT DISTINCT - 20 * + COUNT ( * ) AS col2
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-2234
SELECT + MAX( - 82 )
----
-82

skipif mysql # not compatible
query I rowsort label-2234
SELECT + MAX ( - 82 )
----
-82

query I rowsort
SELECT DISTINCT + 98 + 98 col2
----
196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2236
SELECT DISTINCT MAX( + CAST( NULL AS SIGNED ) ) - - 86 * + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-2236
SELECT DISTINCT MAX ( + CAST ( NULL AS INTEGER ) ) - - 86 * + 50
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2237
SELECT DISTINCT - COUNT( * ) DIV + ( 47 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-2237
SELECT DISTINCT - COUNT ( * ) / + ( 47 ) col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2238
SELECT DISTINCT SUM( - - 32 )
----
32

skipif mysql # not compatible
query I rowsort label-2238
SELECT DISTINCT SUM ( - - 32 )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2239
SELECT - 72 + + - SUM( ALL 17 ) AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-2239
SELECT - 72 + + - SUM ( ALL 17 ) AS col2
----
-89

query I rowsort
SELECT ALL ( - - 66 )
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2241
SELECT ALL + CASE + CAST( NULL AS SIGNED ) WHEN 93 - 84 * - MIN( 39 ) THEN NULL ELSE 10 * 80 END
----
800

skipif mysql # not compatible
query I rowsort label-2241
SELECT ALL + CASE + CAST ( NULL AS INTEGER ) WHEN 93 - 84 * - MIN ( 39 ) THEN NULL ELSE 10 * 80 END
----
800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2242
SELECT ALL CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2242
SELECT ALL CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2243
SELECT MIN( 82 )
----
82

skipif mysql # not compatible
query I rowsort label-2243
SELECT MIN ( 82 )
----
82

query I rowsort
SELECT ALL 20 * + ( 96 )
----
1920

query I rowsort
SELECT - ( 35 ) AS col2
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-2246
SELECT DISTINCT + - COUNT( * ) AS col1, + COUNT( * ) AS col1
----
-1
1

skipif mysql # not compatible
query II rowsort label-2246
SELECT DISTINCT + - COUNT ( * ) AS col1, + COUNT ( * ) AS col1
----
-1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2247
SELECT DISTINCT + 36 * - + MIN( - - 44 ) AS col0
----
-1584

skipif mysql # not compatible
query I rowsort label-2247
SELECT DISTINCT + 36 * - + MIN ( - - 44 ) AS col0
----
-1584

query I rowsort
SELECT 55 * - 45
----
-2475

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2249
SELECT ALL CAST( - + 27 AS SIGNED )
----
-27

skipif mysql # not compatible
query I rowsort label-2249
SELECT ALL CAST ( - + 27 AS INTEGER )
----
-27

query I rowsort
SELECT ALL + 69 + + 24
----
93

query I rowsort
SELECT DISTINCT - COALESCE ( - 80, - 19 )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2252
SELECT ALL - - COUNT( * ) * - 70 AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-2252
SELECT ALL - - COUNT ( * ) * - 70 AS col1
----
-70

query I rowsort
SELECT ALL - ( - 74 ) AS col1
----
74

query I rowsort
SELECT 36 * + 65 AS col1
----
2340

onlyif mysql # aggregate syntax: 
query II rowsort label-2255
SELECT - 88 AS col2, - COUNT( * ) + COUNT( * )
----
-88
0

skipif mysql # not compatible
query II rowsort label-2255
SELECT - 88 AS col2, - COUNT ( * ) + COUNT ( * )
----
-88
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2256
SELECT - COUNT( * ) col0, CAST( NULL AS SIGNED ) AS col0
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-2256
SELECT - COUNT ( * ) col0, CAST ( NULL AS INTEGER ) AS col0
----
-1
NULL

query I rowsort
SELECT DISTINCT + 55 * - - 76
----
4180

query I rowsort
SELECT DISTINCT 52 * + COALESCE ( - 90, + - 60 )
----
-4680

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2259
SELECT - 51 * + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2259
SELECT - 51 * + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2260
SELECT + 15 * - COUNT( * )
----
-15

skipif mysql # not compatible
query I rowsort label-2260
SELECT + 15 * - COUNT ( * )
----
-15

query I rowsort
SELECT + 79 * + 54
----
4266

onlyif mysql # aggregate syntax: 
query II rowsort label-2262
SELECT COUNT( * ), 25 AS col2
----
1
25

skipif mysql # not compatible
query II rowsort label-2262
SELECT COUNT ( * ), 25 AS col2
----
1
25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2263
SELECT ALL - 56, CAST( NULL AS SIGNED ) + - - 11 AS col2
----
-56
NULL

skipif mysql # not compatible
query II rowsort label-2263
SELECT ALL - 56, CAST ( NULL AS INTEGER ) + - - 11 AS col2
----
-56
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2264
SELECT - MIN( DISTINCT + ( + - 85 ) ) + + 76 AS col1
----
161

skipif mysql # not compatible
query I rowsort label-2264
SELECT - MIN ( DISTINCT + ( + - 85 ) ) + + 76 AS col1
----
161

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2265
SELECT - CAST( + - 57 AS SIGNED ) * 88 col1
----
5016

skipif mysql # not compatible
query I rowsort label-2265
SELECT - CAST ( + - 57 AS INTEGER ) * 88 col1
----
5016

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2266
SELECT ALL - - 10 - - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2266
SELECT ALL - - 10 - - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2267
SELECT ALL - 82 * - ( COUNT( * ) ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-2267
SELECT ALL - 82 * - ( COUNT ( * ) ) AS col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2268
SELECT 19 - - COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-2268
SELECT 19 - - COUNT ( * )
----
20

query I rowsort
SELECT ALL + 64 * + - 48 AS col0
----
-3072

onlyif mysql # aggregate syntax: 
query I rowsort label-2270
SELECT ALL + COUNT( * ) * 95 AS col1
----
95

skipif mysql # not compatible
query I rowsort label-2270
SELECT ALL + COUNT ( * ) * 95 AS col1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2271
SELECT + + COUNT( * ) * + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-2271
SELECT + + COUNT ( * ) * + - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2272
SELECT DISTINCT COUNT( * ) - 94
----
-93

skipif mysql # not compatible
query I rowsort label-2272
SELECT DISTINCT COUNT ( * ) - 94
----
-93

query I rowsort
SELECT + 68 * - 33
----
-2244

query I rowsort
SELECT - ( 29 ) AS col1
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2275
SELECT - NULLIF ( + COUNT( + + CAST( NULL AS SIGNED ) ), - 54 )
----
0

skipif mysql # not compatible
query I rowsort label-2275
SELECT - NULLIF ( + COUNT ( + + CAST ( NULL AS INTEGER ) ), - 54 )
----
0

query I rowsort
SELECT ( 93 )
----
93

query I rowsort
SELECT - ( + 56 )
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-2278
SELECT - + 34 DIV 73 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2278
SELECT - + 34 / 73 AS col0
----
0

query I rowsort
SELECT ALL + + ( + 1 ) AS col0
----
1

query I rowsort
SELECT 89 + + 96
----
185

onlyif mysql # aggregate syntax: 
query II rowsort label-2281
SELECT ALL - COUNT( * ) col2, COUNT( * ) AS col1
----
-1
1

skipif mysql # not compatible
query II rowsort label-2281
SELECT ALL - COUNT ( * ) col2, COUNT ( * ) AS col1
----
-1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2282
SELECT COUNT( DISTINCT + - 79 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2282
SELECT COUNT ( DISTINCT + - 79 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2283
SELECT 61 * COUNT( * ) + ( 73 ) AS col0
----
134

skipif mysql # not compatible
query I rowsort label-2283
SELECT 61 * COUNT ( * ) + ( 73 ) AS col0
----
134

query II rowsort
SELECT + - 53 AS col0, - 68
----
-53
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-2285
SELECT COUNT( ALL 8 )
----
1

skipif mysql # not compatible
query I rowsort label-2285
SELECT COUNT ( ALL 8 )
----
1

query I rowsort
SELECT ALL - - 71
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2287
SELECT CAST( + - 81 AS SIGNED ) AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-2287
SELECT CAST ( + - 81 AS INTEGER ) AS col2
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2288
SELECT + MAX( - 6 )
----
-6

skipif mysql # not compatible
query I rowsort label-2288
SELECT + MAX ( - 6 )
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-2289
SELECT ALL + 3, - COUNT( * ) AS col1
----
3
-1

skipif mysql # not compatible
query II rowsort label-2289
SELECT ALL + 3, - COUNT ( * ) AS col1
----
3
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2290
SELECT MAX( + 51 )
----
51

skipif mysql # not compatible
query I rowsort label-2290
SELECT MAX ( + 51 )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2291
SELECT + MIN( DISTINCT - + 4 ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-2291
SELECT + MIN ( DISTINCT - + 4 ) AS col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-2292
SELECT MIN( ALL - 22 )
----
-22

skipif mysql # not compatible
query I rowsort label-2292
SELECT MIN ( ALL - 22 )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-2293
SELECT - COUNT( * ) * - 23 AS col2
----
23

skipif mysql # not compatible
query I rowsort label-2293
SELECT - COUNT ( * ) * - 23 AS col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2294
SELECT ALL + 26 * - COUNT( * )
----
-26

skipif mysql # not compatible
query I rowsort label-2294
SELECT ALL + 26 * - COUNT ( * )
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-2295
SELECT ALL - COUNT( - 92 )
----
-1

skipif mysql # not compatible
query I rowsort label-2295
SELECT ALL - COUNT ( - 92 )
----
-1

query I rowsort
SELECT - ( - 71 )
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2297
SELECT ALL + COUNT( DISTINCT - + 14 ) + + 15 DIV - + 44 + - + 77
----
-76

skipif mysql # not compatible
query I rowsort label-2297
SELECT ALL + COUNT ( DISTINCT - + 14 ) + + 15 / - + 44 + - + 77
----
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-2298
SELECT ALL - COUNT( * ) AS col2, 18 * + + 4 AS col2
----
-1
72

skipif mysql # not compatible
query II rowsort label-2298
SELECT ALL - COUNT ( * ) AS col2, 18 * + + 4 AS col2
----
-1
72

query I rowsort
SELECT 94 * - - 59 AS col1
----
5546

onlyif mysql # aggregate syntax: 
query I rowsort label-2300
SELECT - SUM( ALL 59 )
----
-59

skipif mysql # not compatible
query I rowsort label-2300
SELECT - SUM ( ALL 59 )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2301
SELECT - COUNT( * ) * - 16 - - - 83 AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-2301
SELECT - COUNT ( * ) * - 16 - - - 83 AS col2
----
-67

query I rowsort
SELECT + 55 * - 70 * + 88
----
-338800

onlyif mysql # aggregate syntax: 
query I rowsort label-2303
SELECT + - COUNT( + + 32 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2303
SELECT + - COUNT ( + + 32 ) AS col0
----
-1

query I rowsort
SELECT 18 * 94 col0
----
1692

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2305
SELECT DISTINCT + 57 - - MAX( ( 98 ) ) * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2305
SELECT DISTINCT + 57 - - MAX ( ( 98 ) ) * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2306
SELECT COUNT( * ) * - 73 AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-2306
SELECT COUNT ( * ) * - 73 AS col0
----
-73

query I rowsort
SELECT 97 + - 78 col2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-2308
SELECT DISTINCT - + ( + MIN( DISTINCT + + 48 ) ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-2308
SELECT DISTINCT - + ( + MIN ( DISTINCT + + 48 ) ) AS col2
----
-48

query I rowsort
SELECT DISTINCT - - 99
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2310
SELECT ALL MIN( 76 )
----
76

skipif mysql # not compatible
query I rowsort label-2310
SELECT ALL MIN ( 76 )
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2311
SELECT CAST( + - 48 AS SIGNED ) + 11 * 32
----
304

skipif mysql # not compatible
query I rowsort label-2311
SELECT CAST ( + - 48 AS INTEGER ) + 11 * 32
----
304

onlyif mysql # aggregate syntax: 
query I rowsort label-2312
SELECT + SUM( DISTINCT + 71 )
----
71

skipif mysql # not compatible
query I rowsort label-2312
SELECT + SUM ( DISTINCT + 71 )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2313
SELECT + COUNT( + 36 )
----
1

skipif mysql # not compatible
query I rowsort label-2313
SELECT + COUNT ( + 36 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2314
SELECT ALL - COALESCE ( - + MIN( 92 ), - 3 ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-2314
SELECT ALL - COALESCE ( - + MIN ( 92 ), - 3 ) AS col0
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2315
SELECT + CAST( NULL AS SIGNED ) * - 80 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2315
SELECT + CAST ( NULL AS INTEGER ) * - 80 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2316
SELECT + COUNT( + 5 )
----
1

skipif mysql # not compatible
query I rowsort label-2316
SELECT + COUNT ( + 5 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2317
SELECT ALL + COUNT( + - 88 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2317
SELECT ALL + COUNT ( + - 88 ) AS col0
----
1

query I rowsort
SELECT + 3 + + + 14
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-2319
SELECT + COUNT( * ) * + COUNT( * ) * - + 14 AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-2319
SELECT + COUNT ( * ) * + COUNT ( * ) * - + 14 AS col2
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2320
SELECT CAST( NULL AS SIGNED ) * 19 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2320
SELECT CAST ( NULL AS INTEGER ) * 19 col1
----
NULL

query I rowsort
SELECT ALL + 40 * + - 31 * + - 59
----
73160

query I rowsort
SELECT DISTINCT - + 77 col2
----
-77

query I rowsort
SELECT ALL - + 16 AS col1
----
-16

query I rowsort
SELECT DISTINCT - 99 + - 22 AS col2
----
-121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2325
SELECT 7 - - CAST( - 1 AS SIGNED ) + - 88 AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-2325
SELECT 7 - - CAST ( - 1 AS INTEGER ) + - 88 AS col2
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2326
SELECT DISTINCT + 27 + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2326
SELECT DISTINCT + 27 + - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 42 * 12
----
504

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2328
SELECT ALL - - CAST( + COUNT( * ) AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2328
SELECT ALL - - CAST ( + COUNT ( * ) AS INTEGER ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2329
SELECT CAST( NULL AS SIGNED ) + 25 * + + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2329
SELECT CAST ( NULL AS INTEGER ) + 25 * + + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2330
SELECT ( - + 93 ) * + COUNT( * ) AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-2330
SELECT ( - + 93 ) * + COUNT ( * ) AS col1
----
-93

query I rowsort
SELECT - 78 * 51 AS col2
----
-3978

onlyif mysql # aggregate syntax: 
query II rowsort label-2332
SELECT + ( + + MIN( 29 ) ) + 46, 79 AS col2
----
75
79

skipif mysql # not compatible
query II rowsort label-2332
SELECT + ( + + MIN ( 29 ) ) + 46, 79 AS col2
----
75
79

query I rowsort
SELECT ALL ( - 59 ) * - + 39 * 94 col1
----
216294

query II rowsort
SELECT ALL + 81, 7 col0
----
81
7

query I rowsort
SELECT ALL + ( - 50 ) AS col0
----
-50

query I rowsort
SELECT DISTINCT - 23 + - 10 AS col1
----
-33

query II rowsort
SELECT ALL + - 36 * - 62 AS col1, 80 AS col0
----
2232
80

query I rowsort
SELECT + 59 * - 9
----
-531

onlyif mysql # aggregate syntax: 
query I rowsort label-2339
SELECT - MAX( 92 ) AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-2339
SELECT - MAX ( 92 ) AS col0
----
-92

query I rowsort
SELECT ( 56 ) col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-2341
SELECT DISTINCT - 37 * + COUNT( * ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-2341
SELECT DISTINCT - 37 * + COUNT ( * ) AS col2
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-2342
SELECT ALL - 83 DIV - 52 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2342
SELECT ALL - 83 / - 52 AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2343
SELECT 58 DIV - COUNT( DISTINCT 33 )
----
-58

skipif mysql # not compatible
query I rowsort label-2343
SELECT 58 / - COUNT ( DISTINCT 33 )
----
-58

query I rowsort
SELECT ALL 85 * - 34
----
-2890

onlyif mysql # aggregate syntax: 
query II rowsort label-2345
SELECT ALL COUNT( * ) * + 40 + + + 39, + 24 col1
----
79
24

skipif mysql # not compatible
query II rowsort label-2345
SELECT ALL COUNT ( * ) * + 40 + + + 39, + 24 col1
----
79
24

query I rowsort
SELECT ALL + + 5 AS col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2347
SELECT + 20 * - - COUNT( * ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-2347
SELECT + 20 * - - COUNT ( * ) AS col1
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2348
SELECT CAST( - 85 AS SIGNED ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-2348
SELECT CAST ( - 85 AS INTEGER ) AS col0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-2349
SELECT ALL MAX( ALL + 71 )
----
71

skipif mysql # not compatible
query I rowsort label-2349
SELECT ALL MAX ( ALL + 71 )
----
71

query I rowsort
SELECT DISTINCT - 16 col2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-2351
SELECT DISTINCT NULLIF ( - - 22, COUNT( * ) * - COUNT( * ) )
----
22

skipif mysql # not compatible
query I rowsort label-2351
SELECT DISTINCT NULLIF ( - - 22, COUNT ( * ) * - COUNT ( * ) )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2352
SELECT 79 * - COUNT( * )
----
-79

skipif mysql # not compatible
query I rowsort label-2352
SELECT 79 * - COUNT ( * )
----
-79

query I rowsort
SELECT DISTINCT + 68 + + 30
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2354
SELECT 35 * MAX( 78 ) AS col0
----
2730

skipif mysql # not compatible
query I rowsort label-2354
SELECT 35 * MAX ( 78 ) AS col0
----
2730

onlyif mysql # aggregate syntax: 
query I rowsort label-2355
SELECT SUM( + - ( 50 ) )
----
-50

skipif mysql # not compatible
query I rowsort label-2355
SELECT SUM ( + - ( 50 ) )
----
-50

query II rowsort
SELECT + 17, 61 AS col2
----
17
61

query I rowsort
SELECT ALL - - ( - 97 ) AS col0
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-2358
SELECT + - COUNT( * ) AS col2, COUNT( * )
----
-1
1

skipif mysql # not compatible
query II rowsort label-2358
SELECT + - COUNT ( * ) AS col2, COUNT ( * )
----
-1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2359
SELECT DISTINCT MIN( ALL - 19 ) col2
----
-19

skipif mysql # not compatible
query I rowsort label-2359
SELECT DISTINCT MIN ( ALL - 19 ) col2
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2360
SELECT ALL + COUNT( * ) DIV CAST( + COUNT( * ) AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2360
SELECT ALL + COUNT ( * ) / CAST ( + COUNT ( * ) AS INTEGER ) AS col1
----
1

query I rowsort
SELECT - ( 80 )
----
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-2362
SELECT 77 AS col1, + 7 + + + COUNT( * )
----
77
8

skipif mysql # not compatible
query II rowsort label-2362
SELECT 77 AS col1, + 7 + + + COUNT ( * )
----
77
8

query I rowsort
SELECT ALL - - ( - 58 )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2364
SELECT 54 * - COUNT( * )
----
-54

skipif mysql # not compatible
query I rowsort label-2364
SELECT 54 * - COUNT ( * )
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-2365
SELECT - 15 * COUNT( * ) - - 17
----
2

skipif mysql # not compatible
query I rowsort label-2365
SELECT - 15 * COUNT ( * ) - - 17
----
2

query I rowsort
SELECT ALL - ( 5 )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2367
SELECT ALL - COUNT( * ) * + 72 AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-2367
SELECT ALL - COUNT ( * ) * + 72 AS col1
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2368
SELECT ALL COUNT( * ) / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2368
SELECT ALL COUNT ( * ) / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2369
SELECT ALL + COUNT( * ) * + 62 AS col2
----
62

skipif mysql # not compatible
query I rowsort label-2369
SELECT ALL + COUNT ( * ) * + 62 AS col2
----
62

query I rowsort
SELECT DISTINCT 8 * 92 AS col0
----
736

query I rowsort
SELECT + - 86 col1
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-2372
SELECT ALL ( + COUNT( * ) ) * - - 50 AS col0
----
50

skipif mysql # not compatible
query I rowsort label-2372
SELECT ALL ( + COUNT ( * ) ) * - - 50 AS col0
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-2373
SELECT + 20 DIV 78 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2373
SELECT + 20 / 78 AS col1
----
0

query I rowsort
SELECT ALL - 81 * + 99
----
-8019

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2375
SELECT MIN( ALL + - CAST( 75 AS SIGNED ) ) AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-2375
SELECT MIN ( ALL + - CAST ( 75 AS INTEGER ) ) AS col0
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2376
SELECT 25 AS col1, CAST( - - 32 AS SIGNED ) AS col0
----
25
32

skipif mysql # not compatible
query II rowsort label-2376
SELECT 25 AS col1, CAST ( - - 32 AS INTEGER ) AS col0
----
25
32

onlyif mysql # aggregate syntax: 
query II rowsort label-2377
SELECT ALL COUNT( * ), 86 AS col2
----
1
86

skipif mysql # not compatible
query II rowsort label-2377
SELECT ALL COUNT ( * ), 86 AS col2
----
1
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2378
SELECT ALL + + ( - - CAST( 40 AS SIGNED ) )
----
40

skipif mysql # not compatible
query I rowsort label-2378
SELECT ALL + + ( - - CAST ( 40 AS INTEGER ) )
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2379
SELECT CAST( - 72 AS SIGNED ) col1
----
-72

skipif mysql # not compatible
query I rowsort label-2379
SELECT CAST ( - 72 AS INTEGER ) col1
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-2380
SELECT COUNT( * ) + + + 37 AS col0
----
38

skipif mysql # not compatible
query I rowsort label-2380
SELECT COUNT ( * ) + + + 37 AS col0
----
38

query I rowsort
SELECT 4 - + + 41 AS col1
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2382
SELECT ALL ( + - COUNT( * ) ) DIV - + 66
----
0

skipif mysql # not compatible
query I rowsort label-2382
SELECT ALL ( + - COUNT ( * ) ) / - + 66
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2383
SELECT ( - 20 ) DIV - - 96 * 49
----
0

skipif mysql # not compatible
query I rowsort label-2383
SELECT ( - 20 ) / - - 96 * 49
----
0

query I rowsort
SELECT 44 * + 94 + + 45 AS col1
----
4181

query I rowsort
SELECT 24 * - 8 AS col1
----
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-2386
SELECT DISTINCT + SUM( ALL - ( + 79 ) ) AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-2386
SELECT DISTINCT + SUM ( ALL - ( + 79 ) ) AS col2
----
-79

query I rowsort
SELECT ALL + + 35 AS col1
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2388
SELECT - + ( - CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2388
SELECT - + ( - CAST ( NULL AS INTEGER ) ) col0
----
NULL

query I rowsort
SELECT ALL + 27 + + + 11
----
38

query I rowsort
SELECT DISTINCT + + 36 * + 22
----
792

query I rowsort
SELECT ALL ( - 97 ) AS col2
----
-97

query I rowsort
SELECT ALL + ( + + 62 )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2393
SELECT ALL + 21 - + MAX( ALL + 14 )
----
7

skipif mysql # not compatible
query I rowsort label-2393
SELECT ALL + 21 - + MAX ( ALL + 14 )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2394
SELECT ALL 26 * + COALESCE ( - + 90, COUNT( * ) ) AS col1
----
-2340

skipif mysql # not compatible
query I rowsort label-2394
SELECT ALL 26 * + COALESCE ( - + 90, COUNT ( * ) ) AS col1
----
-2340

query I rowsort
SELECT 95 + + + 0 AS col1
----
95

query I rowsort
SELECT 34 * + 77
----
2618

query I rowsort
SELECT + 17 * - + 38 + + 58
----
-588

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2398
SELECT DISTINCT + COUNT( * ) DIV + - 77 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2398
SELECT DISTINCT + COUNT ( * ) / + - 77 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2399
SELECT ALL - 79 * 77 col2, + COUNT( * ) * 94
----
-6083
94

skipif mysql # not compatible
query II rowsort label-2399
SELECT ALL - 79 * 77 col2, + COUNT ( * ) * 94
----
-6083
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2400
SELECT 40 + + 65 - - COUNT( * ) AS col0
----
106

skipif mysql # not compatible
query I rowsort label-2400
SELECT 40 + + 65 - - COUNT ( * ) AS col0
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-2401
SELECT ALL + 71 * + COUNT( * ) + - 42
----
29

skipif mysql # not compatible
query I rowsort label-2401
SELECT ALL + 71 * + COUNT ( * ) + - 42
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-2402
SELECT - COUNT( * ) + - 83 AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-2402
SELECT - COUNT ( * ) + - 83 AS col2
----
-84

query I rowsort
SELECT + + ( 44 ) col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2404
SELECT DISTINCT - + CASE 30 WHEN - - COUNT( * ) THEN COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2404
SELECT DISTINCT - + CASE 30 WHEN - - COUNT ( * ) THEN COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + 32 + - 62
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-2406
SELECT DISTINCT - 59 DIV 52
----
-1

skipif mysql # not compatible
query I rowsort label-2406
SELECT DISTINCT - 59 / 52
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2407
SELECT ALL 54 + + - 60 + - COUNT( * )
----
-7

skipif mysql # not compatible
query I rowsort label-2407
SELECT ALL 54 + + - 60 + - COUNT ( * )
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2408
SELECT ALL 97 DIV + COUNT( * ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-2408
SELECT ALL 97 / + COUNT ( * ) AS col1
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2409
SELECT + COUNT( DISTINCT + - NULLIF ( - 37, + ( - + CAST( NULL AS SIGNED ) ) / - + 63 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2409
SELECT + COUNT ( DISTINCT + - NULLIF ( - 37, + ( - + CAST ( NULL AS INTEGER ) ) / - + 63 ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2410
SELECT ALL - 78 AS col0, - COUNT( * )
----
-78
-1

skipif mysql # not compatible
query II rowsort label-2410
SELECT ALL - 78 AS col0, - COUNT ( * )
----
-78
-1

query II rowsort
SELECT ALL 86 AS col1, 48 col0
----
86
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2412
SELECT - COUNT( ALL - + CAST( - ( 65 ) AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-2412
SELECT - COUNT ( ALL - + CAST ( - ( 65 ) AS INTEGER ) )
----
-1

query I rowsort
SELECT ALL - ( - 12 ) AS col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-2414
SELECT + 91 - - COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-2414
SELECT + 91 - - COUNT ( * )
----
92

query I rowsort
SELECT + ( - 84 ) + - 43
----
-127

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2416
SELECT ALL 31 DIV COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-2416
SELECT ALL 31 / COUNT ( * )
----
31

query I rowsort
SELECT ( - - 55 ) AS col2
----
55

query I rowsort
SELECT DISTINCT 89 * 96 AS col1
----
8544

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2419
SELECT 24 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2419
SELECT 24 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + + ( 62 )
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-2421
SELECT COUNT( * ) + + 88 + + 59 * - 54 AS col0, - COUNT( * ) - - + 65
----
-3097
64

skipif mysql # not compatible
query II rowsort label-2421
SELECT COUNT ( * ) + + 88 + + 59 * - 54 AS col0, - COUNT ( * ) - - + 65
----
-3097
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2422
SELECT ALL MAX( DISTINCT - 35 )
----
-35

skipif mysql # not compatible
query I rowsort label-2422
SELECT ALL MAX ( DISTINCT - 35 )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-2423
SELECT DISTINCT - 1 * + COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2423
SELECT DISTINCT - 1 * + COUNT ( * ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2424
SELECT + MIN( ALL 61 )
----
61

skipif mysql # not compatible
query I rowsort label-2424
SELECT + MIN ( ALL 61 )
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2425
SELECT ALL + CAST( 5 AS SIGNED )
----
5

skipif mysql # not compatible
query I rowsort label-2425
SELECT ALL + CAST ( 5 AS INTEGER )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2426
SELECT + 70 + COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-2426
SELECT + 70 + COUNT ( * )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2427
SELECT ALL - COUNT( * ) + - 86 col1
----
-87

skipif mysql # not compatible
query I rowsort label-2427
SELECT ALL - COUNT ( * ) + - 86 col1
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-2428
SELECT DISTINCT - COUNT( - 13 ) * - 67 col0
----
67

skipif mysql # not compatible
query I rowsort label-2428
SELECT DISTINCT - COUNT ( - 13 ) * - 67 col0
----
67

query I rowsort
SELECT + 80 * - 68
----
-5440

onlyif mysql # aggregate syntax: 
query I rowsort label-2430
SELECT + 37 + - COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-2430
SELECT + 37 + - COUNT ( * )
----
36

query I rowsort
SELECT ( 0 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2432
SELECT CAST( NULL AS SIGNED ) / + MAX( + ( + ( 13 ) ) ) + 7 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2432
SELECT CAST ( NULL AS INTEGER ) / + MAX ( + ( + ( 13 ) ) ) + 7 AS col0
----
NULL

query I rowsort
SELECT 92 * 71 AS col2
----
6532

query I rowsort
SELECT DISTINCT - + 12 AS col0
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2435
SELECT 13 + - AVG ( DISTINCT + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2435
SELECT 13 + - AVG ( DISTINCT + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2436
SELECT ALL - + NULLIF ( - 62, COUNT( * ) * + 95 ) + - 12 AS col0
----
50

skipif mysql # not compatible
query I rowsort label-2436
SELECT ALL - + NULLIF ( - 62, COUNT ( * ) * + 95 ) + - 12 AS col0
----
50

query I rowsort
SELECT DISTINCT - + 82 + + 79 AS col0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-2438
SELECT 3 - 81 DIV 70 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-2438
SELECT 3 - 81 / 70 AS col1
----
2

query II rowsort
SELECT ALL 78, - 81 AS col1
----
78
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2440
SELECT DISTINCT + COUNT( * ) DIV - 26 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2440
SELECT DISTINCT + COUNT ( * ) / - 26 AS col1
----
0

query I rowsort
SELECT DISTINCT - 17 * + 97 AS col0
----
-1649

query I rowsort
SELECT ALL - + ( + 2 ) col2
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-2443
SELECT + COUNT( * ) + + 25 AS col2, + 59
----
26
59

skipif mysql # not compatible
query II rowsort label-2443
SELECT + COUNT ( * ) + + 25 AS col2, + 59
----
26
59

onlyif mysql # aggregate syntax: 
query II rowsort label-2444
SELECT ALL COUNT( * ) * + - 12, - ( 83 ) * + COUNT( * ) AS col1
----
-12
-83

skipif mysql # not compatible
query II rowsort label-2444
SELECT ALL COUNT ( * ) * + - 12, - ( 83 ) * + COUNT ( * ) AS col1
----
-12
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-2445
SELECT ALL SUM( + 74 ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-2445
SELECT ALL SUM ( + 74 ) AS col0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2446
SELECT DISTINCT SUM( ALL + 44 )
----
44

skipif mysql # not compatible
query I rowsort label-2446
SELECT DISTINCT SUM ( ALL + 44 )
----
44

query II rowsort
SELECT DISTINCT 94 AS col2, - 32 AS col0
----
94
-32

query I rowsort
SELECT + 49 + - 70
----
-21

query I rowsort
SELECT 70 + 12 AS col0
----
82

query II rowsort
SELECT ALL - 75 * + - 88, 33 AS col1
----
6600
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2451
SELECT COUNT( * ) + 42 + + - COUNT( * ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-2451
SELECT COUNT ( * ) + 42 + + - COUNT ( * ) AS col0
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2452
SELECT ALL 13 * COUNT( * ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2452
SELECT ALL 13 * COUNT ( * ) * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 18 * 68 AS col0
----
1224

query II rowsort
SELECT DISTINCT 89 AS col1, + 91
----
89
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2455
SELECT COUNT( * ) * - 24
----
-24

skipif mysql # not compatible
query I rowsort label-2455
SELECT COUNT ( * ) * - 24
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2456
SELECT DISTINCT COUNT( * ) * - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2456
SELECT DISTINCT COUNT ( * ) * - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2457
SELECT COUNT( * ) + 56
----
57

skipif mysql # not compatible
query I rowsort label-2457
SELECT COUNT ( * ) + 56
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2458
SELECT + MIN( - 73 ) AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-2458
SELECT + MIN ( - 73 ) AS col0
----
-73

query II rowsort
SELECT + ( - 87 ) AS col0, + 12 * - 82 AS col1
----
-87
-984

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2460
SELECT COUNT( * ) DIV - 46
----
0

skipif mysql # not compatible
query I rowsort label-2460
SELECT COUNT ( * ) / - 46
----
0

query I rowsort
SELECT - + ( + - ( + 72 ) ) AS col2
----
72

query I rowsort
SELECT ALL 48 * - - 29 AS col1
----
1392

query I rowsort
SELECT DISTINCT + ( 63 )
----
63

query I rowsort
SELECT 3 * 26 - + + 25
----
53

query I rowsort
SELECT DISTINCT + - 44 + - - 82
----
38

query I rowsort
SELECT - - 0 + - 56 AS col2
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-2467
SELECT - COUNT( * ) * - 49
----
49

skipif mysql # not compatible
query I rowsort label-2467
SELECT - COUNT ( * ) * - 49
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2468
SELECT DISTINCT + COUNT( * ) - - 68
----
69

skipif mysql # not compatible
query I rowsort label-2468
SELECT DISTINCT + COUNT ( * ) - - 68
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2469
SELECT ALL - 53 * + 76 + - - NULLIF ( + COUNT( * ), - 19 )
----
-4027

skipif mysql # not compatible
query I rowsort label-2469
SELECT ALL - 53 * + 76 + - - NULLIF ( + COUNT ( * ), - 19 )
----
-4027

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2470
SELECT - COUNT( * ) * ( + 92 ) + + - CAST( - 61 AS SIGNED ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-2470
SELECT - COUNT ( * ) * ( + 92 ) + + - CAST ( - 61 AS INTEGER ) AS col1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-2471
SELECT DISTINCT COUNT( ALL - 76 )
----
1

skipif mysql # not compatible
query I rowsort label-2471
SELECT DISTINCT COUNT ( ALL - 76 )
----
1

query I rowsort
SELECT ( + + 96 ) AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2473
SELECT COUNT( * ) + - 62 AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-2473
SELECT COUNT ( * ) + - 62 AS col0
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2474
SELECT ALL + CAST( NULL AS SIGNED ) + + ( - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2474
SELECT ALL + CAST ( NULL AS INTEGER ) + + ( - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT ALL - - 91 AS col2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2476
SELECT 36 * + + COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-2476
SELECT 36 * + + COUNT ( * )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2477
SELECT + COUNT( * ) * - - SUM( + 46 )
----
46

skipif mysql # not compatible
query I rowsort label-2477
SELECT + COUNT ( * ) * - - SUM ( + 46 )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2478
SELECT ALL COALESCE ( 15, - + COUNT( * ) )
----
15

skipif mysql # not compatible
query I rowsort label-2478
SELECT ALL COALESCE ( 15, - + COUNT ( * ) )
----
15

query I rowsort
SELECT - - ( - + 97 ) AS col0
----
-97

query I rowsort
SELECT ALL + ( - - 82 ) + - + 96
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-2481
SELECT NULLIF ( + ( + + COUNT( * ) ), + - ( 23 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2481
SELECT NULLIF ( + ( + + COUNT ( * ) ), + - ( 23 ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2482
SELECT COUNT( * ), - 17 AS col0
----
1
-17

skipif mysql # not compatible
query II rowsort label-2482
SELECT COUNT ( * ), - 17 AS col0
----
1
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2483
SELECT - 47 - CAST( NULL AS SIGNED ) / + 19 * - 70 * 0
----
NULL

skipif mysql # not compatible
query I rowsort label-2483
SELECT - 47 - CAST ( NULL AS INTEGER ) / + 19 * - 70 * 0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2484
SELECT ALL + - 95 * + COUNT( * ) - + + 57
----
-152

skipif mysql # not compatible
query I rowsort label-2484
SELECT ALL + - 95 * + COUNT ( * ) - + + 57
----
-152

query I rowsort
SELECT + ( 84 ) AS col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2486
SELECT + - COUNT( ALL - + 30 ) * + 97
----
-97

skipif mysql # not compatible
query I rowsort label-2486
SELECT + - COUNT ( ALL - + 30 ) * + 97
----
-97

query II rowsort
SELECT DISTINCT - 71, 89 AS col1
----
-71
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2488
SELECT + 97 * COUNT( * ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-2488
SELECT + 97 * COUNT ( * ) AS col2
----
97

query I rowsort
SELECT DISTINCT 99 + - 62 col2
----
37

query I rowsort
SELECT - ( + 36 ) AS col1
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2491
SELECT 23 / + + CAST( NULL AS SIGNED ) + - 11 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2491
SELECT 23 / + + CAST ( NULL AS INTEGER ) + - 11 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2492
SELECT DISTINCT + COUNT( * ) * 24 DIV 45
----
0

skipif mysql # not compatible
query I rowsort label-2492
SELECT DISTINCT + COUNT ( * ) * 24 / 45
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2493
SELECT ALL + CAST( - ( - 16 ) AS SIGNED ) col1
----
16

skipif mysql # not compatible
query I rowsort label-2493
SELECT ALL + CAST ( - ( - 16 ) AS INTEGER ) col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2494
SELECT MIN( DISTINCT 40 ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-2494
SELECT MIN ( DISTINCT 40 ) AS col1
----
40

query I rowsort
SELECT - ( - 33 ) AS col0
----
33

query II rowsort
SELECT 52 AS col2, 41
----
52
41

query I rowsort
SELECT ALL 82 + 54 * + 69 * + - 51 - - 13 AS col2
----
-189931

query I rowsort
SELECT + + ( + - 63 )
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-2499
SELECT DISTINCT 42 + - - 4 DIV - - 59 col2
----
42

skipif mysql # not compatible
query I rowsort label-2499
SELECT DISTINCT 42 + - - 4 / - - 59 col2
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-2500
SELECT ( + ( - 93 ) ) DIV - 82 col0
----
1

skipif mysql # not compatible
query I rowsort label-2500
SELECT ( + ( - 93 ) ) / - 82 col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2501
SELECT ALL - + 83 AS col2, + COUNT( * )
----
-83
1

skipif mysql # not compatible
query II rowsort label-2501
SELECT ALL - + 83 AS col2, + COUNT ( * )
----
-83
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2502
SELECT - - COUNT( * ), 62 * + 45 AS col0
----
1
2790

skipif mysql # not compatible
query II rowsort label-2502
SELECT - - COUNT ( * ), 62 * + 45 AS col0
----
1
2790

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2503
SELECT ALL - CAST( NULL AS DECIMAL ) * + + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-2503
SELECT ALL - CAST ( NULL AS REAL ) * + + 99
----
NULL

query I rowsort
SELECT + ( - + 63 )
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2505
SELECT ALL CAST( NULL AS SIGNED ) * - MIN( DISTINCT 95 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2505
SELECT ALL CAST ( NULL AS INTEGER ) * - MIN ( DISTINCT 95 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2506
SELECT - MAX( - 91 )
----
91

skipif mysql # not compatible
query I rowsort label-2506
SELECT - MAX ( - 91 )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2507
SELECT + COUNT( * ) - 89 - + ( - 92 )
----
4

skipif mysql # not compatible
query I rowsort label-2507
SELECT + COUNT ( * ) - 89 - + ( - 92 )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2508
SELECT DISTINCT - 47 + - COUNT( * ) * - 90
----
43

skipif mysql # not compatible
query I rowsort label-2508
SELECT DISTINCT - 47 + - COUNT ( * ) * - 90
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-2509
SELECT ALL MAX( + 14 )
----
14

skipif mysql # not compatible
query I rowsort label-2509
SELECT ALL MAX ( + 14 )
----
14

query I rowsort
SELECT DISTINCT + + 87 AS col2
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2511
SELECT DISTINCT + - AVG ( - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2511
SELECT DISTINCT + - AVG ( - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2512
SELECT ALL 10 * - COUNT( * ) + + + 87
----
77

skipif mysql # not compatible
query I rowsort label-2512
SELECT ALL 10 * - COUNT ( * ) + + + 87
----
77

query I rowsort
SELECT ALL + ( 40 )
----
40

query II rowsort
SELECT 50 + + - 63 AS col2, - 90 AS col0
----
-13
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-2515
SELECT ALL + MAX( DISTINCT + + 39 ) * - MIN( ALL - - 45 )
----
-1755

skipif mysql # not compatible
query I rowsort label-2515
SELECT ALL + MAX ( DISTINCT + + 39 ) * - MIN ( ALL - - 45 )
----
-1755

onlyif mysql # aggregate syntax: 
query I rowsort label-2516
SELECT + - COUNT( + + 17 )
----
-1

skipif mysql # not compatible
query I rowsort label-2516
SELECT + - COUNT ( + + 17 )
----
-1

query I rowsort
SELECT + 18 * + 96 AS col2
----
1728

query I rowsort
SELECT - 64 * - 9
----
576

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2519
SELECT ALL 45 + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2519
SELECT ALL 45 + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2520
SELECT + 64 * - ( - COUNT( * ) )
----
64

skipif mysql # not compatible
query I rowsort label-2520
SELECT + 64 * - ( - COUNT ( * ) )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2521
SELECT ( - MAX( - 86 ) )
----
86

skipif mysql # not compatible
query I rowsort label-2521
SELECT ( - MAX ( - 86 ) )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-2522
SELECT ALL 70 * 39 * + 53 * - COUNT( * ) col1
----
-144690

skipif mysql # not compatible
query I rowsort label-2522
SELECT ALL 70 * 39 * + 53 * - COUNT ( * ) col1
----
-144690

query I rowsort
SELECT + ( + 48 ) col2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2524
SELECT ALL - 40 * - COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-2524
SELECT ALL - 40 * - COUNT ( * )
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2525
SELECT 25 + - + 2 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2525
SELECT 25 + - + 2 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2526
SELECT ALL 48 + + CAST( 18 AS SIGNED ) + + 21
----
87

skipif mysql # not compatible
query I rowsort label-2526
SELECT ALL 48 + + CAST ( 18 AS INTEGER ) + + 21
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2527
SELECT - SUM( - 76 ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-2527
SELECT - SUM ( - 76 ) AS col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-2528
SELECT ALL + COUNT( DISTINCT - 52 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2528
SELECT ALL + COUNT ( DISTINCT - 52 ) AS col0
----
1

query I rowsort
SELECT - - ( 40 )
----
40

query I rowsort
SELECT + 2 * + 5 AS col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2531
SELECT ALL SUM( - 90 ) AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-2531
SELECT ALL SUM ( - 90 ) AS col2
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2532
SELECT ALL + 54 col1, CAST( - + COUNT( * ) AS SIGNED ) AS col1
----
54
-1

skipif mysql # not compatible
query II rowsort label-2532
SELECT ALL + 54 col1, CAST ( - + COUNT ( * ) AS INTEGER ) AS col1
----
54
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2533
SELECT + - COUNT( DISTINCT + - 31 ) + - + COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-2533
SELECT + - COUNT ( DISTINCT + - 31 ) + - + COUNT ( * )
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2534
SELECT - - CAST( 22 AS SIGNED ) + - 41
----
-19

skipif mysql # not compatible
query I rowsort label-2534
SELECT - - CAST ( 22 AS INTEGER ) + - 41
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2535
SELECT ALL - 26 DIV MAX( ALL - 98 )
----
0

skipif mysql # not compatible
query I rowsort label-2535
SELECT ALL - 26 / MAX ( ALL - 98 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2536
SELECT - 61 * ( - 6 ) / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2536
SELECT - 61 * ( - 6 ) / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2537
SELECT - ( + - COUNT( * ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-2537
SELECT - ( + - COUNT ( * ) ) col1
----
1

query I rowsort
SELECT - 12 * 11 * 35
----
-4620

query I rowsort
SELECT ALL - - 73 col1
----
73

query I rowsort
SELECT - 47 + + 56
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2541
SELECT + CAST( - 86 AS SIGNED ) col1
----
-86

skipif mysql # not compatible
query I rowsort label-2541
SELECT + CAST ( - 86 AS INTEGER ) col1
----
-86

query II rowsort
SELECT ALL 93 col0, + 70 AS col1
----
93
70

query I rowsort
SELECT 18 * + 90
----
1620

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2544
SELECT ALL + CAST( 20 AS SIGNED )
----
20

skipif mysql # not compatible
query I rowsort label-2544
SELECT ALL + CAST ( 20 AS INTEGER )
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-2545
SELECT - ( + 9 ) DIV + 4
----
-2

skipif mysql # not compatible
query I rowsort label-2545
SELECT - ( + 9 ) / + 4
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2546
SELECT - COUNT( * ) + + 21 * - + 99 AS col0
----
-2080

skipif mysql # not compatible
query I rowsort label-2546
SELECT - COUNT ( * ) + + 21 * - + 99 AS col0
----
-2080

onlyif mysql # aggregate syntax: 
query I rowsort label-2547
SELECT - MIN( ALL - 67 ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-2547
SELECT - MIN ( ALL - 67 ) AS col1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2548
SELECT ALL - COUNT( * ) * - 73
----
73

skipif mysql # not compatible
query I rowsort label-2548
SELECT ALL - COUNT ( * ) * - 73
----
73

query I rowsort
SELECT DISTINCT - ( - 23 ) AS col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2550
SELECT MIN( ALL + 54 ) col2
----
54

skipif mysql # not compatible
query I rowsort label-2550
SELECT MIN ( ALL + 54 ) col2
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2551
SELECT ALL - CAST( - + 80 AS SIGNED )
----
80

skipif mysql # not compatible
query I rowsort label-2551
SELECT ALL - CAST ( - + 80 AS INTEGER )
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2552
SELECT NULLIF ( + COUNT( * ), 91 ) + + + CAST( NULL AS SIGNED ) / + ( + + 13 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2552
SELECT NULLIF ( + COUNT ( * ), 91 ) + + + CAST ( NULL AS INTEGER ) / + ( + + 13 ) AS col1
----
NULL

query I rowsort
SELECT ALL - ( 44 )
----
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-2554
SELECT 49 + - COUNT( * ) AS col0, - 62 AS col1
----
48
-62

skipif mysql # not compatible
query II rowsort label-2554
SELECT 49 + - COUNT ( * ) AS col0, - 62 AS col1
----
48
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2555
SELECT + CAST( + - 40 AS SIGNED )
----
-40

skipif mysql # not compatible
query I rowsort label-2555
SELECT + CAST ( + - 40 AS INTEGER )
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2556
SELECT DISTINCT + COUNT( * ) DIV + + 27
----
0

skipif mysql # not compatible
query I rowsort label-2556
SELECT DISTINCT + COUNT ( * ) / + + 27
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2557
SELECT ALL + 81 - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2557
SELECT ALL + 81 - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ( + 66 ) AS col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2559
SELECT ALL + MIN( + 78 )
----
78

skipif mysql # not compatible
query I rowsort label-2559
SELECT ALL + MIN ( + 78 )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2560
SELECT - COUNT( * ) + - + 32
----
-33

skipif mysql # not compatible
query I rowsort label-2560
SELECT - COUNT ( * ) + - + 32
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-2561
SELECT COUNT( ALL - 16 )
----
1

skipif mysql # not compatible
query I rowsort label-2561
SELECT COUNT ( ALL - 16 )
----
1

query I rowsort
SELECT DISTINCT + 23 col0
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-2563
SELECT DISTINCT + 38 - COUNT( * ) AS col0, - 92
----
37
-92

skipif mysql # not compatible
query II rowsort label-2563
SELECT DISTINCT + 38 - COUNT ( * ) AS col0, - 92
----
37
-92

query I rowsort
SELECT 86 * + 88 AS col1
----
7568

onlyif mysql # aggregate syntax: 
query I rowsort label-2565
SELECT + MIN( - + 42 )
----
-42

skipif mysql # not compatible
query I rowsort label-2565
SELECT + MIN ( - + 42 )
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2566
SELECT + 19 AS col0, - ( + - CAST( NULL AS SIGNED ) ) AS col1
----
19
NULL

skipif mysql # not compatible
query II rowsort label-2566
SELECT + 19 AS col0, - ( + - CAST ( NULL AS INTEGER ) ) AS col1
----
19
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2567
SELECT ALL - NULLIF ( + - 93, + MIN( DISTINCT + 11 ) )
----
93

skipif mysql # not compatible
query I rowsort label-2567
SELECT ALL - NULLIF ( + - 93, + MIN ( DISTINCT + 11 ) )
----
93

query I rowsort
SELECT + + 36 + - 70
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-2569
SELECT DISTINCT COUNT( * ) * 70 AS col0
----
70

skipif mysql # not compatible
query I rowsort label-2569
SELECT DISTINCT COUNT ( * ) * 70 AS col0
----
70

query I rowsort
SELECT DISTINCT + + 78 AS col0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2571
SELECT DISTINCT + 80 * + COUNT( * ) + + 21 + + 40 * + 39 + - + COUNT( * ) * MAX( ALL + 55 )
----
1606

skipif mysql # not compatible
query I rowsort label-2571
SELECT DISTINCT + 80 * + COUNT ( * ) + + 21 + + 40 * + 39 + - + COUNT ( * ) * MAX ( ALL + 55 )
----
1606

query I rowsort
SELECT ALL - 1 * - 42
----
42

query I rowsort
SELECT DISTINCT 1 * + 13 AS col1
----
13

query I rowsort
SELECT ALL - + 50 AS col1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-2575
SELECT ALL MIN( - + 11 ) + COUNT( * ) * - 92
----
-103

skipif mysql # not compatible
query I rowsort label-2575
SELECT ALL MIN ( - + 11 ) + COUNT ( * ) * - 92
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-2576
SELECT + COUNT( * ) + - COUNT( * ) + + - 71 col0
----
-71

skipif mysql # not compatible
query I rowsort label-2576
SELECT + COUNT ( * ) + - COUNT ( * ) + + - 71 col0
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2577
SELECT DISTINCT 73, + CAST( NULL AS SIGNED ) AS col0
----
73
NULL

skipif mysql # not compatible
query II rowsort label-2577
SELECT DISTINCT 73, + CAST ( NULL AS INTEGER ) AS col0
----
73
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2578
SELECT ALL + MAX( DISTINCT + ( - 52 ) ) + 2
----
-50

skipif mysql # not compatible
query I rowsort label-2578
SELECT ALL + MAX ( DISTINCT + ( - 52 ) ) + 2
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-2579
SELECT 87 * - ( + MIN( DISTINCT + 83 ) ) AS col1
----
-7221

skipif mysql # not compatible
query I rowsort label-2579
SELECT 87 * - ( + MIN ( DISTINCT + 83 ) ) AS col1
----
-7221

query I rowsort
SELECT 58 - 37 AS col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2581
SELECT ( + COUNT( ALL + 28 ) ) + SUM( DISTINCT + 53 ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-2581
SELECT ( + COUNT ( ALL + 28 ) ) + SUM ( DISTINCT + 53 ) AS col2
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-2582
SELECT DISTINCT - 52 DIV - 85
----
0

skipif mysql # not compatible
query I rowsort label-2582
SELECT DISTINCT - 52 / - 85
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2583
SELECT - COUNT( * ) + - + 84
----
-85

skipif mysql # not compatible
query I rowsort label-2583
SELECT - COUNT ( * ) + - + 84
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2584
SELECT - CAST( + 81 AS SIGNED ) AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-2584
SELECT - CAST ( + 81 AS INTEGER ) AS col2
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2585
SELECT + SUM( + 4 )
----
4

skipif mysql # not compatible
query I rowsort label-2585
SELECT + SUM ( + 4 )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2586
SELECT COUNT( * ) * - 82 AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-2586
SELECT COUNT ( * ) * - 82 AS col2
----
-82

query I rowsort
SELECT ALL 28 * + 80
----
2240

query I rowsort
SELECT + + 89 AS col2
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2589
SELECT 19, COUNT( * ) DIV + SUM( - 2 ) AS col1
----
19
0

skipif mysql # not compatible
query II rowsort label-2589
SELECT 19, COUNT ( * ) / + SUM ( - 2 ) AS col1
----
19
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2590
SELECT ALL + 30 + + COUNT( * ) col0
----
31

skipif mysql # not compatible
query I rowsort label-2590
SELECT ALL + 30 + + COUNT ( * ) col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2591
SELECT COUNT( * ) * - 56 col0
----
-56

skipif mysql # not compatible
query I rowsort label-2591
SELECT COUNT ( * ) * - 56 col0
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-2592
SELECT + MIN( - 47 ) AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-2592
SELECT + MIN ( - 47 ) AS col0
----
-47

query I rowsort
SELECT + CASE WHEN NOT NULL IS NOT NULL THEN NULL ELSE + 60 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2594
SELECT SUM( + 25 ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-2594
SELECT SUM ( + 25 ) AS col0
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-2595
SELECT + 74, ( + + COUNT( * ) ) AS col1
----
74
1

skipif mysql # not compatible
query II rowsort label-2595
SELECT + 74, ( + + COUNT ( * ) ) AS col1
----
74
1

query I rowsort
SELECT - 45 * 93
----
-4185

onlyif mysql # aggregate syntax: 
query I rowsort label-2597
SELECT ALL + + 29 * COUNT( * ) * - + ( ( 63 ) ) + 53 AS col1
----
-1774

skipif mysql # not compatible
query I rowsort label-2597
SELECT ALL + + 29 * COUNT ( * ) * - + ( ( 63 ) ) + 53 AS col1
----
-1774

query II rowsort
SELECT - 74 col1, 81 col1
----
-74
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2599
SELECT ALL - MIN( + 65 )
----
-65

skipif mysql # not compatible
query I rowsort label-2599
SELECT ALL - MIN ( + 65 )
----
-65

query I rowsort
SELECT ALL 93 + + 37 * 54 AS col2
----
2091

query II rowsort
SELECT ALL 20 AS col1, + 3 AS col2
----
20
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2602
SELECT CAST( 18 AS SIGNED ) AS col1
----
18

skipif mysql # not compatible
query I rowsort label-2602
SELECT CAST ( 18 AS INTEGER ) AS col1
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2603
SELECT + 87 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2603
SELECT + 87 * - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2604
SELECT ALL - - CAST( NULL AS SIGNED ) * + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-2604
SELECT ALL - - CAST ( NULL AS INTEGER ) * + 88
----
NULL

query I rowsort
SELECT 16 - + 94
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-2606
SELECT ALL COUNT( * ) * 67 AS col2
----
67

skipif mysql # not compatible
query I rowsort label-2606
SELECT ALL COUNT ( * ) * 67 AS col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2607
SELECT 22 * - MAX( ALL + 31 ) col0
----
-682

skipif mysql # not compatible
query I rowsort label-2607
SELECT 22 * - MAX ( ALL + 31 ) col0
----
-682

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2608
SELECT ALL + 71 DIV + COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-2608
SELECT ALL + 71 / + COUNT ( * )
----
71

query I rowsort
SELECT ALL - ( + + 16 )
----
-16

query I rowsort
SELECT DISTINCT - 9 col0
----
-9

query I rowsort
SELECT DISTINCT 63 + + + ( 62 ) - + 82 AS col1
----
43

query I rowsort
SELECT - 11 + - 5
----
-16

onlyif mysql # DIV for integer division: 
query II rowsort label-2613
SELECT - - 2 col2, 61 DIV + 70
----
2
0

skipif mysql # not compatible
query II rowsort label-2613
SELECT - - 2 col2, 61 / + 70
----
2
0

query I rowsort
SELECT ALL - 84 * - - 72 AS col0
----
-6048

onlyif mysql # aggregate syntax: 
query I rowsort label-2615
SELECT DISTINCT + 67 * + - ( - COUNT( ALL - + 30 ) ) AS col0
----
67

skipif mysql # not compatible
query I rowsort label-2615
SELECT DISTINCT + 67 * + - ( - COUNT ( ALL - + 30 ) ) AS col0
----
67

query I rowsort
SELECT 51 + - 37 * 83
----
-3020

query I rowsort
SELECT 57 * + - 13
----
-741

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2618
SELECT - COUNT( * ) * 51 + 24 DIV COUNT( * )
----
-27

skipif mysql # not compatible
query I rowsort label-2618
SELECT - COUNT ( * ) * 51 + 24 / COUNT ( * )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-2619
SELECT + COUNT( * ) - - ( + 94 ) AS col2
----
95

skipif mysql # not compatible
query I rowsort label-2619
SELECT + COUNT ( * ) - - ( + 94 ) AS col2
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2620
SELECT DISTINCT SUM( + 1 ) * - 40 AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-2620
SELECT DISTINCT SUM ( + 1 ) * - 40 AS col1
----
-40

query I rowsort
SELECT + 89 * - - 60 col1
----
5340

onlyif mysql # aggregate syntax: 
query I rowsort label-2622
SELECT ALL COUNT( + 61 )
----
1

skipif mysql # not compatible
query I rowsort label-2622
SELECT ALL COUNT ( + 61 )
----
1

query I rowsort
SELECT - ( + - 97 ) col2
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2624
SELECT + MIN( 34 ) DIV + - 89 + - + 24
----
-24

skipif mysql # not compatible
query I rowsort label-2624
SELECT + MIN ( 34 ) / + - 89 + - + 24
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-2625
SELECT - + 24 * COUNT( * )
----
-24

skipif mysql # not compatible
query I rowsort label-2625
SELECT - + 24 * COUNT ( * )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-2626
SELECT MAX( + 32 ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-2626
SELECT MAX ( + 32 ) AS col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2627
SELECT + 4 + + COUNT( * ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-2627
SELECT + 4 + + COUNT ( * ) AS col1
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-2628
SELECT ALL + COUNT( * ) AS col0, 96 col2
----
1
96

skipif mysql # not compatible
query II rowsort label-2628
SELECT ALL + COUNT ( * ) AS col0, 96 col2
----
1
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2629
SELECT ALL + - CAST( + + COUNT( ALL + 71 ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-2629
SELECT ALL + - CAST ( + + COUNT ( ALL + 71 ) AS INTEGER )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2630
SELECT DISTINCT + ( - NULLIF ( + 24, + CAST( NULL AS SIGNED ) ) ) AS col0, + COUNT( DISTINCT - + CAST( NULL AS SIGNED ) ) AS col2
----
-24
0

skipif mysql # not compatible
query II rowsort label-2630
SELECT DISTINCT + ( - NULLIF ( + 24, + CAST ( NULL AS INTEGER ) ) ) AS col0, + COUNT ( DISTINCT - + CAST ( NULL AS INTEGER ) ) AS col2
----
-24
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2631
SELECT + COUNT( * ) * - 80 AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-2631
SELECT + COUNT ( * ) * - 80 AS col1
----
-80

query I rowsort
SELECT 61 + 50 AS col1
----
111

onlyif mysql # aggregate syntax: 
query II rowsort label-2633
SELECT ALL + 54 * + - COUNT( * ) AS col1, 22 AS col0
----
-54
22

skipif mysql # not compatible
query II rowsort label-2633
SELECT ALL + 54 * + - COUNT ( * ) AS col1, 22 AS col0
----
-54
22

query I rowsort
SELECT 41 - - - 58
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2635
SELECT 92 + COUNT( * ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-2635
SELECT 92 + COUNT ( * ) AS col1
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-2636
SELECT + 95 * + 30, + COUNT( * ) + COUNT( * ) * + 18 - 70 AS col1
----
2850
-51

skipif mysql # not compatible
query II rowsort label-2636
SELECT + 95 * + 30, + COUNT ( * ) + COUNT ( * ) * + 18 - 70 AS col1
----
2850
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-2637
SELECT + ( ( - COUNT( * ) ) ) AS col2, 37 AS col0
----
-1
37

skipif mysql # not compatible
query II rowsort label-2637
SELECT + ( ( - COUNT ( * ) ) ) AS col2, 37 AS col0
----
-1
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2638
SELECT DISTINCT - CAST( NULL AS SIGNED ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2638
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT 94 + - 0 col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2640
SELECT ALL MAX( DISTINCT - 61 ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-2640
SELECT ALL MAX ( DISTINCT - 61 ) AS col2
----
-61

query I rowsort
SELECT ( - 67 ) AS col1
----
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2642
SELECT DISTINCT 80 DIV COUNT( * ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-2642
SELECT DISTINCT 80 / COUNT ( * ) AS col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2643
SELECT 90 * - COUNT( * ) + - COUNT( * )
----
-91

skipif mysql # not compatible
query I rowsort label-2643
SELECT 90 * - COUNT ( * ) + - COUNT ( * )
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-2644
SELECT MIN( DISTINCT + + 56 ) AS col2, + 76 AS col2
----
56
76

skipif mysql # not compatible
query II rowsort label-2644
SELECT MIN ( DISTINCT + + 56 ) AS col2, + 76 AS col2
----
56
76

query I rowsort
SELECT ALL + 25 + 4 AS col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-2646
SELECT + MIN( + - 16 ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-2646
SELECT + MIN ( + - 16 ) AS col2
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-2647
SELECT ALL + - ( - 79 ), + COUNT( * ) AS col0
----
79
1

skipif mysql # not compatible
query II rowsort label-2647
SELECT ALL + - ( - 79 ), + COUNT ( * ) AS col0
----
79
1

query I rowsort
SELECT ( - + 15 )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2649
SELECT + ( COUNT( * ) ) * - MIN( 78 )
----
-78

skipif mysql # not compatible
query I rowsort label-2649
SELECT + ( COUNT ( * ) ) * - MIN ( 78 )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-2650
SELECT DISTINCT COUNT( * ) + + 75
----
76

skipif mysql # not compatible
query I rowsort label-2650
SELECT DISTINCT COUNT ( * ) + + 75
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-2651
SELECT ALL + ( COUNT( * ) ) + 64
----
65

skipif mysql # not compatible
query I rowsort label-2651
SELECT ALL + ( COUNT ( * ) ) + 64
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2652
SELECT ALL - MIN( 58 ) + 16
----
-42

skipif mysql # not compatible
query I rowsort label-2652
SELECT ALL - MIN ( 58 ) + 16
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-2653
SELECT + SUM( ALL ( + 62 ) ) * 88 + - 85 AS col2
----
5371

skipif mysql # not compatible
query I rowsort label-2653
SELECT + SUM ( ALL ( + 62 ) ) * 88 + - 85 AS col2
----
5371

onlyif mysql # aggregate syntax: 
query I rowsort label-2654
SELECT ALL - COUNT( * ) * ( 99 ) AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-2654
SELECT ALL - COUNT ( * ) * ( 99 ) AS col0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2655
SELECT - CAST( CAST( 95 AS SIGNED ) AS SIGNED ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-2655
SELECT - CAST ( CAST ( 95 AS INTEGER ) AS INTEGER ) AS col0
----
-95

query I rowsort
SELECT 86 * - 46 AS col2
----
-3956

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2657
SELECT + 59 DIV + COUNT( * ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-2657
SELECT + 59 / + COUNT ( * ) AS col0
----
59

query I rowsort
SELECT - - 39 col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2659
SELECT - + SUM( DISTINCT 99 )
----
-99

skipif mysql # not compatible
query I rowsort label-2659
SELECT - + SUM ( DISTINCT 99 )
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2660
SELECT ALL - 2 * - + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-2660
SELECT ALL - 2 * - + COUNT ( * )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2661
SELECT ALL - 73 * + - CAST( - 56 AS SIGNED ) AS col2
----
-4088

skipif mysql # not compatible
query I rowsort label-2661
SELECT ALL - 73 * + - CAST ( - 56 AS INTEGER ) AS col2
----
-4088

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2662
SELECT SUM( - - CAST( + 65 AS SIGNED ) ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-2662
SELECT SUM ( - - CAST ( + 65 AS INTEGER ) ) AS col1
----
65

query II rowsort
SELECT - - 23, - 95 AS col1
----
23
-95

query I rowsort
SELECT ALL ( + 14 ) AS col1
----
14

query II rowsort
SELECT ALL 32 AS col1, + 21
----
32
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2666
SELECT COUNT( * ) - 86 AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-2666
SELECT COUNT ( * ) - 86 AS col2
----
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-2667
SELECT - 15 DIV + 66
----
0

skipif mysql # not compatible
query I rowsort label-2667
SELECT - 15 / + 66
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2668
SELECT ALL - 13 + COUNT( * ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-2668
SELECT ALL - 13 + COUNT ( * ) AS col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-2669
SELECT ALL COUNT( * ) * - 34 AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-2669
SELECT ALL COUNT ( * ) * - 34 AS col1
----
-34

query I rowsort
SELECT + - 23 + - 50 AS col1
----
-73

query I rowsort
SELECT - 35 * - 77
----
2695

onlyif mysql # aggregate syntax: 
query I rowsort label-2672
SELECT ALL COALESCE ( + ( + SUM( DISTINCT 55 ) ), + COUNT( * ) ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-2672
SELECT ALL COALESCE ( + ( + SUM ( DISTINCT 55 ) ), + COUNT ( * ) ) AS col2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2673
SELECT + - COUNT( 43 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2673
SELECT + - COUNT ( 43 ) AS col1
----
-1

query I rowsort
SELECT ALL 33 * - + 25
----
-825

onlyif mysql # aggregate syntax: 
query I rowsort label-2675
SELECT ALL + COUNT( * ) + 28 * - 50
----
-1399

skipif mysql # not compatible
query I rowsort label-2675
SELECT ALL + COUNT ( * ) + 28 * - 50
----
-1399

onlyif mysql # aggregate syntax: 
query I rowsort label-2676
SELECT 10 + + COUNT( * ) - + 41 AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-2676
SELECT 10 + + COUNT ( * ) - + 41 AS col0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-2677
SELECT + MIN( ALL - 38 ) * + + COUNT( * )
----
-38

skipif mysql # not compatible
query I rowsort label-2677
SELECT + MIN ( ALL - 38 ) * + + COUNT ( * )
----
-38

query I rowsort
SELECT DISTINCT - 84 + 17 * 61 AS col1
----
953

query I rowsort
SELECT + 9 * + 75 + + 14 AS col1
----
689

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2680
SELECT ALL - ( + - ( + ( - CAST( NULL AS SIGNED ) ) ) ) AS col2, - COUNT( * )
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-2680
SELECT ALL - ( + - ( + ( - CAST ( NULL AS INTEGER ) ) ) ) AS col2, - COUNT ( * )
----
NULL
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2681
SELECT + NULLIF ( MIN( ALL + + 20 ), + + 42 ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-2681
SELECT + NULLIF ( MIN ( ALL + + 20 ), + + 42 ) AS col2
----
20

query I rowsort
SELECT + 79 + - 40
----
39

query I rowsort
SELECT + + ( - + 1 )
----
-1

query I rowsort
SELECT - ( - - 97 ) AS col2
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2685
SELECT - - ( COUNT( * ) ) + - COUNT( * ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2685
SELECT - - ( COUNT ( * ) ) + - COUNT ( * ) * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2686
SELECT ALL - - CAST( NULL AS SIGNED ) - - 99 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2686
SELECT ALL - - CAST ( NULL AS INTEGER ) - - 99 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2687
SELECT DISTINCT + ( MIN( - - 75 ) )
----
75

skipif mysql # not compatible
query I rowsort label-2687
SELECT DISTINCT + ( MIN ( - - 75 ) )
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2688
SELECT ALL - CAST( - + COUNT( * ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-2688
SELECT ALL - CAST ( - + COUNT ( * ) AS INTEGER )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2689
SELECT COUNT( * ) + - CAST( - - 31 AS SIGNED ) AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-2689
SELECT COUNT ( * ) + - CAST ( - - 31 AS INTEGER ) AS col2
----
-30

query I rowsort
SELECT ALL - ( + + 84 )
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2691
SELECT DISTINCT - CAST( NULL AS SIGNED ) + COUNT( * ) * - SUM( - + 9 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2691
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + COUNT ( * ) * - SUM ( - + 9 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2692
SELECT 39 * - - COALESCE ( + - COUNT( * ), + COUNT( * ) ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-2692
SELECT 39 * - - COALESCE ( + - COUNT ( * ), + COUNT ( * ) ) AS col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-2693
SELECT DISTINCT MIN( ALL 66 ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-2693
SELECT DISTINCT MIN ( ALL 66 ) AS col1
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2694
SELECT DISTINCT 70 DIV + MAX( ( + + 28 ) )
----
2

skipif mysql # not compatible
query I rowsort label-2694
SELECT DISTINCT 70 / + MAX ( ( + + 28 ) )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2695
SELECT DISTINCT - COUNT( * ) + - ( 32 ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-2695
SELECT DISTINCT - COUNT ( * ) + - ( 32 ) AS col0
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2696
SELECT DISTINCT + SUM( DISTINCT - + CAST( - 50 AS SIGNED ) )
----
50

skipif mysql # not compatible
query I rowsort label-2696
SELECT DISTINCT + SUM ( DISTINCT - + CAST ( - 50 AS INTEGER ) )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2697
SELECT ALL 18 + + COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-2697
SELECT ALL 18 + + COUNT ( * )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-2698
SELECT ALL - MIN( ALL + 52 ) col1
----
-52

skipif mysql # not compatible
query I rowsort label-2698
SELECT ALL - MIN ( ALL + 52 ) col1
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2699
SELECT ALL + 41 DIV COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-2699
SELECT ALL + 41 / COUNT ( * )
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2700
SELECT + 94 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2700
SELECT + 94 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2701
SELECT + COUNT( * ) * + 95
----
95

skipif mysql # not compatible
query I rowsort label-2701
SELECT + COUNT ( * ) * + 95
----
95

query I rowsort
SELECT DISTINCT + - 8 AS col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-2703
SELECT DISTINCT - 72 * + - COUNT( * ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-2703
SELECT DISTINCT - 72 * + - COUNT ( * ) AS col2
----
72

query I rowsort
SELECT ALL ( 9 ) AS col1
----
9

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2705
SELECT ALL - + CAST( - - CAST( NULL AS SIGNED ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2705
SELECT ALL - + CAST ( - - CAST ( NULL AS INTEGER ) AS REAL )
----
NULL

query I rowsort
SELECT ( - ( 31 ) ) AS col2
----
-31

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2707
SELECT ALL - CAST( NULL AS DECIMAL ) * ( SUM( ALL - ( 15 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2707
SELECT ALL - CAST ( NULL AS REAL ) * ( SUM ( ALL - ( 15 ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2708
SELECT + 8 AS col2, + COUNT( * ) col1
----
8
1

skipif mysql # not compatible
query II rowsort label-2708
SELECT + 8 AS col2, + COUNT ( * ) col1
----
8
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2709
SELECT MIN( ALL - 65 ) AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-2709
SELECT MIN ( ALL - 65 ) AS col0
----
-65

query I rowsort
SELECT 70 + 62
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-2711
SELECT ALL NULLIF ( + SUM( DISTINCT - ( + + 12 ) ), 77 ) AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-2711
SELECT ALL NULLIF ( + SUM ( DISTINCT - ( + + 12 ) ), 77 ) AS col2
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-2712
SELECT ( + COUNT( * ) ) AS col2, COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-2712
SELECT ( + COUNT ( * ) ) AS col2, COUNT ( * )
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2713
SELECT - COALESCE ( - 11, + MIN( + 47 ) ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-2713
SELECT - COALESCE ( - 11, + MIN ( + 47 ) ) AS col0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2714
SELECT DISTINCT COUNT( * ) + + 98
----
99

skipif mysql # not compatible
query I rowsort label-2714
SELECT DISTINCT COUNT ( * ) + + 98
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2715
SELECT ALL - - ( - NULLIF ( - - ( - COUNT( * ) ), 69 ) )
----
1

skipif mysql # not compatible
query I rowsort label-2715
SELECT ALL - - ( - NULLIF ( - - ( - COUNT ( * ) ), 69 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2716
SELECT ALL - SUM( ALL - 64 )
----
64

skipif mysql # not compatible
query I rowsort label-2716
SELECT ALL - SUM ( ALL - 64 )
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2717
SELECT DISTINCT 34 + + 76 * + CAST( - - ( 83 ) AS SIGNED ) DIV - + COUNT( * )
----
-6274

skipif mysql # not compatible
query I rowsort label-2717
SELECT DISTINCT 34 + + 76 * + CAST ( - - ( 83 ) AS INTEGER ) / - + COUNT ( * )
----
-6274

query II rowsort
SELECT 73 * + - 99 col0, ( - 14 ) AS col1
----
-7227
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2719
SELECT ALL - ( - 37 ) * - + MAX( ALL + + 22 ) + + CAST( 37 AS SIGNED ) AS col0
----
-777

skipif mysql # not compatible
query I rowsort label-2719
SELECT ALL - ( - 37 ) * - + MAX ( ALL + + 22 ) + + CAST ( 37 AS INTEGER ) AS col0
----
-777

query I rowsort
SELECT DISTINCT - - ( - 97 )
----
-97

query I rowsort
SELECT DISTINCT 29 + + 33 AS col0
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2722
SELECT CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + + + 83 * - ( - - ( - CAST( - 42 AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2722
SELECT CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + + + 83 * - ( - - ( - CAST ( - 42 AS INTEGER ) ) )
----
NULL

query I rowsort
SELECT 99 - + 29
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2724
SELECT ALL MAX( DISTINCT - - 22 )
----
22

skipif mysql # not compatible
query I rowsort label-2724
SELECT ALL MAX ( DISTINCT - - 22 )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2725
SELECT DISTINCT MAX( - - 41 ) col0
----
41

skipif mysql # not compatible
query I rowsort label-2725
SELECT DISTINCT MAX ( - - 41 ) col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2726
SELECT DISTINCT - MIN( + 78 ) AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-2726
SELECT DISTINCT - MIN ( + 78 ) AS col0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-2727
SELECT + + NULLIF ( 66, COUNT( * ) ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-2727
SELECT + + NULLIF ( 66, COUNT ( * ) ) AS col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2728
SELECT MAX( DISTINCT + 38 )
----
38

skipif mysql # not compatible
query I rowsort label-2728
SELECT MAX ( DISTINCT + 38 )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2729
SELECT ALL + SUM( - + 78 )
----
-78

skipif mysql # not compatible
query I rowsort label-2729
SELECT ALL + SUM ( - + 78 )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-2730
SELECT SUM( ALL - - 20 )
----
20

skipif mysql # not compatible
query I rowsort label-2730
SELECT SUM ( ALL - - 20 )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-2731
SELECT DISTINCT + SUM( ALL - - 23 ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-2731
SELECT DISTINCT + SUM ( ALL - - 23 ) AS col2
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-2732
SELECT ALL - 47, COUNT( ALL + + NULLIF ( + + 60, - ( - 40 ) * + 38 ) ) AS col0
----
-47
1

skipif mysql # not compatible
query II rowsort label-2732
SELECT ALL - 47, COUNT ( ALL + + NULLIF ( + + 60, - ( - 40 ) * + 38 ) ) AS col0
----
-47
1

query I rowsort
SELECT ALL - 41 * - ( + 7 ) AS col1
----
287

onlyif mysql # DIV for integer division: 
query I rowsort label-2734
SELECT ALL + 61 DIV + + 92 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2734
SELECT ALL + 61 / + + 92 AS col1
----
0

query I rowsort
SELECT ( + + 99 ) AS col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2736
SELECT DISTINCT - COUNT( * ) + - 23 AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-2736
SELECT DISTINCT - COUNT ( * ) + - 23 AS col2
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2737
SELECT 73 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2737
SELECT 73 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2738
SELECT ALL - MAX( ALL - - ( - - 68 ) )
----
-68

skipif mysql # not compatible
query I rowsort label-2738
SELECT ALL - MAX ( ALL - - ( - - 68 ) )
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-2739
SELECT ALL MAX( - + 56 ) * + ( 66 )
----
-3696

skipif mysql # not compatible
query I rowsort label-2739
SELECT ALL MAX ( - + 56 ) * + ( 66 )
----
-3696

query I rowsort
SELECT ALL ( - 67 ) AS col2
----
-67

query I rowsort
SELECT ALL + 16 + 40 AS col0
----
56

query I rowsort
SELECT ALL - 43 col0
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-2743
SELECT 8 DIV + 19 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2743
SELECT 8 / + 19 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2744
SELECT DISTINCT + + COUNT( + 26 )
----
1

skipif mysql # not compatible
query I rowsort label-2744
SELECT DISTINCT + + COUNT ( + 26 )
----
1

query I rowsort
SELECT ( + 99 )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2746
SELECT + 57 * + 81 - + - COUNT( * ) AS col0
----
4618

skipif mysql # not compatible
query I rowsort label-2746
SELECT + 57 * + 81 - + - COUNT ( * ) AS col0
----
4618

onlyif mysql # DIV for integer division: 
query II rowsort label-2747
SELECT ALL 63 AS col2, + 54 DIV 11 AS col1
----
63
4

skipif mysql # not compatible
query II rowsort label-2747
SELECT ALL 63 AS col2, + 54 / 11 AS col1
----
63
4

onlyif mysql # DIV for integer division: 
query I rowsort label-2748
SELECT 1 DIV + 79 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2748
SELECT 1 / + 79 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2749
SELECT COUNT( * ) * - 48 col1
----
-48

skipif mysql # not compatible
query I rowsort label-2749
SELECT COUNT ( * ) * - 48 col1
----
-48

query I rowsort
SELECT 3 + 65 AS col0
----
68

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2751
SELECT DISTINCT - + CAST( NULL AS DECIMAL ) AS col2, - 59
----
NULL
-59

skipif mysql # not compatible
query II rowsort label-2751
SELECT DISTINCT - + CAST ( NULL AS REAL ) AS col2, - 59
----
NULL
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2752
SELECT 96 * - MAX( 9 )
----
-864

skipif mysql # not compatible
query I rowsort label-2752
SELECT 96 * - MAX ( 9 )
----
-864

query I rowsort
SELECT ALL - - ( 80 )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2754
SELECT - COUNT( * ) + + - 43
----
-44

skipif mysql # not compatible
query I rowsort label-2754
SELECT - COUNT ( * ) + + - 43
----
-44

query I rowsort
SELECT ( - 79 ) * + 97
----
-7663

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2756
SELECT ALL - AVG ( - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2756
SELECT ALL - AVG ( - CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT ALL 11 * + + 30
----
330

query I rowsort
SELECT - 24 - - 89
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2759
SELECT DISTINCT COUNT( * ) AS col0, CAST( NULL AS SIGNED ) AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-2759
SELECT DISTINCT COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) AS col2
----
1
NULL

query I rowsort
SELECT ALL - 11 + 94 AS col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2761
SELECT DISTINCT SUM( DISTINCT - + 70 ) AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-2761
SELECT DISTINCT SUM ( DISTINCT - + 70 ) AS col1
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-2762
SELECT - COUNT( - 40 ) + + + 79
----
78

skipif mysql # not compatible
query I rowsort label-2762
SELECT - COUNT ( - 40 ) + + + 79
----
78

query I rowsort
SELECT + 4 * 93
----
372

query I rowsort
SELECT DISTINCT + + 4 col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2765
SELECT ALL 34 + COUNT( * )
----
35

skipif mysql # not compatible
query I rowsort label-2765
SELECT ALL 34 + COUNT ( * )
----
35

query I rowsort
SELECT ALL ( + 61 )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2767
SELECT ALL COUNT( 87 )
----
1

skipif mysql # not compatible
query I rowsort label-2767
SELECT ALL COUNT ( 87 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2768
SELECT + + 61 DIV COUNT( * ), 92 AS col1
----
61
92

skipif mysql # not compatible
query II rowsort label-2768
SELECT + + 61 / COUNT ( * ), 92 AS col1
----
61
92

query I rowsort
SELECT - - 55 + - + 76 AS col2
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-2770
SELECT + - MAX( 1 )
----
-1

skipif mysql # not compatible
query I rowsort label-2770
SELECT + - MAX ( 1 )
----
-1

query I rowsort
SELECT 17 + + 51 AS col2
----
68

query I rowsort
SELECT DISTINCT 23 + - 64 AS col0
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-2773
SELECT DISTINCT - 11 DIV - + 48
----
0

skipif mysql # not compatible
query I rowsort label-2773
SELECT DISTINCT - 11 / - + 48
----
0

query I rowsort
SELECT DISTINCT - + 69
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-2775
SELECT DISTINCT - COUNT( * ) AS col0, - 50 * 56
----
-1
-2800

skipif mysql # not compatible
query II rowsort label-2775
SELECT DISTINCT - COUNT ( * ) AS col0, - 50 * 56
----
-1
-2800

query I rowsort
SELECT 61 + - 73 col2
----
-12

query II rowsort
SELECT - 54 AS col1, 71
----
-54
71

query I rowsort
SELECT DISTINCT + - 85 + + 64 AS col2
----
-21

query I rowsort
SELECT ALL + + 41 AS col0
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2780
SELECT ALL - 21 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2780
SELECT ALL - 21 * - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2781
SELECT + 57 * + + COUNT( * ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-2781
SELECT + 57 * + + COUNT ( * ) AS col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2782
SELECT - COUNT( + 81 )
----
-1

skipif mysql # not compatible
query I rowsort label-2782
SELECT - COUNT ( + 81 )
----
-1

query II rowsort
SELECT ALL + 65, 65 AS col1
----
65
65

query I rowsort
SELECT DISTINCT + ( 17 )
----
17

query I rowsort
SELECT + ( - 71 )
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2786
SELECT - CAST( - - 55 AS SIGNED )
----
-55

skipif mysql # not compatible
query I rowsort label-2786
SELECT - CAST ( - - 55 AS INTEGER )
----
-55

query I rowsort
SELECT 50 - + 9
----
41

query II rowsort
SELECT 72, - 57 col0
----
72
-57

query I rowsort
SELECT DISTINCT - 77 - 91
----
-168

onlyif mysql # aggregate syntax: 
query II rowsort label-2790
SELECT ALL - COUNT( * ) AS col2, 54 AS col2
----
-1
54

skipif mysql # not compatible
query II rowsort label-2790
SELECT ALL - COUNT ( * ) AS col2, 54 AS col2
----
-1
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2791
SELECT SUM( + - 72 ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-2791
SELECT SUM ( + - 72 ) AS col0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-2792
SELECT - 92 * ( + + COUNT( * ) ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-2792
SELECT - 92 * ( + + COUNT ( * ) ) AS col1
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2793
SELECT ( - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2793
SELECT ( - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT ( - - 98 ) col2
----
98

query II rowsort
SELECT ( - 86 ) AS col0, - 83
----
-86
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-2796
SELECT ALL - COUNT( 86 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2796
SELECT ALL - COUNT ( 86 ) AS col2
----
-1

query I rowsort
SELECT ( + 79 ) AS col1
----
79

query I rowsort
SELECT ALL 96 + 11 AS col2
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-2799
SELECT - MIN( DISTINCT + 30 )
----
-30

skipif mysql # not compatible
query I rowsort label-2799
SELECT - MIN ( DISTINCT + 30 )
----
-30

query I rowsort
SELECT ALL - + 90 AS col1
----
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-2801
SELECT + ( + 72 ), MIN( DISTINCT 73 ) AS col0
----
72
73

skipif mysql # not compatible
query II rowsort label-2801
SELECT + ( + 72 ), MIN ( DISTINCT 73 ) AS col0
----
72
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2802
SELECT - ( MAX( DISTINCT + 54 ) )
----
-54

skipif mysql # not compatible
query I rowsort label-2802
SELECT - ( MAX ( DISTINCT + 54 ) )
----
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2803
SELECT 80 DIV + - COUNT( * )
----
-80

skipif mysql # not compatible
query I rowsort label-2803
SELECT 80 / + - COUNT ( * )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2804
SELECT ( COUNT( * ) ) * 75 + + - 55 AS col0
----
20

skipif mysql # not compatible
query I rowsort label-2804
SELECT ( COUNT ( * ) ) * 75 + + - 55 AS col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-2805
SELECT ALL + + 27 + + COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-2805
SELECT ALL + + 27 + + COUNT ( * )
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-2806
SELECT ALL - 67 DIV 36
----
-1

skipif mysql # not compatible
query I rowsort label-2806
SELECT ALL - 67 / 36
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2807
SELECT 65 DIV + 21 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-2807
SELECT 65 / + 21 AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2808
SELECT ALL + COUNT( * ) + - - COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-2808
SELECT ALL + COUNT ( * ) + - - COUNT ( * ) AS col1
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-2809
SELECT ALL - COUNT( * ), - 20 AS col2
----
-1
-20

skipif mysql # not compatible
query II rowsort label-2809
SELECT ALL - COUNT ( * ), - 20 AS col2
----
-1
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-2810
SELECT ALL + 37 + - - MAX( ALL - 85 )
----
-48

skipif mysql # not compatible
query I rowsort label-2810
SELECT ALL + 37 + - - MAX ( ALL - 85 )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-2811
SELECT + - COUNT( - - 63 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2811
SELECT + - COUNT ( - - 63 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2812
SELECT ALL MIN( ALL - 25 ) + + 73
----
48

skipif mysql # not compatible
query I rowsort label-2812
SELECT ALL MIN ( ALL - 25 ) + + 73
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2813
SELECT ALL COUNT( * ) + - + 12
----
-11

skipif mysql # not compatible
query I rowsort label-2813
SELECT ALL COUNT ( * ) + - + 12
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2814
SELECT + COUNT( * ) DIV - 24 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2814
SELECT + COUNT ( * ) / - 24 AS col2
----
0

query I rowsort
SELECT DISTINCT 32 + 55 AS col2
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2816
SELECT ALL + COUNT( DISTINCT - - 80 )
----
1

skipif mysql # not compatible
query I rowsort label-2816
SELECT ALL + COUNT ( DISTINCT - - 80 )
----
1

query I rowsort
SELECT + 33 + + 13
----
46

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2818
SELECT ALL - CAST( NULL AS DECIMAL ) * - + COUNT( * ) * - 63 * 73 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2818
SELECT ALL - CAST ( NULL AS REAL ) * - + COUNT ( * ) * - 63 * 73 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2819
SELECT ALL + MIN( DISTINCT + CAST( NULL AS SIGNED ) ) / - - 91
----
NULL

skipif mysql # not compatible
query I rowsort label-2819
SELECT ALL + MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) / - - 91
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2820
SELECT 99 + - - COUNT( * )
----
100

skipif mysql # not compatible
query I rowsort label-2820
SELECT 99 + - - COUNT ( * )
----
100

query I rowsort
SELECT - 65 * 7
----
-455

onlyif mysql # DIV for integer division: 
query I rowsort label-2822
SELECT - 92 DIV + 97 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2822
SELECT - 92 / + 97 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2823
SELECT ALL - 43 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2823
SELECT ALL - 43 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2824
SELECT + COUNT( * ) + - COUNT( * ) * - + 72 AS col0
----
73

skipif mysql # not compatible
query I rowsort label-2824
SELECT + COUNT ( * ) + - COUNT ( * ) * - + 72 AS col0
----
73

query I rowsort
SELECT ALL - 23 + + 44
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-2826
SELECT DISTINCT + 34 DIV 22
----
1

skipif mysql # not compatible
query I rowsort label-2826
SELECT DISTINCT + 34 / 22
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2827
SELECT ALL COUNT( * ) * COUNT( * ) + - 25 AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-2827
SELECT ALL COUNT ( * ) * COUNT ( * ) + - 25 AS col2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-2828
SELECT ALL + COUNT( * ) * + COUNT( * ) col0
----
1

skipif mysql # not compatible
query I rowsort label-2828
SELECT ALL + COUNT ( * ) * + COUNT ( * ) col0
----
1

query I rowsort
SELECT ALL ( - - 99 ) AS col1
----
99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2830
SELECT - - ( CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2830
SELECT - - ( CAST ( NULL AS REAL ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2831
SELECT ALL + MIN( ALL + + 15 )
----
15

skipif mysql # not compatible
query I rowsort label-2831
SELECT ALL + MIN ( ALL + + 15 )
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2832
SELECT + CAST( - + COUNT( * ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-2832
SELECT + CAST ( - + COUNT ( * ) AS INTEGER )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2833
SELECT - + SUM( ALL 91 ) col1
----
-91

skipif mysql # not compatible
query I rowsort label-2833
SELECT - + SUM ( ALL 91 ) col1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2834
SELECT ALL - + COUNT( * ) + + + 35
----
34

skipif mysql # not compatible
query I rowsort label-2834
SELECT ALL - + COUNT ( * ) + + + 35
----
34

query I rowsort
SELECT - - 55 AS col2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2836
SELECT ALL - MAX( - + 21 )
----
21

skipif mysql # not compatible
query I rowsort label-2836
SELECT ALL - MAX ( - + 21 )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2837
SELECT ( COUNT( * ) ) + 49 AS col2
----
50

skipif mysql # not compatible
query I rowsort label-2837
SELECT ( COUNT ( * ) ) + 49 AS col2
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-2838
SELECT - 81 AS col0, COUNT( * ) AS col2
----
-81
1

skipif mysql # not compatible
query II rowsort label-2838
SELECT - 81 AS col0, COUNT ( * ) AS col2
----
-81
1

query I rowsort
SELECT DISTINCT + 50 * + - 35 AS col2
----
-1750

query II rowsort
SELECT - 2 AS col1, 49 AS col1
----
-2
49

query I rowsort
SELECT 68 * + 9 * 73
----
44676

query I rowsort
SELECT ALL + 71 + - ( + + 93 ) AS col2
----
-22

query I rowsort
SELECT - 89 + - - 35 AS col0
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2844
SELECT DISTINCT - 66 + - CAST( - 92 AS SIGNED ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-2844
SELECT DISTINCT - 66 + - CAST ( - 92 AS INTEGER ) AS col0
----
26

query I rowsort
SELECT ALL 2 col2
----
2

query I rowsort
SELECT ALL + 2 * 21
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-2847
SELECT ALL 63 AS col1, COUNT( * ) AS col1
----
63
1

skipif mysql # not compatible
query II rowsort label-2847
SELECT ALL 63 AS col1, COUNT ( * ) AS col1
----
63
1

query I rowsort
SELECT DISTINCT - - 52 AS col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2849
SELECT - 14 + COUNT( * )
----
-13

skipif mysql # not compatible
query I rowsort label-2849
SELECT - 14 + COUNT ( * )
----
-13

query I rowsort
SELECT ALL - 72 - - - 99 AS col1
----
-171

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2851
SELECT - ( 6 ) DIV CAST( 83 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-2851
SELECT - ( 6 ) / CAST ( 83 AS INTEGER )
----
0

query I rowsort
SELECT - ( 4 )
----
-4

query I rowsort
SELECT ALL 91 * 31 AS col1
----
2821

query I rowsort
SELECT + ( + ( 26 ) ) AS col0
----
26

query I rowsort
SELECT 54 * - + 43 - - 79
----
-2243

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2856
SELECT + COUNT( * ) + 0 DIV - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-2856
SELECT + COUNT ( * ) + 0 / - COUNT ( * )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2857
SELECT ALL + 37 + 58 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2857
SELECT ALL + 37 + 58 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT ( - - 89 ) * 95
----
8455

query I rowsort
SELECT ALL - - 37 AS col1
----
37

query I rowsort
SELECT DISTINCT - NULLIF ( + 25, 49 ) col1
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-2861
SELECT DISTINCT + + COUNT( * ) + + 37 AS col0
----
38

skipif mysql # not compatible
query I rowsort label-2861
SELECT DISTINCT + + COUNT ( * ) + + 37 AS col0
----
38

query I rowsort
SELECT + 29 - 61 AS col1
----
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2863
SELECT DISTINCT + COUNT( * ), + 36 DIV 20
----
1
1

skipif mysql # not compatible
query II rowsort label-2863
SELECT DISTINCT + COUNT ( * ), + 36 / 20
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2864
SELECT - MIN( DISTINCT + 48 ) + + 6 + - COUNT( * ) * + 44 AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-2864
SELECT - MIN ( DISTINCT + 48 ) + + 6 + - COUNT ( * ) * + 44 AS col2
----
-86

query I rowsort
SELECT DISTINCT + 91 col0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2866
SELECT SUM( ALL - 11 ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-2866
SELECT SUM ( ALL - 11 ) AS col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-2867
SELECT + ( + COUNT( ALL - 14 ) )
----
1

skipif mysql # not compatible
query I rowsort label-2867
SELECT + ( + COUNT ( ALL - 14 ) )
----
1

query I rowsort
SELECT + ( + - 87 ) + - 78
----
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-2869
SELECT - + COUNT( ALL + 81 ) + SUM( + + 52 ) + 44
----
95

skipif mysql # not compatible
query I rowsort label-2869
SELECT - + COUNT ( ALL + 81 ) + SUM ( + + 52 ) + 44
----
95

query I rowsort
SELECT - ( 85 ) AS col1
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2871
SELECT ALL CAST( + 71 AS SIGNED ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-2871
SELECT ALL CAST ( + 71 AS INTEGER ) AS col2
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2872
SELECT CAST( ( + - COUNT( * ) ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-2872
SELECT CAST ( ( + - COUNT ( * ) ) AS INTEGER )
----
-1

query I rowsort
SELECT ( + + 52 ) col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2874
SELECT + COUNT( * ) * + ( - 41 ) AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-2874
SELECT + COUNT ( * ) * + ( - 41 ) AS col2
----
-41

query I rowsort
SELECT + 90 * + - ( 26 ) AS col0
----
-2340

query I rowsort
SELECT + 55 * 62 AS col2
----
3410

query I rowsort
SELECT ALL 3 + 0
----
3

query I rowsort
SELECT 19 * - 93
----
-1767

query II rowsort
SELECT + 89, + 27 AS col0
----
89
27

onlyif mysql # DIV for integer division: 
query I rowsort label-2880
SELECT DISTINCT + 47 DIV - 42
----
-1

skipif mysql # not compatible
query I rowsort label-2880
SELECT DISTINCT + 47 / - 42
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2881
SELECT ALL CAST( NULL AS SIGNED ) * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2881
SELECT ALL CAST ( NULL AS INTEGER ) * + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2882
SELECT MIN( ALL + 89 ) + + + 98 AS col2
----
187

skipif mysql # not compatible
query I rowsort label-2882
SELECT MIN ( ALL + 89 ) + + + 98 AS col2
----
187

onlyif mysql # aggregate syntax: 
query I rowsort label-2883
SELECT - ( + 50 ) + - COUNT( * ) AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-2883
SELECT - ( + 50 ) + - COUNT ( * ) AS col2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-2884
SELECT ALL MIN( - 91 ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-2884
SELECT ALL MIN ( - 91 ) AS col1
----
-91

query I rowsort
SELECT ( + - 33 ) col2
----
-33

query I rowsort
SELECT DISTINCT - - 50 * + 62
----
3100

onlyif mysql # aggregate syntax: 
query I rowsort label-2887
SELECT DISTINCT - + MIN( - 66 ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-2887
SELECT DISTINCT - + MIN ( - 66 ) AS col1
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2888
SELECT DISTINCT + 87 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2888
SELECT DISTINCT + 87 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL - + 56 + 43 col0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-2890
SELECT ALL + 1 - - COUNT( * ) - + 57
----
-55

skipif mysql # not compatible
query I rowsort label-2890
SELECT ALL + 1 - - COUNT ( * ) - + 57
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-2891
SELECT 93 DIV + 96 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2891
SELECT 93 / + 96 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2892
SELECT DISTINCT + 19 DIV - 3
----
-6

skipif mysql # not compatible
query I rowsort label-2892
SELECT DISTINCT + 19 / - 3
----
-6

query I rowsort
SELECT ALL + 9 + 22
----
31

query I rowsort
SELECT 40 * - 92 AS col2
----
-3680

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2895
SELECT 47 + + CAST( NULL AS SIGNED ) - - 31 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2895
SELECT 47 + + CAST ( NULL AS INTEGER ) - - 31 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 15 * - 24 AS col1
----
-360

onlyif mysql # aggregate syntax: 
query I rowsort label-2897
SELECT + SUM( DISTINCT 49 ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-2897
SELECT + SUM ( DISTINCT 49 ) AS col2
----
49

query II rowsort
SELECT + 15, - 45 AS col0
----
15
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-2899
SELECT - COUNT( * ) AS col2, - 64
----
-1
-64

skipif mysql # not compatible
query II rowsort label-2899
SELECT - COUNT ( * ) AS col2, - 64
----
-1
-64

query I rowsort
SELECT ALL + ( 13 ) AS col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2901
SELECT MIN( - 29 ) col1
----
-29

skipif mysql # not compatible
query I rowsort label-2901
SELECT MIN ( - 29 ) col1
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-2902
SELECT MIN( + 97 ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-2902
SELECT MIN ( + 97 ) AS col2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2903
SELECT DISTINCT + 0 + + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2903
SELECT DISTINCT + 0 + + COUNT ( * ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2904
SELECT + - ( MAX( 93 ) ) AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-2904
SELECT + - ( MAX ( 93 ) ) AS col1
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-2905
SELECT ALL 8 * + COUNT( * ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-2905
SELECT ALL 8 * + COUNT ( * ) AS col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2906
SELECT 27 * - COUNT( * ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-2906
SELECT 27 * - COUNT ( * ) AS col2
----
-27

query I rowsort
SELECT ALL 72 * + 43
----
3096

onlyif mysql # aggregate syntax: 
query I rowsort label-2908
SELECT COUNT( * ) + + 7 col0
----
8

skipif mysql # not compatible
query I rowsort label-2908
SELECT COUNT ( * ) + + 7 col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2909
SELECT + 33 + ( COUNT( * ) )
----
34

skipif mysql # not compatible
query I rowsort label-2909
SELECT + 33 + ( COUNT ( * ) )
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2910
SELECT DISTINCT - CAST( 93 AS SIGNED ), 75 col1
----
-93
75

skipif mysql # not compatible
query II rowsort label-2910
SELECT DISTINCT - CAST ( 93 AS INTEGER ), 75 col1
----
-93
75

query I rowsort
SELECT ALL 62 * + 43
----
2666

onlyif mysql # aggregate syntax: 
query I rowsort label-2912
SELECT ALL + MAX( ALL - - 68 )
----
68

skipif mysql # not compatible
query I rowsort label-2912
SELECT ALL + MAX ( ALL - - 68 )
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2913
SELECT ALL + CAST( NULL AS SIGNED ) / COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2913
SELECT ALL + CAST ( NULL AS INTEGER ) / COUNT ( * ) col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2914
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-2914
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 91
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2915
SELECT DISTINCT COUNT( 26 )
----
1

skipif mysql # not compatible
query I rowsort label-2915
SELECT DISTINCT COUNT ( 26 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2916
SELECT ALL + CAST( - 18 AS SIGNED ) * CAST( NULL AS SIGNED ) - + - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2916
SELECT ALL + CAST ( - 18 AS INTEGER ) * CAST ( NULL AS INTEGER ) - + - COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2917
SELECT + COUNT( * ) * - COUNT( * ) * 56 AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-2917
SELECT + COUNT ( * ) * - COUNT ( * ) * 56 AS col1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-2918
SELECT + 49 + COUNT( - + 31 )
----
50

skipif mysql # not compatible
query I rowsort label-2918
SELECT + 49 + COUNT ( - + 31 )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2919
SELECT - SUM( ALL - - 54 ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-2919
SELECT - SUM ( ALL - - 54 ) AS col1
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2920
SELECT ALL + - COUNT( * ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2920
SELECT ALL + - COUNT ( * ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2921
SELECT 56 DIV + COUNT( * ) * - COUNT( * ) col1
----
-56

skipif mysql # not compatible
query I rowsort label-2921
SELECT 56 / + COUNT ( * ) * - COUNT ( * ) col1
----
-56

query II rowsort
SELECT DISTINCT 1 AS col2, - 27
----
1
-27

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2923
SELECT ALL 59 AS col1, CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col1
----
59
NULL

skipif mysql # not compatible
query II rowsort label-2923
SELECT ALL 59 AS col1, CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1
----
59
NULL

query I rowsort
SELECT ALL - ( - - 89 ) AS col0
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2925
SELECT DISTINCT - 52 col2, + 55 * + CAST( NULL AS SIGNED )
----
-52
NULL

skipif mysql # not compatible
query II rowsort label-2925
SELECT DISTINCT - 52 col2, + 55 * + CAST ( NULL AS INTEGER )
----
-52
NULL

query I rowsort
SELECT ALL - + ( + 31 ) col2
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2927
SELECT ALL MAX( DISTINCT CAST( NULL AS SIGNED ) ) + + + 54 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2927
SELECT ALL MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) + + + 54 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2928
SELECT + + COUNT( * ) + 13 AS col1
----
14

skipif mysql # not compatible
query I rowsort label-2928
SELECT + + COUNT ( * ) + 13 AS col1
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2929
SELECT ALL AVG ( ALL + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2929
SELECT ALL AVG ( ALL + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2930
SELECT - + COUNT( * ) * + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-2930
SELECT - + COUNT ( * ) * + COUNT ( * )
----
-1

query I rowsort
SELECT + 85 + + 99
----
184

onlyif mysql # aggregate syntax: 
query I rowsort label-2932
SELECT DISTINCT + 91 * COUNT( * ) + + 63 AS col2
----
154

skipif mysql # not compatible
query I rowsort label-2932
SELECT DISTINCT + 91 * COUNT ( * ) + + 63 AS col2
----
154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2933
SELECT DISTINCT + - CAST( - 19 AS SIGNED ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-2933
SELECT DISTINCT + - CAST ( - 19 AS INTEGER ) AS col0
----
19

query I rowsort
SELECT 28 * + 52 * - 13 col0
----
-18928

query I rowsort
SELECT DISTINCT - - 22 AS col2
----
22

query I rowsort
SELECT ALL - - 96 AS col0
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2937
SELECT 97 DIV - + COUNT( * )
----
-97

skipif mysql # not compatible
query I rowsort label-2937
SELECT 97 / - + COUNT ( * )
----
-97

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2938
SELECT SUM( CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2938
SELECT SUM ( CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2939
SELECT ALL - COUNT( * ) * + ( - + 75 )
----
75

skipif mysql # not compatible
query I rowsort label-2939
SELECT ALL - COUNT ( * ) * + ( - + 75 )
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2940
SELECT DISTINCT - - 5 DIV - 65 * + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2940
SELECT DISTINCT - - 5 / - 65 * + COUNT ( * ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2941
SELECT + ( 83 ), + 49 DIV - COUNT( * ) + - CAST( + + 2 AS SIGNED ) AS col1
----
83
-51

skipif mysql # not compatible
query II rowsort label-2941
SELECT + ( 83 ), + 49 / - COUNT ( * ) + - CAST ( + + 2 AS INTEGER ) AS col1
----
83
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2942
SELECT MIN( DISTINCT + + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2942
SELECT MIN ( DISTINCT + + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2943
SELECT ALL MIN( 0 )
----
0

skipif mysql # not compatible
query I rowsort label-2943
SELECT ALL MIN ( 0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2944
SELECT - MIN( ALL + 91 ) col0
----
-91

skipif mysql # not compatible
query I rowsort label-2944
SELECT - MIN ( ALL + 91 ) col0
----
-91

query II rowsort
SELECT + 74 AS col0, 24 AS col1
----
74
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2946
SELECT + MIN( ALL - - 92 ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-2946
SELECT + MIN ( ALL - - 92 ) AS col1
----
92

query II rowsort
SELECT ( 37 ) AS col2, 38 AS col1
----
37
38

query I rowsort
SELECT - ( 39 ) AS col0
----
-39

query I rowsort
SELECT DISTINCT 13 * - 21 AS col1
----
-273

query I rowsort
SELECT 94 * 64 AS col2
----
6016

query I rowsort
SELECT 83 * + 40 col1
----
3320

onlyif mysql # aggregate syntax: 
query I rowsort label-2952
SELECT - + CASE + MAX( - 44 ) WHEN - 34 THEN - 43 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2952
SELECT - + CASE + MAX ( - 44 ) WHEN - 34 THEN - 43 END AS col1
----
NULL

query I rowsort
SELECT ALL 11 - 53 col2
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-2954
SELECT - 37, - COUNT( * ) AS col2
----
-37
-1

skipif mysql # not compatible
query II rowsort label-2954
SELECT - 37, - COUNT ( * ) AS col2
----
-37
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2955
SELECT COUNT( DISTINCT CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-2955
SELECT COUNT ( DISTINCT CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2956
SELECT ALL - COUNT( - - 71 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2956
SELECT ALL - COUNT ( - - 71 ) AS col2
----
-1

query I rowsort
SELECT - 31 - 40 col0
----
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-2958
SELECT COUNT( * ) AS col0, 26 AS col1
----
1
26

skipif mysql # not compatible
query II rowsort label-2958
SELECT COUNT ( * ) AS col0, 26 AS col1
----
1
26

onlyif mysql # aggregate syntax: 
query II rowsort label-2959
SELECT DISTINCT + COUNT( * ) AS col0, + 1 * - 62 * - - COUNT( * ) AS col0
----
1
-62

skipif mysql # not compatible
query II rowsort label-2959
SELECT DISTINCT + COUNT ( * ) AS col0, + 1 * - 62 * - - COUNT ( * ) AS col0
----
1
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2960
SELECT DISTINCT + CAST( + 18 AS SIGNED ) col1
----
18

skipif mysql # not compatible
query I rowsort label-2960
SELECT DISTINCT + CAST ( + 18 AS INTEGER ) col1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2961
SELECT - + 30 * - COUNT( * ) * - 32 AS col1
----
-960

skipif mysql # not compatible
query I rowsort label-2961
SELECT - + 30 * - COUNT ( * ) * - 32 AS col1
----
-960

query I rowsort
SELECT ( - 41 ) col2
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-2963
SELECT + + 35 * - COUNT( * )
----
-35

skipif mysql # not compatible
query I rowsort label-2963
SELECT + + 35 * - COUNT ( * )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-2964
SELECT DISTINCT - 56 * + COUNT( * ) + ( - - 79 )
----
23

skipif mysql # not compatible
query I rowsort label-2964
SELECT DISTINCT - 56 * + COUNT ( * ) + ( - - 79 )
----
23

query I rowsort
SELECT ALL ( + 39 ) AS col1
----
39

query I rowsort
SELECT DISTINCT 3 * + 0 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2967
SELECT ALL 28 * - COUNT( * ) AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-2967
SELECT ALL 28 * - COUNT ( * ) AS col1
----
-28

query I rowsort
SELECT ALL 80 + 15 * + - 95 AS col0
----
-1345

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2969
SELECT 9 DIV + COUNT( * ) AS col0, COUNT( * )
----
9
1

skipif mysql # not compatible
query II rowsort label-2969
SELECT 9 / + COUNT ( * ) AS col0, COUNT ( * )
----
9
1

query I rowsort
SELECT DISTINCT - - 62 AS col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2971
SELECT - + COUNT( ALL 21 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2971
SELECT - + COUNT ( ALL 21 ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2972
SELECT ALL + + CAST( NULL AS SIGNED ) + - 84
----
NULL

skipif mysql # not compatible
query I rowsort label-2972
SELECT ALL + + CAST ( NULL AS INTEGER ) + - 84
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2973
SELECT + + MIN( 36 )
----
36

skipif mysql # not compatible
query I rowsort label-2973
SELECT + + MIN ( 36 )
----
36

query I rowsort
SELECT DISTINCT + ( 19 )
----
19

query I rowsort
SELECT - ( + + 40 ) AS col2
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-2976
SELECT ALL COUNT( * ) col1, COUNT( * ) AS col2
----
1
1

skipif mysql # not compatible
query II rowsort label-2976
SELECT ALL COUNT ( * ) col1, COUNT ( * ) AS col2
----
1
1

query II rowsort
SELECT ALL 12 AS col2, 72 AS col0
----
12
72

onlyif mysql # DIV for integer division: 
query I rowsort label-2978
SELECT DISTINCT 71 DIV + - 19 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-2978
SELECT DISTINCT 71 / + - 19 AS col2
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-2979
SELECT DISTINCT 35 DIV + - 50 col2
----
0

skipif mysql # not compatible
query I rowsort label-2979
SELECT DISTINCT 35 / + - 50 col2
----
0

query II rowsort
SELECT DISTINCT - 87 AS col2, - 68
----
-87
-68

query I rowsort
SELECT + - NULLIF ( - + 30, - - 26 )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2982
SELECT + - SUM( + 31 )
----
-31

skipif mysql # not compatible
query I rowsort label-2982
SELECT + - SUM ( + 31 )
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-2983
SELECT ALL + MIN( - - 69 ) * - 85
----
-5865

skipif mysql # not compatible
query I rowsort label-2983
SELECT ALL + MIN ( - - 69 ) * - 85
----
-5865

onlyif mysql # DIV for integer division: 
query I rowsort label-2984
SELECT 73 DIV - - 58 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2984
SELECT 73 / - - 58 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2985
SELECT DISTINCT - - CASE - - 40 WHEN + COUNT( * ) THEN + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2985
SELECT DISTINCT - - CASE - - 40 WHEN + COUNT ( * ) THEN + COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2986
SELECT ALL COUNT( 35 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2986
SELECT ALL COUNT ( 35 ) AS col1
----
1

query I rowsort
SELECT DISTINCT + - 45 AS col1
----
-45

query I rowsort
SELECT + - 52 * + + 85
----
-4420

query I rowsort
SELECT ALL + ( - NULLIF ( + 81, + + 12 ) )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2990
SELECT DISTINCT + - MIN( + 23 ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-2990
SELECT DISTINCT + - MIN ( + 23 ) AS col2
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2991
SELECT ALL - 81 + - AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2991
SELECT ALL - 81 + - AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT - - ( 10 )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2993
SELECT + + MAX( 99 )
----
99

skipif mysql # not compatible
query I rowsort label-2993
SELECT + + MAX ( 99 )
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2994
SELECT SUM( DISTINCT + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2994
SELECT SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT ( - 55 ) AS col2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-2996
SELECT DISTINCT - ( + SUM( ALL + 93 ) )
----
-93

skipif mysql # not compatible
query I rowsort label-2996
SELECT DISTINCT - ( + SUM ( ALL + 93 ) )
----
-93

query I rowsort
SELECT DISTINCT - ( 41 )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-2998
SELECT ALL + COUNT( * ) - - SUM( DISTINCT 94 )
----
95

skipif mysql # not compatible
query I rowsort label-2998
SELECT ALL + COUNT ( * ) - - SUM ( DISTINCT 94 )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2999
SELECT ALL - 67 * COUNT( * )
----
-67

skipif mysql # not compatible
query I rowsort label-2999
SELECT ALL - 67 * COUNT ( * )
----
-67

query II rowsort
SELECT DISTINCT 55 AS col2, + 75 AS col0
----
55
75

onlyif mysql # aggregate syntax: 
query II rowsort label-3001
SELECT COUNT( * ), - 69 AS col0
----
1
-69

skipif mysql # not compatible
query II rowsort label-3001
SELECT COUNT ( * ), - 69 AS col0
----
1
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3002
SELECT ALL - 13 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3002
SELECT ALL - 13 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3003
SELECT ALL - 30 DIV + - COUNT( * ) col2
----
30

skipif mysql # not compatible
query I rowsort label-3003
SELECT ALL - 30 / + - COUNT ( * ) col2
----
30

query I rowsort
SELECT ( + + 56 )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3005
SELECT ALL + NULLIF ( + - 14, - COUNT( * ) + 77 )
----
-14

skipif mysql # not compatible
query I rowsort label-3005
SELECT ALL + NULLIF ( + - 14, - COUNT ( * ) + 77 )
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-3006
SELECT + 51 * - 34 + - - 99 DIV - - 60 AS col0
----
-1733

skipif mysql # not compatible
query I rowsort label-3006
SELECT + 51 * - 34 + - - 99 / - - 60 AS col0
----
-1733

query I rowsort
SELECT ALL - ( - 19 )
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3008
SELECT - 90 * + - ( - - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3008
SELECT - 90 * + - ( - - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT - ( 17 )
----
-17

query I rowsort
SELECT - ( + - ( - - 43 ) ) AS col2
----
43

query I rowsort
SELECT - - 18 col0
----
18

query II rowsort
SELECT ALL - + 10 - + 13 AS col0, 43 AS col0
----
-23
43

query I rowsort
SELECT ( + 11 ) - + 10
----
1

query II rowsort
SELECT DISTINCT 2, 30 AS col0
----
2
30

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3015
SELECT - 75 * + + 59 + + CAST( - + CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3015
SELECT - 75 * + + 59 + + CAST ( - + CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3016
SELECT ALL 29, COUNT( * ) AS col0
----
29
1

skipif mysql # not compatible
query II rowsort label-3016
SELECT ALL 29, COUNT ( * ) AS col0
----
29
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3017
SELECT DISTINCT MIN( DISTINCT - 75 ) AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-3017
SELECT DISTINCT MIN ( DISTINCT - 75 ) AS col2
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3018
SELECT CAST( + - CAST( + 6 AS SIGNED ) AS SIGNED ) AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-3018
SELECT CAST ( + - CAST ( + 6 AS INTEGER ) AS INTEGER ) AS col0
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3019
SELECT ALL - - ( COUNT( * ) ) * - 96 + CAST( NULL AS SIGNED ) + - 17
----
NULL

skipif mysql # not compatible
query I rowsort label-3019
SELECT ALL - - ( COUNT ( * ) ) * - 96 + CAST ( NULL AS INTEGER ) + - 17
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3020
SELECT - ( + + COALESCE ( - COUNT( * ), + - CAST( NULL AS SIGNED ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-3020
SELECT - ( + + COALESCE ( - COUNT ( * ), + - CAST ( NULL AS INTEGER ) ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3021
SELECT ALL COUNT( * ) + - + COUNT( ALL - 6 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3021
SELECT ALL COUNT ( * ) + - + COUNT ( ALL - 6 ) AS col0
----
0

query I rowsort
SELECT ALL - + 3 AS col1
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3023
SELECT 67 * + COUNT( * ) + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3023
SELECT 67 * + COUNT ( * ) + - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3024
SELECT ALL COALESCE ( COUNT( * ), + 86, - COUNT( * ) ) + + + 53 - COUNT( * )
----
53

skipif mysql # not compatible
query I rowsort label-3024
SELECT ALL COALESCE ( COUNT ( * ), + 86, - COUNT ( * ) ) + + + 53 - COUNT ( * )
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-3025
SELECT COUNT( * ) AS col1, - 2
----
1
-2

skipif mysql # not compatible
query II rowsort label-3025
SELECT COUNT ( * ) AS col1, - 2
----
1
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3026
SELECT ALL - ( - MIN( ALL - + 0 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3026
SELECT ALL - ( - MIN ( ALL - + 0 ) ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3027
SELECT ALL - NULLIF ( - - AVG ( DISTINCT CAST( NULL AS SIGNED ) ), - COUNT( * ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3027
SELECT ALL - NULLIF ( - - AVG ( DISTINCT CAST ( NULL AS INTEGER ) ), - COUNT ( * ) ) col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3028
SELECT DISTINCT + 18 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3028
SELECT DISTINCT + 18 + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3029
SELECT ALL - COUNT( ALL - 72 ) + 18 + + + 67 AS col1
----
84

skipif mysql # not compatible
query I rowsort label-3029
SELECT ALL - COUNT ( ALL - 72 ) + 18 + + + 67 AS col1
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3030
SELECT - 3 + + CAST( + 5 AS SIGNED ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-3030
SELECT - 3 + + CAST ( + 5 AS INTEGER ) AS col2
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3031
SELECT DISTINCT + NULLIF ( COUNT( * ), - COUNT( * ) ) / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3031
SELECT DISTINCT + NULLIF ( COUNT ( * ), - COUNT ( * ) ) / + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + - ( + 10 ) AS col2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3033
SELECT MAX( ALL + 90 ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-3033
SELECT MAX ( ALL + 90 ) AS col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3034
SELECT + SUM( ALL - 75 )
----
-75

skipif mysql # not compatible
query I rowsort label-3034
SELECT + SUM ( ALL - 75 )
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3035
SELECT + CAST( NULL AS SIGNED ) - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3035
SELECT + CAST ( NULL AS INTEGER ) - + COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3036
SELECT ALL - 69 DIV + 69 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3036
SELECT ALL - 69 / + 69 AS col2
----
-1

query I rowsort
SELECT DISTINCT + - 72 * 29
----
-2088

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3038
SELECT DISTINCT - 62 + MAX( DISTINCT + + ( + ( - - CAST( NULL AS DECIMAL ) ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3038
SELECT DISTINCT - 62 + MAX ( DISTINCT + + ( + ( - - CAST ( NULL AS REAL ) ) ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3039
SELECT 97 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3039
SELECT 97 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - ( + 21 )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-3041
SELECT COUNT( * ) - + + 0 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3041
SELECT COUNT ( * ) - + + 0 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3042
SELECT ALL - SUM( DISTINCT + 54 )
----
-54

skipif mysql # not compatible
query I rowsort label-3042
SELECT ALL - SUM ( DISTINCT + 54 )
----
-54

query I rowsort
SELECT DISTINCT - ( + 91 )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3044
SELECT ALL - MAX( ALL + 89 ) AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-3044
SELECT ALL - MAX ( ALL + 89 ) AS col2
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-3045
SELECT ALL 5 + COUNT( * ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-3045
SELECT ALL 5 + COUNT ( * ) AS col2
----
6

query I rowsort
SELECT ALL ( + + 36 ) col1
----
36

query I rowsort
SELECT DISTINCT + 85 * + 17 AS col1
----
1445

query I rowsort
SELECT ( + 72 ) AS col1
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-3049
SELECT ALL ( - 77 ) DIV + - 71 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3049
SELECT ALL ( - 77 ) / + - 71 AS col2
----
1

query I rowsort
SELECT - 72 - + 60 AS col1
----
-132

query I rowsort
SELECT - + 45 * + 60 AS col1
----
-2700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3052
SELECT DISTINCT CAST( + + 60 AS SIGNED )
----
60

skipif mysql # not compatible
query I rowsort label-3052
SELECT DISTINCT CAST ( + + 60 AS INTEGER )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3053
SELECT ALL ( 1 ) + + COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-3053
SELECT ALL ( 1 ) + + COUNT ( * ) AS col2
----
2

query II rowsort
SELECT DISTINCT - 99, 95 AS col2
----
-99
95

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3055
SELECT 57 DIV - CAST( 97 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3055
SELECT 57 / - CAST ( 97 AS INTEGER ) AS col1
----
0

query I rowsort
SELECT 76 * 98 col1
----
7448

onlyif mysql # aggregate syntax: 
query I rowsort label-3057
SELECT DISTINCT - COUNT( * ) + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3057
SELECT DISTINCT - COUNT ( * ) + COUNT ( * ) AS col2
----
0

query I rowsort
SELECT ALL + 32 - 58 AS col1
----
-26

query I rowsort
SELECT 79 * 27 AS col0
----
2133

query I rowsort
SELECT ALL - ( - 90 ) AS col1
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3061
SELECT DISTINCT - CAST( ( 94 ) AS SIGNED )
----
-94

skipif mysql # not compatible
query I rowsort label-3061
SELECT DISTINCT - CAST ( ( 94 ) AS INTEGER )
----
-94

query I rowsort
SELECT ALL 76 * - 53 AS col1
----
-4028

onlyif mysql # aggregate syntax: 
query I rowsort label-3063
SELECT + COUNT( * ) + 12 col1
----
13

skipif mysql # not compatible
query I rowsort label-3063
SELECT + COUNT ( * ) + 12 col1
----
13

query I rowsort
SELECT ALL + 73 + 85 AS col0
----
158

query I rowsort
SELECT ALL 13 * + - 83 AS col0
----
-1079

query I rowsort
SELECT - 95 * + 44
----
-4180

query I rowsort
SELECT ALL + 94 * 9 * - 51
----
-43146

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3068
SELECT + CAST( - 16 AS SIGNED ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-3068
SELECT + CAST ( - 16 AS INTEGER ) AS col2
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-3069
SELECT DISTINCT + 53 DIV - 73 + 41 * 85
----
3485

skipif mysql # not compatible
query I rowsort label-3069
SELECT DISTINCT + 53 / - 73 + 41 * 85
----
3485

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3070
SELECT - CAST( - 72 AS SIGNED ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-3070
SELECT - CAST ( - 72 AS INTEGER ) AS col0
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3071
SELECT - ( - ( - CAST( + ( + 77 ) AS SIGNED ) ) )
----
-77

skipif mysql # not compatible
query I rowsort label-3071
SELECT - ( - ( - CAST ( + ( + 77 ) AS INTEGER ) ) )
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3072
SELECT ALL MAX( + 11 )
----
11

skipif mysql # not compatible
query I rowsort label-3072
SELECT ALL MAX ( + 11 )
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-3073
SELECT ALL + - 42, + MAX( ALL - 15 ) AS col2
----
-42
-15

skipif mysql # not compatible
query II rowsort label-3073
SELECT ALL + - 42, + MAX ( ALL - 15 ) AS col2
----
-42
-15

query I rowsort
SELECT DISTINCT + 20 * 51 * 86
----
87720

query I rowsort
SELECT ALL - 80 col2
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3076
SELECT ALL - 62 + COUNT( * ) * + 41 + + COUNT( * )
----
-20

skipif mysql # not compatible
query I rowsort label-3076
SELECT ALL - 62 + COUNT ( * ) * + 41 + + COUNT ( * )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-3077
SELECT DISTINCT - + MIN( DISTINCT ( + 59 ) )
----
-59

skipif mysql # not compatible
query I rowsort label-3077
SELECT DISTINCT - + MIN ( DISTINCT ( + 59 ) )
----
-59

query I rowsort
SELECT DISTINCT - - 26 AS col0
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3079
SELECT ALL - 62 * - 0 * + - SUM( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3079
SELECT ALL - 62 * - 0 * + - SUM ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3080
SELECT ALL MAX( DISTINCT + + 59 )
----
59

skipif mysql # not compatible
query I rowsort label-3080
SELECT ALL MAX ( DISTINCT + + 59 )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3081
SELECT DISTINCT - - ( COUNT( * ) ) * 37 - + + 19 AS col0
----
18

skipif mysql # not compatible
query I rowsort label-3081
SELECT DISTINCT - - ( COUNT ( * ) ) * 37 - + + 19 AS col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3082
SELECT MAX( 22 )
----
22

skipif mysql # not compatible
query I rowsort label-3082
SELECT MAX ( 22 )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3083
SELECT ALL COUNT( * ) * + CASE + + 76 WHEN - 18 THEN NULL ELSE ( - - 25 ) * + COUNT( + 96 ) END
----
25

skipif mysql # not compatible
query I rowsort label-3083
SELECT ALL COUNT ( * ) * + CASE + + 76 WHEN - 18 THEN NULL ELSE ( - - 25 ) * + COUNT ( + 96 ) END
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3084
SELECT MAX( ALL - 49 ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-3084
SELECT MAX ( ALL - 49 ) AS col2
----
-49

query I rowsort
SELECT ALL + ( - 84 ) AS col0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-3086
SELECT ALL + COUNT( 45 )
----
1

skipif mysql # not compatible
query I rowsort label-3086
SELECT ALL + COUNT ( 45 )
----
1

query I rowsort
SELECT ALL + + 71 - + - 61 * - 5
----
-234

query II rowsort
SELECT 7 AS col1, - ( + + 44 ) AS col2
----
7
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-3089
SELECT + - COUNT( * ) * - 21 AS col0
----
21

skipif mysql # not compatible
query I rowsort label-3089
SELECT + - COUNT ( * ) * - 21 AS col0
----
21

query II rowsort
SELECT + + 20 AS col0, 65 * + 77 AS col2
----
20
5005

onlyif mysql # aggregate syntax: 
query II rowsort label-3091
SELECT + COUNT( * ) AS col1, 43 + COUNT( * ) AS col2
----
1
44

skipif mysql # not compatible
query II rowsort label-3091
SELECT + COUNT ( * ) AS col1, 43 + COUNT ( * ) AS col2
----
1
44

query I rowsort
SELECT + COALESCE ( - 36, - + 36 ) + + 18
----
-18

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3093
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + + + 28 + + - SUM( + 17 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3093
SELECT DISTINCT - CAST ( NULL AS REAL ) + + + 28 + + - SUM ( + 17 )
----
NULL

query I rowsort
SELECT - ( + 1 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3095
SELECT 80 DIV + COUNT( * ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-3095
SELECT 80 / + COUNT ( * ) AS col2
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3096
SELECT CAST( NULL AS SIGNED ) * + 31 * - COUNT( * ) + - + 81 + + - NULLIF ( + AVG ( DISTINCT + 96 ), + 0 ) - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3096
SELECT CAST ( NULL AS INTEGER ) * + 31 * - COUNT ( * ) + - + 81 + + - NULLIF ( + AVG ( DISTINCT + 96 ), + 0 ) - COUNT ( * ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3097
SELECT 60 DIV + + 11 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-3097
SELECT 60 / + + 11 AS col2
----
5

query I rowsort
SELECT ALL 41 + 8
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3099
SELECT SUM( + 14 ) - - 14
----
28

skipif mysql # not compatible
query I rowsort label-3099
SELECT SUM ( + 14 ) - - 14
----
28

query I rowsort
SELECT 86 * + - 53 AS col0
----
-4558

query I rowsort
SELECT DISTINCT - COALESCE ( - 84, 67 ) AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3102
SELECT MAX( DISTINCT + ( 61 ) ) * - COUNT( * ) col2
----
-61

skipif mysql # not compatible
query I rowsort label-3102
SELECT MAX ( DISTINCT + ( 61 ) ) * - COUNT ( * ) col2
----
-61

query I rowsort
SELECT 23 + - 66 AS col2
----
-43

query I rowsort
SELECT ALL - + 90 AS col0
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3105
SELECT + 23 + - + 66 * + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3105
SELECT + 23 + - + 66 * + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3106
SELECT ALL - 85 + COUNT( * )
----
-84

skipif mysql # not compatible
query I rowsort label-3106
SELECT ALL - 85 + COUNT ( * )
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-3107
SELECT - - MAX( + - 30 ) col2
----
-30

skipif mysql # not compatible
query I rowsort label-3107
SELECT - - MAX ( + - 30 ) col2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3108
SELECT COUNT( + COALESCE ( 66, + 56 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3108
SELECT COUNT ( + COALESCE ( 66, + 56 ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3109
SELECT + ( 88 ) - - + 91 + + COUNT( * )
----
180

skipif mysql # not compatible
query I rowsort label-3109
SELECT + ( 88 ) - - + 91 + + COUNT ( * )
----
180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3110
SELECT - CAST( - 71 AS SIGNED ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-3110
SELECT - CAST ( - 71 AS INTEGER ) AS col2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3111
SELECT + MAX( 75 ) + - 68
----
7

skipif mysql # not compatible
query I rowsort label-3111
SELECT + MAX ( 75 ) + - 68
----
7

query I rowsort
SELECT ALL 71 * - - 35
----
2485

onlyif mysql # aggregate syntax: 
query I rowsort label-3113
SELECT DISTINCT SUM( 31 ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-3113
SELECT DISTINCT SUM ( 31 ) AS col2
----
31

query I rowsort
SELECT ALL - COALESCE ( + 55, - 43 ) col2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-3115
SELECT - - COUNT( DISTINCT 23 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3115
SELECT - - COUNT ( DISTINCT 23 ) AS col2
----
1

query I rowsort
SELECT 79 * - 60
----
-4740

query I rowsort
SELECT 20 + - 37 + 35 AS col1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3118
SELECT + - MIN( 71 )
----
-71

skipif mysql # not compatible
query I rowsort label-3118
SELECT + - MIN ( 71 )
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3119
SELECT DISTINCT 66 * - AVG ( + ( - CAST( NULL AS SIGNED ) ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3119
SELECT DISTINCT 66 * - AVG ( + ( - CAST ( NULL AS INTEGER ) ) ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3120
SELECT COUNT( * ) - 32
----
-31

skipif mysql # not compatible
query I rowsort label-3120
SELECT COUNT ( * ) - 32
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-3121
SELECT ALL + 18 * - 11 * + COUNT( * ) AS col0
----
-198

skipif mysql # not compatible
query I rowsort label-3121
SELECT ALL + 18 * - 11 * + COUNT ( * ) AS col0
----
-198

onlyif mysql # aggregate syntax: 
query I rowsort label-3122
SELECT DISTINCT + COUNT( * ) + + COUNT( * ) * - - ( - - 60 )
----
61

skipif mysql # not compatible
query I rowsort label-3122
SELECT DISTINCT + COUNT ( * ) + + COUNT ( * ) * - - ( - - 60 )
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3123
SELECT ALL COUNT( * ) * + 64 + - - 3 + - CAST( + 11 AS SIGNED ) + - 59
----
-3

skipif mysql # not compatible
query I rowsort label-3123
SELECT ALL COUNT ( * ) * + 64 + - - 3 + - CAST ( + 11 AS INTEGER ) + - 59
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3124
SELECT - 93 + - - COUNT( * )
----
-92

skipif mysql # not compatible
query I rowsort label-3124
SELECT - 93 + - - COUNT ( * )
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-3125
SELECT MAX( ALL + - 88 ) AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-3125
SELECT MAX ( ALL + - 88 ) AS col2
----
-88

query I rowsort
SELECT + 12 + - 26
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3127
SELECT DISTINCT SUM( 61 )
----
61

skipif mysql # not compatible
query I rowsort label-3127
SELECT DISTINCT SUM ( 61 )
----
61

query I rowsort
SELECT + - 86 col0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-3129
SELECT - MAX( ALL + 80 )
----
-80

skipif mysql # not compatible
query I rowsort label-3129
SELECT - MAX ( ALL + 80 )
----
-80

query I rowsort
SELECT + + 21 + + 33 AS col2
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3131
SELECT + ( + CAST( NULL AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3131
SELECT + ( + CAST ( NULL AS INTEGER ) ) col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3132
SELECT - 42 DIV + 21 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-3132
SELECT - 42 / + 21 AS col2
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3133
SELECT ALL COUNT( * ) DIV - + 13 * + 65 DIV + - MAX( - ( 56 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3133
SELECT ALL COUNT ( * ) / - + 13 * + 65 / + - MAX ( - ( 56 ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3134
SELECT DISTINCT COUNT( * ) + + + 79 AS col0
----
80

skipif mysql # not compatible
query I rowsort label-3134
SELECT DISTINCT COUNT ( * ) + + + 79 AS col0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3135
SELECT COUNT( * ) + - + 39
----
-38

skipif mysql # not compatible
query I rowsort label-3135
SELECT COUNT ( * ) + - + 39
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3136
SELECT DISTINCT NULLIF ( - CAST( NULL AS SIGNED ), COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3136
SELECT DISTINCT NULLIF ( - CAST ( NULL AS INTEGER ), COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3137
SELECT + SUM( + + 85 ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-3137
SELECT + SUM ( + + 85 ) AS col1
----
85

query I rowsort
SELECT ALL - - 72 col2
----
72

query I rowsort
SELECT DISTINCT + 93 * - + 47
----
-4371

query I rowsort
SELECT DISTINCT - ( 34 ) AS col0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-3141
SELECT DISTINCT 99 * + COUNT( * ) * - 13
----
-1287

skipif mysql # not compatible
query I rowsort label-3141
SELECT DISTINCT 99 * + COUNT ( * ) * - 13
----
-1287

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3142
SELECT + CAST( - 29 AS SIGNED ) AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-3142
SELECT + CAST ( - 29 AS INTEGER ) AS col1
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-3143
SELECT - SUM( ALL 44 ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-3143
SELECT - SUM ( ALL 44 ) AS col0
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3144
SELECT + 29 * - ( + + COUNT( * ) ) + COUNT( * ) DIV + - 65
----
-29

skipif mysql # not compatible
query I rowsort label-3144
SELECT + 29 * - ( + + COUNT ( * ) ) + COUNT ( * ) / + - 65
----
-29

query I rowsort
SELECT + 41 + 45 AS col1
----
86

query II rowsort
SELECT - 83 AS col2, 43
----
-83
43

onlyif mysql # aggregate syntax: 
query I rowsort label-3147
SELECT + MIN( DISTINCT + 93 )
----
93

skipif mysql # not compatible
query I rowsort label-3147
SELECT + MIN ( DISTINCT + 93 )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3148
SELECT ALL + 8 * + - COUNT( * )
----
-8

skipif mysql # not compatible
query I rowsort label-3148
SELECT ALL + 8 * + - COUNT ( * )
----
-8

query I rowsort
SELECT DISTINCT 35 * + + 16
----
560

query I rowsort
SELECT DISTINCT + 1 + - 89 AS col0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-3151
SELECT MIN( + - 7 )
----
-7

skipif mysql # not compatible
query I rowsort label-3151
SELECT MIN ( + - 7 )
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-3152
SELECT ALL - 93 AS col2, COUNT( * )
----
-93
1

skipif mysql # not compatible
query II rowsort label-3152
SELECT ALL - 93 AS col2, COUNT ( * )
----
-93
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3153
SELECT 64 DIV + 14 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-3153
SELECT 64 / + 14 AS col0
----
4

query I rowsort
SELECT 83 + - 88
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3155
SELECT ALL 81 + MIN( - 16 ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-3155
SELECT ALL 81 + MIN ( - 16 ) AS col2
----
65

query I rowsort
SELECT + - 42 * - 1
----
42

query I rowsort
SELECT ALL + COALESCE ( + 98, 64 ) AS col1
----
98

query I rowsort
SELECT ( 69 ) AS col0
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3159
SELECT + 99 * - - 45 * CAST( - 98 AS SIGNED ) AS col1
----
-436590

skipif mysql # not compatible
query I rowsort label-3159
SELECT + 99 * - - 45 * CAST ( - 98 AS INTEGER ) AS col1
----
-436590

query I rowsort
SELECT NULLIF ( + 28, 0 ) AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3161
SELECT + - COUNT( - 26 )
----
-1

skipif mysql # not compatible
query I rowsort label-3161
SELECT + - COUNT ( - 26 )
----
-1

query I rowsort
SELECT + 56 * + 38 + - 62 AS col1
----
2066

onlyif mysql # aggregate syntax: 
query I rowsort label-3163
SELECT DISTINCT - MAX( ALL + 37 )
----
-37

skipif mysql # not compatible
query I rowsort label-3163
SELECT DISTINCT - MAX ( ALL + 37 )
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-3164
SELECT + COUNT( * ) + - + MIN( DISTINCT + 88 ) AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-3164
SELECT + COUNT ( * ) + - + MIN ( DISTINCT + 88 ) AS col0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-3165
SELECT + 23 + + COUNT( * )
----
24

skipif mysql # not compatible
query I rowsort label-3165
SELECT + 23 + + COUNT ( * )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3166
SELECT + - MAX( - 30 ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-3166
SELECT + - MAX ( - 30 ) AS col1
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-3167
SELECT + SUM( DISTINCT + 68 ), - COUNT( * ) AS col2
----
68
-1

skipif mysql # not compatible
query II rowsort label-3167
SELECT + SUM ( DISTINCT + 68 ), - COUNT ( * ) AS col2
----
68
-1

query I rowsort
SELECT DISTINCT 0 * - + 67 AS col1
----
0

query I rowsort
SELECT 41 + 60
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-3170
SELECT 93 + - COUNT( * ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-3170
SELECT 93 + - COUNT ( * ) AS col2
----
92

query II rowsort
SELECT DISTINCT - 80, + 33 AS col2
----
-80
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3172
SELECT DISTINCT - + COUNT( DISTINCT + 63 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3172
SELECT DISTINCT - + COUNT ( DISTINCT + 63 ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3173
SELECT - CAST( NULL AS SIGNED ) + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3173
SELECT - CAST ( NULL AS INTEGER ) + + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3174
SELECT - ( - + CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3174
SELECT - ( - + CAST ( NULL AS INTEGER ) ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3175
SELECT - 16 + COUNT( * ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-3175
SELECT - 16 + COUNT ( * ) AS col1
----
-15

query I rowsort
SELECT ALL + ( + + 98 ) AS col2
----
98

query I rowsort
SELECT DISTINCT + + 78 col1
----
78

query I rowsort
SELECT DISTINCT 40 * - 95
----
-3800

onlyif mysql # aggregate syntax: 
query I rowsort label-3179
SELECT COUNT( * ) * - 18 AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-3179
SELECT COUNT ( * ) * - 18 AS col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-3180
SELECT DISTINCT + COUNT( * ) * - NULLIF ( + 53, - + 41 ) * - + 20 AS col0
----
1060

skipif mysql # not compatible
query I rowsort label-3180
SELECT DISTINCT + COUNT ( * ) * - NULLIF ( + 53, - + 41 ) * - + 20 AS col0
----
1060

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3181
SELECT ALL COUNT( * ) col2, - COUNT( - 33 ) DIV - 1 AS col2
----
1
1

skipif mysql # not compatible
query II rowsort label-3181
SELECT ALL COUNT ( * ) col2, - COUNT ( - 33 ) / - 1 AS col2
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3182
SELECT ALL + 60 + + COUNT( * ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-3182
SELECT ALL + 60 + + COUNT ( * ) AS col1
----
61

query I rowsort
SELECT DISTINCT - NULLIF ( - 96, + - 3 )
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-3184
SELECT DISTINCT + 49 DIV + - 53 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3184
SELECT DISTINCT + 49 / + - 53 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3185
SELECT 82 * + 52 * - - COUNT( * )
----
4264

skipif mysql # not compatible
query I rowsort label-3185
SELECT 82 * + 52 * - - COUNT ( * )
----
4264

query I rowsort
SELECT - + 60 AS col1
----
-60

query I rowsort
SELECT + - ( + 72 ) AS col1
----
-72

query I rowsort
SELECT - 47 * + 72
----
-3384

query I rowsort
SELECT - + 64 col2
----
-64

query I rowsort
SELECT + 73 + - 23
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3191
SELECT + 88 / - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3191
SELECT + 88 / - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3192
SELECT DISTINCT + CAST( - + COUNT( * ) AS SIGNED ) * + 38 AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-3192
SELECT DISTINCT + CAST ( - + COUNT ( * ) AS INTEGER ) * + 38 AS col0
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3193
SELECT ALL + CAST( + 64 AS SIGNED ) - - - 75 AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-3193
SELECT ALL + CAST ( + 64 AS INTEGER ) - - - 75 AS col0
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-3194
SELECT - 7 DIV - + 37 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3194
SELECT - 7 / - + 37 AS col2
----
0

query I rowsort
SELECT ALL ( - - 12 ) + + 99
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-3196
SELECT ALL + 60 * COUNT( * ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-3196
SELECT ALL + 60 * COUNT ( * ) AS col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3197
SELECT COUNT( * ) * + - 96 * 38 + + 78 + 3
----
-3567

skipif mysql # not compatible
query I rowsort label-3197
SELECT COUNT ( * ) * + - 96 * 38 + + 78 + 3
----
-3567

query II rowsort
SELECT - + 29, - 30 AS col1
----
-29
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3199
SELECT DISTINCT MIN( - ( + 75 ) ) AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-3199
SELECT DISTINCT MIN ( - ( + 75 ) ) AS col1
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3200
SELECT ALL + + ( - COUNT( * ) ) * + 50 AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-3200
SELECT ALL + + ( - COUNT ( * ) ) * + 50 AS col0
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3201
SELECT - + MAX( DISTINCT - 4 ) DIV + + 97 * + 25
----
0

skipif mysql # not compatible
query I rowsort label-3201
SELECT - + MAX ( DISTINCT - 4 ) / + + 97 * + 25
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3202
SELECT - - ( + MIN( DISTINCT + 62 ) )
----
62

skipif mysql # not compatible
query I rowsort label-3202
SELECT - - ( + MIN ( DISTINCT + 62 ) )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-3203
SELECT ALL COUNT( 34 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3203
SELECT ALL COUNT ( 34 ) AS col1
----
1

query I rowsort
SELECT ALL 17 * - 96
----
-1632

query I rowsort
SELECT + - 35 col2
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-3206
SELECT - SUM( 52 ) * - 8 AS col2, - 25
----
416
-25

skipif mysql # not compatible
query II rowsort label-3206
SELECT - SUM ( 52 ) * - 8 AS col2, - 25
----
416
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-3207
SELECT ALL - + 94 + + COUNT( * ) AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-3207
SELECT ALL - + 94 + + COUNT ( * ) AS col2
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3208
SELECT DISTINCT - 73 * - COUNT( * ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-3208
SELECT DISTINCT - 73 * - COUNT ( * ) AS col0
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3209
SELECT ALL COUNT( * ) DIV 11
----
0

skipif mysql # not compatible
query I rowsort label-3209
SELECT ALL COUNT ( * ) / 11
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3210
SELECT ALL - + 84 + COUNT( * )
----
-83

skipif mysql # not compatible
query I rowsort label-3210
SELECT ALL - + 84 + COUNT ( * )
----
-83

query I rowsort
SELECT ALL - 26 * - 35
----
910

query I rowsort
SELECT DISTINCT + 41 * - + 92 AS col0
----
-3772

query I rowsort
SELECT 36 + + 8
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3214
SELECT DISTINCT + CAST( - - 17 AS SIGNED ) + + - ( 73 )
----
-56

skipif mysql # not compatible
query I rowsort label-3214
SELECT DISTINCT + CAST ( - - 17 AS INTEGER ) + + - ( 73 )
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3215
SELECT ALL - 31 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3215
SELECT ALL - 31 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - + 15 * - 7
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-3217
SELECT DISTINCT - 36 * - ( - COUNT( * ) )
----
-36

skipif mysql # not compatible
query I rowsort label-3217
SELECT DISTINCT - 36 * - ( - COUNT ( * ) )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-3218
SELECT - COUNT( * ) * - - 83 AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-3218
SELECT - COUNT ( * ) * - - 83 AS col0
----
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-3219
SELECT DISTINCT COUNT( * ) AS col2, - 17 + - SUM( - - 83 ) + 14
----
1
-86

skipif mysql # not compatible
query II rowsort label-3219
SELECT DISTINCT COUNT ( * ) AS col2, - 17 + - SUM ( - - 83 ) + 14
----
1
-86

query I rowsort
SELECT - ( - 70 )
----
70

query I rowsort
SELECT - + 70 + + 76
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3222
SELECT - COUNT( * ) * - COUNT( * ) + 26
----
27

skipif mysql # not compatible
query I rowsort label-3222
SELECT - COUNT ( * ) * - COUNT ( * ) + 26
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3223
SELECT DISTINCT CAST( NULL AS SIGNED ) + - 10
----
NULL

skipif mysql # not compatible
query I rowsort label-3223
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 10
----
NULL

query I rowsort
SELECT DISTINCT + 21 - - 83
----
104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3225
SELECT ALL + + CAST( 53 AS SIGNED ) * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3225
SELECT ALL + + CAST ( 53 AS INTEGER ) * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT 39 - - + ( 62 ) + 5 AS col2, - 52
----
106
-52

query II rowsort
SELECT - 9, + 23 AS col2
----
-9
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3228
SELECT 50 - COUNT( * ) + 15 AS col1
----
64

skipif mysql # not compatible
query I rowsort label-3228
SELECT 50 - COUNT ( * ) + 15 AS col1
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-3229
SELECT ALL - 66 DIV + 28 col0
----
-2

skipif mysql # not compatible
query I rowsort label-3229
SELECT ALL - 66 / + 28 col0
----
-2

query I rowsort
SELECT ALL ( + 89 )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3231
SELECT - MAX( ALL 99 ) AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-3231
SELECT - MAX ( ALL 99 ) AS col0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3232
SELECT ALL + CAST( 37 AS SIGNED ) + - 73 AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-3232
SELECT ALL + CAST ( 37 AS INTEGER ) + - 73 AS col2
----
-36

query I rowsort
SELECT + 77 - + ( - 98 )
----
175

onlyif mysql # aggregate syntax: 
query I rowsort label-3234
SELECT DISTINCT 93 * COUNT( * )
----
93

skipif mysql # not compatible
query I rowsort label-3234
SELECT DISTINCT 93 * COUNT ( * )
----
93

query I rowsort
SELECT ( + ( - - 4 ) ) AS col2
----
4

query I rowsort
SELECT + ( - - 74 )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3237
SELECT ALL - SUM( DISTINCT - 65 ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-3237
SELECT ALL - SUM ( DISTINCT - 65 ) AS col2
----
65

query I rowsort
SELECT - + 26 col1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-3239
SELECT ALL 81 - COUNT( * )
----
80

skipif mysql # not compatible
query I rowsort label-3239
SELECT ALL 81 - COUNT ( * )
----
80

onlyif mysql # aggregate syntax: 
query II rowsort label-3240
SELECT 87 AS col0, - COUNT( * )
----
87
-1

skipif mysql # not compatible
query II rowsort label-3240
SELECT 87 AS col0, - COUNT ( * )
----
87
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3241
SELECT DISTINCT + + 72 * NULLIF ( + - 62, + + CAST( - - 71 AS SIGNED ) )
----
-4464

skipif mysql # not compatible
query I rowsort label-3241
SELECT DISTINCT + + 72 * NULLIF ( + - 62, + + CAST ( - - 71 AS INTEGER ) )
----
-4464

query I rowsort
SELECT DISTINCT COALESCE ( + 68, - 91 )
----
68

query II rowsort
SELECT - - 43 AS col2, - 28
----
43
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-3244
SELECT ALL MAX( DISTINCT 3 )
----
3

skipif mysql # not compatible
query I rowsort label-3244
SELECT ALL MAX ( DISTINCT 3 )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3245
SELECT + 81 * + CAST( 85 AS SIGNED ) AS col1
----
6885

skipif mysql # not compatible
query I rowsort label-3245
SELECT + 81 * + CAST ( 85 AS INTEGER ) AS col1
----
6885

onlyif mysql # DIV for integer division: 
query I rowsort label-3246
SELECT DISTINCT - 99 DIV 43 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-3246
SELECT DISTINCT - 99 / 43 AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3247
SELECT - COUNT( * ) * + 35 AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-3247
SELECT - COUNT ( * ) * + 35 AS col2
----
-35

query I rowsort
SELECT ( - + 18 ) AS col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-3249
SELECT + COUNT( * ) + ( + 23 )
----
24

skipif mysql # not compatible
query I rowsort label-3249
SELECT + COUNT ( * ) + ( + 23 )
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-3250
SELECT - 12 DIV - - 38 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3250
SELECT - 12 / - - 38 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3251
SELECT COUNT( * ) * 26 + + 90
----
116

skipif mysql # not compatible
query I rowsort label-3251
SELECT COUNT ( * ) * 26 + + 90
----
116

query I rowsort
SELECT 98 + + 61
----
159

query I rowsort
SELECT DISTINCT 34 * 95
----
3230

query I rowsort
SELECT 97 * 22 AS col2
----
2134

onlyif mysql # aggregate syntax: 
query I rowsort label-3255
SELECT + + NULLIF ( COUNT( * ), + - 63 )
----
1

skipif mysql # not compatible
query I rowsort label-3255
SELECT + + NULLIF ( COUNT ( * ), + - 63 )
----
1

query I rowsort
SELECT DISTINCT - + 41 col2
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3257
SELECT ALL CAST( NULL AS SIGNED ) - - - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3257
SELECT ALL CAST ( NULL AS INTEGER ) - - - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3258
SELECT MIN( ALL + 55 ) col0
----
55

skipif mysql # not compatible
query I rowsort label-3258
SELECT MIN ( ALL + 55 ) col0
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3259
SELECT - 64 * - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3259
SELECT - 64 * - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + - 95 col2
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-3261
SELECT + COUNT( DISTINCT + + 73 )
----
1

skipif mysql # not compatible
query I rowsort label-3261
SELECT + COUNT ( DISTINCT + + 73 )
----
1

query I rowsort
SELECT - ( - - 85 ) AS col0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-3263
SELECT SUM( + 24 ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-3263
SELECT SUM ( + 24 ) AS col1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3264
SELECT ALL SUM( DISTINCT 93 ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-3264
SELECT ALL SUM ( DISTINCT 93 ) AS col2
----
93

query I rowsort
SELECT ALL + + 26 * + + 0 AS col1
----
0

query I rowsort
SELECT DISTINCT - 87 + 95
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3267
SELECT MIN( - 48 ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-3267
SELECT MIN ( - 48 ) AS col2
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-3268
SELECT DISTINCT + 18 DIV + + 90 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3268
SELECT DISTINCT + 18 / + + 90 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3269
SELECT DISTINCT 33 * - ( - - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3269
SELECT DISTINCT 33 * - ( - - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3270
SELECT ALL - 91 + ( - COUNT( * ) ) AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-3270
SELECT ALL - 91 + ( - COUNT ( * ) ) AS col2
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-3271
SELECT - COUNT( * ) * + ( - 81 ) + 28 col2
----
109

skipif mysql # not compatible
query I rowsort label-3271
SELECT - COUNT ( * ) * + ( - 81 ) + 28 col2
----
109

query I rowsort
SELECT DISTINCT + ( + + 4 ) AS col2
----
4

query I rowsort
SELECT ALL - 33 + 43 AS col2
----
10

query I rowsort
SELECT DISTINCT 85 * 81
----
6885

onlyif mysql # aggregate syntax: 
query I rowsort label-3275
SELECT - COUNT( * ) - ( - MIN( 88 ) + 99 * + 51 ) AS col2
----
-4962

skipif mysql # not compatible
query I rowsort label-3275
SELECT - COUNT ( * ) - ( - MIN ( 88 ) + 99 * + 51 ) AS col2
----
-4962

query I rowsort
SELECT - 41 * 19 AS col0
----
-779

onlyif mysql # aggregate syntax: 
query I rowsort label-3277
SELECT ALL COUNT( * ) * 9 AS col1
----
9

skipif mysql # not compatible
query I rowsort label-3277
SELECT ALL COUNT ( * ) * 9 AS col1
----
9

query I rowsort
SELECT + 81 * + 56 AS col1
----
4536

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3279
SELECT ALL + NULLIF ( 8, CAST( NULL AS SIGNED ) ) * - COUNT( * ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-3279
SELECT ALL + NULLIF ( 8, CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) AS col0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3280
SELECT - + COUNT( * ) * COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3280
SELECT - + COUNT ( * ) * COUNT ( * ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3281
SELECT - + MIN( 68 ) + 94
----
26

skipif mysql # not compatible
query I rowsort label-3281
SELECT - + MIN ( 68 ) + 94
----
26

query I rowsort
SELECT - + ( 74 ) * - 30
----
2220

query I rowsort
SELECT - ( 8 ) * 41 AS col2
----
-328

onlyif mysql # aggregate syntax: 
query I rowsort label-3284
SELECT + COUNT( * ) * 0 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3284
SELECT + COUNT ( * ) * 0 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3285
SELECT + CAST( + 63 AS SIGNED )
----
63

skipif mysql # not compatible
query I rowsort label-3285
SELECT + CAST ( + 63 AS INTEGER )
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-3286
SELECT 53 DIV - + 51
----
-1

skipif mysql # not compatible
query I rowsort label-3286
SELECT 53 / - + 51
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3287
SELECT 43 + + - COUNT( * ) col0
----
42

skipif mysql # not compatible
query I rowsort label-3287
SELECT 43 + + - COUNT ( * ) col0
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3288
SELECT CAST( - COUNT( * ) AS SIGNED ) + + 51 AS col1
----
50

skipif mysql # not compatible
query I rowsort label-3288
SELECT CAST ( - COUNT ( * ) AS INTEGER ) + + 51 AS col1
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3289
SELECT ALL CAST( NULL AS SIGNED ) * - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3289
SELECT ALL CAST ( NULL AS INTEGER ) * - + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3290
SELECT 10 * - 53 + + CAST( NULL AS SIGNED ) * 6 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3290
SELECT 10 * - 53 + + CAST ( NULL AS INTEGER ) * 6 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3291
SELECT DISTINCT - MAX( DISTINCT - 49 ) DIV - 75 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3291
SELECT DISTINCT - MAX ( DISTINCT - 49 ) / - 75 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3292
SELECT ALL - ( + + SUM( + 79 ) ) * - 8 AS col2
----
632

skipif mysql # not compatible
query I rowsort label-3292
SELECT ALL - ( + + SUM ( + 79 ) ) * - 8 AS col2
----
632

onlyif mysql # aggregate syntax: 
query I rowsort label-3293
SELECT ALL - + 80 * - COUNT( * ) * + COUNT( * )
----
80

skipif mysql # not compatible
query I rowsort label-3293
SELECT ALL - + 80 * - COUNT ( * ) * + COUNT ( * )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3294
SELECT DISTINCT COUNT( ALL 49 )
----
1

skipif mysql # not compatible
query I rowsort label-3294
SELECT DISTINCT COUNT ( ALL 49 )
----
1

query I rowsort
SELECT - 40 + + 68
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3296
SELECT - SUM( - + 74 ) + - CAST( NULL AS SIGNED ) + + + COUNT( * ) / 19 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3296
SELECT - SUM ( - + 74 ) + - CAST ( NULL AS INTEGER ) + + + COUNT ( * ) / 19 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3297
SELECT DISTINCT + ( - CAST( - 15 AS SIGNED ) )
----
15

skipif mysql # not compatible
query I rowsort label-3297
SELECT DISTINCT + ( - CAST ( - 15 AS INTEGER ) )
----
15

query I rowsort
SELECT - 41 + - - 93 AS col0
----
52

query I rowsort
SELECT DISTINCT + + ( ( - + 69 ) )
----
-69

query I rowsort
SELECT + 35 * + 84 AS col0
----
2940

query I rowsort
SELECT - ( ( - 81 ) ) AS col1
----
81

query I rowsort
SELECT - ( + 63 ) * + + 53 AS col2
----
-3339

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3303
SELECT ALL + CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3303
SELECT ALL + CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3304
SELECT DISTINCT + 83 DIV 52 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3304
SELECT DISTINCT + 83 / 52 AS col1
----
1

query I rowsort
SELECT - + 9 + + 44 AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3306
SELECT ALL COUNT( * ) + + - ( - 93 ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-3306
SELECT ALL COUNT ( * ) + + - ( - 93 ) AS col2
----
94

query I rowsort
SELECT DISTINCT - + ( + 32 )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-3308
SELECT 79 * - COUNT( * ) + + 59
----
-20

skipif mysql # not compatible
query I rowsort label-3308
SELECT 79 * - COUNT ( * ) + + 59
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-3309
SELECT DISTINCT COUNT( * ) + 7 * - + 23 AS col0
----
-160

skipif mysql # not compatible
query I rowsort label-3309
SELECT DISTINCT COUNT ( * ) + 7 * - + 23 AS col0
----
-160

onlyif mysql # aggregate syntax: 
query I rowsort label-3310
SELECT ALL + - 30 * COUNT( * ) + COUNT( * ) col2
----
-29

skipif mysql # not compatible
query I rowsort label-3310
SELECT ALL + - 30 * COUNT ( * ) + COUNT ( * ) col2
----
-29

query I rowsort
SELECT + - ( 42 ) * - - 47
----
-1974

onlyif mysql # aggregate syntax: 
query I rowsort label-3312
SELECT COUNT( + 23 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-3312
SELECT COUNT ( + 23 ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3313
SELECT ALL + SUM( DISTINCT + 44 ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-3313
SELECT ALL + SUM ( DISTINCT + 44 ) AS col2
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3314
SELECT - CAST( NULL AS SIGNED ) AS col0, + 71
----
NULL
71

skipif mysql # not compatible
query II rowsort label-3314
SELECT - CAST ( NULL AS INTEGER ) AS col0, + 71
----
NULL
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3315
SELECT ALL + - 15 + COUNT( * )
----
-14

skipif mysql # not compatible
query I rowsort label-3315
SELECT ALL + - 15 + COUNT ( * )
----
-14

query I rowsort
SELECT - 83 * 28 AS col1
----
-2324

onlyif mysql # DIV for integer division: 
query I rowsort label-3317
SELECT 20 DIV 74 * - 61 + + 90
----
90

skipif mysql # not compatible
query I rowsort label-3317
SELECT 20 / 74 * - 61 + + 90
----
90

query I rowsort
SELECT ( 44 ) AS col2
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3319
SELECT DISTINCT COUNT( * ) * + 60 + - + 69 DIV - 32 AS col1
----
62

skipif mysql # not compatible
query I rowsort label-3319
SELECT DISTINCT COUNT ( * ) * + 60 + - + 69 / - 32 AS col1
----
62

query I rowsort
SELECT 78 * + + ( - 16 ) AS col2
----
-1248

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3321
SELECT 62 + + CAST( COUNT( * ) AS SIGNED ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-3321
SELECT 62 + + CAST ( COUNT ( * ) AS INTEGER ) AS col1
----
63

query I rowsort
SELECT 68 * 44 AS col0
----
2992

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3323
SELECT ALL + - 23 * CAST( + 31 AS SIGNED ) AS col1, COUNT( * ) col2
----
-713
1

skipif mysql # not compatible
query II rowsort label-3323
SELECT ALL + - 23 * CAST ( + 31 AS INTEGER ) AS col1, COUNT ( * ) col2
----
-713
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3324
SELECT DISTINCT + COUNT( + + 97 )
----
1

skipif mysql # not compatible
query I rowsort label-3324
SELECT DISTINCT + COUNT ( + + 97 )
----
1

query I rowsort
SELECT 25 * + + 68 AS col2
----
1700

onlyif mysql # aggregate syntax: 
query I rowsort label-3326
SELECT - SUM( 79 )
----
-79

skipif mysql # not compatible
query I rowsort label-3326
SELECT - SUM ( 79 )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-3327
SELECT COUNT( * ) + + ( + - 48 )
----
-47

skipif mysql # not compatible
query I rowsort label-3327
SELECT COUNT ( * ) + + ( + - 48 )
----
-47

query II rowsort
SELECT ALL - 32, 51 * - 82 AS col2
----
-32
-4182

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3329
SELECT DISTINCT + 76 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3329
SELECT DISTINCT + 76 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3330
SELECT 39 AS col0, ( - + COUNT( * ) ) col2
----
39
-1

skipif mysql # not compatible
query II rowsort label-3330
SELECT 39 AS col0, ( - + COUNT ( * ) ) col2
----
39
-1

query I rowsort
SELECT DISTINCT ( + 83 )
----
83

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3332
SELECT + MIN( CAST( NULL AS DECIMAL ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3332
SELECT + MIN ( CAST ( NULL AS REAL ) ) col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3333
SELECT ALL + ( CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3333
SELECT ALL + ( CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT COALESCE ( + + 89, + 17 + 35 )
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3335
SELECT ALL COUNT( * ) DIV + - 78
----
0

skipif mysql # not compatible
query I rowsort label-3335
SELECT ALL COUNT ( * ) / + - 78
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3336
SELECT ALL 90, + COUNT( * ) AS col0
----
90
1

skipif mysql # not compatible
query II rowsort label-3336
SELECT ALL 90, + COUNT ( * ) AS col0
----
90
1

query I rowsort
SELECT ALL 73 * - ( + 56 ) col1
----
-4088

onlyif mysql # aggregate syntax: 
query I rowsort label-3338
SELECT + + MIN( ALL 81 ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-3338
SELECT + + MIN ( ALL 81 ) AS col1
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3339
SELECT ALL + 11 DIV + COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-3339
SELECT ALL + 11 / + COUNT ( * )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3340
SELECT - MIN( ALL + 94 )
----
-94

skipif mysql # not compatible
query I rowsort label-3340
SELECT - MIN ( ALL + 94 )
----
-94

query I rowsort
SELECT - 66 - - 15 AS col2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3342
SELECT ALL COUNT( * ) * + + 34
----
34

skipif mysql # not compatible
query I rowsort label-3342
SELECT ALL COUNT ( * ) * + + 34
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3343
SELECT ALL COUNT( DISTINCT 4 )
----
1

skipif mysql # not compatible
query I rowsort label-3343
SELECT ALL COUNT ( DISTINCT 4 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3344
SELECT DISTINCT 5 DIV 38
----
0

skipif mysql # not compatible
query I rowsort label-3344
SELECT DISTINCT 5 / 38
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3345
SELECT ALL + 3 * - + COUNT( * ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-3345
SELECT ALL + 3 * - + COUNT ( * ) AS col2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3346
SELECT CAST( 18 AS SIGNED ) + 56
----
74

skipif mysql # not compatible
query I rowsort label-3346
SELECT CAST ( 18 AS INTEGER ) + 56
----
74

query I rowsort
SELECT - 44 + 10 AS col0
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3348
SELECT ALL + 68 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3348
SELECT ALL + 68 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3349
SELECT DISTINCT 83 * - CAST( NULL AS SIGNED ) + + ( - + 16 ) + 27 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3349
SELECT DISTINCT 83 * - CAST ( NULL AS INTEGER ) + + ( - + 16 ) + 27 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3350
SELECT + 11 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3350
SELECT + 11 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3351
SELECT - COALESCE ( + - 94, + CAST( - 71 AS SIGNED ) )
----
94

skipif mysql # not compatible
query I rowsort label-3351
SELECT - COALESCE ( + - 94, + CAST ( - 71 AS INTEGER ) )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3352
SELECT - ( MIN( ALL 19 ) )
----
-19

skipif mysql # not compatible
query I rowsort label-3352
SELECT - ( MIN ( ALL 19 ) )
----
-19

query I rowsort
SELECT DISTINCT 50 * + - 41
----
-2050

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3354
SELECT - 3 DIV - COUNT( * ) col0
----
3

skipif mysql # not compatible
query I rowsort label-3354
SELECT - 3 / - COUNT ( * ) col0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3355
SELECT - COALESCE ( - + 67, - + CAST( 2 AS SIGNED ), + COUNT( * ) )
----
67

skipif mysql # not compatible
query I rowsort label-3355
SELECT - COALESCE ( - + 67, - + CAST ( 2 AS INTEGER ), + COUNT ( * ) )
----
67

query I rowsort
SELECT DISTINCT 52 * - 19
----
-988

onlyif mysql # DIV for integer division: 
query I rowsort label-3357
SELECT ALL - 85 DIV - 70 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3357
SELECT ALL - 85 / - 70 AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3358
SELECT 6 DIV - ( + 62 )
----
0

skipif mysql # not compatible
query I rowsort label-3358
SELECT 6 / - ( + 62 )
----
0

query I rowsort
SELECT 96 + - + 98
----
-2

query I rowsort
SELECT DISTINCT - + NULLIF ( + 70, + ( 61 ) ) AS col2
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-3361
SELECT ALL + COUNT( * ) + + 12 * - - 54 col2
----
649

skipif mysql # not compatible
query I rowsort label-3361
SELECT ALL + COUNT ( * ) + + 12 * - - 54 col2
----
649

query I rowsort
SELECT 34 * - 37 AS col1
----
-1258

query I rowsort
SELECT ALL - ( + 29 )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-3364
SELECT 84 - + - MIN( 32 ) AS col2
----
116

skipif mysql # not compatible
query I rowsort label-3364
SELECT 84 - + - MIN ( 32 ) AS col2
----
116

query I rowsort
SELECT DISTINCT + 41 * + 62
----
2542

query I rowsort
SELECT + 28 * - - 72
----
2016

query I rowsort
SELECT + 10 + 93
----
103

query II rowsort
SELECT - 72 AS col2, 40
----
-72
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3369
SELECT MAX( 32 ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-3369
SELECT MAX ( 32 ) AS col0
----
32

query II rowsort
SELECT - 50 AS col2, 83
----
-50
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3371
SELECT ALL - - CAST( NULL AS SIGNED ) + - + 96 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3371
SELECT ALL - - CAST ( NULL AS INTEGER ) + - + 96 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3372
SELECT ALL - COUNT( * ) + + 78 col2
----
77

skipif mysql # not compatible
query I rowsort label-3372
SELECT ALL - COUNT ( * ) + + 78 col2
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3373
SELECT 50 / CAST( NULL AS SIGNED ) * - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3373
SELECT 50 / CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3374
SELECT DISTINCT - ( - - COALESCE ( - 92, - 5 * - - COUNT( * ) ) ) AS col0, COUNT( * ) AS col0
----
92
1

skipif mysql # not compatible
query II rowsort label-3374
SELECT DISTINCT - ( - - COALESCE ( - 92, - 5 * - - COUNT ( * ) ) ) AS col0, COUNT ( * ) AS col0
----
92
1

query I rowsort
SELECT - - ( + - 0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3376
SELECT ALL + MAX( DISTINCT - + 13 ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-3376
SELECT ALL + MAX ( DISTINCT - + 13 ) AS col1
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-3377
SELECT DISTINCT + SUM( DISTINCT 21 ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-3377
SELECT DISTINCT + SUM ( DISTINCT 21 ) AS col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3378
SELECT - MAX( 17 ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-3378
SELECT - MAX ( 17 ) AS col2
----
-17

query I rowsort
SELECT + - 80 + - 51
----
-131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3380
SELECT CAST( + COALESCE ( + 78, + 83 ) AS SIGNED ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-3380
SELECT CAST ( + COALESCE ( + 78, + 83 ) AS INTEGER ) AS col0
----
78

query I rowsort
SELECT DISTINCT + - 32 * + 48 AS col2
----
-1536

onlyif mysql # aggregate syntax: 
query I rowsort label-3382
SELECT ALL + 4 * COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-3382
SELECT ALL + 4 * COUNT ( * )
----
4

query I rowsort
SELECT ALL 85 col1
----
85

query I rowsort
SELECT ALL 83 * + - 72
----
-5976

query II rowsort
SELECT ALL - 28, + 10 AS col1
----
-28
10

onlyif mysql # aggregate syntax: 
query II rowsort label-3386
SELECT 83 AS col2, - COUNT( * ) AS col2
----
83
-1

skipif mysql # not compatible
query II rowsort label-3386
SELECT 83 AS col2, - COUNT ( * ) AS col2
----
83
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3387
SELECT - MAX( 2 )
----
-2

skipif mysql # not compatible
query I rowsort label-3387
SELECT - MAX ( 2 )
----
-2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3388
SELECT DISTINCT CAST( NULL AS DECIMAL ) + - COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3388
SELECT DISTINCT CAST ( NULL AS REAL ) + - COUNT ( * ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3389
SELECT DISTINCT MAX( DISTINCT 23 )
----
23

skipif mysql # not compatible
query I rowsort label-3389
SELECT DISTINCT MAX ( DISTINCT 23 )
----
23

query II rowsort
SELECT DISTINCT + - 69 AS col0, - 12
----
-69
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-3391
SELECT + 81 * COUNT( DISTINCT + 38 ) col1
----
81

skipif mysql # not compatible
query I rowsort label-3391
SELECT + 81 * COUNT ( DISTINCT + 38 ) col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3392
SELECT - ( + ( COUNT( * ) ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3392
SELECT - ( + ( COUNT ( * ) ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3393
SELECT + COUNT( * ) * + 36 col1
----
36

skipif mysql # not compatible
query I rowsort label-3393
SELECT + COUNT ( * ) * + 36 col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3394
SELECT ALL - COUNT( * ) - + - 77
----
76

skipif mysql # not compatible
query I rowsort label-3394
SELECT ALL - COUNT ( * ) - + - 77
----
76

query I rowsort
SELECT - 44 + + 78 + + 35 * + 27 AS col2
----
979

query I rowsort
SELECT ALL + ( - ( + + 53 ) )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-3397
SELECT ALL + - COUNT( * ) * 3
----
-3

skipif mysql # not compatible
query I rowsort label-3397
SELECT ALL + - COUNT ( * ) * 3
----
-3

query I rowsort
SELECT ALL 86 * 58 AS col1
----
4988

query I rowsort
SELECT ALL - ( - 9 )
----
9

query I rowsort
SELECT DISTINCT + 79 + - 70
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3401
SELECT COUNT( * ) * - COUNT( * ) * - 39 - + 77 col2
----
-38

skipif mysql # not compatible
query I rowsort label-3401
SELECT COUNT ( * ) * - COUNT ( * ) * - 39 - + 77 col2
----
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-3402
SELECT - 79 AS col2, COUNT( DISTINCT - 85 )
----
-79
1

skipif mysql # not compatible
query II rowsort label-3402
SELECT - 79 AS col2, COUNT ( DISTINCT - 85 )
----
-79
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3403
SELECT ALL - + SUM( ALL + 71 ) AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-3403
SELECT ALL - + SUM ( ALL + 71 ) AS col1
----
-71

query I rowsort
SELECT ALL + 33 col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3405
SELECT + MIN( ALL + 64 ) * - 41 + SUM( - 81 )
----
-2705

skipif mysql # not compatible
query I rowsort label-3405
SELECT + MIN ( ALL + 64 ) * - 41 + SUM ( - 81 )
----
-2705

onlyif mysql # DIV for integer division: 
query I rowsort label-3406
SELECT - - 90 DIV - 61 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3406
SELECT - - 90 / - 61 AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3407
SELECT DISTINCT - - 47 + + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * + 87 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3407
SELECT DISTINCT - - 47 + + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * + 87 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3408
SELECT + CAST( - 5 AS SIGNED )
----
-5

skipif mysql # not compatible
query I rowsort label-3408
SELECT + CAST ( - 5 AS INTEGER )
----
-5

query I rowsort
SELECT ALL 63 * + 90 AS col2
----
5670

query I rowsort
SELECT DISTINCT + ( + + 74 )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3411
SELECT ALL + COUNT( * ) * - COUNT( * ) + + 54
----
53

skipif mysql # not compatible
query I rowsort label-3411
SELECT ALL + COUNT ( * ) * - COUNT ( * ) + + 54
----
53

query I rowsort
SELECT ALL ( - 98 ) AS col1
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-3413
SELECT ALL ( 14 ) * - - COUNT( * ) * + - 94 AS col1
----
-1316

skipif mysql # not compatible
query I rowsort label-3413
SELECT ALL ( 14 ) * - - COUNT ( * ) * + - 94 AS col1
----
-1316

query I rowsort
SELECT ( - 58 ) * + 30
----
-1740

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3415
SELECT - COALESCE ( - 8, COUNT( * ) ) * + + COUNT( CAST( NULL AS DECIMAL ) ) + + 58
----
58

skipif mysql # not compatible
query I rowsort label-3415
SELECT - COALESCE ( - 8, COUNT ( * ) ) * + + COUNT ( CAST ( NULL AS REAL ) ) + + 58
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-3416
SELECT 32 AS col2, 68 * - 20 + + COUNT( * ) - + 79
----
32
-1438

skipif mysql # not compatible
query II rowsort label-3416
SELECT 32 AS col2, 68 * - 20 + + COUNT ( * ) - + 79
----
32
-1438

query I rowsort
SELECT 9 - + + 9
----
0

query II rowsort
SELECT 62, + 19 col0
----
62
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3419
SELECT ALL 64 + COUNT( * ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-3419
SELECT ALL 64 + COUNT ( * ) AS col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3420
SELECT ALL + SUM( - 84 ) AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-3420
SELECT ALL + SUM ( - 84 ) AS col1
----
-84

query I rowsort
SELECT + 10 + 7
----
17

query I rowsort
SELECT ( 43 ) col1
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3423
SELECT - 92 DIV - COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-3423
SELECT - 92 / - COUNT ( * )
----
92

query I rowsort
SELECT - 35 + ( - + 96 ) AS col1
----
-131

onlyif mysql # aggregate syntax: 
query I rowsort label-3425
SELECT ALL - SUM( 97 )
----
-97

skipif mysql # not compatible
query I rowsort label-3425
SELECT ALL - SUM ( 97 )
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3426
SELECT ALL - + ( - CAST( NULL AS SIGNED ) ) + 87 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3426
SELECT ALL - + ( - CAST ( NULL AS INTEGER ) ) + 87 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3427
SELECT ALL - MIN( ALL + 7 ) * + COUNT( * ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-3427
SELECT ALL - MIN ( ALL + 7 ) * + COUNT ( * ) AS col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-3428
SELECT ALL 61 + + ( + ( - + COUNT( ( - 6 ) ) ) ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-3428
SELECT ALL 61 + + ( + ( - + COUNT ( ( - 6 ) ) ) ) AS col0
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3429
SELECT + CAST( - 66 AS SIGNED )
----
-66

skipif mysql # not compatible
query I rowsort label-3429
SELECT + CAST ( - 66 AS INTEGER )
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-3430
SELECT ALL + COUNT( - 95 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-3430
SELECT ALL + COUNT ( - 95 ) col0
----
1

query I rowsort
SELECT DISTINCT - 42 col1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3432
SELECT DISTINCT - COUNT( * ) - + + 27
----
-28

skipif mysql # not compatible
query I rowsort label-3432
SELECT DISTINCT - COUNT ( * ) - + + 27
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3433
SELECT COUNT( * ) DIV 86 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3433
SELECT COUNT ( * ) / 86 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3434
SELECT ALL - CAST( NULL AS SIGNED ) * COUNT( * ) + - 12 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3434
SELECT ALL - CAST ( NULL AS INTEGER ) * COUNT ( * ) + - 12 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3435
SELECT + 33 + + COUNT( * ) col1
----
34

skipif mysql # not compatible
query I rowsort label-3435
SELECT + 33 + + COUNT ( * ) col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3436
SELECT + SUM( DISTINCT - 78 ) AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-3436
SELECT + SUM ( DISTINCT - 78 ) AS col1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-3437
SELECT COUNT( * ) - 19 - + + COUNT( * )
----
-19

skipif mysql # not compatible
query I rowsort label-3437
SELECT COUNT ( * ) - 19 - + + COUNT ( * )
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-3438
SELECT DISTINCT - 90 * - COUNT( * )
----
90

skipif mysql # not compatible
query I rowsort label-3438
SELECT DISTINCT - 90 * - COUNT ( * )
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3439
SELECT 47 - - MAX( ALL CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3439
SELECT 47 - - MAX ( ALL CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3440
SELECT ALL COUNT( + 55 )
----
1

skipif mysql # not compatible
query I rowsort label-3440
SELECT ALL COUNT ( + 55 )
----
1

query I rowsort
SELECT DISTINCT + 17 - + 66
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-3442
SELECT - COUNT( * ) + - 86
----
-87

skipif mysql # not compatible
query I rowsort label-3442
SELECT - COUNT ( * ) + - 86
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3443
SELECT - - COUNT( * ) + ( CAST( NULL AS SIGNED ) ), + 80 col2
----
NULL
80

skipif mysql # not compatible
query II rowsort label-3443
SELECT - - COUNT ( * ) + ( CAST ( NULL AS INTEGER ) ), + 80 col2
----
NULL
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3444
SELECT ALL - 46 + + + COUNT( * ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-3444
SELECT ALL - 46 + + + COUNT ( * ) AS col1
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3445
SELECT + 43 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3445
SELECT + 43 - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + - ( + 13 )
----
-13

query I rowsort
SELECT ALL - ( - 86 ) col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3448
SELECT ALL - COUNT( * ) * + 12 AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-3448
SELECT ALL - COUNT ( * ) * + 12 AS col1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-3449
SELECT ALL ( + 44 ) * - COUNT( DISTINCT + 90 )
----
-44

skipif mysql # not compatible
query I rowsort label-3449
SELECT ALL ( + 44 ) * - COUNT ( DISTINCT + 90 )
----
-44

query I rowsort
SELECT DISTINCT - ( 53 )
----
-53

query I rowsort
SELECT ALL - ( 99 ) AS col1
----
-99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3452
SELECT ALL + CAST( NULL AS DECIMAL ) * 47
----
NULL

skipif mysql # not compatible
query I rowsort label-3452
SELECT ALL + CAST ( NULL AS REAL ) * 47
----
NULL

query I rowsort
SELECT - 10 * 73
----
-730

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3454
SELECT COUNT( * ), CAST( + COUNT( ALL + 79 ) AS SIGNED )
----
1
1

skipif mysql # not compatible
query II rowsort label-3454
SELECT COUNT ( * ), CAST ( + COUNT ( ALL + 79 ) AS INTEGER )
----
1
1

query I rowsort
SELECT ALL + ( + 39 ) * - 37 AS col0
----
-1443

query I rowsort
SELECT DISTINCT - COALESCE ( 2, 71, - 51 ) col1
----
-2

query I rowsort
SELECT - 1 + + 37 AS col0
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3458
SELECT - ( - CAST( - 21 AS SIGNED ) ) col1
----
-21

skipif mysql # not compatible
query I rowsort label-3458
SELECT - ( - CAST ( - 21 AS INTEGER ) ) col1
----
-21

query I rowsort
SELECT DISTINCT - ( - 81 ) AS col2
----
81

query I rowsort
SELECT ALL - ( - 64 ) AS col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3461
SELECT + MAX( DISTINCT - 53 )
----
-53

skipif mysql # not compatible
query I rowsort label-3461
SELECT + MAX ( DISTINCT - 53 )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-3462
SELECT ALL - COUNT( * ) - - ( + + 99 )
----
98

skipif mysql # not compatible
query I rowsort label-3462
SELECT ALL - COUNT ( * ) - - ( + + 99 )
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-3463
SELECT - 33 DIV ( 79 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-3463
SELECT - 33 / ( 79 ) col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3464
SELECT + 44 * MAX( 82 ) AS col0
----
3608

skipif mysql # not compatible
query I rowsort label-3464
SELECT + 44 * MAX ( 82 ) AS col0
----
3608

onlyif mysql # DIV for integer division: 
query I rowsort label-3465
SELECT - 97 DIV - 31 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-3465
SELECT - 97 / - 31 AS col2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3466
SELECT ALL + CAST( + 7 AS SIGNED )
----
7

skipif mysql # not compatible
query I rowsort label-3466
SELECT ALL + CAST ( + 7 AS INTEGER )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3467
SELECT ALL COUNT( * ) - - - 81 - + COUNT( * )
----
-81

skipif mysql # not compatible
query I rowsort label-3467
SELECT ALL COUNT ( * ) - - - 81 - + COUNT ( * )
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3468
SELECT - - COUNT( * ) DIV 26 * 24
----
0

skipif mysql # not compatible
query I rowsort label-3468
SELECT - - COUNT ( * ) / 26 * 24
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3469
SELECT + 85 * MIN( - + 40 )
----
-3400

skipif mysql # not compatible
query I rowsort label-3469
SELECT + 85 * MIN ( - + 40 )
----
-3400

onlyif mysql # aggregate syntax: 
query I rowsort label-3470
SELECT + COUNT( DISTINCT + 5 ) * + - 54 col0
----
-54

skipif mysql # not compatible
query I rowsort label-3470
SELECT + COUNT ( DISTINCT + 5 ) * + - 54 col0
----
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-3471
SELECT ALL - SUM( + - 42 ), - COUNT( * ) col0
----
42
-1

skipif mysql # not compatible
query II rowsort label-3471
SELECT ALL - SUM ( + - 42 ), - COUNT ( * ) col0
----
42
-1

query I rowsort
SELECT DISTINCT + 84 + 18
----
102

query I rowsort
SELECT ALL - ( + + 20 )
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3474
SELECT DISTINCT 63, ( - CAST( NULL AS SIGNED ) ) AS col1
----
63
NULL

skipif mysql # not compatible
query II rowsort label-3474
SELECT DISTINCT 63, ( - CAST ( NULL AS INTEGER ) ) AS col1
----
63
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3475
SELECT 82 + + COUNT( * ) + - ( COUNT( * ) )
----
82

skipif mysql # not compatible
query I rowsort label-3475
SELECT 82 + + COUNT ( * ) + - ( COUNT ( * ) )
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3476
SELECT + - 66 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3476
SELECT + - 66 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3477
SELECT DISTINCT - COUNT( * ) * - - CAST( + COUNT( * ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-3477
SELECT DISTINCT - COUNT ( * ) * - - CAST ( + COUNT ( * ) AS INTEGER )
----
-1

query I rowsort
SELECT + 62 * - 88 col2
----
-5456

onlyif mysql # aggregate syntax: 
query I rowsort label-3479
SELECT - ( + + COUNT( * ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-3479
SELECT - ( + + COUNT ( * ) ) col2
----
-1

query I rowsort
SELECT + - ( - + 81 ) col0
----
81

query I rowsort
SELECT DISTINCT + 99 * 13
----
1287

query I rowsort
SELECT + 75 * 47 AS col1
----
3525

onlyif mysql # aggregate syntax: 
query I rowsort label-3483
SELECT ALL SUM( + - 34 ) AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-3483
SELECT ALL SUM ( + - 34 ) AS col1
----
-34

query I rowsort
SELECT ALL 20 * - 15 AS col1
----
-300

onlyif mysql # aggregate syntax: 
query I rowsort label-3485
SELECT DISTINCT SUM( + - 7 )
----
-7

skipif mysql # not compatible
query I rowsort label-3485
SELECT DISTINCT SUM ( + - 7 )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-3486
SELECT ALL COUNT( * ) * - - 27 * - 21 col1
----
-567

skipif mysql # not compatible
query I rowsort label-3486
SELECT ALL COUNT ( * ) * - - 27 * - 21 col1
----
-567

onlyif mysql # aggregate syntax: 
query I rowsort label-3487
SELECT 22 - - COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-3487
SELECT 22 - - COUNT ( * )
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3488
SELECT ALL CAST( NULL AS SIGNED ) + + 12 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3488
SELECT ALL CAST ( NULL AS INTEGER ) + + 12 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3489
SELECT DISTINCT - 19 * - COALESCE ( COUNT( * ), CAST( - ( 20 ) AS SIGNED ) + + 6 * 67 )
----
19

skipif mysql # not compatible
query I rowsort label-3489
SELECT DISTINCT - 19 * - COALESCE ( COUNT ( * ), CAST ( - ( 20 ) AS INTEGER ) + + 6 * 67 )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3490
SELECT DISTINCT + 64 + COUNT( * )
----
65

skipif mysql # not compatible
query I rowsort label-3490
SELECT DISTINCT + 64 + COUNT ( * )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3491
SELECT DISTINCT - COUNT( * ) + 28 AS col0
----
27

skipif mysql # not compatible
query I rowsort label-3491
SELECT DISTINCT - COUNT ( * ) + 28 AS col0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3492
SELECT ALL - COUNT( * ) * + 50 AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-3492
SELECT ALL - COUNT ( * ) * + 50 AS col0
----
-50

query I rowsort
SELECT DISTINCT - ( - 86 ) AS col1
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3494
SELECT COUNT( * ) * - 37
----
-37

skipif mysql # not compatible
query I rowsort label-3494
SELECT COUNT ( * ) * - 37
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-3495
SELECT DISTINCT COALESCE ( + COUNT( * ), + 66 ) * 62 AS col1
----
62

skipif mysql # not compatible
query I rowsort label-3495
SELECT DISTINCT COALESCE ( + COUNT ( * ), + 66 ) * 62 AS col1
----
62

query I rowsort
SELECT DISTINCT 68 + 88
----
156

onlyif mysql # DIV for integer division: 
query I rowsort label-3497
SELECT + 22 DIV - 90 + 7
----
7

skipif mysql # not compatible
query I rowsort label-3497
SELECT + 22 / - 90 + 7
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3498
SELECT DISTINCT 76 * 19 + COUNT( * )
----
1445

skipif mysql # not compatible
query I rowsort label-3498
SELECT DISTINCT 76 * 19 + COUNT ( * )
----
1445

onlyif mysql # aggregate syntax: 
query I rowsort label-3499
SELECT DISTINCT - MAX( 86 ) - + COUNT( * )
----
-87

skipif mysql # not compatible
query I rowsort label-3499
SELECT DISTINCT - MAX ( 86 ) - + COUNT ( * )
----
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3500
SELECT COUNT( * ) DIV + 37 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3500
SELECT COUNT ( * ) / + 37 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3501
SELECT ALL + MAX( ALL - - 77 ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-3501
SELECT ALL + MAX ( ALL - - 77 ) AS col2
----
77

query I rowsort
SELECT ALL + + 91 * 17 * 38
----
58786

query I rowsort
SELECT ALL 81 * + - 45 + - 13
----
-3658

query I rowsort
SELECT + ( - 30 )
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-3505
SELECT COUNT( * ) AS col0, - 97 AS col1
----
1
-97

skipif mysql # not compatible
query II rowsort label-3505
SELECT COUNT ( * ) AS col0, - 97 AS col1
----
1
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3506
SELECT DISTINCT - CAST( - CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3506
SELECT DISTINCT - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3507
SELECT - + CAST( NULL AS SIGNED ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3507
SELECT - + CAST ( NULL AS INTEGER ) * - COUNT ( * )
----
NULL

query I rowsort
SELECT - 98 + 74 col0
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3509
SELECT DISTINCT - AVG ( - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3509
SELECT DISTINCT - AVG ( - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3510
SELECT ALL + CAST( - + 96 AS SIGNED ) AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-3510
SELECT ALL + CAST ( - + 96 AS INTEGER ) AS col1
----
-96

query II rowsort
SELECT ALL 84 + 83 AS col1, 8
----
167
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3512
SELECT ALL - + COUNT( * ) + ( - + 14 ) + + + 39 AS col2
----
24

skipif mysql # not compatible
query I rowsort label-3512
SELECT ALL - + COUNT ( * ) + ( - + 14 ) + + + 39 AS col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3513
SELECT + COUNT( - - COALESCE ( 95, - - 53 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3513
SELECT + COUNT ( - - COALESCE ( 95, - - 53 ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3514
SELECT DISTINCT + 12 + + + SUM( + 63 )
----
75

skipif mysql # not compatible
query I rowsort label-3514
SELECT DISTINCT + 12 + + + SUM ( + 63 )
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3515
SELECT DISTINCT - CAST( - CAST( - COUNT( * ) AS SIGNED ) AS SIGNED ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3515
SELECT DISTINCT - CAST ( - CAST ( - COUNT ( * ) AS INTEGER ) AS INTEGER ) AS col2
----
-1

query I rowsort
SELECT + 94 col2
----
94

query I rowsort
SELECT ALL - + 97 col0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3518
SELECT ALL + ( - - ( - - COUNT( * ) ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3518
SELECT ALL + ( - - ( - - COUNT ( * ) ) ) AS col1
----
1

query I rowsort
SELECT 3 + + 65 col2
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3520
SELECT - CAST( + - 54 AS SIGNED )
----
54

skipif mysql # not compatible
query I rowsort label-3520
SELECT - CAST ( + - 54 AS INTEGER )
----
54

query I rowsort
SELECT - 56 + 8
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3522
SELECT + NULLIF ( + + 91, - + CAST( NULL AS SIGNED ) ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-3522
SELECT + NULLIF ( + + 91, - + CAST ( NULL AS INTEGER ) ) AS col1
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3523
SELECT DISTINCT - ( CAST( - + 7 AS SIGNED ) ) * - - COUNT( * ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-3523
SELECT DISTINCT - ( CAST ( - + 7 AS INTEGER ) ) * - - COUNT ( * ) AS col0
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3524
SELECT ALL + COALESCE ( - CAST( NULL AS SIGNED ), + 19 ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-3524
SELECT ALL + COALESCE ( - CAST ( NULL AS INTEGER ), + 19 ) AS col1
----
19

query I rowsort
SELECT ALL + + 40 * 38
----
1520

onlyif mysql # aggregate syntax: 
query II rowsort label-3526
SELECT DISTINCT + + 70 AS col2, COUNT( * ) AS col0
----
70
1

skipif mysql # not compatible
query II rowsort label-3526
SELECT DISTINCT + + 70 AS col2, COUNT ( * ) AS col0
----
70
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3527
SELECT + 97 * - - COUNT( * ) col2
----
97

skipif mysql # not compatible
query I rowsort label-3527
SELECT + 97 * - - COUNT ( * ) col2
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3528
SELECT ALL CAST( + + 14 AS SIGNED ) + 28 + 33 * 42
----
1428

skipif mysql # not compatible
query I rowsort label-3528
SELECT ALL CAST ( + + 14 AS INTEGER ) + 28 + 33 * 42
----
1428

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3529
SELECT ALL - 32 * + + COUNT( * ) AS col0, + CAST( NULL AS SIGNED ) * 48
----
-32
NULL

skipif mysql # not compatible
query II rowsort label-3529
SELECT ALL - 32 * + + COUNT ( * ) AS col0, + CAST ( NULL AS INTEGER ) * 48
----
-32
NULL

query I rowsort
SELECT ALL + 22 * + 22
----
484

query I rowsort
SELECT ALL 84 * + + 61 AS col1
----
5124

onlyif mysql # aggregate syntax: 
query II rowsort label-3532
SELECT 80 AS col0, COUNT( ALL + + 58 ) AS col0
----
80
1

skipif mysql # not compatible
query II rowsort label-3532
SELECT 80 AS col0, COUNT ( ALL + + 58 ) AS col0
----
80
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3533
SELECT DISTINCT 69 + - - COUNT( * ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-3533
SELECT DISTINCT 69 + - - COUNT ( * ) AS col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3534
SELECT DISTINCT - ( COUNT( * ) ) - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-3534
SELECT DISTINCT - ( COUNT ( * ) ) - COUNT ( * )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3535
SELECT 79 * + COUNT( * )
----
79

skipif mysql # not compatible
query I rowsort label-3535
SELECT 79 * + COUNT ( * )
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3536
SELECT + ( - NULLIF ( + - ( 58 ), - - 10 - 70 ) ) DIV + COUNT( * ) col0
----
58

skipif mysql # not compatible
query I rowsort label-3536
SELECT + ( - NULLIF ( + - ( 58 ), - - 10 - 70 ) ) / + COUNT ( * ) col0
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3537
SELECT + - CAST( NULL AS SIGNED ) * 61 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3537
SELECT + - CAST ( NULL AS INTEGER ) * 61 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3538
SELECT - COUNT( * ) * - 54 DIV - 59
----
0

skipif mysql # not compatible
query I rowsort label-3538
SELECT - COUNT ( * ) * - 54 / - 59
----
0

query I rowsort
SELECT DISTINCT 38 * + + 7
----
266

onlyif mysql # aggregate syntax: 
query II rowsort label-3540
SELECT 83 AS col2, - 77 * + - 20 * + + MAX( ALL + - 71 ) AS col0
----
83
-109340

skipif mysql # not compatible
query II rowsort label-3540
SELECT 83 AS col2, - 77 * + - 20 * + + MAX ( ALL + - 71 ) AS col0
----
83
-109340

query I rowsort
SELECT - ( + 21 ) AS col1
----
-21

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3542
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3542
SELECT DISTINCT - CAST ( NULL AS REAL ) + + COUNT ( * ) AS col1
----
NULL

query II rowsort
SELECT 90 col2, + 78 - + 34
----
90
44

query I rowsort
SELECT ALL - + 91 + + 13 col1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-3545
SELECT - COUNT( * ) * 97 col0
----
-97

skipif mysql # not compatible
query I rowsort label-3545
SELECT - COUNT ( * ) * 97 col0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3546
SELECT COUNT( * ) - + + COUNT( * ) + + 83 AS col1
----
83

skipif mysql # not compatible
query I rowsort label-3546
SELECT COUNT ( * ) - + + COUNT ( * ) + + 83 AS col1
----
83

query I rowsort
SELECT 44 * - 10 col1
----
-440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3548
SELECT 79 + + - 53 + COUNT( * ) / + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3548
SELECT 79 + + - 53 + COUNT ( * ) / + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL - 87 + + + 85 AS col0
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-3550
SELECT COUNT( * ) AS col2, 61 AS col0
----
1
61

skipif mysql # not compatible
query II rowsort label-3550
SELECT COUNT ( * ) AS col2, 61 AS col0
----
1
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3551
SELECT SUM( ALL - 93 )
----
-93

skipif mysql # not compatible
query I rowsort label-3551
SELECT SUM ( ALL - 93 )
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3552
SELECT 15, CAST( NULL AS SIGNED ) AS col2
----
15
NULL

skipif mysql # not compatible
query II rowsort label-3552
SELECT 15, CAST ( NULL AS INTEGER ) AS col2
----
15
NULL

query II rowsort
SELECT - 49, ( 59 ) AS col0
----
-49
59

query I rowsort
SELECT + 97 * - + 55 * - 74 AS col1
----
394790

onlyif mysql # aggregate syntax: 
query II rowsort label-3555
SELECT COUNT( * ) col1, + 26
----
1
26

skipif mysql # not compatible
query II rowsort label-3555
SELECT COUNT ( * ) col1, + 26
----
1
26

query I rowsort
SELECT + + 49 - 49 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3557
SELECT - + 63 DIV - 14
----
4

skipif mysql # not compatible
query I rowsort label-3557
SELECT - + 63 / - 14
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3558
SELECT + MIN( ALL + - 22 )
----
-22

skipif mysql # not compatible
query I rowsort label-3558
SELECT + MIN ( ALL + - 22 )
----
-22

query I rowsort
SELECT ALL - 91 * + + 64 - - 37 + - + 69 AS col1
----
-5856

query II rowsort
SELECT - 42 - + + 43 col1, + 36 * 17
----
-85
612

onlyif mysql # aggregate syntax: 
query I rowsort label-3561
SELECT ALL + NULLIF ( - + COUNT( * ), - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3561
SELECT ALL + NULLIF ( - + COUNT ( * ), - COUNT ( * ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3562
SELECT - - CAST( NULL AS SIGNED ) + 51 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3562
SELECT - - CAST ( NULL AS INTEGER ) + 51 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3563
SELECT + COUNT( * ) * - 97 AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-3563
SELECT + COUNT ( * ) * - 97 AS col0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3564
SELECT ALL + 88 + - COUNT( * )
----
87

skipif mysql # not compatible
query I rowsort label-3564
SELECT ALL + 88 + - COUNT ( * )
----
87

query I rowsort
SELECT DISTINCT 26 * - 42 * - + 26 col2
----
28392

onlyif mysql # aggregate syntax: 
query I rowsort label-3566
SELECT DISTINCT + COUNT( * ) * 70 AS col1
----
70

skipif mysql # not compatible
query I rowsort label-3566
SELECT DISTINCT + COUNT ( * ) * 70 AS col1
----
70

query I rowsort
SELECT ( 98 ) AS col0
----
98

query I rowsort
SELECT 89 * - ( 96 ) AS col0
----
-8544

onlyif mysql # aggregate syntax: 
query I rowsort label-3569
SELECT COUNT( * ) + - 67
----
-66

skipif mysql # not compatible
query I rowsort label-3569
SELECT COUNT ( * ) + - 67
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-3570
SELECT ALL + COUNT( - - 28 ) * - 52 AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-3570
SELECT ALL + COUNT ( - - 28 ) * - 52 AS col1
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-3571
SELECT - 94 * COUNT( * ) + ( + ( COUNT( * ) ) ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-3571
SELECT - 94 * COUNT ( * ) + ( + ( COUNT ( * ) ) ) AS col0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3572
SELECT ALL - ( - + MIN( DISTINCT + 67 ) )
----
67

skipif mysql # not compatible
query I rowsort label-3572
SELECT ALL - ( - + MIN ( DISTINCT + 67 ) )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3573
SELECT + 2 * + COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-3573
SELECT + 2 * + COUNT ( * ) AS col0
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-3574
SELECT ALL COUNT( * ) AS col0, - NULLIF ( + + 58, COUNT( * ) ) * + MIN( 5 )
----
1
-290

skipif mysql # not compatible
query II rowsort label-3574
SELECT ALL COUNT ( * ) AS col0, - NULLIF ( + + 58, COUNT ( * ) ) * + MIN ( 5 )
----
1
-290

onlyif mysql # aggregate syntax: 
query II rowsort label-3575
SELECT DISTINCT + 81 AS col1, + COUNT( * )
----
81
1

skipif mysql # not compatible
query II rowsort label-3575
SELECT DISTINCT + 81 AS col1, + COUNT ( * )
----
81
1

query I rowsort
SELECT ALL + - 9 AS col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3577
SELECT DISTINCT + + ( COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3577
SELECT DISTINCT + + ( COUNT ( * ) ) AS col0
----
1

query I rowsort
SELECT ALL + 8 + - 90 AS col1
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-3579
SELECT DISTINCT SUM( 43 )
----
43

skipif mysql # not compatible
query I rowsort label-3579
SELECT DISTINCT SUM ( 43 )
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-3580
SELECT DISTINCT + + 39, + COUNT( * ) AS col0
----
39
1

skipif mysql # not compatible
query II rowsort label-3580
SELECT DISTINCT + + 39, + COUNT ( * ) AS col0
----
39
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3581
SELECT DISTINCT + COUNT( DISTINCT + + 14 )
----
1

skipif mysql # not compatible
query I rowsort label-3581
SELECT DISTINCT + COUNT ( DISTINCT + + 14 )
----
1

query I rowsort
SELECT ALL 15 + ( + + 43 ) AS col1
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-3583
SELECT 86 AS col1, COUNT( * )
----
86
1

skipif mysql # not compatible
query II rowsort label-3583
SELECT 86 AS col1, COUNT ( * )
----
86
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3584
SELECT DISTINCT + 27 * - COUNT( * ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-3584
SELECT DISTINCT + 27 * - COUNT ( * ) AS col2
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3585
SELECT - - 36 * - COUNT( * ) + COUNT( * ) AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-3585
SELECT - - 36 * - COUNT ( * ) + COUNT ( * ) AS col1
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3586
SELECT + - CAST( + 40 AS SIGNED ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-3586
SELECT + - CAST ( + 40 AS INTEGER ) AS col1
----
-40

query I rowsort
SELECT ( 3 )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3588
SELECT + 83 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3588
SELECT + 83 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3589
SELECT + 60 + - ( + SUM( DISTINCT 29 ) ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-3589
SELECT + 60 + - ( + SUM ( DISTINCT 29 ) ) AS col2
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3590
SELECT - - CAST( NULL AS SIGNED ) + ( + - 76 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3590
SELECT - - CAST ( NULL AS INTEGER ) + ( + - 76 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3591
SELECT + CAST( NULL AS SIGNED ) + + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-3591
SELECT + CAST ( NULL AS INTEGER ) + + 6
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3592
SELECT DISTINCT - COUNT( * ) AS col2, + 50
----
-1
50

skipif mysql # not compatible
query II rowsort label-3592
SELECT DISTINCT - COUNT ( * ) AS col2, + 50
----
-1
50

query I rowsort
SELECT ALL - 71 - + 89 col2
----
-160

onlyif mysql # aggregate syntax: 
query I rowsort label-3594
SELECT - COUNT( * ) * - 25 AS col0
----
25

skipif mysql # not compatible
query I rowsort label-3594
SELECT - COUNT ( * ) * - 25 AS col0
----
25

query I rowsort
SELECT + ( 77 )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3596
SELECT ALL - COUNT( * ) - + ( - 83 )
----
82

skipif mysql # not compatible
query I rowsort label-3596
SELECT ALL - COUNT ( * ) - + ( - 83 )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3597
SELECT DISTINCT - 68 * - 50 * + COUNT( * ) AS col1
----
3400

skipif mysql # not compatible
query I rowsort label-3597
SELECT DISTINCT - 68 * - 50 * + COUNT ( * ) AS col1
----
3400

onlyif mysql # aggregate syntax: 
query I rowsort label-3598
SELECT - COUNT( DISTINCT 64 ) * ( - 19 ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-3598
SELECT - COUNT ( DISTINCT 64 ) * ( - 19 ) AS col0
----
19

query I rowsort
SELECT DISTINCT + + 77 col2
----
77

query II rowsort
SELECT ALL - 65 AS col0, 69 AS col2
----
-65
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3601
SELECT ALL CAST( - + COUNT( * ) AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3601
SELECT ALL CAST ( - + COUNT ( * ) AS INTEGER ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3602
SELECT + COUNT( * ) - + + 93 AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-3602
SELECT + COUNT ( * ) - + + 93 AS col0
----
-92

query I rowsort
SELECT + ( + 17 ) AS col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3604
SELECT ALL COUNT( * ) * - - 50
----
50

skipif mysql # not compatible
query I rowsort label-3604
SELECT ALL COUNT ( * ) * - - 50
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3605
SELECT ALL + COUNT( * ) - + 47 + 30
----
-16

skipif mysql # not compatible
query I rowsort label-3605
SELECT ALL + COUNT ( * ) - + 47 + 30
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-3606
SELECT DISTINCT MAX( ALL 39 )
----
39

skipif mysql # not compatible
query I rowsort label-3606
SELECT DISTINCT MAX ( ALL 39 )
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3607
SELECT CAST( 62 AS SIGNED ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-3607
SELECT CAST ( 62 AS INTEGER ) AS col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-3608
SELECT + MAX( ALL 95 )
----
95

skipif mysql # not compatible
query I rowsort label-3608
SELECT + MAX ( ALL 95 )
----
95

query I rowsort
SELECT - ( + 23 ) AS col1
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3610
SELECT CAST( NULL AS DECIMAL ) * - + CAST( NULL AS SIGNED ) * + + CAST( - COUNT( * ) AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3610
SELECT CAST ( NULL AS REAL ) * - + CAST ( NULL AS INTEGER ) * + + CAST ( - COUNT ( * ) AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3611
SELECT ALL - + CAST( - 61 AS SIGNED ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-3611
SELECT ALL - + CAST ( - 61 AS INTEGER ) AS col2
----
61

query I rowsort
SELECT - 17 + + + 34
----
17

query I rowsort
SELECT DISTINCT + COALESCE ( 72, - ( - + 9 ) )
----
72

query I rowsort
SELECT ALL + 87 col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3615
SELECT MIN( DISTINCT + 66 )
----
66

skipif mysql # not compatible
query I rowsort label-3615
SELECT MIN ( DISTINCT + 66 )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3616
SELECT DISTINCT + MAX( ALL + - 53 )
----
-53

skipif mysql # not compatible
query I rowsort label-3616
SELECT DISTINCT + MAX ( ALL + - 53 )
----
-53

query I rowsort
SELECT ALL - 70 * + 64 AS col2
----
-4480

query I rowsort
SELECT ALL 18 * 89
----
1602

onlyif mysql # aggregate syntax: 
query II rowsort label-3619
SELECT - - COUNT( * ) col0, 4
----
1
4

skipif mysql # not compatible
query II rowsort label-3619
SELECT - - COUNT ( * ) col0, 4
----
1
4

query I rowsort
SELECT - 36 + + 60
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3621
SELECT DISTINCT ( CAST( 47 AS SIGNED ) ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-3621
SELECT DISTINCT ( CAST ( 47 AS INTEGER ) ) AS col1
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3622
SELECT COUNT( * ) * - CAST( + 65 AS SIGNED )
----
-65

skipif mysql # not compatible
query I rowsort label-3622
SELECT COUNT ( * ) * - CAST ( + 65 AS INTEGER )
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3623
SELECT COUNT( * ) DIV - - COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3623
SELECT COUNT ( * ) / - - COUNT ( * ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3624
SELECT DISTINCT COUNT( * ) * + + CAST( - - COUNT( * ) AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3624
SELECT DISTINCT COUNT ( * ) * + + CAST ( - - COUNT ( * ) AS INTEGER ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3625
SELECT ALL + MIN( ALL 42 ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-3625
SELECT ALL + MIN ( ALL 42 ) AS col0
----
42

query I rowsort
SELECT + - 91 + ( + ( - 8 ) ) AS col2
----
-99

query I rowsort
SELECT + 0 * 5 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3628
SELECT ALL 40 * + COUNT( * ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-3628
SELECT ALL 40 * + COUNT ( * ) AS col0
----
40

query I rowsort
SELECT - 60 + - - 78
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3630
SELECT + MIN( DISTINCT 40 ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-3630
SELECT + MIN ( DISTINCT 40 ) AS col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3631
SELECT + ( - + MIN( + 15 ) )
----
-15

skipif mysql # not compatible
query I rowsort label-3631
SELECT + ( - + MIN ( + 15 ) )
----
-15

query I rowsort
SELECT DISTINCT + 68 col2
----
68

query I rowsort
SELECT - ( 5 ) col1
----
-5

query I rowsort
SELECT - + 16 AS col2
----
-16

query I rowsort
SELECT DISTINCT 55 + - 23 AS col2
----
32

query I rowsort
SELECT 29 * + 78 AS col2
----
2262

query I rowsort
SELECT ALL - - ( - 11 )
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-3638
SELECT + 79 AS col1, + COUNT( * ) AS col1
----
79
1

skipif mysql # not compatible
query II rowsort label-3638
SELECT + 79 AS col1, + COUNT ( * ) AS col1
----
79
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3639
SELECT ALL MAX( + 91 ) - - COUNT( * ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-3639
SELECT ALL MAX ( + 91 ) - - COUNT ( * ) AS col0
----
92

query I rowsort
SELECT 39 * 20
----
780

onlyif mysql # aggregate syntax: 
query I rowsort label-3641
SELECT NULLIF ( + COUNT( * ), - 95 * + 92 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3641
SELECT NULLIF ( + COUNT ( * ), - 95 * + 92 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3642
SELECT - 64 + COUNT( * ) col2
----
-63

skipif mysql # not compatible
query I rowsort label-3642
SELECT - 64 + COUNT ( * ) col2
----
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-3643
SELECT + MAX( ALL - 54 ), + 3 AS col1
----
-54
3

skipif mysql # not compatible
query II rowsort label-3643
SELECT + MAX ( ALL - 54 ), + 3 AS col1
----
-54
3

query I rowsort
SELECT DISTINCT + ( - 47 ) col2
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3645
SELECT ALL + - COUNT( * ) * + COUNT( * ) DIV - 57
----
0

skipif mysql # not compatible
query I rowsort label-3645
SELECT ALL + - COUNT ( * ) * + COUNT ( * ) / - 57
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3646
SELECT + COUNT( * ) + + + 74 AS col1
----
75

skipif mysql # not compatible
query I rowsort label-3646
SELECT + COUNT ( * ) + + + 74 AS col1
----
75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3647
SELECT + 73 / + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3647
SELECT + 73 / + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3648
SELECT + 30 + - 71 * - ( - ( + 6 ) ) + - CASE CAST( NULL AS SIGNED ) WHEN - - COUNT( * ) THEN + CAST( NULL AS DECIMAL ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3648
SELECT + 30 + - 71 * - ( - ( + 6 ) ) + - CASE CAST ( NULL AS INTEGER ) WHEN - - COUNT ( * ) THEN + CAST ( NULL AS REAL ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3649
SELECT - SUM( ALL + 95 ) * - 28
----
2660

skipif mysql # not compatible
query I rowsort label-3649
SELECT - SUM ( ALL + 95 ) * - 28
----
2660

onlyif mysql # aggregate syntax: 
query I rowsort label-3650
SELECT ALL + SUM( - 28 ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-3650
SELECT ALL + SUM ( - 28 ) AS col2
----
-28

query I rowsort
SELECT + + 11 col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3652
SELECT DISTINCT - COUNT( * ) * 23 AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-3652
SELECT DISTINCT - COUNT ( * ) * 23 AS col1
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3653
SELECT DISTINCT + 37 DIV - 6 + - COUNT( * )
----
-7

skipif mysql # not compatible
query I rowsort label-3653
SELECT DISTINCT + 37 / - 6 + - COUNT ( * )
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3654
SELECT ALL - CAST( - 52 AS SIGNED )
----
52

skipif mysql # not compatible
query I rowsort label-3654
SELECT ALL - CAST ( - 52 AS INTEGER )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3655
SELECT ALL + - COUNT( * ) + 57
----
56

skipif mysql # not compatible
query I rowsort label-3655
SELECT ALL + - COUNT ( * ) + 57
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3656
SELECT DISTINCT COALESCE ( + COUNT( * ), + 19, - + COUNT( * ) ) + + 95
----
96

skipif mysql # not compatible
query I rowsort label-3656
SELECT DISTINCT COALESCE ( + COUNT ( * ), + 19, - + COUNT ( * ) ) + + 95
----
96

query I rowsort
SELECT ALL ( + - 12 ) AS col2
----
-12

query I rowsort
SELECT - 64 * + 16 col0
----
-1024

query I rowsort
SELECT ALL - 59 - 80 AS col0
----
-139

query I rowsort
SELECT + ( 33 ) AS col0
----
33

query I rowsort
SELECT ALL ( + 69 )
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3662
SELECT DISTINCT COUNT( * ) DIV - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-3662
SELECT DISTINCT COUNT ( * ) / - COUNT ( * )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3663
SELECT DISTINCT - 0 * ( + 30 ) + + - CAST( - - COUNT( * ) AS SIGNED ) + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3663
SELECT DISTINCT - 0 * ( + 30 ) + + - CAST ( - - COUNT ( * ) AS INTEGER ) + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3664
SELECT - + COUNT( * ) + 69 AS col1
----
68

skipif mysql # not compatible
query I rowsort label-3664
SELECT - + COUNT ( * ) + 69 AS col1
----
68

query I rowsort
SELECT ALL + + 85 AS col2
----
85

query I rowsort
SELECT 39 * - 20 AS col1
----
-780

onlyif mysql # aggregate syntax: 
query I rowsort label-3667
SELECT DISTINCT - SUM( ALL + 99 ) AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-3667
SELECT DISTINCT - SUM ( ALL + 99 ) AS col2
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3668
SELECT DISTINCT - 25 * - - COUNT( * ) * - 70, - CAST( + + 57 AS SIGNED ) AS col0
----
1750
-57

skipif mysql # not compatible
query II rowsort label-3668
SELECT DISTINCT - 25 * - - COUNT ( * ) * - 70, - CAST ( + + 57 AS INTEGER ) AS col0
----
1750
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3669
SELECT ALL MIN( - + 36 ) + + + ( + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3669
SELECT ALL MIN ( - + 36 ) + + + ( + + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3670
SELECT ALL - NULLIF ( ( + + 96 ), COUNT( * ) )
----
-96

skipif mysql # not compatible
query I rowsort label-3670
SELECT ALL - NULLIF ( ( + + 96 ), COUNT ( * ) )
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3671
SELECT 90 + CAST( - 18 AS SIGNED )
----
72

skipif mysql # not compatible
query I rowsort label-3671
SELECT 90 + CAST ( - 18 AS INTEGER )
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3672
SELECT ALL + - 50 + + CAST( - 81 AS SIGNED ) AS col2
----
-131

skipif mysql # not compatible
query I rowsort label-3672
SELECT ALL + - 50 + + CAST ( - 81 AS INTEGER ) AS col2
----
-131

onlyif mysql # aggregate syntax: 
query I rowsort label-3673
SELECT + 31 + + COUNT( * )
----
32

skipif mysql # not compatible
query I rowsort label-3673
SELECT + 31 + + COUNT ( * )
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3674
SELECT + 25 / - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3674
SELECT + 25 / - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 88 - 70
----
-158

query I rowsort
SELECT DISTINCT 17 + 39
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3677
SELECT - ( + + SUM( - 81 ) )
----
81

skipif mysql # not compatible
query I rowsort label-3677
SELECT - ( + + SUM ( - 81 ) )
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3678
SELECT CAST( NULL AS SIGNED ) AS col0, 21
----
NULL
21

skipif mysql # not compatible
query II rowsort label-3678
SELECT CAST ( NULL AS INTEGER ) AS col0, 21
----
NULL
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3679
SELECT CAST( - 52 AS SIGNED )
----
-52

skipif mysql # not compatible
query I rowsort label-3679
SELECT CAST ( - 52 AS INTEGER )
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3680
SELECT CAST( 5 AS SIGNED )
----
5

skipif mysql # not compatible
query I rowsort label-3680
SELECT CAST ( 5 AS INTEGER )
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3681
SELECT ( - + CAST( NULL AS SIGNED ) ) * MIN( 85 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3681
SELECT ( - + CAST ( NULL AS INTEGER ) ) * MIN ( 85 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3682
SELECT 26 + COUNT( * ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-3682
SELECT 26 + COUNT ( * ) AS col1
----
27

query I rowsort
SELECT ALL 29 * - - 75 AS col2
----
2175

onlyif mysql # aggregate syntax: 
query II rowsort label-3684
SELECT ALL 92 AS col0, + COUNT( * ) AS col0
----
92
1

skipif mysql # not compatible
query II rowsort label-3684
SELECT ALL 92 AS col0, + COUNT ( * ) AS col0
----
92
1

query I rowsort
SELECT ALL ( - - 94 ) AS col1
----
94

query I rowsort
SELECT DISTINCT + 68 + - ( + 66 ) col1
----
2

query I rowsort
SELECT ALL 6 + 14 * + + 83
----
1168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3688
SELECT + MIN( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3688
SELECT + MIN ( - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT - + ( - 51 ) AS col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3690
SELECT ALL - NULLIF ( - COUNT( * ), + 28 )
----
1

skipif mysql # not compatible
query I rowsort label-3690
SELECT ALL - NULLIF ( - COUNT ( * ), + 28 )
----
1

query I rowsort
SELECT ALL + ( + - ( - 59 ) )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3692
SELECT COUNT( * ) + 66
----
67

skipif mysql # not compatible
query I rowsort label-3692
SELECT COUNT ( * ) + 66
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-3693
SELECT 93 + COUNT( * ) * 23 AS col2, 92 AS col1
----
116
92

skipif mysql # not compatible
query II rowsort label-3693
SELECT 93 + COUNT ( * ) * 23 AS col2, 92 AS col1
----
116
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3694
SELECT DISTINCT MAX( + 85 )
----
85

skipif mysql # not compatible
query I rowsort label-3694
SELECT DISTINCT MAX ( + 85 )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3695
SELECT ALL - 56 + + COUNT( * )
----
-55

skipif mysql # not compatible
query I rowsort label-3695
SELECT ALL - 56 + + COUNT ( * )
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-3696
SELECT MIN( - 27 ) col0
----
-27

skipif mysql # not compatible
query I rowsort label-3696
SELECT MIN ( - 27 ) col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3697
SELECT SUM( 91 ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-3697
SELECT SUM ( 91 ) AS col0
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-3698
SELECT + 43 DIV 15
----
2

skipif mysql # not compatible
query I rowsort label-3698
SELECT + 43 / 15
----
2

query I rowsort
SELECT ALL 71 + + 89
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-3700
SELECT ALL - COUNT( * ) * 57 AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-3700
SELECT ALL - COUNT ( * ) * 57 AS col0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-3701
SELECT - + 46 * COUNT( * ) col0
----
-46

skipif mysql # not compatible
query I rowsort label-3701
SELECT - + 46 * COUNT ( * ) col0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-3702
SELECT - COUNT( * ) * - 71 col2
----
71

skipif mysql # not compatible
query I rowsort label-3702
SELECT - COUNT ( * ) * - 71 col2
----
71

query I rowsort
SELECT - 39 + 70 AS col0
----
31

query I rowsort
SELECT DISTINCT + + 14 AS col1
----
14

query I rowsort
SELECT + - 50 AS col1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-3706
SELECT DISTINCT + 51 * 6 + COUNT( 29 ) * 51 AS col1
----
357

skipif mysql # not compatible
query I rowsort label-3706
SELECT DISTINCT + 51 * 6 + COUNT ( 29 ) * 51 AS col1
----
357

onlyif mysql # aggregate syntax: 
query I rowsort label-3707
SELECT - SUM( DISTINCT + + 58 )
----
-58

skipif mysql # not compatible
query I rowsort label-3707
SELECT - SUM ( DISTINCT + + 58 )
----
-58

query I rowsort
SELECT DISTINCT 94 - - + 39 AS col2
----
133

query I rowsort
SELECT DISTINCT - + 45 AS col2
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-3710
SELECT - SUM( DISTINCT + 46 ) + 67 AS col0
----
21

skipif mysql # not compatible
query I rowsort label-3710
SELECT - SUM ( DISTINCT + 46 ) + 67 AS col0
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3711
SELECT DISTINCT 44, - 69 * + + CAST( NULL AS SIGNED ) AS col1
----
44
NULL

skipif mysql # not compatible
query II rowsort label-3711
SELECT DISTINCT 44, - 69 * + + CAST ( NULL AS INTEGER ) AS col1
----
44
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3712
SELECT DISTINCT - COUNT( * ) - - 2 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3712
SELECT DISTINCT - COUNT ( * ) - - 2 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3713
SELECT COUNT( * ) * + + 73 col1
----
73

skipif mysql # not compatible
query I rowsort label-3713
SELECT COUNT ( * ) * + + 73 col1
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-3714
SELECT 2 DIV 2
----
1

skipif mysql # not compatible
query I rowsort label-3714
SELECT 2 / 2
----
1

query I rowsort
SELECT ALL ( + 75 ) AS col0
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3716
SELECT ALL CAST( + 51 AS SIGNED ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-3716
SELECT ALL CAST ( + 51 AS INTEGER ) AS col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3717
SELECT COUNT( * ) * 8 AS col1
----
8

skipif mysql # not compatible
query I rowsort label-3717
SELECT COUNT ( * ) * 8 AS col1
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3718
SELECT ALL + 92 * + + COUNT( * ) * - - CAST( ( 16 ) AS SIGNED )
----
1472

skipif mysql # not compatible
query I rowsort label-3718
SELECT ALL + 92 * + + COUNT ( * ) * - - CAST ( ( 16 ) AS INTEGER )
----
1472

onlyif mysql # aggregate syntax: 
query I rowsort label-3719
SELECT DISTINCT SUM( ALL + - 92 ) AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-3719
SELECT DISTINCT SUM ( ALL + - 92 ) AS col0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-3720
SELECT + COUNT( * ) - - 45 AS col1
----
46

skipif mysql # not compatible
query I rowsort label-3720
SELECT + COUNT ( * ) - - 45 AS col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3721
SELECT MIN( + 2 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-3721
SELECT MIN ( + 2 ) AS col0
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3722
SELECT - + COUNT( * ) DIV 87 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3722
SELECT - + COUNT ( * ) / 87 AS col1
----
0

query I rowsort
SELECT - - ( + ( + ( + 86 ) ) ) + 51
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-3724
SELECT - 45 * + COUNT( * ) * + + COUNT( * ) col0
----
-45

skipif mysql # not compatible
query I rowsort label-3724
SELECT - 45 * + COUNT ( * ) * + + COUNT ( * ) col0
----
-45

query I rowsort
SELECT DISTINCT + + 66 col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3726
SELECT + 78 + - 35 * - ( ( COUNT( * ) ) ) * COUNT( * )
----
113

skipif mysql # not compatible
query I rowsort label-3726
SELECT + 78 + - 35 * - ( ( COUNT ( * ) ) ) * COUNT ( * )
----
113

query I rowsort
SELECT - + 48 col0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-3728
SELECT ALL COUNT( * ) * - - 79 + - 30
----
49

skipif mysql # not compatible
query I rowsort label-3728
SELECT ALL COUNT ( * ) * - - 79 + - 30
----
49

query II rowsort
SELECT + 69 AS col0, - 1
----
69
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3730
SELECT + - 29 AS col2, + MAX( ALL 32 ) col1
----
-29
32

skipif mysql # not compatible
query II rowsort label-3730
SELECT + - 29 AS col2, + MAX ( ALL 32 ) col1
----
-29
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3731
SELECT + - CAST( - 94 AS SIGNED ) col2
----
94

skipif mysql # not compatible
query I rowsort label-3731
SELECT + - CAST ( - 94 AS INTEGER ) col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3732
SELECT COUNT( * ) + 12 AS col2
----
13

skipif mysql # not compatible
query I rowsort label-3732
SELECT COUNT ( * ) + 12 AS col2
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3733
SELECT ALL - MAX( 52 ) DIV ( SUM( - 56 ) )
----
0

skipif mysql # not compatible
query I rowsort label-3733
SELECT ALL - MAX ( 52 ) / ( SUM ( - 56 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3734
SELECT - COUNT( * ) - - 69
----
68

skipif mysql # not compatible
query I rowsort label-3734
SELECT - COUNT ( * ) - - 69
----
68

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3735
SELECT 10 DIV - CAST( 45 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-3735
SELECT 10 / - CAST ( 45 AS INTEGER )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3736
SELECT - 1 DIV 39 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3736
SELECT - 1 / 39 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3737
SELECT DISTINCT + SUM( ALL + - 10 )
----
-10

skipif mysql # not compatible
query I rowsort label-3737
SELECT DISTINCT + SUM ( ALL + - 10 )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3738
SELECT DISTINCT + MAX( DISTINCT 56 ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-3738
SELECT DISTINCT + MAX ( DISTINCT 56 ) AS col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3739
SELECT NULLIF ( - 1, + COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3739
SELECT NULLIF ( - 1, + COUNT ( * ) )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3740
SELECT DISTINCT + - 1, - ( COUNT( * ) ) AS col1
----
-1
-1

skipif mysql # not compatible
query II rowsort label-3740
SELECT DISTINCT + - 1, - ( COUNT ( * ) ) AS col1
----
-1
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3741
SELECT + COALESCE ( + COUNT( * ), + 23 ) DIV 79 * + + 69
----
0

skipif mysql # not compatible
query I rowsort label-3741
SELECT + COALESCE ( + COUNT ( * ), + 23 ) / 79 * + + 69
----
0

query I rowsort
SELECT + 34 * 27
----
918

query I rowsort
SELECT - 34 + 39 AS col2
----
5

query I rowsort
SELECT + + ( + 2 )
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-3745
SELECT 42 DIV 32 - 84 AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-3745
SELECT 42 / 32 - 84 AS col1
----
-83

query I rowsort
SELECT 2 - - ( 15 )
----
17

query I rowsort
SELECT DISTINCT - ( - 69 )
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-3748
SELECT DISTINCT 79 DIV - 5 AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-3748
SELECT DISTINCT 79 / - 5 AS col1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3749
SELECT COUNT( * ) * 32
----
32

skipif mysql # not compatible
query I rowsort label-3749
SELECT COUNT ( * ) * 32
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3750
SELECT ALL - 48 * 66 + ( COUNT( * ) ) * 79 AS col2
----
-3089

skipif mysql # not compatible
query I rowsort label-3750
SELECT ALL - 48 * 66 + ( COUNT ( * ) ) * 79 AS col2
----
-3089

query I rowsort
SELECT ALL 24 * - 21
----
-504

query II rowsort
SELECT ALL 39 AS col0, 49 - + 81
----
39
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-3753
SELECT 65 + - + COUNT( * )
----
64

skipif mysql # not compatible
query I rowsort label-3753
SELECT 65 + - + COUNT ( * )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3754
SELECT 41 * + + COUNT( * ) * - - 86
----
3526

skipif mysql # not compatible
query I rowsort label-3754
SELECT 41 * + + COUNT ( * ) * - - 86
----
3526

onlyif mysql # aggregate syntax: 
query II rowsort label-3755
SELECT - 28 col2, ( COUNT( * ) ) AS col2
----
-28
1

skipif mysql # not compatible
query II rowsort label-3755
SELECT - 28 col2, ( COUNT ( * ) ) AS col2
----
-28
1

query I rowsort
SELECT DISTINCT + 61 - + 70
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3757
SELECT ALL NULLIF ( + 98, - + COUNT( * ) )
----
98

skipif mysql # not compatible
query I rowsort label-3757
SELECT ALL NULLIF ( + 98, - + COUNT ( * ) )
----
98

query I rowsort
SELECT - ( 51 ) + 96 col2
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3759
SELECT CAST( NULL AS SIGNED ) - + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-3759
SELECT CAST ( NULL AS INTEGER ) - + 87
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3760
SELECT DISTINCT - - 90 DIV COUNT( * ) col0
----
90

skipif mysql # not compatible
query I rowsort label-3760
SELECT DISTINCT - - 90 / COUNT ( * ) col0
----
90

query I rowsort
SELECT - CASE - 9 WHEN - - 24 THEN - 97 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3762
SELECT ALL + 63 + + + COUNT( * ) col1
----
64

skipif mysql # not compatible
query I rowsort label-3762
SELECT ALL + 63 + + + COUNT ( * ) col1
----
64

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3763
SELECT + - CAST( NULL AS DECIMAL ) + + + CAST( NULL AS DECIMAL ) / - CAST( NULL AS DECIMAL ), COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-3763
SELECT + - CAST ( NULL AS REAL ) + + + CAST ( NULL AS REAL ) / - CAST ( NULL AS REAL ), COUNT ( * ) AS col2
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3764
SELECT + COUNT( * ) + + 51 AS col2
----
52

skipif mysql # not compatible
query I rowsort label-3764
SELECT + COUNT ( * ) + + 51 AS col2
----
52

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3765
SELECT - 90 * - 19 + 46 - + + CAST( NULL AS DECIMAL ) * - 71 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3765
SELECT - 90 * - 19 + 46 - + + CAST ( NULL AS REAL ) * - 71 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3766
SELECT - SUM( - ( + 6 ) )
----
6

skipif mysql # not compatible
query I rowsort label-3766
SELECT - SUM ( - ( + 6 ) )
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-3767
SELECT ALL + 14 DIV - 79 + + 95 AS col2
----
95

skipif mysql # not compatible
query I rowsort label-3767
SELECT ALL + 14 / - 79 + + 95 AS col2
----
95

query I rowsort
SELECT ALL 99 * 20
----
1980

onlyif mysql # aggregate syntax: 
query I rowsort label-3769
SELECT DISTINCT 16 * + 72 * COUNT( * ) AS col2
----
1152

skipif mysql # not compatible
query I rowsort label-3769
SELECT DISTINCT 16 * + 72 * COUNT ( * ) AS col2
----
1152

onlyif mysql # aggregate syntax: 
query I rowsort label-3770
SELECT ALL - MIN( ALL + 49 )
----
-49

skipif mysql # not compatible
query I rowsort label-3770
SELECT ALL - MIN ( ALL + 49 )
----
-49

query I rowsort
SELECT 25 + 55
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3772
SELECT ALL + COUNT( * ) * + 50
----
50

skipif mysql # not compatible
query I rowsort label-3772
SELECT ALL + COUNT ( * ) * + 50
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3773
SELECT 24 * - - COUNT( * )
----
24

skipif mysql # not compatible
query I rowsort label-3773
SELECT 24 * - - COUNT ( * )
----
24

query I rowsort
SELECT 75 * + 36 col2
----
2700

query I rowsort
SELECT DISTINCT - ( + 63 ) AS col2
----
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-3776
SELECT DISTINCT COUNT( * ) AS col1, 57 AS col2
----
1
57

skipif mysql # not compatible
query II rowsort label-3776
SELECT DISTINCT COUNT ( * ) AS col1, 57 AS col2
----
1
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3777
SELECT DISTINCT SUM( ALL 24 )
----
24

skipif mysql # not compatible
query I rowsort label-3777
SELECT DISTINCT SUM ( ALL 24 )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3778
SELECT ALL 42 * COUNT( * )
----
42

skipif mysql # not compatible
query I rowsort label-3778
SELECT ALL 42 * COUNT ( * )
----
42

query I rowsort
SELECT + 16 - - 88
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-3780
SELECT ALL SUM( ALL + 95 ) AS col2
----
95

skipif mysql # not compatible
query I rowsort label-3780
SELECT ALL SUM ( ALL + 95 ) AS col2
----
95

query I rowsort
SELECT DISTINCT + 87 * 17
----
1479

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3782
SELECT CAST( + 36 AS SIGNED )
----
36

skipif mysql # not compatible
query I rowsort label-3782
SELECT CAST ( + 36 AS INTEGER )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3783
SELECT ALL + COUNT( 2 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-3783
SELECT ALL + COUNT ( 2 ) col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3784
SELECT + CAST( - 83 AS SIGNED ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-3784
SELECT + CAST ( - 83 AS INTEGER ) AS col2
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3785
SELECT CAST( 27 AS SIGNED ) col0
----
27

skipif mysql # not compatible
query I rowsort label-3785
SELECT CAST ( 27 AS INTEGER ) col0
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3786
SELECT + COUNT( * ) - - - ( - + MIN( CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3786
SELECT + COUNT ( * ) - - - ( - + MIN ( CAST ( NULL AS INTEGER ) ) )
----
NULL

query I rowsort
SELECT 74 + - 12 + - 41 AS col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3788
SELECT 9 + + COUNT( * ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-3788
SELECT 9 + + COUNT ( * ) AS col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3789
SELECT DISTINCT - + MIN( - 0 )
----
0

skipif mysql # not compatible
query I rowsort label-3789
SELECT DISTINCT - + MIN ( - 0 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3790
SELECT - 69, CAST( NULL AS SIGNED ) + COUNT( * ) AS col0
----
-69
NULL

skipif mysql # not compatible
query II rowsort label-3790
SELECT - 69, CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col0
----
-69
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3791
SELECT ALL - - 77 AS col0, CAST( NULL AS SIGNED ) AS col1
----
77
NULL

skipif mysql # not compatible
query II rowsort label-3791
SELECT ALL - - 77 AS col0, CAST ( NULL AS INTEGER ) AS col1
----
77
NULL

query I rowsort
SELECT 9 * - 79
----
-711

query I rowsort
SELECT 6 + + - 96
----
-90

query II rowsort
SELECT 71, + ( 42 ) + - 29 col0
----
71
13

query I rowsort
SELECT - 80 * + 22 AS col1
----
-1760

onlyif mysql # aggregate syntax: 
query II rowsort label-3796
SELECT + COUNT( * ), + COUNT( * ) col0
----
1
1

skipif mysql # not compatible
query II rowsort label-3796
SELECT + COUNT ( * ), + COUNT ( * ) col0
----
1
1

query I rowsort
SELECT ALL + - 50 AS col2
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-3798
SELECT ALL COUNT( * ) * NULLIF ( + COUNT( * ), + 74 ) + + 71 AS col2
----
72

skipif mysql # not compatible
query I rowsort label-3798
SELECT ALL COUNT ( * ) * NULLIF ( + COUNT ( * ), + 74 ) + + 71 AS col2
----
72

query I rowsort
SELECT DISTINCT + ( + 72 ) col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3800
SELECT COUNT( - - 25 )
----
1

skipif mysql # not compatible
query I rowsort label-3800
SELECT COUNT ( - - 25 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3801
SELECT ALL COUNT( + ( + + 4 ) )
----
1

skipif mysql # not compatible
query I rowsort label-3801
SELECT ALL COUNT ( + ( + + 4 ) )
----
1

query I rowsort
SELECT 30 * + 86
----
2580

onlyif mysql # aggregate syntax: 
query I rowsort label-3803
SELECT - MAX( ALL 74 )
----
-74

skipif mysql # not compatible
query I rowsort label-3803
SELECT - MAX ( ALL 74 )
----
-74

query I rowsort
SELECT DISTINCT - - 29 AS col0
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3805
SELECT ALL - CAST( + COUNT( * ) AS SIGNED ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-3805
SELECT ALL - CAST ( + COUNT ( * ) AS INTEGER ) col2
----
-1

query I rowsort
SELECT 9 + 23 AS col0
----
32

query I rowsort
SELECT 44 - - - 15
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3808
SELECT ALL - 93 DIV COUNT( * ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-3808
SELECT ALL - 93 / COUNT ( * ) AS col0
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3809
SELECT - + CAST( - - 69 AS SIGNED ) AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-3809
SELECT - + CAST ( - - 69 AS INTEGER ) AS col1
----
-69

query I rowsort
SELECT DISTINCT - ( - 66 ) AS col0
----
66

query I rowsort
SELECT 35 - + - 6 AS col2
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3812
SELECT ALL COUNT( ALL CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-3812
SELECT ALL COUNT ( ALL CAST ( NULL AS INTEGER ) )
----
0

query I rowsort
SELECT 50 * - 71 AS col0
----
-3550

query II rowsort
SELECT ALL - - 92 + 12 AS col1, - 26 AS col2
----
104
-26

query I rowsort
SELECT ALL 88 + - 63
----
25

query I rowsort
SELECT + + 82 * + 5 AS col0
----
410

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3817
SELECT + - ( - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3817
SELECT + - ( - + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT + - COALESCE ( 64, + 8, - + 25, + 87 )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-3819
SELECT ALL + COUNT( DISTINCT + ( + + 69 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3819
SELECT ALL + COUNT ( DISTINCT + ( + + 69 ) ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3820
SELECT + 99 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3820
SELECT + 99 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3821
SELECT - CAST( + 27 AS SIGNED ) AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-3821
SELECT - CAST ( + 27 AS INTEGER ) AS col0
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3822
SELECT - + COUNT( * ) + + - 71 * - AVG ( CAST( NULL AS SIGNED ) ) * + 94 + - + 52 + 23 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3822
SELECT - + COUNT ( * ) + + - 71 * - AVG ( CAST ( NULL AS INTEGER ) ) * + 94 + - + 52 + 23 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3823
SELECT - + SUM( DISTINCT ( + - 67 ) ) AS col0
----
67

skipif mysql # not compatible
query I rowsort label-3823
SELECT - + SUM ( DISTINCT ( + - 67 ) ) AS col0
----
67

query I rowsort
SELECT DISTINCT 28 * 61 AS col2
----
1708

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3825
SELECT ALL - MAX( CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) + - 67
----
NULL

skipif mysql # not compatible
query I rowsort label-3825
SELECT ALL - MAX ( CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) + - 67
----
NULL

query I rowsort
SELECT ALL - 28 + - 7 AS col1
----
-35

query I rowsort
SELECT ALL + 76 + + 36 AS col2
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-3828
SELECT SUM( - 96 ) + + MAX( 16 ) AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-3828
SELECT SUM ( - 96 ) + + MAX ( 16 ) AS col2
----
-80

query I rowsort
SELECT DISTINCT - 88 * ( + 4 )
----
-352

onlyif mysql # DIV for integer division: 
query I rowsort label-3830
SELECT 93 DIV - - ( 79 )
----
1

skipif mysql # not compatible
query I rowsort label-3830
SELECT 93 / - - ( 79 )
----
1

query I rowsort
SELECT - - ( + 2 )
----
2

query I rowsort
SELECT 24 + + ( - - CASE 44 WHEN 2 THEN NULL ELSE - 63 END )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-3833
SELECT DISTINCT 82 * - COUNT( * )
----
-82

skipif mysql # not compatible
query I rowsort label-3833
SELECT DISTINCT 82 * - COUNT ( * )
----
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-3834
SELECT + 3 AS col2, + COUNT( * )
----
3
1

skipif mysql # not compatible
query II rowsort label-3834
SELECT + 3 AS col2, + COUNT ( * )
----
3
1

query I rowsort
SELECT DISTINCT + ( + 34 ) AS col0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3836
SELECT - SUM( ALL 79 )
----
-79

skipif mysql # not compatible
query I rowsort label-3836
SELECT - SUM ( ALL 79 )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-3837
SELECT - ( + NULLIF ( - COUNT( * ), - 78 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3837
SELECT - ( + NULLIF ( - COUNT ( * ), - 78 ) ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3838
SELECT CAST( NULL AS SIGNED ) AS col0, - 20 AS col1
----
NULL
-20

skipif mysql # not compatible
query II rowsort label-3838
SELECT CAST ( NULL AS INTEGER ) AS col0, - 20 AS col1
----
NULL
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-3839
SELECT ALL + MIN( 82 )
----
82

skipif mysql # not compatible
query I rowsort label-3839
SELECT ALL + MIN ( 82 )
----
82

query I rowsort
SELECT + ( - 45 ) AS col2
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-3841
SELECT ALL 21 - COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-3841
SELECT ALL 21 - COUNT ( * )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3842
SELECT DISTINCT - - COALESCE ( - - COUNT( * ), + 67 )
----
1

skipif mysql # not compatible
query I rowsort label-3842
SELECT DISTINCT - - COALESCE ( - - COUNT ( * ), + 67 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3843
SELECT - MAX( - 55 )
----
55

skipif mysql # not compatible
query I rowsort label-3843
SELECT - MAX ( - 55 )
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3844
SELECT - 95 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3844
SELECT - 95 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + 48 + + 78 AS col0
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-3846
SELECT ALL - 21 - - COUNT( * ) AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-3846
SELECT ALL - 21 - - COUNT ( * ) AS col1
----
-20

query I rowsort
SELECT + 94 - - 12
----
106

query I rowsort
SELECT - ( 50 ) AS col2
----
-50

query I rowsort
SELECT - 46 * - 50
----
2300

onlyif mysql # aggregate syntax: 
query I rowsort label-3850
SELECT DISTINCT MAX( - - 29 ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-3850
SELECT DISTINCT MAX ( - - 29 ) AS col0
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3851
SELECT + COUNT( * ) + - ( - ( ( + + CAST( NULL AS SIGNED ) ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3851
SELECT + COUNT ( * ) + - ( - ( ( + + CAST ( NULL AS INTEGER ) ) ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3852
SELECT - CAST( - 22 AS SIGNED ) col2
----
22

skipif mysql # not compatible
query I rowsort label-3852
SELECT - CAST ( - 22 AS INTEGER ) col2
----
22

query I rowsort
SELECT ( + - 75 )
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3854
SELECT ALL + - MAX( ALL - 65 ) col1
----
65

skipif mysql # not compatible
query I rowsort label-3854
SELECT ALL + - MAX ( ALL - 65 ) col1
----
65

query I rowsort
SELECT - ( - 80 ) AS col0
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3856
SELECT DISTINCT ( - CAST( - + 51 AS SIGNED ) ) * COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-3856
SELECT DISTINCT ( - CAST ( - + 51 AS INTEGER ) ) * COUNT ( * )
----
51

query I rowsort
SELECT - 53 * 6
----
-318

onlyif mysql # aggregate syntax: 
query I rowsort label-3858
SELECT DISTINCT - 9 * - COUNT( * )
----
9

skipif mysql # not compatible
query I rowsort label-3858
SELECT DISTINCT - 9 * - COUNT ( * )
----
9

query I rowsort
SELECT 94 + - 8
----
86

query I rowsort
SELECT ALL + 19 + + 62 col0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3861
SELECT CAST( + 31 AS SIGNED ) col2
----
31

skipif mysql # not compatible
query I rowsort label-3861
SELECT CAST ( + 31 AS INTEGER ) col2
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-3862
SELECT + 57 AS col2, + MAX( + + 38 )
----
57
38

skipif mysql # not compatible
query II rowsort label-3862
SELECT + 57 AS col2, + MAX ( + + 38 )
----
57
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3863
SELECT + COUNT( DISTINCT + - 49 )
----
1

skipif mysql # not compatible
query I rowsort label-3863
SELECT + COUNT ( DISTINCT + - 49 )
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3864
SELECT DISTINCT + 54 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3864
SELECT DISTINCT + 54 * + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3865
SELECT + + 66 / + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3865
SELECT + + 66 / + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3866
SELECT DISTINCT - 5 * - + CAST( NULL AS SIGNED ) + - - 71, 49 - + 47 DIV - 51 AS col2
----
NULL
49

skipif mysql # not compatible
query II rowsort label-3866
SELECT DISTINCT - 5 * - + CAST ( NULL AS INTEGER ) + - - 71, 49 - + 47 / - 51 AS col2
----
NULL
49

query I rowsort
SELECT DISTINCT + - 21 + 21 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3868
SELECT + SUM( DISTINCT - ( 65 ) )
----
-65

skipif mysql # not compatible
query I rowsort label-3868
SELECT + SUM ( DISTINCT - ( 65 ) )
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3869
SELECT + CAST( + 67 AS SIGNED )
----
67

skipif mysql # not compatible
query I rowsort label-3869
SELECT + CAST ( + 67 AS INTEGER )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3870
SELECT + ( MIN( - 90 ) ) AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-3870
SELECT + ( MIN ( - 90 ) ) AS col2
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-3871
SELECT - 63 DIV 7
----
-9

skipif mysql # not compatible
query I rowsort label-3871
SELECT - 63 / 7
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3872
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 58
----
NULL

skipif mysql # not compatible
query I rowsort label-3872
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 58
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3873
SELECT ALL SUM( ALL + 34 ) * COUNT( * ) + - 28 col0, - 15
----
6
-15

skipif mysql # not compatible
query II rowsort label-3873
SELECT ALL SUM ( ALL + 34 ) * COUNT ( * ) + - 28 col0, - 15
----
6
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3874
SELECT DISTINCT + - COUNT( + 32 ) + - ( 91 ) * - 28
----
2547

skipif mysql # not compatible
query I rowsort label-3874
SELECT DISTINCT + - COUNT ( + 32 ) + - ( 91 ) * - 28
----
2547

onlyif mysql # aggregate syntax: 
query I rowsort label-3875
SELECT ALL - COUNT( * ) + - 38
----
-39

skipif mysql # not compatible
query I rowsort label-3875
SELECT ALL - COUNT ( * ) + - 38
----
-39

query I rowsort
SELECT DISTINCT 55 + - 79 + - 28 AS col1
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3877
SELECT MIN( + CAST( NULL AS SIGNED ) ) + - - ( + + 94 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3877
SELECT MIN ( + CAST ( NULL AS INTEGER ) ) + - - ( + + 94 ) AS col0
----
NULL

query I rowsort
SELECT - ( - ( - - 88 ) ) AS col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3879
SELECT ALL + COUNT( * ) + + 2 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-3879
SELECT ALL + COUNT ( * ) + + 2 AS col2
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3880
SELECT ALL + COUNT( * ) DIV 42
----
0

skipif mysql # not compatible
query I rowsort label-3880
SELECT ALL + COUNT ( * ) / 42
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3881
SELECT ALL + MIN( DISTINCT + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3881
SELECT ALL + MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3882
SELECT + - ( - CAST( - COUNT( * ) AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3882
SELECT + - ( - CAST ( - COUNT ( * ) AS INTEGER ) )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3883
SELECT ALL 47 - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3883
SELECT ALL 47 - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3884
SELECT ALL COUNT( + ( - - 81 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3884
SELECT ALL COUNT ( + ( - - 81 ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3885
SELECT + 81 + - + COUNT( * ) AS col0, MIN( - 2 )
----
80
-2

skipif mysql # not compatible
query II rowsort label-3885
SELECT + 81 + - + COUNT ( * ) AS col0, MIN ( - 2 )
----
80
-2

query II rowsort
SELECT ALL + 47 * + 77, - 29 AS col1
----
3619
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3887
SELECT + CAST( + - COUNT( * ) AS SIGNED ) AS col0, COUNT( * ) AS col1
----
-1
1

skipif mysql # not compatible
query II rowsort label-3887
SELECT + CAST ( + - COUNT ( * ) AS INTEGER ) AS col0, COUNT ( * ) AS col1
----
-1
1

query I rowsort
SELECT - 72 * + - 35
----
2520

onlyif mysql # aggregate syntax: 
query I rowsort label-3889
SELECT ALL COUNT( * ) + - - 56
----
57

skipif mysql # not compatible
query I rowsort label-3889
SELECT ALL COUNT ( * ) + - - 56
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3890
SELECT ALL CAST( NULL AS SIGNED ) * 3 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3890
SELECT ALL CAST ( NULL AS INTEGER ) * 3 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3891
SELECT + - 4 col2, COUNT( * ) AS col0
----
-4
1

skipif mysql # not compatible
query II rowsort label-3891
SELECT + - 4 col2, COUNT ( * ) AS col0
----
-4
1

query I rowsort
SELECT DISTINCT - 84 - + 95 AS col1
----
-179

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3893
SELECT ALL + COUNT( * ) DIV 72 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3893
SELECT ALL + COUNT ( * ) / 72 AS col1
----
0

query I rowsort
SELECT + 45 * - + 11
----
-495

query I rowsort
SELECT ALL - - 92 AS col2
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3896
SELECT - COUNT( * ) DIV - + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3896
SELECT - COUNT ( * ) / - + COUNT ( * ) AS col0
----
1

query I rowsort
SELECT + 52 + + 78 AS col1
----
130

query II rowsort
SELECT ALL 66 AS col1, 41 AS col2
----
66
41

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3899
SELECT 97 AS col1, + CAST( NULL AS SIGNED )
----
97
NULL

skipif mysql # not compatible
query II rowsort label-3899
SELECT 97 AS col1, + CAST ( NULL AS INTEGER )
----
97
NULL

query I rowsort
SELECT - ( 50 ) + - 5 AS col1
----
-55

query I rowsort
SELECT - 62 * - - ( + - 30 )
----
1860

query II rowsort
SELECT - 51 AS col1, + 48 * - 15
----
-51
-720

query I rowsort
SELECT DISTINCT ( + 0 )
----
0

query I rowsort
SELECT - ( - + 39 )
----
39

query I rowsort
SELECT + + 31 + 51 AS col2
----
82

query I rowsort
SELECT + 66 * + 70 AS col0
----
4620

onlyif mysql # aggregate syntax: 
query I rowsort label-3907
SELECT ALL + SUM( ALL + - ( - 94 ) )
----
94

skipif mysql # not compatible
query I rowsort label-3907
SELECT ALL + SUM ( ALL + - ( - 94 ) )
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3908
SELECT ALL + CAST( + 85 AS SIGNED ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-3908
SELECT ALL + CAST ( + 85 AS INTEGER ) AS col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3909
SELECT SUM( DISTINCT 54 )
----
54

skipif mysql # not compatible
query I rowsort label-3909
SELECT SUM ( DISTINCT 54 )
----
54

query I rowsort
SELECT + 93 * - 48 AS col0
----
-4464

query I rowsort
SELECT - ( - + ( + - 75 ) ) AS col0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3912
SELECT DISTINCT - 40 * COUNT( * ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-3912
SELECT DISTINCT - 40 * COUNT ( * ) AS col1
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-3913
SELECT ALL + 5 * - - COUNT( * ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-3913
SELECT ALL + 5 * - - COUNT ( * ) AS col2
----
5

query II rowsort
SELECT DISTINCT + 62 AS col2, ( + 50 )
----
62
50

onlyif mysql # aggregate syntax: 
query II rowsort label-3915
SELECT 12, - ( - COUNT( * ) ) AS col0
----
12
1

skipif mysql # not compatible
query II rowsort label-3915
SELECT 12, - ( - COUNT ( * ) ) AS col0
----
12
1

query I rowsort
SELECT DISTINCT + 43 * - 64 AS col1
----
-2752

query I rowsort
SELECT DISTINCT 15 * - ( - 3 )
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3918
SELECT - CAST( - + 44 AS SIGNED )
----
44

skipif mysql # not compatible
query I rowsort label-3918
SELECT - CAST ( - + 44 AS INTEGER )
----
44

query I rowsort
SELECT - - 7 col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3920
SELECT - + MAX( DISTINCT 86 ) AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-3920
SELECT - + MAX ( DISTINCT 86 ) AS col1
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-3921
SELECT MIN( DISTINCT - 41 ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-3921
SELECT MIN ( DISTINCT - 41 ) AS col0
----
-41

query I rowsort
SELECT ALL - + 34 + - ( 98 ) AS col0
----
-132

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3923
SELECT DISTINCT + - COUNT( * ) * + - COUNT( 32 ) DIV + 36
----
0

skipif mysql # not compatible
query I rowsort label-3923
SELECT DISTINCT + - COUNT ( * ) * + - COUNT ( 32 ) / + 36
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3924
SELECT ALL - COUNT( ALL 90 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3924
SELECT ALL - COUNT ( ALL 90 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3925
SELECT 76 * + + COUNT( * ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-3925
SELECT 76 * + + COUNT ( * ) AS col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3926
SELECT ALL + 95 * + COUNT( * ) col0
----
95

skipif mysql # not compatible
query I rowsort label-3926
SELECT ALL + 95 * + COUNT ( * ) col0
----
95

query I rowsort
SELECT - 50 col2
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-3928
SELECT ALL - 77 + + COALESCE ( COUNT( * ), + COUNT( * ) ) AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-3928
SELECT ALL - 77 + + COALESCE ( COUNT ( * ), + COUNT ( * ) ) AS col2
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3929
SELECT + CAST( + SUM( - 62 ) AS SIGNED )
----
-62

skipif mysql # not compatible
query I rowsort label-3929
SELECT + CAST ( + SUM ( - 62 ) AS INTEGER )
----
-62

query I rowsort
SELECT + ( + 6 ) AS col1
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-3931
SELECT DISTINCT 92 DIV 48 col0
----
1

skipif mysql # not compatible
query I rowsort label-3931
SELECT DISTINCT 92 / 48 col0
----
1

query I rowsort
SELECT ALL 85 + - 40 AS col2
----
45

query I rowsort
SELECT ( - 24 ) * + 95
----
-2280

query I rowsort
SELECT 34 + 54
----
88

query I rowsort
SELECT 50 + - 38 AS col1
----
12

query I rowsort
SELECT ALL 51 * 89
----
4539

onlyif mysql # aggregate syntax: 
query I rowsort label-3937
SELECT ALL 45 + 50 * - COUNT( * )
----
-5

skipif mysql # not compatible
query I rowsort label-3937
SELECT ALL 45 + 50 * - COUNT ( * )
----
-5

query I rowsort
SELECT DISTINCT + 18 * 94
----
1692

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3939
SELECT CAST( + 89 AS SIGNED ) * - 12 + + 71 * COUNT( * )
----
-997

skipif mysql # not compatible
query I rowsort label-3939
SELECT CAST ( + 89 AS INTEGER ) * - 12 + + 71 * COUNT ( * )
----
-997

onlyif mysql # aggregate syntax: 
query I rowsort label-3940
SELECT ALL - 98 + MAX( 68 )
----
-30

skipif mysql # not compatible
query I rowsort label-3940
SELECT ALL - 98 + MAX ( 68 )
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-3941
SELECT ALL 39 DIV 57 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3941
SELECT ALL 39 / 57 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3942
SELECT + COUNT( * ) * - 49 + 8
----
-41

skipif mysql # not compatible
query I rowsort label-3942
SELECT + COUNT ( * ) * - 49 + 8
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-3943
SELECT ALL MAX( DISTINCT + + ( 99 ) )
----
99

skipif mysql # not compatible
query I rowsort label-3943
SELECT ALL MAX ( DISTINCT + + ( 99 ) )
----
99

query I rowsort
SELECT DISTINCT + 33 col0
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-3945
SELECT + 45 - 59 DIV 36 AS col0
----
44

skipif mysql # not compatible
query I rowsort label-3945
SELECT + 45 - 59 / 36 AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3946
SELECT + 86 + COUNT( * ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-3946
SELECT + 86 + COUNT ( * ) AS col0
----
87

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3947
SELECT ALL - ( + CAST( NULL AS DECIMAL ) ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3947
SELECT ALL - ( + CAST ( NULL AS REAL ) ) * + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3948
SELECT - COUNT( * ) * 50
----
-50

skipif mysql # not compatible
query I rowsort label-3948
SELECT - COUNT ( * ) * 50
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-3949
SELECT ALL + COUNT( - 64 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3949
SELECT ALL + COUNT ( - 64 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3950
SELECT - COUNT( * ) + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3950
SELECT - COUNT ( * ) + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3951
SELECT - 64 * + + SUM( DISTINCT + 81 ) AS col0
----
-5184

skipif mysql # not compatible
query I rowsort label-3951
SELECT - 64 * + + SUM ( DISTINCT + 81 ) AS col0
----
-5184

query I rowsort
SELECT ALL 28 + - + 29
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3953
SELECT + 10 * - + COUNT( * )
----
-10

skipif mysql # not compatible
query I rowsort label-3953
SELECT + 10 * - + COUNT ( * )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3954
SELECT 94 - + - COUNT( * ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-3954
SELECT 94 - + - COUNT ( * ) AS col0
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3955
SELECT 0 * - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3955
SELECT 0 * - CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT DISTINCT - ( - 42 ) AS col2
----
42

query I rowsort
SELECT 85 - - 30
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-3958
SELECT ALL - 45 - + + 15 + - + COUNT( * ) * + COUNT( * )
----
-61

skipif mysql # not compatible
query I rowsort label-3958
SELECT ALL - 45 - + + 15 + - + COUNT ( * ) * + COUNT ( * )
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-3959
SELECT COUNT( * ) * - 56
----
-56

skipif mysql # not compatible
query I rowsort label-3959
SELECT COUNT ( * ) * - 56
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-3960
SELECT DISTINCT MIN( + + 79 ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-3960
SELECT DISTINCT MIN ( + + 79 ) AS col2
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3961
SELECT DISTINCT ( + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3961
SELECT DISTINCT ( + - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3962
SELECT + CAST( NULL AS SIGNED ) * + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-3962
SELECT + CAST ( NULL AS INTEGER ) * + 62
----
NULL

query I rowsort
SELECT 97 * - 53 AS col1
----
-5141

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3964
SELECT - CAST( NULL AS DECIMAL ) - - 97 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3964
SELECT - CAST ( NULL AS REAL ) - - 97 AS col0
----
NULL

query I rowsort
SELECT ALL - 82 * + - 66 AS col2
----
5412

onlyif mysql # aggregate syntax: 
query I rowsort label-3966
SELECT + MAX( - - 23 )
----
23

skipif mysql # not compatible
query I rowsort label-3966
SELECT + MAX ( - - 23 )
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3967
SELECT + ( + CAST( + 18 AS SIGNED ) ) col1
----
18

skipif mysql # not compatible
query I rowsort label-3967
SELECT + ( + CAST ( + 18 AS INTEGER ) ) col1
----
18

query I rowsort
SELECT + 69 * + 31
----
2139

onlyif mysql # aggregate syntax: 
query II rowsort label-3969
SELECT + 15 * 52, - COUNT( * ) AS col2
----
780
-1

skipif mysql # not compatible
query II rowsort label-3969
SELECT + 15 * 52, - COUNT ( * ) AS col2
----
780
-1

query I rowsort
SELECT ALL 56 + + ( - + ( + 96 ) )
----
-40

query I rowsort
SELECT - + ( + 78 )
----
-78

query I rowsort
SELECT DISTINCT - ( 9 ) AS col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3973
SELECT DISTINCT + COUNT( * ) + + - 74
----
-73

skipif mysql # not compatible
query I rowsort label-3973
SELECT DISTINCT + COUNT ( * ) + + - 74
----
-73

query I rowsort
SELECT 44 + + + 36
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3975
SELECT + COUNT( * ) + + + COUNT( * ) col2
----
2

skipif mysql # not compatible
query I rowsort label-3975
SELECT + COUNT ( * ) + + + COUNT ( * ) col2
----
2

query I rowsort
SELECT - - ( + 93 ) AS col1
----
93

query I rowsort
SELECT + ( - - 8 )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3978
SELECT ALL - COUNT( + 65 )
----
-1

skipif mysql # not compatible
query I rowsort label-3978
SELECT ALL - COUNT ( + 65 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3979
SELECT DISTINCT - - 51 DIV - MAX( + 93 )
----
0

skipif mysql # not compatible
query I rowsort label-3979
SELECT DISTINCT - - 51 / - MAX ( + 93 )
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-3980
SELECT DISTINCT - 88 DIV - - 92 AS col2, - 72 AS col1
----
0
-72

skipif mysql # not compatible
query II rowsort label-3980
SELECT DISTINCT - 88 / - - 92 AS col2, - 72 AS col1
----
0
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3981
SELECT DISTINCT 98 + + AVG ( DISTINCT - + CAST( NULL AS SIGNED ) ) + 49 + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-3981
SELECT DISTINCT 98 + + AVG ( DISTINCT - + CAST ( NULL AS INTEGER ) ) + 49 + 80
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3982
SELECT ALL + - COUNT( * ) * - - 81 - + 38 AS col2
----
-119

skipif mysql # not compatible
query I rowsort label-3982
SELECT ALL + - COUNT ( * ) * - - 81 - + 38 AS col2
----
-119

query I rowsort
SELECT + 92 * + 46 AS col1
----
4232

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3984
SELECT ALL CAST( + 40 AS SIGNED ) DIV + 64 col1
----
0

skipif mysql # not compatible
query I rowsort label-3984
SELECT ALL CAST ( + 40 AS INTEGER ) / + 64 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3985
SELECT ALL - 69 * - COUNT( * ) - + - 7 AS col2
----
76

skipif mysql # not compatible
query I rowsort label-3985
SELECT ALL - 69 * - COUNT ( * ) - + - 7 AS col2
----
76

query I rowsort
SELECT - 40 * - 17
----
680

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3987
SELECT DISTINCT CAST( 1 AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-3987
SELECT DISTINCT CAST ( 1 AS INTEGER )
----
1

query I rowsort
SELECT - 88 * + + 6 col2
----
-528

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3989
SELECT 87 - + - 45 * - - 62 / AVG ( ALL - CAST( NULL AS SIGNED ) ) - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-3989
SELECT 87 - + - 45 * - - 62 / AVG ( ALL - CAST ( NULL AS INTEGER ) ) - 97
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3990
SELECT + 54 - + COUNT( * ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-3990
SELECT + 54 - + COUNT ( * ) AS col2
----
53

query I rowsort
SELECT 92 + - - 18
----
110

query II rowsort
SELECT ALL 80, - 73 AS col2
----
80
-73

query II rowsort
SELECT ALL 35, - 25 AS col1
----
35
-25

query I rowsort
SELECT 18 + 88
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-3995
SELECT DISTINCT - - MIN( ALL + 75 )
----
75

skipif mysql # not compatible
query I rowsort label-3995
SELECT DISTINCT - - MIN ( ALL + 75 )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3996
SELECT ALL + 89 * + COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-3996
SELECT ALL + 89 * + COUNT ( * )
----
89

query I rowsort
SELECT + ( 9 )
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-3998
SELECT COUNT( * ), 26 AS col2
----
1
26

skipif mysql # not compatible
query II rowsort label-3998
SELECT COUNT ( * ), 26 AS col2
----
1
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3999
SELECT ALL + COUNT( + 10 )
----
1

skipif mysql # not compatible
query I rowsort label-3999
SELECT ALL + COUNT ( + 10 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4000
SELECT ALL + + COUNT( * ) * - ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4000
SELECT ALL + + COUNT ( * ) * - ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4001
SELECT DISTINCT + 29 * - COUNT( * ) + + COUNT( * ) - - 23
----
-5

skipif mysql # not compatible
query I rowsort label-4001
SELECT DISTINCT + 29 * - COUNT ( * ) + + COUNT ( * ) - - 23
----
-5

query I rowsort
SELECT + + 88 AS col2
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-4003
SELECT + 86 + 14 DIV - + 49 AS col0
----
86

skipif mysql # not compatible
query I rowsort label-4003
SELECT + 86 + 14 / - + 49 AS col0
----
86

query I rowsort
SELECT ( - 25 ) * - - 15 AS col1
----
-375

query II rowsort
SELECT 41 * - - 30 AS col0, 59 + - 93 AS col1
----
1230
-34

query I rowsort
SELECT + ( 58 ) * 3 AS col1
----
174

onlyif mysql # aggregate syntax: 
query I rowsort label-4007
SELECT + COUNT( * ) + - ( + COUNT( * ) ) col1
----
0

skipif mysql # not compatible
query I rowsort label-4007
SELECT + COUNT ( * ) + - ( + COUNT ( * ) ) col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4008
SELECT ALL COUNT( * ) DIV - ( ( + - 16 ) )
----
0

skipif mysql # not compatible
query I rowsort label-4008
SELECT ALL COUNT ( * ) / - ( ( + - 16 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4009
SELECT 77 * + - MAX( ALL - 24 ) AS col0
----
1848

skipif mysql # not compatible
query I rowsort label-4009
SELECT 77 * + - MAX ( ALL - 24 ) AS col0
----
1848

query I rowsort
SELECT - 77 + 6 AS col0
----
-71

query I rowsort
SELECT DISTINCT - 49 * 33 AS col1
----
-1617

query I rowsort
SELECT DISTINCT - 50 + - ( - 9 ) AS col0
----
-41

query I rowsort
SELECT ( - 50 ) AS col1
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4014
SELECT SUM( ALL - ( + CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4014
SELECT SUM ( ALL - ( + CAST ( NULL AS INTEGER ) ) )
----
NULL

query I rowsort
SELECT ALL + ( - 31 ) AS col1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4016
SELECT SUM( DISTINCT + + 7 ) * - COUNT( * )
----
-7

skipif mysql # not compatible
query I rowsort label-4016
SELECT SUM ( DISTINCT + + 7 ) * - COUNT ( * )
----
-7

query I rowsort
SELECT ALL - 45 * 65 col2
----
-2925

query I rowsort
SELECT ALL 26 + + 16
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4019
SELECT DISTINCT 61 + COUNT( * )
----
62

skipif mysql # not compatible
query I rowsort label-4019
SELECT DISTINCT 61 + COUNT ( * )
----
62

query I rowsort
SELECT 16 * + - 22
----
-352

onlyif mysql # DIV for integer division: 
query II rowsort label-4021
SELECT - 15 DIV 73 * 31 DIV 39 AS col1, + 10
----
0
10

skipif mysql # not compatible
query II rowsort label-4021
SELECT - 15 / 73 * 31 / 39 AS col1, + 10
----
0
10

query I rowsort
SELECT 59 * - - 43
----
2537

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4023
SELECT ALL - CAST( - - 31 AS SIGNED )
----
-31

skipif mysql # not compatible
query I rowsort label-4023
SELECT ALL - CAST ( - - 31 AS INTEGER )
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-4024
SELECT ALL + - 88 DIV - 48
----
1

skipif mysql # not compatible
query I rowsort label-4024
SELECT ALL + - 88 / - 48
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4025
SELECT 0 + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-4025
SELECT 0 + - COUNT ( * )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4026
SELECT ALL + - NULLIF ( 91, + CAST( NULL AS SIGNED ) ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-4026
SELECT ALL + - NULLIF ( 91, + CAST ( NULL AS INTEGER ) ) AS col1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4027
SELECT DISTINCT + MAX( - 77 ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-4027
SELECT DISTINCT + MAX ( - 77 ) AS col2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4028
SELECT + - 73 * - + MIN( + + 17 )
----
1241

skipif mysql # not compatible
query I rowsort label-4028
SELECT + - 73 * - + MIN ( + + 17 )
----
1241

query I rowsort
SELECT - 78 * 33 col0
----
-2574

query I rowsort
SELECT ALL + + 26
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-4031
SELECT DISTINCT - + 18 DIV 92
----
0

skipif mysql # not compatible
query I rowsort label-4031
SELECT DISTINCT - + 18 / 92
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4032
SELECT - + COUNT( * ) DIV - 20 + 98 AS col0
----
98

skipif mysql # not compatible
query I rowsort label-4032
SELECT - + COUNT ( * ) / - 20 + 98 AS col0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4033
SELECT COUNT( * ) - 92 * 19
----
-1747

skipif mysql # not compatible
query I rowsort label-4033
SELECT COUNT ( * ) - 92 * 19
----
-1747

onlyif mysql # aggregate syntax: 
query I rowsort label-4034
SELECT COUNT( * ) * + 86 - + + 84 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-4034
SELECT COUNT ( * ) * + 86 - + + 84 AS col2
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4035
SELECT + - CAST( 28 AS SIGNED ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-4035
SELECT + - CAST ( 28 AS INTEGER ) AS col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-4036
SELECT ALL + COUNT( * ) + - - 70
----
71

skipif mysql # not compatible
query I rowsort label-4036
SELECT ALL + COUNT ( * ) + - - 70
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4037
SELECT ALL + COUNT( * ) + COUNT( * ) * + 52 * - - 16
----
833

skipif mysql # not compatible
query I rowsort label-4037
SELECT ALL + COUNT ( * ) + COUNT ( * ) * + 52 * - - 16
----
833

onlyif mysql # DIV for integer division: 
query I rowsort label-4038
SELECT ALL - 77 DIV - 16 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-4038
SELECT ALL - 77 / - 16 AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4039
SELECT COUNT( * ) * + + 97
----
97

skipif mysql # not compatible
query I rowsort label-4039
SELECT COUNT ( * ) * + + 97
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4040
SELECT DISTINCT 64 + 70 * + COUNT( * ) AS col1
----
134

skipif mysql # not compatible
query I rowsort label-4040
SELECT DISTINCT 64 + 70 * + COUNT ( * ) AS col1
----
134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4041
SELECT + SUM( DISTINCT - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4041
SELECT + SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query II rowsort
SELECT 31 AS col2, 96 AS col1
----
31
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4043
SELECT - ( + CAST( NULL AS SIGNED ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4043
SELECT - ( + CAST ( NULL AS INTEGER ) ) col2
----
NULL

query II rowsort
SELECT DISTINCT + 58 AS col1, 79 + - 70 AS col1
----
58
9

onlyif mysql # aggregate syntax: 
query II rowsort label-4045
SELECT + 22 * + + COUNT( * ), - COUNT( * ) * + 52 AS col0
----
22
-52

skipif mysql # not compatible
query II rowsort label-4045
SELECT + 22 * + + COUNT ( * ), - COUNT ( * ) * + 52 AS col0
----
22
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-4046
SELECT ALL + - COUNT( * ) + + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4046
SELECT ALL + - COUNT ( * ) + + COUNT ( * ) AS col1
----
0

query I rowsort
SELECT 77 + + 70
----
147

query I rowsort
SELECT DISTINCT 70 + + 8 AS col2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4049
SELECT - COUNT( * ) + - 7
----
-8

skipif mysql # not compatible
query I rowsort label-4049
SELECT - COUNT ( * ) + - 7
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4050
SELECT ALL - MIN( DISTINCT - 42 )
----
42

skipif mysql # not compatible
query I rowsort label-4050
SELECT ALL - MIN ( DISTINCT - 42 )
----
42

query I rowsort
SELECT ALL - ( 15 )
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4052
SELECT COUNT( * ) * 69 * CAST( - COUNT( * ) AS SIGNED ) + 75
----
6

skipif mysql # not compatible
query I rowsort label-4052
SELECT COUNT ( * ) * 69 * CAST ( - COUNT ( * ) AS INTEGER ) + 75
----
6

query I rowsort
SELECT ALL + ( - 41 ) col1
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4054
SELECT DISTINCT 65 * + ( 65 ) + - CAST( - 54 AS SIGNED ) AS col2
----
4279

skipif mysql # not compatible
query I rowsort label-4054
SELECT DISTINCT 65 * + ( 65 ) + - CAST ( - 54 AS INTEGER ) AS col2
----
4279

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4055
SELECT - COUNT( * ) * - COUNT( * ) DIV COUNT( + + 17 )
----
1

skipif mysql # not compatible
query I rowsort label-4055
SELECT - COUNT ( * ) * - COUNT ( * ) / COUNT ( + + 17 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4056
SELECT - - COUNT( * ) - + ( + 62 )
----
-61

skipif mysql # not compatible
query I rowsort label-4056
SELECT - - COUNT ( * ) - + ( + 62 )
----
-61

query I rowsort
SELECT + 16 - - 8
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4058
SELECT ALL COUNT( * ) + - 8 col2
----
-7

skipif mysql # not compatible
query I rowsort label-4058
SELECT ALL COUNT ( * ) + - 8 col2
----
-7

query II rowsort
SELECT ALL + 15, - 19 AS col2
----
15
-19

query I rowsort
SELECT ( - + 79 ) AS col0
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-4061
SELECT - + 6 * MIN( ALL 27 ) * + - COUNT( * )
----
162

skipif mysql # not compatible
query I rowsort label-4061
SELECT - + 6 * MIN ( ALL 27 ) * + - COUNT ( * )
----
162

query II rowsort
SELECT 2 AS col1, - 71 * - 4
----
2
284

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4063
SELECT COUNT( * ) * - 11 DIV 53 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4063
SELECT COUNT ( * ) * - 11 / 53 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4064
SELECT DISTINCT MAX( - 95 ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-4064
SELECT DISTINCT MAX ( - 95 ) AS col2
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-4065
SELECT ALL MIN( DISTINCT - + 59 )
----
-59

skipif mysql # not compatible
query I rowsort label-4065
SELECT ALL MIN ( DISTINCT - + 59 )
----
-59

query II rowsort
SELECT DISTINCT - 28 AS col0, + 65 AS col1
----
-28
65

query I rowsort
SELECT ALL - ( + 49 )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-4068
SELECT DISTINCT + 34 + - - ( ( + COUNT( * ) ) ) col0
----
35

skipif mysql # not compatible
query I rowsort label-4068
SELECT DISTINCT + 34 + - - ( ( + COUNT ( * ) ) ) col0
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4069
SELECT DISTINCT + - ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4069
SELECT DISTINCT + - ( CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT + + 11 AS col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4071
SELECT - 19 * + + COUNT( * )
----
-19

skipif mysql # not compatible
query I rowsort label-4071
SELECT - 19 * + + COUNT ( * )
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4072
SELECT + 5 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4072
SELECT + 5 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4073
SELECT + 15 DIV + COUNT( * ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-4073
SELECT + 15 / + COUNT ( * ) AS col0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4074
SELECT - CAST( - + ( 32 ) AS SIGNED )
----
32

skipif mysql # not compatible
query I rowsort label-4074
SELECT - CAST ( - + ( 32 ) AS INTEGER )
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4075
SELECT ALL 62 DIV ( COUNT( * ) ) * + 73
----
4526

skipif mysql # not compatible
query I rowsort label-4075
SELECT ALL 62 / ( COUNT ( * ) ) * + 73
----
4526

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4076
SELECT DISTINCT 61 + - COUNT( * ) DIV - 85
----
61

skipif mysql # not compatible
query I rowsort label-4076
SELECT DISTINCT 61 + - COUNT ( * ) / - 85
----
61

query I rowsort
SELECT ALL ( 50 )
----
50

query I rowsort
SELECT DISTINCT - - ( - 28 )
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4079
SELECT ALL - AVG ( + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4079
SELECT ALL - AVG ( + + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4080
SELECT 15 * - + COUNT( * ) col2
----
-15

skipif mysql # not compatible
query I rowsort label-4080
SELECT 15 * - + COUNT ( * ) col2
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4081
SELECT DISTINCT MIN( + 5 ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-4081
SELECT DISTINCT MIN ( + 5 ) AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4082
SELECT ALL 42 + + COUNT( * ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-4082
SELECT ALL 42 + + COUNT ( * ) AS col0
----
43

query I rowsort
SELECT + 35 * + - 71 AS col0
----
-2485

query I rowsort
SELECT ALL + - 68 AS col2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4085
SELECT + ( - COUNT( * ) ) + + 43 AS col1
----
42

skipif mysql # not compatible
query I rowsort label-4085
SELECT + ( - COUNT ( * ) ) + + 43 AS col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4086
SELECT ALL COALESCE ( - COUNT( * ), + - COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4086
SELECT ALL COALESCE ( - COUNT ( * ), + - COUNT ( * ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4087
SELECT ALL COUNT( * ) - + - 62 col1
----
63

skipif mysql # not compatible
query I rowsort label-4087
SELECT ALL COUNT ( * ) - + - 62 col1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4088
SELECT + - 28 * + - COUNT( * ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-4088
SELECT + - 28 * + - COUNT ( * ) AS col1
----
28

query I rowsort
SELECT DISTINCT + NULLIF ( + + 3, 97 ) AS col0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4090
SELECT ALL COUNT( * ), + ( + + COUNT( * ) ) AS col0
----
1
1

skipif mysql # not compatible
query II rowsort label-4090
SELECT ALL COUNT ( * ), + ( + + COUNT ( * ) ) AS col0
----
1
1

query I rowsort
SELECT - + 45
----
-45

query I rowsort
SELECT + ( ( 46 ) )
----
46

query I rowsort
SELECT + + ( - - 75 ) AS col1
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4094
SELECT CAST( SUM( DISTINCT + 28 ) AS SIGNED )
----
28

skipif mysql # not compatible
query I rowsort label-4094
SELECT CAST ( SUM ( DISTINCT + 28 ) AS INTEGER )
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4095
SELECT CAST( 51 AS SIGNED )
----
51

skipif mysql # not compatible
query I rowsort label-4095
SELECT CAST ( 51 AS INTEGER )
----
51

query I rowsort
SELECT ALL 79 * - 31 col1
----
-2449

query I rowsort
SELECT 40 - + 13
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4098
SELECT CAST( NULL AS SIGNED ) / - + 53 + + + 58 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4098
SELECT CAST ( NULL AS INTEGER ) / - + 53 + + + 58 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4099
SELECT 11 DIV 35 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4099
SELECT 11 / 35 AS col1
----
0

query I rowsort
SELECT - ( + COALESCE ( + + 30, - - 3 ) ) AS col2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4101
SELECT ALL + + COUNT( * ) + - 5
----
-4

skipif mysql # not compatible
query I rowsort label-4101
SELECT ALL + + COUNT ( * ) + - 5
----
-4

query II rowsort
SELECT ALL 36 col0, 50 * 34
----
36
1700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4103
SELECT CAST( - - 19 AS SIGNED ) * 75 AS col0
----
1425

skipif mysql # not compatible
query I rowsort label-4103
SELECT CAST ( - - 19 AS INTEGER ) * 75 AS col0
----
1425

onlyif mysql # aggregate syntax: 
query I rowsort label-4104
SELECT - - 46 * + + COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-4104
SELECT - - 46 * + + COUNT ( * )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4105
SELECT - MAX( + 53 ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-4105
SELECT - MAX ( + 53 ) AS col2
----
-53

query I rowsort
SELECT + + 95 + + 7 + + 57 AS col0
----
159

query II rowsort
SELECT ALL - 13 AS col1, - 87 col0
----
-13
-87

query I rowsort
SELECT DISTINCT + ( + + 10 )
----
10

query I rowsort
SELECT ALL 56 - - 71 + - 38 AS col1
----
89

query I rowsort
SELECT ALL COALESCE ( + 37, 80 ) AS col2
----
37

query I rowsort
SELECT + 8 * + 52
----
416

query I rowsort
SELECT ALL ( 59 ) AS col2
----
59

query I rowsort
SELECT DISTINCT ( - + 96 ) AS col1
----
-96

query I rowsort
SELECT 89 * - + 17 AS col1
----
-1513

onlyif mysql # aggregate syntax: 
query I rowsort label-4115
SELECT - MIN( - 78 ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-4115
SELECT - MIN ( - 78 ) AS col1
----
78

query I rowsort
SELECT + - 45 AS col0
----
-45

query II rowsort
SELECT ALL 31 AS col1, - 14 col2
----
31
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4118
SELECT ALL SUM( - + 68 ) * 57 + - + 6
----
-3882

skipif mysql # not compatible
query I rowsort label-4118
SELECT ALL SUM ( - + 68 ) * 57 + - + 6
----
-3882

onlyif mysql # aggregate syntax: 
query I rowsort label-4119
SELECT + - SUM( 49 ) col2
----
-49

skipif mysql # not compatible
query I rowsort label-4119
SELECT + - SUM ( 49 ) col2
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4120
SELECT ALL + CAST( NULL AS SIGNED ) + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-4120
SELECT ALL + CAST ( NULL AS INTEGER ) + 57
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4121
SELECT - 79 + + COUNT( * ) AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-4121
SELECT - 79 + + COUNT ( * ) AS col0
----
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-4122
SELECT ALL + MIN( + 48 ) AS col0, - COUNT( * )
----
48
-1

skipif mysql # not compatible
query II rowsort label-4122
SELECT ALL + MIN ( + 48 ) AS col0, - COUNT ( * )
----
48
-1

query I rowsort
SELECT ALL + - 63
----
-63

query I rowsort
SELECT + + 7 AS col0
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4125
SELECT - CAST( 5 AS SIGNED ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-4125
SELECT - CAST ( 5 AS INTEGER ) AS col2
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4126
SELECT DISTINCT CAST( NULL AS SIGNED ) + COUNT( * ) + - + COUNT( * ) + + COUNT( - + CAST( - 96 AS SIGNED ) ) * - 39
----
NULL

skipif mysql # not compatible
query I rowsort label-4126
SELECT DISTINCT CAST ( NULL AS INTEGER ) + COUNT ( * ) + - + COUNT ( * ) + + COUNT ( - + CAST ( - 96 AS INTEGER ) ) * - 39
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4127
SELECT - CAST( NULL AS SIGNED ) AS col2, 5 AS col0
----
NULL
5

skipif mysql # not compatible
query II rowsort label-4127
SELECT - CAST ( NULL AS INTEGER ) AS col2, 5 AS col0
----
NULL
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4128
SELECT DISTINCT + ( - + ( + + COUNT( * ) ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4128
SELECT DISTINCT + ( - + ( + + COUNT ( * ) ) ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4129
SELECT COUNT( * ) - + COUNT( DISTINCT - CAST( NULL AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-4129
SELECT COUNT ( * ) - + COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4130
SELECT DISTINCT 74 DIV + - 87 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4130
SELECT DISTINCT 74 / + - 87 AS col2
----
0

query I rowsort
SELECT ALL + 43 - - 4 AS col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4132
SELECT ALL - SUM( - ( 99 ) ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-4132
SELECT ALL - SUM ( - ( 99 ) ) AS col0
----
99

query I rowsort
SELECT 58 + 29
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4134
SELECT 99 * COUNT( * ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-4134
SELECT 99 * COUNT ( * ) AS col0
----
99

query I rowsort
SELECT ALL + 36 + 26 AS col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4136
SELECT ALL COUNT( * ) + - 30
----
-29

skipif mysql # not compatible
query I rowsort label-4136
SELECT ALL COUNT ( * ) + - 30
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4137
SELECT + ( 91 ) DIV - ( COUNT( * ) )
----
-91

skipif mysql # not compatible
query I rowsort label-4137
SELECT + ( 91 ) / - ( COUNT ( * ) )
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4138
SELECT - ( 5 ) / COUNT( * ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4138
SELECT - ( 5 ) / COUNT ( * ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4139
SELECT DISTINCT - 2 * COUNT( * ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-4139
SELECT DISTINCT - 2 * COUNT ( * ) AS col1
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4140
SELECT DISTINCT - 30 * - MIN( ALL 53 DIV 48 )
----
30

skipif mysql # not compatible
query I rowsort label-4140
SELECT DISTINCT - 30 * - MIN ( ALL 53 / 48 )
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-4141
SELECT + 53 + 31 DIV + 94 AS col2
----
53

skipif mysql # not compatible
query I rowsort label-4141
SELECT + 53 + 31 / + 94 AS col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4142
SELECT MIN( 29 )
----
29

skipif mysql # not compatible
query I rowsort label-4142
SELECT MIN ( 29 )
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-4143
SELECT ALL ( + 43 ) DIV 34 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4143
SELECT ALL ( + 43 ) / 34 AS col1
----
1

query I rowsort
SELECT + ( - - ( + 42 ) ) AS col1
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4145
SELECT + CAST( - 42 AS SIGNED )
----
-42

skipif mysql # not compatible
query I rowsort label-4145
SELECT + CAST ( - 42 AS INTEGER )
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4146
SELECT CAST( + 33 AS SIGNED ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-4146
SELECT CAST ( + 33 AS INTEGER ) AS col2
----
33

query I rowsort
SELECT ( - + 87 ) AS col2
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4148
SELECT ALL 17 + - - COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-4148
SELECT ALL 17 + - - COUNT ( * )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4149
SELECT MIN( DISTINCT - + 41 ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-4149
SELECT MIN ( DISTINCT - + 41 ) AS col0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-4150
SELECT MIN( ALL + 57 ) * - 91 + COUNT( * ) AS col0
----
-5186

skipif mysql # not compatible
query I rowsort label-4150
SELECT MIN ( ALL + 57 ) * - 91 + COUNT ( * ) AS col0
----
-5186

onlyif mysql # aggregate syntax: 
query I rowsort label-4151
SELECT ALL + COUNT( * ) * + 63 * 86
----
5418

skipif mysql # not compatible
query I rowsort label-4151
SELECT ALL + COUNT ( * ) * + 63 * 86
----
5418

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4152
SELECT ALL MIN( DISTINCT - 71 ) DIV - + 22
----
3

skipif mysql # not compatible
query I rowsort label-4152
SELECT ALL MIN ( DISTINCT - 71 ) / - + 22
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4153
SELECT SUM( ALL 84 ) * - - 34 AS col1
----
2856

skipif mysql # not compatible
query I rowsort label-4153
SELECT SUM ( ALL 84 ) * - - 34 AS col1
----
2856

onlyif mysql # aggregate syntax: 
query I rowsort label-4154
SELECT + + MAX( 34 )
----
34

skipif mysql # not compatible
query I rowsort label-4154
SELECT + + MAX ( 34 )
----
34

query I rowsort
SELECT COALESCE ( - 23, 51 ) AS col1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4156
SELECT COUNT( ALL - 21 )
----
1

skipif mysql # not compatible
query I rowsort label-4156
SELECT COUNT ( ALL - 21 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4157
SELECT + SUM( DISTINCT ( + 52 ) ) * MAX( 67 )
----
3484

skipif mysql # not compatible
query I rowsort label-4157
SELECT + SUM ( DISTINCT ( + 52 ) ) * MAX ( 67 )
----
3484

query I rowsort
SELECT ALL - 80 * - - 52
----
-4160

onlyif mysql # aggregate syntax: 
query I rowsort label-4159
SELECT - COUNT( * ) + - 68 AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-4159
SELECT - COUNT ( * ) + - 68 AS col0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-4160
SELECT ALL + MIN( ALL 33 ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-4160
SELECT ALL + MIN ( ALL 33 ) AS col0
----
33

query I rowsort
SELECT ( - 28 ) AS col0
----
-28

query I rowsort
SELECT ( - + 67 )
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4163
SELECT ALL + - CAST( 16 AS SIGNED )
----
-16

skipif mysql # not compatible
query I rowsort label-4163
SELECT ALL + - CAST ( 16 AS INTEGER )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-4164
SELECT SUM( DISTINCT 73 )
----
73

skipif mysql # not compatible
query I rowsort label-4164
SELECT SUM ( DISTINCT 73 )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4165
SELECT DISTINCT - - 27 * + COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-4165
SELECT DISTINCT - - 27 * + COUNT ( * )
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-4166
SELECT - - 92 DIV - - 80
----
1

skipif mysql # not compatible
query I rowsort label-4166
SELECT - - 92 / - - 80
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4167
SELECT - + COUNT( * ) + + ( + 56 )
----
55

skipif mysql # not compatible
query I rowsort label-4167
SELECT - + COUNT ( * ) + + ( + 56 )
----
55

query I rowsort
SELECT DISTINCT - 3 * + 94
----
-282

onlyif mysql # DIV for integer division: 
query I rowsort label-4169
SELECT COALESCE ( - 99, - + 55 ) DIV + + 37 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-4169
SELECT COALESCE ( - 99, - + 55 ) / + + 37 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-4170
SELECT 38, COUNT( * ) col0
----
38
1

skipif mysql # not compatible
query II rowsort label-4170
SELECT 38, COUNT ( * ) col0
----
38
1

query I rowsort
SELECT - 81 * 16
----
-1296

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4172
SELECT DISTINCT COUNT( * ) DIV + 8 * - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4172
SELECT DISTINCT COUNT ( * ) / + 8 * - COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4173
SELECT MIN( ALL - 18 ) * - + 1 + - MAX( + ( - 53 ) ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-4173
SELECT MIN ( ALL - 18 ) * - + 1 + - MAX ( + ( - 53 ) ) AS col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4174
SELECT ALL COALESCE ( + ( + 37 ), COUNT( * ) ) * + 78
----
2886

skipif mysql # not compatible
query I rowsort label-4174
SELECT ALL COALESCE ( + ( + 37 ), COUNT ( * ) ) * + 78
----
2886

onlyif mysql # aggregate syntax: 
query I rowsort label-4175
SELECT 2 + - COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4175
SELECT 2 + - COUNT ( * ) AS col2
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4176
SELECT DISTINCT - - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4176
SELECT DISTINCT - - CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - ( 92 ) col0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4178
SELECT ALL - 81 * + SUM( + 43 )
----
-3483

skipif mysql # not compatible
query I rowsort label-4178
SELECT ALL - 81 * + SUM ( + 43 )
----
-3483

query I rowsort
SELECT DISTINCT + + ( - 47 )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4180
SELECT ALL 14 * - 23 * COUNT( * ) col2
----
-322

skipif mysql # not compatible
query I rowsort label-4180
SELECT ALL 14 * - 23 * COUNT ( * ) col2
----
-322

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4181
SELECT - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4181
SELECT - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 52 + - 96
----
-44

query I rowsort
SELECT DISTINCT - - 31 AS col0
----
31

query I rowsort
SELECT DISTINCT - ( + 69 )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-4185
SELECT COUNT( + 3 ) - + 61
----
-60

skipif mysql # not compatible
query I rowsort label-4185
SELECT COUNT ( + 3 ) - + 61
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-4186
SELECT 12 * - COUNT( * ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-4186
SELECT 12 * - COUNT ( * ) AS col1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4187
SELECT ALL COUNT( * ) * - 56 AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-4187
SELECT ALL COUNT ( * ) * - 56 AS col0
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4188
SELECT + COUNT( * ) DIV - + 32 + - + 49 col2
----
-49

skipif mysql # not compatible
query I rowsort label-4188
SELECT + COUNT ( * ) / - + 32 + - + 49 col2
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-4189
SELECT DISTINCT 32 DIV - 20
----
-1

skipif mysql # not compatible
query I rowsort label-4189
SELECT DISTINCT 32 / - 20
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4190
SELECT DISTINCT - ( + MAX( DISTINCT + 46 ) )
----
-46

skipif mysql # not compatible
query I rowsort label-4190
SELECT DISTINCT - ( + MAX ( DISTINCT + 46 ) )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4191
SELECT DISTINCT + MIN( + 58 ) + 58 AS col1
----
116

skipif mysql # not compatible
query I rowsort label-4191
SELECT DISTINCT + MIN ( + 58 ) + 58 AS col1
----
116

query I rowsort
SELECT 30 * - + 14
----
-420

onlyif mysql # aggregate syntax: 
query I rowsort label-4193
SELECT ALL - MIN( DISTINCT - ( + 10 ) )
----
10

skipif mysql # not compatible
query I rowsort label-4193
SELECT ALL - MIN ( DISTINCT - ( + 10 ) )
----
10

query I rowsort
SELECT DISTINCT + - ( + + 88 )
----
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4195
SELECT ALL ( + - 97 ) DIV COUNT( * ) AS col0, 9 AS col1
----
-97
9

skipif mysql # not compatible
query II rowsort label-4195
SELECT ALL ( + - 97 ) / COUNT ( * ) AS col0, 9 AS col1
----
-97
9

query I rowsort
SELECT ALL ( ( - 35 ) ) AS col0
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4197
SELECT DISTINCT ( - - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4197
SELECT DISTINCT ( - - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT - ( + - 84 )
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4199
SELECT CAST( + 47 AS SIGNED ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-4199
SELECT CAST ( + 47 AS INTEGER ) AS col2
----
47

query I rowsort
SELECT ( + + 54 )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4201
SELECT DISTINCT - 3 - + 34 + + - COUNT( * ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-4201
SELECT DISTINCT - 3 - + 34 + + - COUNT ( * ) AS col2
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4202
SELECT + CAST( + 79 AS SIGNED )
----
79

skipif mysql # not compatible
query I rowsort label-4202
SELECT + CAST ( + 79 AS INTEGER )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4203
SELECT ALL - SUM( - 93 )
----
93

skipif mysql # not compatible
query I rowsort label-4203
SELECT ALL - SUM ( - 93 )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4204
SELECT ( + 80 ) * - COUNT( * ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-4204
SELECT ( + 80 ) * - COUNT ( * ) AS col0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4205
SELECT ALL COUNT( DISTINCT - 78 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4205
SELECT ALL COUNT ( DISTINCT - 78 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4206
SELECT + 77 * + ( - COUNT( * ) ) + 32 AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-4206
SELECT + 77 * + ( - COUNT ( * ) ) + 32 AS col1
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-4207
SELECT - COUNT( * ) + - - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4207
SELECT - COUNT ( * ) + - - COUNT ( * ) AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4208
SELECT ALL + + MIN( + 53 ) DIV + COUNT( * ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-4208
SELECT ALL + + MIN ( + 53 ) / + COUNT ( * ) AS col0
----
53

query I rowsort
SELECT + - 32 * 32 AS col2
----
-1024

query I rowsort
SELECT ALL - 75 - - 74
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4211
SELECT ALL COUNT( * ) col2, + CAST( NULL AS SIGNED ) AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-4211
SELECT ALL COUNT ( * ) col2, + CAST ( NULL AS INTEGER ) AS col2
----
1
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4212
SELECT ALL CAST( NULL AS DECIMAL ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4212
SELECT ALL CAST ( NULL AS REAL ) * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4213
SELECT ALL + COUNT( * ) col1, + 4 * + 80 AS col0
----
1
320

skipif mysql # not compatible
query II rowsort label-4213
SELECT ALL + COUNT ( * ) col1, + 4 * + 80 AS col0
----
1
320

onlyif mysql # aggregate syntax: 
query I rowsort label-4214
SELECT - - 86 + 97 - - + COUNT( * )
----
184

skipif mysql # not compatible
query I rowsort label-4214
SELECT - - 86 + 97 - - + COUNT ( * )
----
184

query I rowsort
SELECT - - 42 - - + 63
----
105

query II rowsort
SELECT DISTINCT + 85 col0, 4
----
85
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4217
SELECT - CAST( + 96 AS SIGNED ) AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-4217
SELECT - CAST ( + 96 AS INTEGER ) AS col1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4218
SELECT + COUNT( * ) * + 25 AS col2
----
25

skipif mysql # not compatible
query I rowsort label-4218
SELECT + COUNT ( * ) * + 25 AS col2
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-4219
SELECT ALL 68 AS col2, - 94 * + COUNT( * ) AS col0
----
68
-94

skipif mysql # not compatible
query II rowsort label-4219
SELECT ALL 68 AS col2, - 94 * + COUNT ( * ) AS col0
----
68
-94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4220
SELECT - 44 AS col1, CAST( NULL AS SIGNED )
----
-44
NULL

skipif mysql # not compatible
query II rowsort label-4220
SELECT - 44 AS col1, CAST ( NULL AS INTEGER )
----
-44
NULL

query I rowsort
SELECT ALL - ( - 60 )
----
60

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4222
SELECT + CAST( NULL AS DECIMAL ) + - + COALESCE ( + COUNT( * ), + + 9 ) * 99 / - COUNT( ALL - 64 ) + 23 + 73 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4222
SELECT + CAST ( NULL AS REAL ) + - + COALESCE ( + COUNT ( * ), + + 9 ) * 99 / - COUNT ( ALL - 64 ) + 23 + 73 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - - 31 col0
----
31

query I rowsort
SELECT + ( 85 ) AS col1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4225
SELECT DISTINCT - ( COUNT( * ) ) + - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-4225
SELECT DISTINCT - ( COUNT ( * ) ) + - COUNT ( * )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4226
SELECT - - MIN( 73 ) + + COUNT( * ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-4226
SELECT - - MIN ( 73 ) + + COUNT ( * ) AS col1
----
74

query I rowsort
SELECT ALL + + 97 col2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4228
SELECT + COUNT( * ) * + - 23
----
-23

skipif mysql # not compatible
query I rowsort label-4228
SELECT + COUNT ( * ) * + - 23
----
-23

query I rowsort
SELECT DISTINCT + - 3
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-4230
SELECT ALL + - 77, - CASE - AVG ( DISTINCT - 27 ) WHEN + 28 + 14 * - + COUNT( * ) THEN NULL WHEN + 52 THEN NULL ELSE 31 END AS col0
----
-77
-31

skipif mysql # not compatible
query II rowsort label-4230
SELECT ALL + - 77, - CASE - AVG ( DISTINCT - 27 ) WHEN + 28 + 14 * - + COUNT ( * ) THEN NULL WHEN + 52 THEN NULL ELSE 31 END AS col0
----
-77
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4231
SELECT - + 30 * + COUNT( * ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-4231
SELECT - + 30 * + COUNT ( * ) AS col1
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4232
SELECT COUNT( ALL - + CAST( NULL AS SIGNED ) ) * - 59
----
0

skipif mysql # not compatible
query I rowsort label-4232
SELECT COUNT ( ALL - + CAST ( NULL AS INTEGER ) ) * - 59
----
0

query I rowsort
SELECT ALL 95 * + 37 AS col1
----
3515

onlyif mysql # aggregate syntax: 
query I rowsort label-4234
SELECT COUNT( ALL + 26 ) - - 5 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-4234
SELECT COUNT ( ALL + 26 ) - - 5 AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4235
SELECT ALL 35 * COUNT( - 27 ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-4235
SELECT ALL 35 * COUNT ( - 27 ) AS col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4236
SELECT 17 + - + COUNT( * ) col2
----
16

skipif mysql # not compatible
query I rowsort label-4236
SELECT 17 + - + COUNT ( * ) col2
----
16

query I rowsort
SELECT - 35 + 40
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4238
SELECT - COUNT( ALL + 88 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4238
SELECT - COUNT ( ALL + 88 ) AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4239
SELECT ALL ( 51 ) DIV - COUNT( DISTINCT + 23 ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-4239
SELECT ALL ( 51 ) / - COUNT ( DISTINCT + 23 ) AS col1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4240
SELECT + MIN( - 23 ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-4240
SELECT + MIN ( - 23 ) AS col2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4241
SELECT ALL + NULLIF ( - COUNT( * ), - COUNT( * ) * 82 * - - 63 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4241
SELECT ALL + NULLIF ( - COUNT ( * ), - COUNT ( * ) * 82 * - - 63 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4242
SELECT - COUNT( * ) + SUM( DISTINCT - - 38 ) AS col2, + 37 col1
----
37
37

skipif mysql # not compatible
query II rowsort label-4242
SELECT - COUNT ( * ) + SUM ( DISTINCT - - 38 ) AS col2, + 37 col1
----
37
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4243
SELECT ALL + MIN( + 46 ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-4243
SELECT ALL + MIN ( + 46 ) AS col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4244
SELECT + 26 * 72 * - - 11 + ( COUNT( * ) )
----
20593

skipif mysql # not compatible
query I rowsort label-4244
SELECT + 26 * 72 * - - 11 + ( COUNT ( * ) )
----
20593

onlyif mysql # aggregate syntax: 
query II rowsort label-4245
SELECT COUNT( * ), 16 AS col1
----
1
16

skipif mysql # not compatible
query II rowsort label-4245
SELECT COUNT ( * ), 16 AS col1
----
1
16

onlyif mysql # DIV for integer division: 
query I rowsort label-4246
SELECT + 67 DIV - 79
----
0

skipif mysql # not compatible
query I rowsort label-4246
SELECT + 67 / - 79
----
0

query I rowsort
SELECT ALL - 48 + ( - 18 )
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4248
SELECT + 54 DIV + COUNT( * ) AS col2, - COUNT( * ) col2
----
54
-1

skipif mysql # not compatible
query II rowsort label-4248
SELECT + 54 / + COUNT ( * ) AS col2, - COUNT ( * ) col2
----
54
-1

query I rowsort
SELECT + 72 + + - 39 + + 90
----
123

query I rowsort
SELECT + ( 71 ) AS col0
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4251
SELECT ALL - + ( - - COUNT( * ) ) * + + CAST( NULL AS SIGNED ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4251
SELECT ALL - + ( - - COUNT ( * ) ) * + + CAST ( NULL AS INTEGER ) * COUNT ( * )
----
NULL

query I rowsort
SELECT - + 41 col0
----
-41

query I rowsort
SELECT DISTINCT - 82 col1
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-4254
SELECT COALESCE ( + COUNT( * ), - 94 ) - - 19 * ( - COUNT( * ) )
----
-18

skipif mysql # not compatible
query I rowsort label-4254
SELECT COALESCE ( + COUNT ( * ), - 94 ) - - 19 * ( - COUNT ( * ) )
----
-18

query I rowsort
SELECT DISTINCT + 27 + + 75 AS col1
----
102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4256
SELECT ALL COUNT( * ) DIV - - 33 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4256
SELECT ALL COUNT ( * ) / - - 33 AS col0
----
0

query I rowsort
SELECT + 79 * - 5 AS col0
----
-395

query I rowsort
SELECT DISTINCT 65 * + 67 + 44 AS col0
----
4399

onlyif mysql # aggregate syntax: 
query I rowsort label-4259
SELECT + NULLIF ( 35, - 92 * COUNT( * ) ) + 38
----
73

skipif mysql # not compatible
query I rowsort label-4259
SELECT + NULLIF ( 35, - 92 * COUNT ( * ) ) + 38
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4260
SELECT + MIN( + 46 )
----
46

skipif mysql # not compatible
query I rowsort label-4260
SELECT + MIN ( + 46 )
----
46

query I rowsort
SELECT ALL - 17 * + - 80 col0
----
1360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4262
SELECT + CAST( + COUNT( * ) AS SIGNED ) + + AVG ( + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4262
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) + + AVG ( + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4263
SELECT ( + COUNT( DISTINCT 30 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4263
SELECT ( + COUNT ( DISTINCT 30 ) )
----
1

query I rowsort
SELECT - - 26 + 7
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4265
SELECT + MIN( DISTINCT + 4 )
----
4

skipif mysql # not compatible
query I rowsort label-4265
SELECT + MIN ( DISTINCT + 4 )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4266
SELECT DISTINCT - SUM( DISTINCT - + 9 )
----
9

skipif mysql # not compatible
query I rowsort label-4266
SELECT DISTINCT - SUM ( DISTINCT - + 9 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4267
SELECT ALL + 82 + - COUNT( * ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-4267
SELECT ALL + 82 + - COUNT ( * ) AS col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4268
SELECT COUNT( * ) + - + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4268
SELECT COUNT ( * ) + - + COUNT ( * ) AS col1
----
0

query I rowsort
SELECT ALL - - 69 AS col2
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4270
SELECT + - CAST( 16 AS SIGNED ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-4270
SELECT + - CAST ( 16 AS INTEGER ) AS col2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-4271
SELECT ALL - 86 + COUNT( * ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-4271
SELECT ALL - 86 + COUNT ( * ) AS col1
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4272
SELECT - COUNT( * ) * + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4272
SELECT - COUNT ( * ) * + CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4273
SELECT COUNT( * ) * + + 26 + - + 50
----
-24

skipif mysql # not compatible
query I rowsort label-4273
SELECT COUNT ( * ) * + + 26 + - + 50
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4274
SELECT - COUNT( * ) * - MAX( ALL - + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4274
SELECT - COUNT ( * ) * - MAX ( ALL - + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4275
SELECT MAX( - 4 )
----
-4

skipif mysql # not compatible
query I rowsort label-4275
SELECT MAX ( - 4 )
----
-4

query I rowsort
SELECT DISTINCT + - 28 + 19 AS col0
----
-9

query II rowsort
SELECT 99 + + ( - 29 ) AS col1, - 82 AS col1
----
70
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-4278
SELECT 44 - - COUNT( * ) AS col1
----
45

skipif mysql # not compatible
query I rowsort label-4278
SELECT 44 - - COUNT ( * ) AS col1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4279
SELECT ALL + 81 + + COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-4279
SELECT ALL + 81 + + COUNT ( * )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4280
SELECT ALL + COUNT( * ) + - + 58 + 28
----
-29

skipif mysql # not compatible
query I rowsort label-4280
SELECT ALL + COUNT ( * ) + - + 58 + 28
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-4281
SELECT ALL - COUNT( ALL 23 ) + - 64
----
-65

skipif mysql # not compatible
query I rowsort label-4281
SELECT ALL - COUNT ( ALL 23 ) + - 64
----
-65

query I rowsort
SELECT DISTINCT - 3 * - - 79 AS col2
----
-237

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4283
SELECT ALL - CAST( 13 AS SIGNED ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-4283
SELECT ALL - CAST ( 13 AS INTEGER ) AS col1
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-4284
SELECT + COUNT( ALL 67 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4284
SELECT + COUNT ( ALL 67 ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4285
SELECT - CAST( + + 26 AS SIGNED ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-4285
SELECT - CAST ( + + 26 AS INTEGER ) AS col0
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-4286
SELECT ALL + 38 DIV - + ( + 65 ) + 68 AS col2
----
68

skipif mysql # not compatible
query I rowsort label-4286
SELECT ALL + 38 / - + ( + 65 ) + 68 AS col2
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4287
SELECT CAST( + 37 AS SIGNED ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-4287
SELECT CAST ( + 37 AS INTEGER ) AS col1
----
37

query I rowsort
SELECT ( + - 90 )
----
-90

query I rowsort
SELECT ALL + NULLIF ( - - 11, + 60 )
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4290
SELECT ALL + ( + + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4290
SELECT ALL + ( + + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4291
SELECT ALL + + COUNT( * ) * + - 11 AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-4291
SELECT ALL + + COUNT ( * ) * + - 11 AS col0
----
-11

query I rowsort
SELECT DISTINCT + 20 * - - 52 AS col1
----
1040

query I rowsort
SELECT - - 81 - + 52
----
29

query I rowsort
SELECT 44 * - - 6 AS col1
----
264

query I rowsort
SELECT + 97 * + 47 * 48 * 95 - + + 94
----
20788946

query I rowsort
SELECT + 43 + + + 9
----
52

query I rowsort
SELECT 77 * - - 54 AS col1
----
4158

query I rowsort
SELECT ALL - 74 - 51 AS col0
----
-125

query I rowsort
SELECT DISTINCT - 92 + 75
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-4300
SELECT DISTINCT 69 col1, 76 * + 25 * + MIN( ALL 6 ) + + - 53
----
69
11347

skipif mysql # not compatible
query II rowsort label-4300
SELECT DISTINCT 69 col1, 76 * + 25 * + MIN ( ALL 6 ) + + - 53
----
69
11347

onlyif mysql # aggregate syntax: 
query I rowsort label-4301
SELECT - COUNT( * ) - - + 48 AS col0
----
47

skipif mysql # not compatible
query I rowsort label-4301
SELECT - COUNT ( * ) - - + 48 AS col0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4302
SELECT DISTINCT + + 87 * + COUNT( * ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-4302
SELECT DISTINCT + + 87 * + COUNT ( * ) AS col2
----
87

query I rowsort
SELECT ALL + - 94 AS col1
----
-94

query I rowsort
SELECT - COALESCE ( - + 3, 56 ) AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4305
SELECT + 88 * + - SUM( 35 )
----
-3080

skipif mysql # not compatible
query I rowsort label-4305
SELECT + 88 * + - SUM ( 35 )
----
-3080

query I rowsort
SELECT - ( + 19 ) AS col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4307
SELECT ALL MIN( ALL + 43 )
----
43

skipif mysql # not compatible
query I rowsort label-4307
SELECT ALL MIN ( ALL + 43 )
----
43

query I rowsort
SELECT DISTINCT 99 + + - 66 AS col1
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4309
SELECT DISTINCT + CAST( NULL AS SIGNED ) - + - 29
----
NULL

skipif mysql # not compatible
query I rowsort label-4309
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - + - 29
----
NULL

query I rowsort
SELECT DISTINCT - ( + - 3 )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4311
SELECT CAST( NULL AS SIGNED ) / - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4311
SELECT CAST ( NULL AS INTEGER ) / - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 53 * + - 70 AS col2
----
-3710

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4313
SELECT DISTINCT CAST( NULL AS SIGNED ) / - 84 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4313
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - 84 AS col1
----
NULL

query I rowsort
SELECT 8 - 59
----
-51

query I rowsort
SELECT - 60 * + - NULLIF ( 76, - + 6 ) AS col0
----
4560

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4316
SELECT DISTINCT - 54 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4316
SELECT DISTINCT - 54 * - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL + 66 + + 48 AS col0
----
114

query I rowsort
SELECT ALL - 21 + - - 49 AS col0
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-4319
SELECT 28 AS col2, COUNT( * ) AS col0
----
28
1

skipif mysql # not compatible
query II rowsort label-4319
SELECT 28 AS col2, COUNT ( * ) AS col0
----
28
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4320
SELECT - COUNT( * ), 35 AS col1
----
-1
35

skipif mysql # not compatible
query II rowsort label-4320
SELECT - COUNT ( * ), 35 AS col1
----
-1
35

query I rowsort
SELECT DISTINCT 6 - - + 5 AS col0
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4322
SELECT ALL + CAST( + 36 AS SIGNED )
----
36

skipif mysql # not compatible
query I rowsort label-4322
SELECT ALL + CAST ( + 36 AS INTEGER )
----
36

query I rowsort
SELECT - 60 * + 21 AS col0
----
-1260

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4324
SELECT ALL CAST( NULL AS SIGNED ) * - COUNT( * ) * + + 80 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4324
SELECT ALL CAST ( NULL AS INTEGER ) * - COUNT ( * ) * + + 80 + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4325
SELECT ALL + MIN( DISTINCT + ( - 79 ) )
----
-79

skipif mysql # not compatible
query I rowsort label-4325
SELECT ALL + MIN ( DISTINCT + ( - 79 ) )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-4326
SELECT - - 23 + 56 + + COUNT( * ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-4326
SELECT - - 23 + 56 + + COUNT ( * ) AS col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4327
SELECT DISTINCT + + COUNT( ALL 90 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4327
SELECT DISTINCT + + COUNT ( ALL 90 ) AS col2
----
1

query I rowsort
SELECT + ( 54 ) AS col0
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4329
SELECT ALL 77 DIV - SUM( - 9 )
----
8

skipif mysql # not compatible
query I rowsort label-4329
SELECT ALL 77 / - SUM ( - 9 )
----
8

query I rowsort
SELECT ALL 23 * + 8
----
184

onlyif mysql # aggregate syntax: 
query I rowsort label-4331
SELECT COUNT( * ) + - + 95 AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-4331
SELECT COUNT ( * ) + - + 95 AS col1
----
-94

query I rowsort
SELECT 97 * + + 15 AS col0
----
1455

query I rowsort
SELECT + 85 + + 49 col1
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-4334
SELECT - 51 * + COUNT( * )
----
-51

skipif mysql # not compatible
query I rowsort label-4334
SELECT - 51 * + COUNT ( * )
----
-51

query II rowsort
SELECT - - 0 AS col1, + 29
----
0
29

query I rowsort
SELECT ( - 73 ) + + 8
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-4337
SELECT DISTINCT COUNT( - 68 ) * + + 26 AS col2
----
26

skipif mysql # not compatible
query I rowsort label-4337
SELECT DISTINCT COUNT ( - 68 ) * + + 26 AS col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4338
SELECT DISTINCT - COUNT( + - 22 )
----
-1

skipif mysql # not compatible
query I rowsort label-4338
SELECT DISTINCT - COUNT ( + - 22 )
----
-1

query I rowsort
SELECT ALL - 96 + - 50 AS col2
----
-146

query I rowsort
SELECT ALL + 75 * - 45 AS col0
----
-3375

onlyif mysql # DIV for integer division: 
query I rowsort label-4341
SELECT - 23 DIV + 86
----
0

skipif mysql # not compatible
query I rowsort label-4341
SELECT - 23 / + 86
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4342
SELECT DISTINCT - - COUNT( ALL - + 71 ) + + + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4342
SELECT DISTINCT - - COUNT ( ALL - + 71 ) + + + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4343
SELECT - MIN( - ( + 84 ) )
----
84

skipif mysql # not compatible
query I rowsort label-4343
SELECT - MIN ( - ( + 84 ) )
----
84

query I rowsort
SELECT ALL 2 - - + 89 AS col1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4345
SELECT + CASE WHEN NOT + COALESCE ( COUNT( * ), + 67 ) IS NULL THEN NULL ELSE + + MAX( - 46 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4345
SELECT + CASE WHEN NOT + COALESCE ( COUNT ( * ), + 67 ) IS NULL THEN NULL ELSE + + MAX ( - 46 ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4346
SELECT - 83 * - COUNT( * ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-4346
SELECT - 83 * - COUNT ( * ) AS col0
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4347
SELECT + CAST( NULL AS SIGNED ) AS col2, - 52
----
NULL
-52

skipif mysql # not compatible
query II rowsort label-4347
SELECT + CAST ( NULL AS INTEGER ) AS col2, - 52
----
NULL
-52

query I rowsort
SELECT ( - 63 ) AS col2
----
-63

query I rowsort
SELECT + + ( 20 ) AS col0
----
20

query II rowsort
SELECT ALL 83 AS col1, 25 - 27
----
83
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4351
SELECT ALL + SUM( + + 26 ) * + 57
----
1482

skipif mysql # not compatible
query I rowsort label-4351
SELECT ALL + SUM ( + + 26 ) * + 57
----
1482

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4352
SELECT - AVG ( + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4352
SELECT - AVG ( + CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4353
SELECT ALL 80 AS col2, + 16 DIV + 42 AS col0
----
80
0

skipif mysql # not compatible
query II rowsort label-4353
SELECT ALL 80 AS col2, + 16 / + 42 AS col0
----
80
0

query I rowsort
SELECT 45 * 39
----
1755

query I rowsort
SELECT DISTINCT + - 7 + ( + + 5 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4356
SELECT + COUNT( * ) * COUNT( * ) + - 29 AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-4356
SELECT + COUNT ( * ) * COUNT ( * ) + - 29 AS col2
----
-28

query I rowsort
SELECT DISTINCT ( + 93 ) * + 82
----
7626

onlyif mysql # aggregate syntax: 
query II rowsort label-4358
SELECT DISTINCT COUNT( + + 80 ) AS col2, COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-4358
SELECT DISTINCT COUNT ( + + 80 ) AS col2, COUNT ( * )
----
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4359
SELECT - COUNT( DISTINCT + + CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-4359
SELECT - COUNT ( DISTINCT + + CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4360
SELECT ALL + 45 + COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-4360
SELECT ALL + 45 + COUNT ( * )
----
46

query II rowsort
SELECT + 83 AS col2, 50 AS col1
----
83
50

query II rowsort
SELECT + - 5 AS col2, 15 col0
----
-5
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4363
SELECT + COUNT( * ) + + 49 + + 92 col2
----
142

skipif mysql # not compatible
query I rowsort label-4363
SELECT + COUNT ( * ) + + 49 + + 92 col2
----
142

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4364
SELECT + CAST( + ( + - 72 ) AS SIGNED )
----
-72

skipif mysql # not compatible
query I rowsort label-4364
SELECT + CAST ( + ( + - 72 ) AS INTEGER )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4365
SELECT + MIN( ALL - - 62 ) - 67 + - 46 AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-4365
SELECT + MIN ( ALL - - 62 ) - 67 + - 46 AS col2
----
-51

query I rowsort
SELECT + 64 * + 25 AS col0
----
1600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4367
SELECT - CAST( + 61 AS SIGNED )
----
-61

skipif mysql # not compatible
query I rowsort label-4367
SELECT - CAST ( + 61 AS INTEGER )
----
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4368
SELECT DISTINCT - COUNT( * ) DIV - 28 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4368
SELECT DISTINCT - COUNT ( * ) / - 28 AS col0
----
0

query I rowsort
SELECT ALL - ( + 9 )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4370
SELECT DISTINCT - NULLIF ( - 69, COUNT( * ) )
----
69

skipif mysql # not compatible
query I rowsort label-4370
SELECT DISTINCT - NULLIF ( - 69, COUNT ( * ) )
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-4371
SELECT 69 DIV + 57 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4371
SELECT 69 / + 57 AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4372
SELECT DISTINCT - CAST( 54 AS SIGNED ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-4372
SELECT DISTINCT - CAST ( 54 AS INTEGER ) AS col2
----
-54

query I rowsort
SELECT ALL - - 12 AS col2
----
12

query I rowsort
SELECT ALL + 40 + - 47
----
-7

query I rowsort
SELECT DISTINCT - + 97 AS col0
----
-97

query I rowsort
SELECT ALL - 65 * + 86 AS col2
----
-5590

query I rowsort
SELECT ALL + - 62 * + + 85
----
-5270

query I rowsort
SELECT - ( - + 84 ) AS col0
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4379
SELECT MIN( - CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4379
SELECT MIN ( - CAST ( NULL AS INTEGER ) ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4380
SELECT ALL 56, COUNT( * ) AS col2
----
56
1

skipif mysql # not compatible
query II rowsort label-4380
SELECT ALL 56, COUNT ( * ) AS col2
----
56
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4381
SELECT ALL 72 DIV + - COUNT( * ) - - - COUNT( * )
----
-73

skipif mysql # not compatible
query I rowsort label-4381
SELECT ALL 72 / + - COUNT ( * ) - - - COUNT ( * )
----
-73

query I rowsort
SELECT DISTINCT - ( 77 ) * + 57
----
-4389

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4383
SELECT + 18 * 12 DIV - COUNT( * ) DIV - COUNT( * ) DIV + COUNT( * )
----
216

skipif mysql # not compatible
query I rowsort label-4383
SELECT + 18 * 12 / - COUNT ( * ) / - COUNT ( * ) / + COUNT ( * )
----
216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4384
SELECT + CAST( - + MAX( ALL - 24 ) AS SIGNED )
----
24

skipif mysql # not compatible
query I rowsort label-4384
SELECT + CAST ( - + MAX ( ALL - 24 ) AS INTEGER )
----
24

query I rowsort
SELECT + 82 * ( - 45 ) AS col1
----
-3690

query I rowsort
SELECT DISTINCT 28 * + 76 AS col1
----
2128

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4387
SELECT - 32 DIV 35 - MIN( 28 ) * 15
----
-420

skipif mysql # not compatible
query I rowsort label-4387
SELECT - 32 / 35 - MIN ( 28 ) * 15
----
-420

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4388
SELECT 50 * - 18 * 24 DIV COUNT( * ) AS col2
----
-21600

skipif mysql # not compatible
query I rowsort label-4388
SELECT 50 * - 18 * 24 / COUNT ( * ) AS col2
----
-21600

query I rowsort
SELECT ALL 16 + - - 53 AS col0
----
69

query II rowsort
SELECT 23, + 7 AS col0
----
23
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4391
SELECT ALL - MIN( DISTINCT - - 31 ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-4391
SELECT ALL - MIN ( DISTINCT - - 31 ) AS col2
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4392
SELECT 74 - - COUNT( * ) + + - 28
----
47

skipif mysql # not compatible
query I rowsort label-4392
SELECT 74 - - COUNT ( * ) + + - 28
----
47

query I rowsort
SELECT ALL - 76 * + - 32 col2
----
2432

onlyif mysql # aggregate syntax: 
query I rowsort label-4394
SELECT - COUNT( * ) * 12
----
-12

skipif mysql # not compatible
query I rowsort label-4394
SELECT - COUNT ( * ) * 12
----
-12

query I rowsort
SELECT ALL + 25 * - 41
----
-1025

query I rowsort
SELECT - - ( + 38 ) AS col2
----
38

query I rowsort
SELECT + 60 + + 14 col0
----
74

query I rowsort
SELECT ALL - 79 col0
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4399
SELECT ALL COUNT( * ) * + CAST( + - NULLIF ( 67, + ( - 54 ) + + + 55 ) AS SIGNED ) AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-4399
SELECT ALL COUNT ( * ) * + CAST ( + - NULLIF ( 67, + ( - 54 ) + + + 55 ) AS INTEGER ) AS col0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-4400
SELECT + COUNT( * ) * COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4400
SELECT + COUNT ( * ) * COUNT ( * ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4401
SELECT ( + COUNT( 12 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4401
SELECT ( + COUNT ( 12 ) ) AS col0
----
1

query I rowsort
SELECT ALL + NULLIF ( 23, - + 93 ) col1
----
23

query I rowsort
SELECT DISTINCT + - ( - 81 )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4404
SELECT - COUNT( * ) * - SUM( + 65 )
----
65

skipif mysql # not compatible
query I rowsort label-4404
SELECT - COUNT ( * ) * - SUM ( + 65 )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4405
SELECT ALL 47 * - COUNT( * )
----
-47

skipif mysql # not compatible
query I rowsort label-4405
SELECT ALL 47 * - COUNT ( * )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4406
SELECT ALL + COUNT( * ) * - + NULLIF ( + + 61, 81 ) col2
----
-61

skipif mysql # not compatible
query I rowsort label-4406
SELECT ALL + COUNT ( * ) * - + NULLIF ( + + 61, 81 ) col2
----
-61

query I rowsort
SELECT 85 * 79 AS col1
----
6715

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4408
SELECT DISTINCT - CAST( + 12 AS SIGNED ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-4408
SELECT DISTINCT - CAST ( + 12 AS INTEGER ) AS col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4409
SELECT ALL COUNT( * ) * + 65
----
65

skipif mysql # not compatible
query I rowsort label-4409
SELECT ALL COUNT ( * ) * + 65
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4410
SELECT ALL MIN( ALL + - 64 ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-4410
SELECT ALL MIN ( ALL + - 64 ) AS col0
----
-64

query I rowsort
SELECT - ( 70 ) + - 94 AS col2
----
-164

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4412
SELECT - CAST( + + 30 AS SIGNED ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-4412
SELECT - CAST ( + + 30 AS INTEGER ) AS col0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4413
SELECT - 69 - + - COUNT( * ) AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-4413
SELECT - 69 - + - COUNT ( * ) AS col1
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4414
SELECT SUM( ALL - + NULLIF ( 98, + - CAST( NULL AS SIGNED ) ) ) AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-4414
SELECT SUM ( ALL - + NULLIF ( 98, + - CAST ( NULL AS INTEGER ) ) ) AS col0
----
-98

query I rowsort
SELECT ALL - ( - 81 )
----
81

query I rowsort
SELECT + 9 * + 78
----
702

query I rowsort
SELECT + ( - 9 ) AS col2
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-4418
SELECT ALL - COUNT( * ), + COUNT( * ) AS col1
----
-1
1

skipif mysql # not compatible
query II rowsort label-4418
SELECT ALL - COUNT ( * ), + COUNT ( * ) AS col1
----
-1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4419
SELECT COUNT( * ) * + + 77
----
77

skipif mysql # not compatible
query I rowsort label-4419
SELECT COUNT ( * ) * + + 77
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4420
SELECT DISTINCT - COUNT( CAST( NULL AS SIGNED ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4420
SELECT DISTINCT - COUNT ( CAST ( NULL AS INTEGER ) ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4421
SELECT + 35 AS col0, COALESCE ( 17, CAST( NULL AS SIGNED ) ) AS col2
----
35
17

skipif mysql # not compatible
query II rowsort label-4421
SELECT + 35 AS col0, COALESCE ( 17, CAST ( NULL AS INTEGER ) ) AS col2
----
35
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4422
SELECT + - 87 + + 13 * - ( MAX( ALL + 73 ) )
----
-1036

skipif mysql # not compatible
query I rowsort label-4422
SELECT + - 87 + + 13 * - ( MAX ( ALL + 73 ) )
----
-1036

query I rowsort
SELECT ALL + - 76 AS col1
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4424
SELECT - 46 * + - COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-4424
SELECT - 46 * + - COUNT ( * )
----
46

query I rowsort
SELECT - ( + ( 57 ) ) AS col2
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-4426
SELECT ALL + + 88 - - - COUNT( * ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-4426
SELECT ALL + + 88 - - - COUNT ( * ) AS col1
----
87

query I rowsort
SELECT ALL + + 54 AS col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4428
SELECT ALL + SUM( ALL - - 92 ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-4428
SELECT ALL + SUM ( ALL - - 92 ) AS col1
----
92

query I rowsort
SELECT ALL + 94 * + ( - 79 ) + + + 82 col2
----
-7344

onlyif mysql # aggregate syntax: 
query I rowsort label-4430
SELECT - 14 * SUM( + - 71 ) + + COUNT( * )
----
995

skipif mysql # not compatible
query I rowsort label-4430
SELECT - 14 * SUM ( + - 71 ) + + COUNT ( * )
----
995

query I rowsort
SELECT ALL ( - - 29 )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4432
SELECT ALL - COUNT( DISTINCT + + 58 ) + - + 44 + - 74 AS col2
----
-119

skipif mysql # not compatible
query I rowsort label-4432
SELECT ALL - COUNT ( DISTINCT + + 58 ) + - + 44 + - 74 AS col2
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-4433
SELECT COUNT( * ) + 8
----
9

skipif mysql # not compatible
query I rowsort label-4433
SELECT COUNT ( * ) + 8
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4434
SELECT - - MIN( ALL 50 ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-4434
SELECT - - MIN ( ALL 50 ) AS col0
----
50

query I rowsort
SELECT ALL + NULLIF ( + + 63, + - 41 )
----
63

query I rowsort
SELECT - + COALESCE ( - 72, 42 ) AS col0
----
72

query I rowsort
SELECT DISTINCT 98 + + - 68 AS col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4438
SELECT 42 * - ( + 32 ) * + COUNT( + 65 ) + - COUNT( * )
----
-1345

skipif mysql # not compatible
query I rowsort label-4438
SELECT 42 * - ( + 32 ) * + COUNT ( + 65 ) + - COUNT ( * )
----
-1345

query I rowsort
SELECT - 16 * - 52 AS col0
----
832

query I rowsort
SELECT - 0 * 60 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4441
SELECT CAST( - 91 AS SIGNED )
----
-91

skipif mysql # not compatible
query I rowsort label-4441
SELECT CAST ( - 91 AS INTEGER )
----
-91

query I rowsort
SELECT DISTINCT + 90 col2
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4443
SELECT + MAX( ALL - CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4443
SELECT + MAX ( ALL - CAST ( NULL AS INTEGER ) ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4444
SELECT DISTINCT - COUNT( * ) * - + SUM( DISTINCT 66 )
----
66

skipif mysql # not compatible
query I rowsort label-4444
SELECT DISTINCT - COUNT ( * ) * - + SUM ( DISTINCT 66 )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4445
SELECT COUNT( * ) * - - SUM( ALL 16 ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-4445
SELECT COUNT ( * ) * - - SUM ( ALL 16 ) AS col2
----
16

query I rowsort
SELECT 42 + - 63
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-4447
SELECT ALL COUNT( * ) * - ( - + 87 ) * + + 89 * + 81, + 90 AS col0
----
627183
90

skipif mysql # not compatible
query II rowsort label-4447
SELECT ALL COUNT ( * ) * - ( - + 87 ) * + + 89 * + 81, + 90 AS col0
----
627183
90

query I rowsort
SELECT - 36 + + 47
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4449
SELECT ALL AVG ( ALL - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4449
SELECT ALL AVG ( ALL - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT - 23 * + - 39
----
897

query I rowsort
SELECT ALL + ( - 48 ) AS col2
----
-48

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4452
SELECT - + 34 * + - COUNT( * ) / + - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4452
SELECT - + 34 * + - COUNT ( * ) / + - CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT ALL + + 8 AS col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4454
SELECT MAX( - 74 ) AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-4454
SELECT MAX ( - 74 ) AS col0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4455
SELECT DISTINCT - NULLIF ( - 71, ( + 69 ) ) * + 34 - COUNT( * )
----
2413

skipif mysql # not compatible
query I rowsort label-4455
SELECT DISTINCT - NULLIF ( - 71, ( + 69 ) ) * + 34 - COUNT ( * )
----
2413

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4456
SELECT 57 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4456
SELECT 57 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL NULLIF ( - 84, + 71 ) AS col2
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-4458
SELECT ALL - MIN( DISTINCT - 65 ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-4458
SELECT ALL - MIN ( DISTINCT - 65 ) AS col0
----
65

query I rowsort
SELECT 73 * + 98 AS col2
----
7154

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4460
SELECT 67 DIV - - COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-4460
SELECT 67 / - - COUNT ( * )
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-4461
SELECT DISTINCT - 69 DIV + 12
----
-5

skipif mysql # not compatible
query I rowsort label-4461
SELECT DISTINCT - 69 / + 12
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4462
SELECT + + 55 * - - MAX( - + 29 )
----
-1595

skipif mysql # not compatible
query I rowsort label-4462
SELECT + + 55 * - - MAX ( - + 29 )
----
-1595

onlyif mysql # aggregate syntax: 
query I rowsort label-4463
SELECT ALL - 28 * - + COUNT( * ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-4463
SELECT ALL - 28 * - + COUNT ( * ) AS col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4464
SELECT DISTINCT + + COUNT( * ) + 57 + COUNT( * ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-4464
SELECT DISTINCT + + COUNT ( * ) + 57 + COUNT ( * ) AS col2
----
59

query I rowsort
SELECT ALL + + 84 col0
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4466
SELECT + COUNT( DISTINCT - 73 ) DIV + 9 col0
----
0

skipif mysql # not compatible
query I rowsort label-4466
SELECT + COUNT ( DISTINCT - 73 ) / + 9 col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4467
SELECT + COUNT( ALL + + 82 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4467
SELECT + COUNT ( ALL + + 82 ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4468
SELECT DISTINCT 10 DIV - 33 col1
----
0

skipif mysql # not compatible
query I rowsort label-4468
SELECT DISTINCT 10 / - 33 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4469
SELECT + 9 + COUNT( * ) * - COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-4469
SELECT + 9 + COUNT ( * ) * - COUNT ( * )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4470
SELECT NULLIF ( - - COUNT( * ), - 93 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4470
SELECT NULLIF ( - - COUNT ( * ), - 93 ) AS col2
----
1

query I rowsort
SELECT DISTINCT - + 39 + + - 61
----
-100

query I rowsort
SELECT ALL - 48 * 96 AS col0
----
-4608

onlyif mysql # aggregate syntax: 
query I rowsort label-4473
SELECT DISTINCT 5 * - MAX( - - 17 ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-4473
SELECT DISTINCT 5 * - MAX ( - - 17 ) AS col0
----
-85

query I rowsort
SELECT ALL - 72 col0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4475
SELECT ALL COUNT( * ) + + - 11
----
-10

skipif mysql # not compatible
query I rowsort label-4475
SELECT ALL COUNT ( * ) + + - 11
----
-10

query I rowsort
SELECT DISTINCT - 75 col2
----
-75

query I rowsort
SELECT 78 + 7
----
85

query I rowsort
SELECT 92 + + 24
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-4479
SELECT ALL + COUNT( * ) * 44
----
44

skipif mysql # not compatible
query I rowsort label-4479
SELECT ALL + COUNT ( * ) * 44
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-4480
SELECT - 30 DIV 94 + - + 90 * + 18
----
-1620

skipif mysql # not compatible
query I rowsort label-4480
SELECT - 30 / 94 + - + 90 * + 18
----
-1620

onlyif mysql # aggregate syntax: 
query I rowsort label-4481
SELECT DISTINCT - 0 - + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-4481
SELECT DISTINCT - 0 - + COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4482
SELECT - MIN( 30 ) * + 96 + - 35 col1
----
-2915

skipif mysql # not compatible
query I rowsort label-4482
SELECT - MIN ( 30 ) * + 96 + - 35 col1
----
-2915

query II rowsort
SELECT - + 47, - 1 AS col1
----
-47
-1

query I rowsort
SELECT - ( - 32 ) AS col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4485
SELECT ALL COUNT( * ) * + + 3 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-4485
SELECT ALL COUNT ( * ) * + + 3 AS col1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4486
SELECT ALL 58 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4486
SELECT ALL 58 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4487
SELECT - 1 DIV - CAST( - - 69 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-4487
SELECT - 1 / - CAST ( - - 69 AS INTEGER )
----
0

query I rowsort
SELECT ALL + ( 64 ) col2
----
64

query I rowsort
SELECT + + 83 * 28 AS col2
----
2324

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4490
SELECT ALL MAX( - - CAST( NULL AS SIGNED ) ) + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4490
SELECT ALL MAX ( - - CAST ( NULL AS INTEGER ) ) + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4491
SELECT - COUNT( * ) DIV - 17 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4491
SELECT - COUNT ( * ) / - 17 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4492
SELECT - NULLIF ( 63, - COUNT( * ) )
----
-63

skipif mysql # not compatible
query I rowsort label-4492
SELECT - NULLIF ( 63, - COUNT ( * ) )
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-4493
SELECT + 26 * - COUNT( * ) * 34
----
-884

skipif mysql # not compatible
query I rowsort label-4493
SELECT + 26 * - COUNT ( * ) * 34
----
-884

onlyif mysql # aggregate syntax: 
query I rowsort label-4494
SELECT 43 + COUNT( * )
----
44

skipif mysql # not compatible
query I rowsort label-4494
SELECT 43 + COUNT ( * )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4495
SELECT + COALESCE ( ( + 31 ), + - COUNT( * ) ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-4495
SELECT + COALESCE ( ( + 31 ), + - COUNT ( * ) ) AS col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4496
SELECT ( 58 ) * - COUNT( * ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-4496
SELECT ( 58 ) * - COUNT ( * ) AS col2
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4497
SELECT - + CAST( 7 AS SIGNED )
----
-7

skipif mysql # not compatible
query I rowsort label-4497
SELECT - + CAST ( 7 AS INTEGER )
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4498
SELECT DISTINCT - CAST( - - ( + - COUNT( * ) ) AS SIGNED ) - - 71 AS col0, - 83 AS col1
----
72
-83

skipif mysql # not compatible
query II rowsort label-4498
SELECT DISTINCT - CAST ( - - ( + - COUNT ( * ) ) AS INTEGER ) - - 71 AS col0, - 83 AS col1
----
72
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4499
SELECT + + CAST( + + 72 AS SIGNED ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-4499
SELECT + + CAST ( + + 72 AS INTEGER ) AS col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4500
SELECT DISTINCT - + SUM( 96 )
----
-96

skipif mysql # not compatible
query I rowsort label-4500
SELECT DISTINCT - + SUM ( 96 )
----
-96

query I rowsort
SELECT + ( + - 57 )
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4502
SELECT DISTINCT CAST( - 46 AS DECIMAL ) + - + CAST( NULL AS SIGNED ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4502
SELECT DISTINCT CAST ( - 46 AS REAL ) + - + CAST ( NULL AS INTEGER ) * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4503
SELECT ALL - 17 + COUNT( * )
----
-16

skipif mysql # not compatible
query I rowsort label-4503
SELECT ALL - 17 + COUNT ( * )
----
-16

query I rowsort
SELECT ALL 29 * 85
----
2465

onlyif mysql # aggregate syntax: 
query I rowsort label-4505
SELECT ALL MIN( + - 25 )
----
-25

skipif mysql # not compatible
query I rowsort label-4505
SELECT ALL MIN ( + - 25 )
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4506
SELECT - 93 + COUNT( * )
----
-92

skipif mysql # not compatible
query I rowsort label-4506
SELECT - 93 + COUNT ( * )
----
-92

query I rowsort
SELECT - + 8 col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4508
SELECT MAX( + 60 ) col2
----
60

skipif mysql # not compatible
query I rowsort label-4508
SELECT MAX ( + 60 ) col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4509
SELECT ALL COUNT( DISTINCT - 63 )
----
1

skipif mysql # not compatible
query I rowsort label-4509
SELECT ALL COUNT ( DISTINCT - 63 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4510
SELECT ALL COUNT( ALL - - 75 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4510
SELECT ALL COUNT ( ALL - - 75 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4511
SELECT ALL - - 81 + + + COUNT( - - CAST( NULL AS SIGNED ) )
----
81

skipif mysql # not compatible
query I rowsort label-4511
SELECT ALL - - 81 + + + COUNT ( - - CAST ( NULL AS INTEGER ) )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4512
SELECT ALL + - SUM( DISTINCT - 21 )
----
21

skipif mysql # not compatible
query I rowsort label-4512
SELECT ALL + - SUM ( DISTINCT - 21 )
----
21

query I rowsort
SELECT - 98 * 93 AS col1
----
-9114

onlyif mysql # aggregate syntax: 
query I rowsort label-4514
SELECT ALL 82 * 53 * + COUNT( * ) AS col1
----
4346

skipif mysql # not compatible
query I rowsort label-4514
SELECT ALL 82 * 53 * + COUNT ( * ) AS col1
----
4346

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4515
SELECT DISTINCT COALESCE ( - 81, - + 38 DIV COUNT( * ) ) * + 58 col1
----
-4698

skipif mysql # not compatible
query I rowsort label-4515
SELECT DISTINCT COALESCE ( - 81, - + 38 / COUNT ( * ) ) * + 58 col1
----
-4698

query I rowsort
SELECT DISTINCT - 6 * + 73
----
-438

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4517
SELECT ALL - CAST( - 79 AS SIGNED ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-4517
SELECT ALL - CAST ( - 79 AS INTEGER ) AS col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4518
SELECT DISTINCT + MIN( DISTINCT 72 )
----
72

skipif mysql # not compatible
query I rowsort label-4518
SELECT DISTINCT + MIN ( DISTINCT 72 )
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4519
SELECT DISTINCT + COUNT( * ) DIV 3
----
0

skipif mysql # not compatible
query I rowsort label-4519
SELECT DISTINCT + COUNT ( * ) / 3
----
0

query I rowsort
SELECT - + 43 + 16
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-4521
SELECT + COUNT( * ) + + 2
----
3

skipif mysql # not compatible
query I rowsort label-4521
SELECT + COUNT ( * ) + + 2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4522
SELECT - 17 DIV 26 + - 16 AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-4522
SELECT - 17 / 26 + - 16 AS col0
----
-16

query I rowsort
SELECT - 21 + 34 col0
----
13

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4524
SELECT - - ( - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4524
SELECT - - ( - CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4525
SELECT ALL COUNT( * ) + COUNT( DISTINCT - 15 )
----
2

skipif mysql # not compatible
query I rowsort label-4525
SELECT ALL COUNT ( * ) + COUNT ( DISTINCT - 15 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4526
SELECT 1 * + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-4526
SELECT 1 * + - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4527
SELECT ALL 96 * + 79 - COUNT( * )
----
7583

skipif mysql # not compatible
query I rowsort label-4527
SELECT ALL 96 * + 79 - COUNT ( * )
----
7583

query I rowsort
SELECT ALL + + 20 col2
----
20

query I rowsort
SELECT + 75 * 25
----
1875

query I rowsort
SELECT ALL + 1 * 62
----
62

query I rowsort
SELECT + - ( - 5 ) AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4532
SELECT COUNT( 99 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4532
SELECT COUNT ( 99 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4533
SELECT 80 col1, - ( - COUNT( * ) ) AS col0
----
80
1

skipif mysql # not compatible
query II rowsort label-4533
SELECT 80 col1, - ( - COUNT ( * ) ) AS col0
----
80
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4534
SELECT - ( + - COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4534
SELECT - ( + - COUNT ( * ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4535
SELECT + COUNT( * ) * - 9
----
-9

skipif mysql # not compatible
query I rowsort label-4535
SELECT + COUNT ( * ) * - 9
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4536
SELECT DISTINCT + SUM( ALL ( - 33 ) )
----
-33

skipif mysql # not compatible
query I rowsort label-4536
SELECT DISTINCT + SUM ( ALL ( - 33 ) )
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-4537
SELECT ALL - 93 + COUNT( * ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-4537
SELECT ALL - 93 + COUNT ( * ) AS col1
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4538
SELECT 46 - + COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-4538
SELECT 46 - + COUNT ( * )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4539
SELECT ALL COUNT( * ) + - - 3 * + 74 - + 1
----
222

skipif mysql # not compatible
query I rowsort label-4539
SELECT ALL COUNT ( * ) + - - 3 * + 74 - + 1
----
222

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4540
SELECT ALL 23 * CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4540
SELECT ALL 23 * CAST ( NULL AS INTEGER ) col0
----
NULL

query II rowsort
SELECT - 61 col0, + 73
----
-61
73

query I rowsort
SELECT ALL - 71 * 93
----
-6603

onlyif mysql # aggregate syntax: 
query I rowsort label-4543
SELECT ALL MIN( + 72 ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-4543
SELECT ALL MIN ( + 72 ) AS col1
----
72

query I rowsort
SELECT + ( + 52 )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4545
SELECT SUM( DISTINCT + 63 )
----
63

skipif mysql # not compatible
query I rowsort label-4545
SELECT SUM ( DISTINCT + 63 )
----
63

query I rowsort
SELECT ALL - 84 * + - 57 AS col0
----
4788

query I rowsort
SELECT - - 67 + 29 AS col1
----
96

query I rowsort
SELECT DISTINCT + + 16 AS col0
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-4549
SELECT 70 * + COUNT( * ) * - + 90 col2, 73 AS col1
----
-6300
73

skipif mysql # not compatible
query II rowsort label-4549
SELECT 70 * + COUNT ( * ) * - + 90 col2, 73 AS col1
----
-6300
73

query I rowsort
SELECT DISTINCT 16 * - 3 AS col0
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4551
SELECT 83 DIV + COUNT( * ) col2
----
83

skipif mysql # not compatible
query I rowsort label-4551
SELECT 83 / + COUNT ( * ) col2
----
83

query II rowsort
SELECT DISTINCT 50, - 20 AS col0
----
50
-20

query I rowsort
SELECT ALL - 12 - 71
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4554
SELECT 43 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4554
SELECT 43 - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4555
SELECT + COUNT( * ) + 28 * - 50
----
-1399

skipif mysql # not compatible
query I rowsort label-4555
SELECT + COUNT ( * ) + 28 * - 50
----
-1399

query I rowsort
SELECT ALL + 25 * - - 18
----
450

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4557
SELECT ALL COUNT( * ) DIV - - 55 * - - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4557
SELECT ALL COUNT ( * ) / - - 55 * - - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4558
SELECT ALL COUNT( * ) * - - 59 col1
----
59

skipif mysql # not compatible
query I rowsort label-4558
SELECT ALL COUNT ( * ) * - - 59 col1
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4559
SELECT + CAST( - 15 AS SIGNED ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-4559
SELECT + CAST ( - 15 AS INTEGER ) AS col0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4560
SELECT ALL + COUNT( - ( - 60 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4560
SELECT ALL + COUNT ( - ( - 60 ) )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4561
SELECT - - ( + - 8 ) DIV COUNT( * ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-4561
SELECT - - ( + - 8 ) / COUNT ( * ) AS col2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4562
SELECT - 25 + - COUNT( * )
----
-26

skipif mysql # not compatible
query I rowsort label-4562
SELECT - 25 + - COUNT ( * )
----
-26

query I rowsort
SELECT DISTINCT - ( - + 61 ) AS col2
----
61

query I rowsort
SELECT ALL 99 + + - 4 AS col1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4565
SELECT MAX( + 34 )
----
34

skipif mysql # not compatible
query I rowsort label-4565
SELECT MAX ( + 34 )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4566
SELECT MAX( ALL 99 ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-4566
SELECT MAX ( ALL 99 ) AS col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4567
SELECT ALL COUNT( * ) * + 63
----
63

skipif mysql # not compatible
query I rowsort label-4567
SELECT ALL COUNT ( * ) * + 63
----
63

query I rowsort
SELECT ALL 87 + 65 AS col0
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-4569
SELECT ALL SUM( DISTINCT + 76 )
----
76

skipif mysql # not compatible
query I rowsort label-4569
SELECT ALL SUM ( DISTINCT + 76 )
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4570
SELECT - 3 DIV COUNT( * ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-4570
SELECT - 3 / COUNT ( * ) AS col1
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4571
SELECT ALL + 35 + MIN( 87 ) DIV 84 AS col1
----
36

skipif mysql # not compatible
query I rowsort label-4571
SELECT ALL + 35 + MIN ( 87 ) / 84 AS col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4572
SELECT + + COUNT( * ) * 32 AS col1
----
32

skipif mysql # not compatible
query I rowsort label-4572
SELECT + + COUNT ( * ) * 32 AS col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4573
SELECT DISTINCT + COUNT( * ) * - 74
----
-74

skipif mysql # not compatible
query I rowsort label-4573
SELECT DISTINCT + COUNT ( * ) * - 74
----
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4574
SELECT ALL 44 DIV - COUNT( * ) AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-4574
SELECT ALL 44 / - COUNT ( * ) AS col1
----
-44

query I rowsort
SELECT - ( - 38 ) AS col0
----
38

query I rowsort
SELECT + 64 * 23
----
1472

onlyif mysql # aggregate syntax: 
query I rowsort label-4577
SELECT ALL ( + + 9 ) + COUNT( * )
----
10

skipif mysql # not compatible
query I rowsort label-4577
SELECT ALL ( + + 9 ) + COUNT ( * )
----
10

query I rowsort
SELECT + 74 - + + 13
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4579
SELECT ( + CAST( 79 AS SIGNED ) ) + - COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-4579
SELECT ( + CAST ( 79 AS INTEGER ) ) + - COUNT ( * )
----
78

query I rowsort
SELECT + 22 * - - 1 + + ( + 20 )
----
42

query I rowsort
SELECT DISTINCT - + 2 AS col2
----
-2

query I rowsort
SELECT DISTINCT - + 41 AS col1
----
-41

query I rowsort
SELECT DISTINCT + 19 + + 75
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4584
SELECT ALL + SUM( + 93 )
----
93

skipif mysql # not compatible
query I rowsort label-4584
SELECT ALL + SUM ( + 93 )
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4585
SELECT ALL + COUNT( - CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-4585
SELECT ALL + COUNT ( - CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4586
SELECT - 51 + - COUNT( * ) AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-4586
SELECT - 51 + - COUNT ( * ) AS col0
----
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-4587
SELECT - COUNT( * ), + 40 col2
----
-1
40

skipif mysql # not compatible
query II rowsort label-4587
SELECT - COUNT ( * ), + 40 col2
----
-1
40

query I rowsort
SELECT ALL + ( - 69 )
----
-69

query I rowsort
SELECT ALL + - 14 col2
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4590
SELECT + 81 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4590
SELECT + 81 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4591
SELECT + COUNT( * ), - 69 AS col2
----
1
-69

skipif mysql # not compatible
query II rowsort label-4591
SELECT + COUNT ( * ), - 69 AS col2
----
1
-69

query II rowsort
SELECT ALL - 16, + 53 AS col2
----
-16
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4593
SELECT + 6 + + COUNT( * ) - 35 * - - COUNT( * ) * + + 69
----
-2408

skipif mysql # not compatible
query I rowsort label-4593
SELECT + 6 + + COUNT ( * ) - 35 * - - COUNT ( * ) * + + 69
----
-2408

onlyif mysql # aggregate syntax: 
query I rowsort label-4594
SELECT ALL - - 72 * - NULLIF ( COUNT( * ), + - 91 )
----
-72

skipif mysql # not compatible
query I rowsort label-4594
SELECT ALL - - 72 * - NULLIF ( COUNT ( * ), + - 91 )
----
-72

query I rowsort
SELECT DISTINCT - - 46 AS col1
----
46

query I rowsort
SELECT 42 + - 20 AS col2
----
22

query I rowsort
SELECT DISTINCT - ( - 30 ) AS col0
----
30

query I rowsort
SELECT 92 + - 89 + 3 col1
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-4599
SELECT + 56 DIV 73 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4599
SELECT + 56 / 73 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4600
SELECT - + COUNT( * ) + 61 AS col1
----
60

skipif mysql # not compatible
query I rowsort label-4600
SELECT - + COUNT ( * ) + 61 AS col1
----
60

query I rowsort
SELECT DISTINCT ( - 15 )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4602
SELECT ( ( + COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-4602
SELECT ( ( + COUNT ( * ) ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4603
SELECT + CAST( NULL AS SIGNED ) + + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4603
SELECT + CAST ( NULL AS INTEGER ) + + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4604
SELECT DISTINCT 38 + COUNT( * )
----
39

skipif mysql # not compatible
query I rowsort label-4604
SELECT DISTINCT 38 + COUNT ( * )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4605
SELECT ALL - COUNT( DISTINCT - - 53 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4605
SELECT ALL - COUNT ( DISTINCT - - 53 ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4606
SELECT DISTINCT + 90 * - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4606
SELECT DISTINCT + 90 * - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4607
SELECT ALL MAX( - - 98 ) + - COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-4607
SELECT ALL MAX ( - - 98 ) + - COUNT ( * )
----
97

query II rowsort
SELECT ALL 68, 53 AS col1
----
68
53

onlyif mysql # aggregate syntax: 
query II rowsort label-4609
SELECT ALL COUNT( * ), 74 + + 13 - + + 73 AS col1
----
1
14

skipif mysql # not compatible
query II rowsort label-4609
SELECT ALL COUNT ( * ), 74 + + 13 - + + 73 AS col1
----
1
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4610
SELECT DISTINCT - - ( MIN( + 3 ) )
----
3

skipif mysql # not compatible
query I rowsort label-4610
SELECT DISTINCT - - ( MIN ( + 3 ) )
----
3

query I rowsort
SELECT ALL - 3 + + 88 AS col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4612
SELECT COUNT( 66 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4612
SELECT COUNT ( 66 ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4613
SELECT + 0 DIV + 50 col1
----
0

skipif mysql # not compatible
query I rowsort label-4613
SELECT + 0 / + 50 col1
----
0

query I rowsort
SELECT + COALESCE ( 62, - 57 ) AS col2
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-4615
SELECT + 27 * + + COUNT( * ), 99 AS col1
----
27
99

skipif mysql # not compatible
query II rowsort label-4615
SELECT + 27 * + + COUNT ( * ), 99 AS col1
----
27
99

query I rowsort
SELECT - ( + 6 ) AS col2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4617
SELECT + 4 * + + COUNT( * ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-4617
SELECT + 4 * + + COUNT ( * ) AS col1
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4618
SELECT - CAST( + 86 AS SIGNED ) AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-4618
SELECT - CAST ( + 86 AS INTEGER ) AS col1
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-4619
SELECT ALL - SUM( ALL - ( - ( + - 30 ) ) ) * - 37 col2
----
-1110

skipif mysql # not compatible
query I rowsort label-4619
SELECT ALL - SUM ( ALL - ( - ( + - 30 ) ) ) * - 37 col2
----
-1110

onlyif mysql # aggregate syntax: 
query I rowsort label-4620
SELECT ALL 14 * - COUNT( * ) col1
----
-14

skipif mysql # not compatible
query I rowsort label-4620
SELECT ALL 14 * - COUNT ( * ) col1
----
-14

query II rowsort
SELECT DISTINCT - 11 AS col2, 45
----
-11
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4622
SELECT ALL + - CAST( NULL AS SIGNED ) - - SUM( DISTINCT 77 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4622
SELECT ALL + - CAST ( NULL AS INTEGER ) - - SUM ( DISTINCT 77 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4623
SELECT ALL + 6 DIV - 53 * - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4623
SELECT ALL + 6 / - 53 * - COUNT ( * )
----
0

query I rowsort
SELECT ALL 38 * 73
----
2774

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4625
SELECT + 13 * - CAST( NULL AS SIGNED ) + + - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-4625
SELECT + 13 * - CAST ( NULL AS INTEGER ) + + - 6
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4626
SELECT DISTINCT COUNT( * ) * + - 63 AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-4626
SELECT DISTINCT COUNT ( * ) * + - 63 AS col2
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-4627
SELECT DISTINCT + MAX( ALL 98 ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-4627
SELECT DISTINCT + MAX ( ALL 98 ) AS col0
----
98

query II rowsort
SELECT DISTINCT 80, - 88 AS col1
----
80
-88

query I rowsort
SELECT ALL 55 + - 43
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4630
SELECT ALL ( - - MIN( + 36 ) )
----
36

skipif mysql # not compatible
query I rowsort label-4630
SELECT ALL ( - - MIN ( + 36 ) )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4631
SELECT ALL + COUNT( * ) * - + 97 AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-4631
SELECT ALL + COUNT ( * ) * - + 97 AS col2
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4632
SELECT 92 AS col0, CAST( NULL AS SIGNED )
----
92
NULL

skipif mysql # not compatible
query II rowsort label-4632
SELECT 92 AS col0, CAST ( NULL AS INTEGER )
----
92
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4633
SELECT - CAST( 56 AS SIGNED ) - - - 9 AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-4633
SELECT - CAST ( 56 AS INTEGER ) - - - 9 AS col2
----
-65

query I rowsort
SELECT ( 88 )
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4635
SELECT COUNT( * ) + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4635
SELECT COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 21 * 22
----
462

query II rowsort
SELECT ALL + 92 AS col1, 74 AS col2
----
92
74

query I rowsort
SELECT 25 + 86
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-4639
SELECT ALL + COUNT( * ) * + MIN( ALL + 26 ) - + 45 + + COUNT( * )
----
-18

skipif mysql # not compatible
query I rowsort label-4639
SELECT ALL + COUNT ( * ) * + MIN ( ALL + 26 ) - + 45 + + COUNT ( * )
----
-18

query I rowsort
SELECT - 61 + 86
----
25

query I rowsort
SELECT - + 20 AS col1
----
-20

query II rowsort
SELECT ALL 10 + 89 AS col2, - 24 AS col0
----
99
-24

query I rowsort
SELECT + 44 + - - NULLIF ( - 14, + 65 ) * + - 17 + + 67
----
349

query I rowsort
SELECT + 91 * + + 15
----
1365

onlyif mysql # aggregate syntax: 
query I rowsort label-4645
SELECT ALL + 68 + + + ( - COUNT( * ) )
----
67

skipif mysql # not compatible
query I rowsort label-4645
SELECT ALL + 68 + + + ( - COUNT ( * ) )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4646
SELECT - 68 * - + ( + COUNT( * ) ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-4646
SELECT - 68 * - + ( + COUNT ( * ) ) AS col1
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4647
SELECT ALL - CAST( + 99 AS SIGNED ) AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-4647
SELECT ALL - CAST ( + 99 AS INTEGER ) AS col2
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4648
SELECT - 0 + + - 95 DIV - + 69 DIV + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4648
SELECT - 0 + + - 95 / - + 69 / + COUNT ( * ) AS col0
----
1

query I rowsort
SELECT DISTINCT 54 * - - 78 col1
----
4212

onlyif mysql # aggregate syntax: 
query I rowsort label-4650
SELECT ALL + MIN( - 44 ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-4650
SELECT ALL + MIN ( - 44 ) AS col2
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4651
SELECT 49 DIV COUNT( * ) * + 62
----
3038

skipif mysql # not compatible
query I rowsort label-4651
SELECT 49 / COUNT ( * ) * + 62
----
3038

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4652
SELECT - 32 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4652
SELECT - 32 * + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4653
SELECT + 0 AS col1, COUNT( * )
----
0
1

skipif mysql # not compatible
query II rowsort label-4653
SELECT + 0 AS col1, COUNT ( * )
----
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4654
SELECT + - 36 DIV + 38 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4654
SELECT + - 36 / + 38 AS col2
----
0

query I rowsort
SELECT DISTINCT + ( 47 ) AS col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4656
SELECT COALESCE ( + - 78, + COUNT( * ) ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-4656
SELECT COALESCE ( + - 78, + COUNT ( * ) ) AS col2
----
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4657
SELECT - - 66 DIV - 67 + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4657
SELECT - - 66 / - 67 + COUNT ( * ) AS col2
----
1

query I rowsort
SELECT 40 * - 66
----
-2640

onlyif mysql # aggregate syntax: 
query I rowsort label-4659
SELECT ALL - COUNT( * ) + - + 17 col2
----
-18

skipif mysql # not compatible
query I rowsort label-4659
SELECT ALL - COUNT ( * ) + - + 17 col2
----
-18

query I rowsort
SELECT ALL + 46 * - 26 AS col2
----
-1196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4661
SELECT ALL + 45 - - 6 + - 27 / - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4661
SELECT ALL + 45 - - 6 + - 27 / - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4662
SELECT DISTINCT MAX( ALL - - 24 ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-4662
SELECT DISTINCT MAX ( ALL - - 24 ) AS col0
----
24

query I rowsort
SELECT + 51 + + 25 AS col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4664
SELECT ALL + COUNT( * ) * - 35 + - 69
----
-104

skipif mysql # not compatible
query I rowsort label-4664
SELECT ALL + COUNT ( * ) * - 35 + - 69
----
-104

query I rowsort
SELECT ALL - 28 * + 45 col0
----
-1260

query I rowsort
SELECT + + 1 * + ( - - 39 ) AS col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4667
SELECT DISTINCT - - COUNT( * ) * - 8
----
-8

skipif mysql # not compatible
query I rowsort label-4667
SELECT DISTINCT - - COUNT ( * ) * - 8
----
-8

query I rowsort
SELECT + 15 + - 35 + + - 80
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-4669
SELECT + ( - + ( - + MAX( DISTINCT - 72 ) ) )
----
-72

skipif mysql # not compatible
query I rowsort label-4669
SELECT + ( - + ( - + MAX ( DISTINCT - 72 ) ) )
----
-72

query II rowsort
SELECT - 90, 92 AS col2
----
-90
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4671
SELECT - MAX( + ( + 77 ) ) col2
----
-77

skipif mysql # not compatible
query I rowsort label-4671
SELECT - MAX ( + ( + 77 ) ) col2
----
-77

query I rowsort
SELECT ( + 75 ) col1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4673
SELECT 47 * + COUNT( * ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-4673
SELECT 47 * + COUNT ( * ) AS col0
----
47

query I rowsort
SELECT ALL 61 + - 73 AS col2
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4675
SELECT DISTINCT + CAST( 64 AS SIGNED ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-4675
SELECT DISTINCT + CAST ( 64 AS INTEGER ) AS col2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4676
SELECT ( + SUM( + 90 ) )
----
90

skipif mysql # not compatible
query I rowsort label-4676
SELECT ( + SUM ( + 90 ) )
----
90

query I rowsort
SELECT + ( + - 94 )
----
-94

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4678
SELECT ALL + 62 * CAST( NULL AS DECIMAL ) - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4678
SELECT ALL + 62 * CAST ( NULL AS REAL ) - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4679
SELECT DISTINCT COUNT( * ), + COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-4679
SELECT DISTINCT COUNT ( * ), + COUNT ( * )
----
1
1

query I rowsort
SELECT + 92 - + - 89
----
181

onlyif mysql # aggregate syntax: 
query I rowsort label-4681
SELECT - COUNT( DISTINCT + - 94 ) + - 63 AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-4681
SELECT - COUNT ( DISTINCT + - 94 ) + - 63 AS col0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-4682
SELECT NULLIF ( + MIN( ALL - 85 ), - - 40 ) + + ( COUNT( * ) ) AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-4682
SELECT NULLIF ( + MIN ( ALL - 85 ), - - 40 ) + + ( COUNT ( * ) ) AS col1
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-4683
SELECT ALL 19 DIV 21 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4683
SELECT ALL 19 / 21 AS col2
----
0

query I rowsort
SELECT ALL - ( - - ( + 31 ) )
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4685
SELECT ALL - + 40 + - COUNT( * )
----
-41

skipif mysql # not compatible
query I rowsort label-4685
SELECT ALL - + 40 + - COUNT ( * )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-4686
SELECT ALL + COUNT( * ) + + + 13
----
14

skipif mysql # not compatible
query I rowsort label-4686
SELECT ALL + COUNT ( * ) + + + 13
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4687
SELECT COUNT( DISTINCT + - 60 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4687
SELECT COUNT ( DISTINCT + - 60 ) AS col1
----
1

query I rowsort
SELECT DISTINCT - ( + 6 ) AS col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4689
SELECT - COALESCE ( + + COUNT( * ), + 56 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4689
SELECT - COALESCE ( + + COUNT ( * ), + 56 ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4690
SELECT + 8 + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4690
SELECT + 8 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4691
SELECT - COUNT( * ) * COUNT( * ) - CAST( - + COUNT( * ) AS SIGNED ) DIV - + ( - ( 19 ) ) + + 66 AS col2
----
65

skipif mysql # not compatible
query I rowsort label-4691
SELECT - COUNT ( * ) * COUNT ( * ) - CAST ( - + COUNT ( * ) AS INTEGER ) / - + ( - ( 19 ) ) + + 66 AS col2
----
65

query I rowsort
SELECT DISTINCT 36 * - 68 + - + ( ( + ( 48 ) ) )
----
-2496

query I rowsort
SELECT + 14 + + 50
----
64

query I rowsort
SELECT - ( - ( + + 13 ) ) AS col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4695
SELECT - ( + + MAX( ALL + - 20 ) ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-4695
SELECT - ( + + MAX ( ALL + - 20 ) ) AS col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4696
SELECT ALL + + 46 * + COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-4696
SELECT ALL + + 46 * + COUNT ( * )
----
46

query I rowsort
SELECT ALL + + 21 * 48 AS col0
----
1008

onlyif mysql # aggregate syntax: 
query II rowsort label-4698
SELECT DISTINCT - 80 col1, + COUNT( * ) + 6
----
-80
7

skipif mysql # not compatible
query II rowsort label-4698
SELECT DISTINCT - 80 col1, + COUNT ( * ) + 6
----
-80
7

onlyif mysql # DIV for integer division: 
query I rowsort label-4699
SELECT 54 DIV + - ( 46 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4699
SELECT 54 / + - ( 46 ) AS col2
----
-1

query I rowsort
SELECT ALL - - 22 col2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4701
SELECT COUNT( * ) * + 48 col2
----
48

skipif mysql # not compatible
query I rowsort label-4701
SELECT COUNT ( * ) * + 48 col2
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4702
SELECT - CAST( NULL AS SIGNED ) * COUNT( * ) + - + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-4702
SELECT - CAST ( NULL AS INTEGER ) * COUNT ( * ) + - + 29
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4703
SELECT ALL - - 67 DIV - COUNT( * )
----
-67

skipif mysql # not compatible
query I rowsort label-4703
SELECT ALL - - 67 / - COUNT ( * )
----
-67

query I rowsort
SELECT + 67 * - 44 AS col1
----
-2948

query I rowsort
SELECT - ( - 76 ) col2
----
76

query I rowsort
SELECT ALL + 13 * 41
----
533

query I rowsort
SELECT ALL ( + - 23 ) AS col0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4708
SELECT DISTINCT SUM( 5 ) col2
----
5

skipif mysql # not compatible
query I rowsort label-4708
SELECT DISTINCT SUM ( 5 ) col2
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4709
SELECT ALL CAST( NULL AS SIGNED ) - + 98 * 96 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4709
SELECT ALL CAST ( NULL AS INTEGER ) - + 98 * 96 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4710
SELECT - 67 DIV - 79
----
0

skipif mysql # not compatible
query I rowsort label-4710
SELECT - 67 / - 79
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4711
SELECT + 68 * - CAST( + COUNT( * ) AS SIGNED )
----
-68

skipif mysql # not compatible
query I rowsort label-4711
SELECT + 68 * - CAST ( + COUNT ( * ) AS INTEGER )
----
-68

query II rowsort
SELECT + 32 * 74 AS col2, + 92 AS col1
----
2368
92

query I rowsort
SELECT DISTINCT 27 * 64 + 65
----
1793

query I rowsort
SELECT ALL ( + + 57 ) AS col2
----
57

query II rowsort
SELECT - ( - 34 ) AS col2, 59
----
34
59

query II rowsort
SELECT + ( 76 ) AS col1, - 36
----
76
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4717
SELECT - COUNT( * ) * COUNT( * ) DIV - 10
----
0

skipif mysql # not compatible
query I rowsort label-4717
SELECT - COUNT ( * ) * COUNT ( * ) / - 10
----
0

query I rowsort
SELECT - + 15 col1
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-4719
SELECT ALL SUM( + 70 ) AS col2, - 87
----
70
-87

skipif mysql # not compatible
query II rowsort label-4719
SELECT ALL SUM ( + 70 ) AS col2, - 87
----
70
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4720
SELECT ALL + ( - CAST( NULL AS SIGNED ) ) * + + 89 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4720
SELECT ALL + ( - CAST ( NULL AS INTEGER ) ) * + + 89 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4721
SELECT - COUNT( * ), 96 AS col0
----
-1
96

skipif mysql # not compatible
query II rowsort label-4721
SELECT - COUNT ( * ), 96 AS col0
----
-1
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4722
SELECT ALL + COALESCE ( 14, CAST( + - 64 AS SIGNED ) ) * + 54 AS col2
----
756

skipif mysql # not compatible
query I rowsort label-4722
SELECT ALL + COALESCE ( 14, CAST ( + - 64 AS INTEGER ) ) * + 54 AS col2
----
756

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4723
SELECT CAST( NULL AS SIGNED ), 11 AS col0
----
NULL
11

skipif mysql # not compatible
query II rowsort label-4723
SELECT CAST ( NULL AS INTEGER ), 11 AS col0
----
NULL
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4724
SELECT + 63 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4724
SELECT + 63 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4725
SELECT 86 + + COUNT( * ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-4725
SELECT 86 + + COUNT ( * ) AS col0
----
87

query II rowsort
SELECT ALL 44, 51 AS col0
----
44
51

query I rowsort
SELECT ( - - 39 ) AS col0
----
39

query I rowsort
SELECT DISTINCT - + 76 col1
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4729
SELECT COUNT( DISTINCT + - 27 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4729
SELECT COUNT ( DISTINCT + - 27 ) AS col1
----
1

query I rowsort
SELECT ALL + 64 + + 81 AS col2
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-4731
SELECT SUM( - 86 )
----
-86

skipif mysql # not compatible
query I rowsort label-4731
SELECT SUM ( - 86 )
----
-86

query I rowsort
SELECT + 14 + 40 AS col1
----
54

query I rowsort
SELECT ALL 97 * - 38 AS col2
----
-3686

query I rowsort
SELECT ALL - 6 * - 70
----
420

query II rowsort
SELECT + 84 AS col1, ( + 78 )
----
84
78

onlyif mysql # DIV for integer division: 
query I rowsort label-4736
SELECT DISTINCT 14 DIV - 66 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4736
SELECT DISTINCT 14 / - 66 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4737
SELECT DISTINCT 78 DIV 14
----
5

skipif mysql # not compatible
query I rowsort label-4737
SELECT DISTINCT 78 / 14
----
5

query I rowsort
SELECT 99 * - - 69
----
6831

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4739
SELECT ALL + 95 DIV + - COUNT( * )
----
-95

skipif mysql # not compatible
query I rowsort label-4739
SELECT ALL + 95 / + - COUNT ( * )
----
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4740
SELECT DISTINCT ( + COUNT( * ) ) DIV + COUNT( * ) - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4740
SELECT DISTINCT ( + COUNT ( * ) ) / + COUNT ( * ) - COUNT ( * )
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4741
SELECT DISTINCT MIN( DISTINCT + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4741
SELECT DISTINCT MIN ( DISTINCT + CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT ALL - 47 * - 27 AS col2
----
1269

onlyif mysql # aggregate syntax: 
query I rowsort label-4743
SELECT + - MAX( + 8 ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-4743
SELECT + - MAX ( + 8 ) AS col0
----
-8

query I rowsort
SELECT DISTINCT 44 * 48
----
2112

onlyif mysql # aggregate syntax: 
query I rowsort label-4745
SELECT ALL + 36 - COUNT( * ) col1
----
35

skipif mysql # not compatible
query I rowsort label-4745
SELECT ALL + 36 - COUNT ( * ) col1
----
35

query I rowsort
SELECT 84 + + 76 col2
----
160

query I rowsort
SELECT 91 * - 81
----
-7371

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4748
SELECT 45 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4748
SELECT 45 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4749
SELECT ( + NULLIF ( + 12, 63 * CAST( NULLIF ( - COUNT( * ), + CAST( COUNT( * ) AS SIGNED ) * 28 ) AS SIGNED ) ) ) + - 71 col2
----
-59

skipif mysql # not compatible
query I rowsort label-4749
SELECT ( + NULLIF ( + 12, 63 * CAST ( NULLIF ( - COUNT ( * ), + CAST ( COUNT ( * ) AS INTEGER ) * 28 ) AS INTEGER ) ) ) + - 71 col2
----
-59

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4750
SELECT DISTINCT 89 + CAST( 12 AS SIGNED ) DIV 45 AS col1
----
89

skipif mysql # not compatible
query I rowsort label-4750
SELECT DISTINCT 89 + CAST ( 12 AS INTEGER ) / 45 AS col1
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4751
SELECT ALL - CAST( NULL AS SIGNED ) + - ( 82 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4751
SELECT ALL - CAST ( NULL AS INTEGER ) + - ( 82 )
----
NULL

query I rowsort
SELECT DISTINCT - ( 87 ) AS col0
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4753
SELECT DISTINCT - CAST( + 43 AS SIGNED ) AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-4753
SELECT DISTINCT - CAST ( + 43 AS INTEGER ) AS col1
----
-43

query I rowsort
SELECT 26 + 92 AS col1
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-4755
SELECT MAX( ALL 27 ) col0
----
27

skipif mysql # not compatible
query I rowsort label-4755
SELECT MAX ( ALL 27 ) col0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4756
SELECT ALL + COUNT( * ) * ( 80 )
----
80

skipif mysql # not compatible
query I rowsort label-4756
SELECT ALL + COUNT ( * ) * ( 80 )
----
80

query I rowsort
SELECT DISTINCT + 44 + + - 52
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4758
SELECT + COUNT( * ) + + 52 col0
----
53

skipif mysql # not compatible
query I rowsort label-4758
SELECT + COUNT ( * ) + + 52 col0
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-4759
SELECT ALL + 19 DIV - 88
----
0

skipif mysql # not compatible
query I rowsort label-4759
SELECT ALL + 19 / - 88
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4760
SELECT ALL - 47 + + COUNT( * )
----
-46

skipif mysql # not compatible
query I rowsort label-4760
SELECT ALL - 47 + + COUNT ( * )
----
-46

query I rowsort
SELECT - ( + ( - 4 ) )
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-4762
SELECT DISTINCT 50 AS col1, SUM( DISTINCT 34 ) col1
----
50
34

skipif mysql # not compatible
query II rowsort label-4762
SELECT DISTINCT 50 AS col1, SUM ( DISTINCT 34 ) col1
----
50
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4763
SELECT - 42 * + COUNT( * ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-4763
SELECT - 42 * + COUNT ( * ) AS col1
----
-42

query II rowsort
SELECT ALL 69 col1, 70 - 13 AS col1
----
69
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4765
SELECT + CAST( + 62 AS SIGNED )
----
62

skipif mysql # not compatible
query I rowsort label-4765
SELECT + CAST ( + 62 AS INTEGER )
----
62

query I rowsort
SELECT DISTINCT - - 67 AS col0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4767
SELECT DISTINCT + + COUNT( * ) + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-4767
SELECT DISTINCT + + COUNT ( * ) + + COUNT ( * )
----
2

query I rowsort
SELECT 29 - - 55 AS col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4769
SELECT DISTINCT + 66 + - COUNT( * ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-4769
SELECT DISTINCT + 66 + - COUNT ( * ) AS col0
----
65

query I rowsort
SELECT 79 * - 80 AS col0
----
-6320

onlyif mysql # aggregate syntax: 
query I rowsort label-4771
SELECT + COUNT( * ) * - MIN( DISTINCT - - 50 ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-4771
SELECT + COUNT ( * ) * - MIN ( DISTINCT - - 50 ) AS col0
----
-50

query I rowsort
SELECT + 6 + + 13 AS col0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4773
SELECT ALL COUNT( DISTINCT ( ( + + 39 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-4773
SELECT ALL COUNT ( DISTINCT ( ( + + 39 ) ) )
----
1

query I rowsort
SELECT DISTINCT NULLIF ( 40, + 25 )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4775
SELECT + ( - - COUNT( * ) ) - - + 91
----
92

skipif mysql # not compatible
query I rowsort label-4775
SELECT + ( - - COUNT ( * ) ) - - + 91
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4776
SELECT ALL + + SUM( + - 74 )
----
-74

skipif mysql # not compatible
query I rowsort label-4776
SELECT ALL + + SUM ( + - 74 )
----
-74

query I rowsort
SELECT + 4 * 23 AS col0
----
92

query I rowsort
SELECT + ( - 28 ) col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-4779
SELECT COUNT( * ) * + COUNT( + 81 ) + - - COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-4779
SELECT COUNT ( * ) * + COUNT ( + 81 ) + - - COUNT ( * ) AS col2
----
2

query I rowsort
SELECT + 96 * 54
----
5184

onlyif mysql # aggregate syntax: 
query I rowsort label-4781
SELECT ALL NULLIF ( - - 26, COUNT( * ) ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-4781
SELECT ALL NULLIF ( - - 26, COUNT ( * ) ) AS col1
----
26

query I rowsort
SELECT ALL ( 38 ) - - 25
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4783
SELECT - 59 * + COUNT( * ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-4783
SELECT - 59 * + COUNT ( * ) AS col0
----
-59

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4784
SELECT + CASE WHEN CAST( NULL AS DECIMAL ) IS NULL THEN NULL ELSE 55 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4784
SELECT + CASE WHEN CAST ( NULL AS REAL ) IS NULL THEN NULL ELSE 55 END AS col0
----
NULL

query I rowsort
SELECT DISTINCT + - 18 AS col0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-4786
SELECT SUM( - - 83 ) col1
----
83

skipif mysql # not compatible
query I rowsort label-4786
SELECT SUM ( - - 83 ) col1
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4787
SELECT ( - 91 ) DIV + COUNT( * ) AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-4787
SELECT ( - 91 ) / + COUNT ( * ) AS col0
----
-91

query I rowsort
SELECT ALL 7 * 55 col0
----
385

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4789
SELECT + 43 + + NULLIF ( - COUNT( * ), + + CAST( NULL AS SIGNED ) ) * 77
----
-34

skipif mysql # not compatible
query I rowsort label-4789
SELECT + 43 + + NULLIF ( - COUNT ( * ), + + CAST ( NULL AS INTEGER ) ) * 77
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4790
SELECT 88 - - + COUNT( + + 79 )
----
89

skipif mysql # not compatible
query I rowsort label-4790
SELECT 88 - - + COUNT ( + + 79 )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4791
SELECT ALL + SUM( + 61 ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-4791
SELECT ALL + SUM ( + 61 ) AS col2
----
61

query I rowsort
SELECT ALL - - NULLIF ( 72, - + 14 ) AS col1
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-4793
SELECT + - 71 DIV + 55
----
-1

skipif mysql # not compatible
query I rowsort label-4793
SELECT + - 71 / + 55
----
-1

query I rowsort
SELECT DISTINCT 44 * - 40
----
-1760

onlyif mysql # aggregate syntax: 
query I rowsort label-4795
SELECT - COUNT( * ) + 54 AS col1
----
53

skipif mysql # not compatible
query I rowsort label-4795
SELECT - COUNT ( * ) + 54 AS col1
----
53

query I rowsort
SELECT - 0 * - + 50
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4797
SELECT DISTINCT + SUM( DISTINCT - 24 )
----
-24

skipif mysql # not compatible
query I rowsort label-4797
SELECT DISTINCT + SUM ( DISTINCT - 24 )
----
-24

query I rowsort
SELECT + 68 * + 74
----
5032

onlyif mysql # aggregate syntax: 
query I rowsort label-4799
SELECT + + ( + - 66 ) + - COUNT( * ) AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-4799
SELECT + + ( + - 66 ) + - COUNT ( * ) AS col0
----
-67

query I rowsort
SELECT DISTINCT 24 * + 85 AS col2
----
2040

query I rowsort
SELECT + 23 - - + 0 * + 22
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4802
SELECT NULLIF ( + ( + COUNT( * ) ), - + CAST( NULL AS SIGNED ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4802
SELECT NULLIF ( + ( + COUNT ( * ) ), - + CAST ( NULL AS INTEGER ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4803
SELECT - MAX( ALL 60 )
----
-60

skipif mysql # not compatible
query I rowsort label-4803
SELECT - MAX ( ALL 60 )
----
-60

query I rowsort
SELECT - - ( + 24 ) + + - 60
----
-36

query I rowsort
SELECT - ( + - 81 ) col2
----
81

query I rowsort
SELECT ALL + - 49 + - 94 AS col2
----
-143

onlyif mysql # aggregate syntax: 
query I rowsort label-4807
SELECT 91 + + COUNT( * ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-4807
SELECT 91 + + COUNT ( * ) AS col1
----
92

query I rowsort
SELECT 71 col1
----
71

query I rowsort
SELECT 89 + + 1
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-4810
SELECT COUNT( * ) AS col2, 50
----
1
50

skipif mysql # not compatible
query II rowsort label-4810
SELECT COUNT ( * ) AS col2, 50
----
1
50

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4811
SELECT AVG ( + + CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4811
SELECT AVG ( + + CAST ( NULL AS REAL ) ) AS col1
----
NULL

query II rowsort
SELECT + 23, 8 AS col2
----
23
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4813
SELECT - - CAST( + 16 AS SIGNED )
----
16

skipif mysql # not compatible
query I rowsort label-4813
SELECT - - CAST ( + 16 AS INTEGER )
----
16

query I rowsort
SELECT ALL - 43 + NULLIF ( ( + 87 ), - 77 ) AS col1
----
44

query I rowsort
SELECT + 8 - - - 51
----
-43

query I rowsort
SELECT ALL + 52 * + 34 AS col0
----
1768

onlyif mysql # DIV for integer division: 
query I rowsort label-4817
SELECT + + 26 DIV + 1 AS col1
----
26

skipif mysql # not compatible
query I rowsort label-4817
SELECT + + 26 / + 1 AS col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4818
SELECT + 31 * - COUNT( * ) * - 44 * 74 AS col2
----
100936

skipif mysql # not compatible
query I rowsort label-4818
SELECT + 31 * - COUNT ( * ) * - 44 * 74 AS col2
----
100936

onlyif mysql # aggregate syntax: 
query I rowsort label-4819
SELECT ALL MIN( + 6 ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-4819
SELECT ALL MIN ( + 6 ) AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4820
SELECT DISTINCT + MIN( DISTINCT + 70 )
----
70

skipif mysql # not compatible
query I rowsort label-4820
SELECT DISTINCT + MIN ( DISTINCT + 70 )
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4821
SELECT + CAST( ( + + AVG ( + - 43 ) ) AS SIGNED ) AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-4821
SELECT + CAST ( ( + + AVG ( + - 43 ) ) AS INTEGER ) AS col2
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-4822
SELECT DISTINCT COUNT( * ) * + 96, - 35 AS col2
----
96
-35

skipif mysql # not compatible
query II rowsort label-4822
SELECT DISTINCT COUNT ( * ) * + 96, - 35 AS col2
----
96
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4823
SELECT DISTINCT + COUNT( * ) DIV + CAST( - 65 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-4823
SELECT DISTINCT + COUNT ( * ) / + CAST ( - 65 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4824
SELECT + + MAX( DISTINCT + ( - - 86 ) ) - + - COUNT( * ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-4824
SELECT + + MAX ( DISTINCT + ( - - 86 ) ) - + - COUNT ( * ) AS col1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4825
SELECT + COUNT( * ) * SUM( 96 ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-4825
SELECT + COUNT ( * ) * SUM ( 96 ) AS col1
----
96

query I rowsort
SELECT ALL - 92 + + - 27
----
-119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4827
SELECT ALL + CAST( NULL AS SIGNED ) * + + MAX( 2 ), 91 col0
----
NULL
91

skipif mysql # not compatible
query II rowsort label-4827
SELECT ALL + CAST ( NULL AS INTEGER ) * + + MAX ( 2 ), 91 col0
----
NULL
91

query I rowsort
SELECT DISTINCT + - ( + 6 ) col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4829
SELECT DISTINCT MIN( DISTINCT + 2 ) * - 52 AS col2
----
-104

skipif mysql # not compatible
query I rowsort label-4829
SELECT DISTINCT MIN ( DISTINCT + 2 ) * - 52 AS col2
----
-104

query I rowsort
SELECT - ( - 73 ) * 46
----
3358

onlyif mysql # aggregate syntax: 
query I rowsort label-4831
SELECT ALL COUNT( * ) * + + 12
----
12

skipif mysql # not compatible
query I rowsort label-4831
SELECT ALL COUNT ( * ) * + + 12
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4832
SELECT COUNT( * ) DIV + 5
----
0

skipif mysql # not compatible
query I rowsort label-4832
SELECT COUNT ( * ) / + 5
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4833
SELECT 22 * CAST( 66 AS SIGNED ) AS col2
----
1452

skipif mysql # not compatible
query I rowsort label-4833
SELECT 22 * CAST ( 66 AS INTEGER ) AS col2
----
1452

query I rowsort
SELECT - 27 * + - ( + 24 ) col1
----
648

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4835
SELECT + CAST( 98 AS SIGNED )
----
98

skipif mysql # not compatible
query I rowsort label-4835
SELECT + CAST ( 98 AS INTEGER )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4836
SELECT COUNT( * ) * + ( + ( - + 66 ) ) + + 5 col0
----
-61

skipif mysql # not compatible
query I rowsort label-4836
SELECT COUNT ( * ) * + ( + ( - + 66 ) ) + + 5 col0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-4837
SELECT + COUNT( * ) + - - 70 AS col1
----
71

skipif mysql # not compatible
query I rowsort label-4837
SELECT + COUNT ( * ) + - - 70 AS col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4838
SELECT + + ( - + 11 ) + + + COUNT( * ) + + - COUNT( * )
----
-11

skipif mysql # not compatible
query I rowsort label-4838
SELECT + + ( - + 11 ) + + + COUNT ( * ) + + - COUNT ( * )
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4839
SELECT DISTINCT - CAST( 11 AS SIGNED )
----
-11

skipif mysql # not compatible
query I rowsort label-4839
SELECT DISTINCT - CAST ( 11 AS INTEGER )
----
-11

query II rowsort
SELECT DISTINCT 21, 64 * - 2 AS col1
----
21
-128

onlyif mysql # aggregate syntax: 
query I rowsort label-4841
SELECT ALL - COUNT( * ) * + - 38 + + 84 AS col1
----
122

skipif mysql # not compatible
query I rowsort label-4841
SELECT ALL - COUNT ( * ) * + - 38 + + 84 AS col1
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-4842
SELECT DISTINCT + COUNT( + 5 )
----
1

skipif mysql # not compatible
query I rowsort label-4842
SELECT DISTINCT + COUNT ( + 5 )
----
1

query I rowsort
SELECT - - ( - 5 ) AS col0
----
-5

query I rowsort
SELECT ALL + 53 * 30
----
1590

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4845
SELECT DISTINCT - COUNT( * ) DIV + 65
----
0

skipif mysql # not compatible
query I rowsort label-4845
SELECT DISTINCT - COUNT ( * ) / + 65
----
0

query I rowsort
SELECT + 9 col0
----
9

query I rowsort
SELECT ALL 64 + 96 AS col2
----
160

query I rowsort
SELECT + + 63 col1
----
63

query I rowsort
SELECT + - 36 + - + 98 AS col1
----
-134

onlyif mysql # aggregate syntax: 
query I rowsort label-4850
SELECT - 59 + - COUNT( * ) AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-4850
SELECT - 59 + - COUNT ( * ) AS col2
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-4851
SELECT - - MIN( DISTINCT + 99 ) * - COUNT( * ) * + 76
----
-7524

skipif mysql # not compatible
query I rowsort label-4851
SELECT - - MIN ( DISTINCT + 99 ) * - COUNT ( * ) * + 76
----
-7524

query I rowsort
SELECT DISTINCT + NULLIF ( - - 13, + + 74 )
----
13

query I rowsort
SELECT + 7 * + 50 AS col0
----
350

onlyif mysql # aggregate syntax: 
query I rowsort label-4854
SELECT + COUNT( * ) * - + 6 * COUNT( * ) col2
----
-6

skipif mysql # not compatible
query I rowsort label-4854
SELECT + COUNT ( * ) * - + 6 * COUNT ( * ) col2
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4855
SELECT + CAST( + MIN( ( + 29 ) ) AS SIGNED ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-4855
SELECT + CAST ( + MIN ( ( + 29 ) ) AS INTEGER ) AS col2
----
29

query I rowsort
SELECT DISTINCT + 68 * + 97 AS col2
----
6596

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4857
SELECT - NULLIF ( - 42, - CAST( NULL AS SIGNED ) ) DIV + 20 * COUNT( * ) col1
----
2

skipif mysql # not compatible
query I rowsort label-4857
SELECT - NULLIF ( - 42, - CAST ( NULL AS INTEGER ) ) / + 20 * COUNT ( * ) col1
----
2

query I rowsort
SELECT - 83 * 9 AS col0
----
-747

onlyif mysql # aggregate syntax: 
query I rowsort label-4859
SELECT ( - ( COUNT( * ) ) ) * + 92
----
-92

skipif mysql # not compatible
query I rowsort label-4859
SELECT ( - ( COUNT ( * ) ) ) * + 92
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4860
SELECT + + COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4860
SELECT + + COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4861
SELECT ALL - + COUNT( DISTINCT 83 ) AS col0, - 31 + + ( - ( - 95 ) ) col2
----
-1
64

skipif mysql # not compatible
query II rowsort label-4861
SELECT ALL - + COUNT ( DISTINCT 83 ) AS col0, - 31 + + ( - ( - 95 ) ) col2
----
-1
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4862
SELECT + 33 DIV + COUNT( * ), + COUNT( * ) AS col1
----
33
1

skipif mysql # not compatible
query II rowsort label-4862
SELECT + 33 / + COUNT ( * ), + COUNT ( * ) AS col1
----
33
1

query II rowsort
SELECT - 1 col1, - 10 AS col2
----
-1
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-4864
SELECT DISTINCT MAX( + + 7 ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-4864
SELECT DISTINCT MAX ( + + 7 ) AS col2
----
7

query I rowsort
SELECT + + 38 + + - 0 AS col0
----
38

query II rowsort
SELECT + 60, - 33 AS col0
----
60
-33

query I rowsort
SELECT ( - + 31 )
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4868
SELECT ALL CAST( - - 64 AS SIGNED ), + 18 AS col0
----
64
18

skipif mysql # not compatible
query II rowsort label-4868
SELECT ALL CAST ( - - 64 AS INTEGER ), + 18 AS col0
----
64
18

query I rowsort
SELECT NULLIF ( - + 90, + 17 ) AS col2
----
-90

query I rowsort
SELECT ALL 82 * 78 AS col2
----
6396

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4871
SELECT - CAST( - 38 AS SIGNED ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-4871
SELECT - CAST ( - 38 AS INTEGER ) AS col0
----
38

query II rowsort
SELECT ALL - 6, - 60 AS col2
----
-6
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-4873
SELECT ALL + 35 DIV + + 79
----
0

skipif mysql # not compatible
query I rowsort label-4873
SELECT ALL + 35 / + + 79
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4874
SELECT ALL 41 * COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-4874
SELECT ALL 41 * COUNT ( * )
----
41

query I rowsort
SELECT COALESCE ( + + 68, + - 25 ) * - 25 AS col1
----
-1700

onlyif mysql # aggregate syntax: 
query I rowsort label-4876
SELECT COUNT( * ) + + 5 * - 73
----
-364

skipif mysql # not compatible
query I rowsort label-4876
SELECT COUNT ( * ) + + 5 * - 73
----
-364

query I rowsort
SELECT 51 * 8
----
408

onlyif mysql # aggregate syntax: 
query I rowsort label-4878
SELECT ALL - - MIN( ALL 21 ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-4878
SELECT ALL - - MIN ( ALL 21 ) AS col1
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-4879
SELECT DISTINCT - 87 + 60 DIV 18
----
-84

skipif mysql # not compatible
query I rowsort label-4879
SELECT DISTINCT - 87 + 60 / 18
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-4880
SELECT ALL SUM( 73 )
----
73

skipif mysql # not compatible
query I rowsort label-4880
SELECT ALL SUM ( 73 )
----
73

query I rowsort
SELECT - COALESCE ( + 68, 16 )
----
-68

query II rowsort
SELECT - + 9 * 60 col1, 32
----
-540
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4883
SELECT DISTINCT 10 * 71 + + ( - 25 ) * + - MAX( ALL + 73 ) + + COUNT( * ) - COUNT( * ) DIV + 28 AS col0
----
2536

skipif mysql # not compatible
query I rowsort label-4883
SELECT DISTINCT 10 * 71 + + ( - 25 ) * + - MAX ( ALL + 73 ) + + COUNT ( * ) - COUNT ( * ) / + 28 AS col0
----
2536

onlyif mysql # aggregate syntax: 
query I rowsort label-4884
SELECT ALL COUNT( * ) * - 26
----
-26

skipif mysql # not compatible
query I rowsort label-4884
SELECT ALL COUNT ( * ) * - 26
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-4885
SELECT - 84 DIV 89
----
0

skipif mysql # not compatible
query I rowsort label-4885
SELECT - 84 / 89
----
0

query I rowsort
SELECT + 95 * - 60 AS col0
----
-5700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4887
SELECT + CAST( + 4 AS SIGNED )
----
4

skipif mysql # not compatible
query I rowsort label-4887
SELECT + CAST ( + 4 AS INTEGER )
----
4

query I rowsort
SELECT - 94 * 40 AS col1
----
-3760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4889
SELECT + CAST( + 49 AS SIGNED )
----
49

skipif mysql # not compatible
query I rowsort label-4889
SELECT + CAST ( + 49 AS INTEGER )
----
49

query I rowsort
SELECT - - ( 69 )
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4891
SELECT - - COUNT( * ) * + - 49 DIV + 5 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-4891
SELECT - - COUNT ( * ) * + - 49 / + 5 AS col0
----
-9

query I rowsort
SELECT 92 + 94
----
186

query I rowsort
SELECT - + 10 AS col0
----
-10

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4894
SELECT 74 DIV - CAST( - 54 AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4894
SELECT 74 / - CAST ( - 54 AS INTEGER ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4895
SELECT 11 * COUNT( * ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-4895
SELECT 11 * COUNT ( * ) AS col1
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4896
SELECT DISTINCT - CAST( - 61 AS SIGNED ) col0
----
61

skipif mysql # not compatible
query I rowsort label-4896
SELECT DISTINCT - CAST ( - 61 AS INTEGER ) col0
----
61

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4897
SELECT 30 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4897
SELECT 30 * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4898
SELECT 63 + COUNT( * )
----
64

skipif mysql # not compatible
query I rowsort label-4898
SELECT 63 + COUNT ( * )
----
64

query I rowsort
SELECT + 42 * - 82 AS col2
----
-3444

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4900
SELECT ALL - - ( - CAST( + 34 AS SIGNED ) ) + - 64 AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-4900
SELECT ALL - - ( - CAST ( + 34 AS INTEGER ) ) + - 64 AS col2
----
-98

query I rowsort
SELECT + + 70 + - 16 AS col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4902
SELECT ( - ( COUNT( DISTINCT + 53 ) ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4902
SELECT ( - ( COUNT ( DISTINCT + 53 ) ) ) AS col1
----
-1

query I rowsort
SELECT DISTINCT + 70 * + - 26 AS col1
----
-1820

onlyif mysql # aggregate syntax: 
query I rowsort label-4904
SELECT ALL + + COUNT( ALL - 42 )
----
1

skipif mysql # not compatible
query I rowsort label-4904
SELECT ALL + + COUNT ( ALL - 42 )
----
1

query I rowsort
SELECT DISTINCT + ( + + 84 ) AS col2
----
84

query I rowsort
SELECT + 35 + + 15
----
50

query I rowsort
SELECT + ( + 33 )
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4908
SELECT - ( - + CAST( NULL AS SIGNED ) ) AS col2, 46
----
NULL
46

skipif mysql # not compatible
query II rowsort label-4908
SELECT - ( - + CAST ( NULL AS INTEGER ) ) AS col2, 46
----
NULL
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4909
SELECT ALL + MIN( DISTINCT - 7 )
----
-7

skipif mysql # not compatible
query I rowsort label-4909
SELECT ALL + MIN ( DISTINCT - 7 )
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-4910
SELECT DISTINCT 99 DIV - + 46 + - 60
----
-62

skipif mysql # not compatible
query I rowsort label-4910
SELECT DISTINCT 99 / - + 46 + - 60
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-4911
SELECT + ( - COUNT( * ) ) + 33
----
32

skipif mysql # not compatible
query I rowsort label-4911
SELECT + ( - COUNT ( * ) ) + 33
----
32

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4912
SELECT DISTINCT - COUNT( * ) * + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4912
SELECT DISTINCT - COUNT ( * ) * + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4913
SELECT COUNT( * ) * ( + - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4913
SELECT COUNT ( * ) * ( + - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 71 - 11 * - 99 AS col1
----
1160

query I rowsort
SELECT + 19 + - 24 AS col2
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-4916
SELECT DISTINCT 51 DIV - 95 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4916
SELECT DISTINCT 51 / - 95 AS col1
----
0

query II rowsort
SELECT + - 37 * - 32 AS col1, 81
----
1184
81

query I rowsort
SELECT ALL 73 * - 24 - - - 11
----
-1763

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4919
SELECT + - CAST( + 17 AS SIGNED ) + - - 53
----
36

skipif mysql # not compatible
query I rowsort label-4919
SELECT + - CAST ( + 17 AS INTEGER ) + - - 53
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4920
SELECT DISTINCT COUNT( * ) DIV + COUNT( * ) col1
----
1

skipif mysql # not compatible
query I rowsort label-4920
SELECT DISTINCT COUNT ( * ) / + COUNT ( * ) col1
----
1

query I rowsort
SELECT DISTINCT 36 + - 37
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4922
SELECT MAX( 73 )
----
73

skipif mysql # not compatible
query I rowsort label-4922
SELECT MAX ( 73 )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4923
SELECT ALL COUNT( * ) + - + 83 AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-4923
SELECT ALL COUNT ( * ) + - + 83 AS col1
----
-82

query I rowsort
SELECT ALL - 85 - + - 16
----
-69

query I rowsort
SELECT + 95 * - - 16
----
1520

query I rowsort
SELECT + ( 1 ) AS col0
----
1

query I rowsort
SELECT + NULLIF ( + + 0, + 19 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4928
SELECT ALL + COUNT( * ) * 70
----
70

skipif mysql # not compatible
query I rowsort label-4928
SELECT ALL + COUNT ( * ) * 70
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4929
SELECT DISTINCT - + NULLIF ( - + CAST( NULL AS SIGNED ), - COUNT( * ) ) / + 49
----
NULL

skipif mysql # not compatible
query I rowsort label-4929
SELECT DISTINCT - + NULLIF ( - + CAST ( NULL AS INTEGER ), - COUNT ( * ) ) / + 49
----
NULL

query I rowsort
SELECT - + ( + + 94 ) AS col2
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-4931
SELECT 99 * - 74 + + COUNT( * )
----
-7325

skipif mysql # not compatible
query I rowsort label-4931
SELECT 99 * - 74 + + COUNT ( * )
----
-7325

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4932
SELECT + COUNT( * ) DIV - 4 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4932
SELECT + COUNT ( * ) / - 4 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4933
SELECT DISTINCT 77 * + + COUNT( * )
----
77

skipif mysql # not compatible
query I rowsort label-4933
SELECT DISTINCT 77 * + + COUNT ( * )
----
77

query I rowsort
SELECT ALL - ( - 35 ) AS col1
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-4935
SELECT COUNT( * ) AS col0, - 27
----
1
-27

skipif mysql # not compatible
query II rowsort label-4935
SELECT COUNT ( * ) AS col0, - 27
----
1
-27

query I rowsort
SELECT ALL 1 + + 36
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-4937
SELECT + 54 DIV + - 93
----
0

skipif mysql # not compatible
query I rowsort label-4937
SELECT + 54 / + - 93
----
0

query I rowsort
SELECT - - 47 AS col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4939
SELECT DISTINCT + COUNT( * ) * - + MAX( 84 )
----
-84

skipif mysql # not compatible
query I rowsort label-4939
SELECT DISTINCT + COUNT ( * ) * - + MAX ( 84 )
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-4940
SELECT ALL SUM( DISTINCT + 34 ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-4940
SELECT ALL SUM ( DISTINCT + 34 ) AS col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4941
SELECT + 30 + - - COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-4941
SELECT + 30 + - - COUNT ( * )
----
31

query I rowsort
SELECT NULLIF ( + 38, - 34 ) * + - 44 AS col2
----
-1672

query II rowsort
SELECT ALL - 38 AS col2, 23
----
-38
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4944
SELECT + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4944
SELECT + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4945
SELECT DISTINCT - 74 + 6 + - CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4945
SELECT DISTINCT - 74 + 6 + - CAST ( NULL AS REAL ) col2
----
NULL

query I rowsort
SELECT ALL - 81 - - 65
----
-16

query I rowsort
SELECT DISTINCT 66 * - + 96
----
-6336

onlyif mysql # aggregate syntax: 
query I rowsort label-4948
SELECT DISTINCT + COUNT( * ) * COUNT( * ) col0
----
1

skipif mysql # not compatible
query I rowsort label-4948
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4949
SELECT COUNT( * ) col1, 43
----
1
43

skipif mysql # not compatible
query II rowsort label-4949
SELECT COUNT ( * ) col1, 43
----
1
43

query I rowsort
SELECT ALL + 93 * - 99 col2
----
-9207

onlyif mysql # aggregate syntax: 
query I rowsort label-4951
SELECT ALL COUNT( * ) * - 44 + + ( + + 36 ) + ( - 17 ) col1
----
-25

skipif mysql # not compatible
query I rowsort label-4951
SELECT ALL COUNT ( * ) * - 44 + + ( + + 36 ) + ( - 17 ) col1
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4952
SELECT ALL 36 + - COUNT( * )
----
35

skipif mysql # not compatible
query I rowsort label-4952
SELECT ALL 36 + - COUNT ( * )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4953
SELECT ALL MAX( ALL - - 16 ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-4953
SELECT ALL MAX ( ALL - - 16 ) AS col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4954
SELECT + ( COUNT( * ) ) + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4954
SELECT + ( COUNT ( * ) ) + - COUNT ( * )
----
0

query I rowsort
SELECT ( + - ( 51 ) ) AS col1
----
-51

query I rowsort
SELECT ALL + + ( - + 78 ) AS col2
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4957
SELECT ALL + CAST( - - 17 AS SIGNED )
----
17

skipif mysql # not compatible
query I rowsort label-4957
SELECT ALL + CAST ( - - 17 AS INTEGER )
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-4958
SELECT 60, - COUNT( + 14 ) AS col0
----
60
-1

skipif mysql # not compatible
query II rowsort label-4958
SELECT 60, - COUNT ( + 14 ) AS col0
----
60
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4959
SELECT 9 DIV + ( COUNT( * ) )
----
9

skipif mysql # not compatible
query I rowsort label-4959
SELECT 9 / + ( COUNT ( * ) )
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4960
SELECT DISTINCT 94 + + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4960
SELECT DISTINCT 94 + + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4961
SELECT DISTINCT + 73 * - 21 * COUNT( * ) col1
----
-1533

skipif mysql # not compatible
query I rowsort label-4961
SELECT DISTINCT + 73 * - 21 * COUNT ( * ) col1
----
-1533

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4962
SELECT + MIN( + 63 ) * + MIN( - + 0 ) + + CAST( + + 10 AS SIGNED ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-4962
SELECT + MIN ( + 63 ) * + MIN ( - + 0 ) + + CAST ( + + 10 AS INTEGER ) AS col0
----
10

query I rowsort
SELECT DISTINCT - 51 + - 75 AS col2
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-4964
SELECT ALL MAX( DISTINCT + 81 ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-4964
SELECT ALL MAX ( DISTINCT + 81 ) AS col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4965
SELECT - MIN( 68 ) AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-4965
SELECT - MIN ( 68 ) AS col1
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4966
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-4966
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 89
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4967
SELECT + MIN( + 45 )
----
45

skipif mysql # not compatible
query I rowsort label-4967
SELECT + MIN ( + 45 )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4968
SELECT DISTINCT - COUNT( * ) * 3
----
-3

skipif mysql # not compatible
query I rowsort label-4968
SELECT DISTINCT - COUNT ( * ) * 3
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4969
SELECT - MIN( 95 ) + - 1
----
-96

skipif mysql # not compatible
query I rowsort label-4969
SELECT - MIN ( 95 ) + - 1
----
-96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4970
SELECT DISTINCT - CAST( NULL AS DECIMAL ) / 42 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4970
SELECT DISTINCT - CAST ( NULL AS REAL ) / 42 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4971
SELECT - CAST( + 27 AS SIGNED )
----
-27

skipif mysql # not compatible
query I rowsort label-4971
SELECT - CAST ( + 27 AS INTEGER )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-4972
SELECT ALL - + 24 + COUNT( ALL + 72 ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-4972
SELECT ALL - + 24 + COUNT ( ALL + 72 ) AS col2
----
-23

query I rowsort
SELECT - 22 * - 20
----
440

query I rowsort
SELECT + + 9 AS col1
----
9

query I rowsort
SELECT + + ( - 13 ) AS col0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-4976
SELECT ( COUNT( + ( - 2 ) ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4976
SELECT ( COUNT ( + ( - 2 ) ) ) AS col1
----
1

query I rowsort
SELECT ( NULLIF ( - 18, + 5 + 91 ) )
----
-18

query I rowsort
SELECT DISTINCT ( + + 15 )
----
15

query I rowsort
SELECT ALL ( + ( - 83 ) ) AS col2
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-4980
SELECT 39 - - - COUNT( * ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-4980
SELECT 39 - - - COUNT ( * ) AS col2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4981
SELECT ALL - ( - COUNT( * ) ) * - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-4981
SELECT ALL - ( - COUNT ( * ) ) * - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4982
SELECT ALL - + COUNT( * ) * 88 AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-4982
SELECT ALL - + COUNT ( * ) * 88 AS col1
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4983
SELECT COUNT( * ) + 12 + COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-4983
SELECT COUNT ( * ) + 12 + COUNT ( * )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4984
SELECT COUNT( * ) + + + 18 AS col0
----
19

skipif mysql # not compatible
query I rowsort label-4984
SELECT COUNT ( * ) + + + 18 AS col0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4985
SELECT ALL 76 * - COUNT( * ) AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-4985
SELECT ALL 76 * - COUNT ( * ) AS col0
----
-76

query I rowsort
SELECT 18 * + - ( + - 5 )
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4987
SELECT CAST( NULL AS SIGNED ) + + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-4987
SELECT CAST ( NULL AS INTEGER ) + + 52
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4988
SELECT - 68 * 30 DIV - 8 AS col0
----
255

skipif mysql # not compatible
query I rowsort label-4988
SELECT - 68 * 30 / - 8 AS col0
----
255

onlyif mysql # aggregate syntax: 
query I rowsort label-4989
SELECT DISTINCT - COUNT( 15 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4989
SELECT DISTINCT - COUNT ( 15 ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4990
SELECT ALL CAST( - + COUNT( * ) AS SIGNED ) + - 46 * + ( 6 ) + COUNT( * )
----
-276

skipif mysql # not compatible
query I rowsort label-4990
SELECT ALL CAST ( - + COUNT ( * ) AS INTEGER ) + - 46 * + ( 6 ) + COUNT ( * )
----
-276

onlyif mysql # aggregate syntax: 
query I rowsort label-4991
SELECT COUNT( * ) - ( + 76 )
----
-75

skipif mysql # not compatible
query I rowsort label-4991
SELECT COUNT ( * ) - ( + 76 )
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4992
SELECT ALL - ( - - ( + COUNT( * ) ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4992
SELECT ALL - ( - - ( + COUNT ( * ) ) ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4993
SELECT CAST( - 88 AS SIGNED ) AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-4993
SELECT CAST ( - 88 AS INTEGER ) AS col0
----
-88

onlyif mysql # aggregate syntax: 
query II rowsort label-4994
SELECT - 53 + + COUNT( * ) AS col0, ( 4 ) col0
----
-52
4

skipif mysql # not compatible
query II rowsort label-4994
SELECT - 53 + + COUNT ( * ) AS col0, ( 4 ) col0
----
-52
4

onlyif mysql # DIV for integer division: 
query I rowsort label-4995
SELECT DISTINCT 13 DIV + - 64 col2
----
0

skipif mysql # not compatible
query I rowsort label-4995
SELECT DISTINCT 13 / + - 64 col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4996
SELECT + - 1 DIV - COALESCE ( + COUNT( * ), - 37 )
----
1

skipif mysql # not compatible
query I rowsort label-4996
SELECT + - 1 / - COALESCE ( + COUNT ( * ), - 37 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4997
SELECT DISTINCT 12 * - MAX( ( + 58 ) ) AS col1
----
-696

skipif mysql # not compatible
query I rowsort label-4997
SELECT DISTINCT 12 * - MAX ( ( + 58 ) ) AS col1
----
-696

query I rowsort
SELECT ( + - 78 ) AS col2
----
-78

query I rowsort
SELECT + ( - 85 ) + - 24
----
-109

query I rowsort
SELECT ( + 22 ) AS col2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5001
SELECT DISTINCT + SUM( ALL 79 )
----
79

skipif mysql # not compatible
query I rowsort label-5001
SELECT DISTINCT + SUM ( ALL 79 )
----
79

query I rowsort
SELECT 61 * 26 + + 54 + - 35 + 53 * + 77
----
5686

query I rowsort
SELECT ALL ( - - 71 )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5004
SELECT - MIN( DISTINCT - 42 )
----
42

skipif mysql # not compatible
query I rowsort label-5004
SELECT - MIN ( DISTINCT - 42 )
----
42

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5005
SELECT ALL CAST( NULL AS DECIMAL ) * + + MIN( ALL 77 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5005
SELECT ALL CAST ( NULL AS REAL ) * + + MIN ( ALL 77 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5006
SELECT ALL - 97 AS col2, - COUNT( * ) AS col0
----
-97
-1

skipif mysql # not compatible
query II rowsort label-5006
SELECT ALL - 97 AS col2, - COUNT ( * ) AS col0
----
-97
-1

query I rowsort
SELECT - ( - + 29 ) AS col2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5008
SELECT + COUNT( * ) + - 25 col1
----
-24

skipif mysql # not compatible
query I rowsort label-5008
SELECT + COUNT ( * ) + - 25 col1
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-5009
SELECT ALL - 73 DIV - - 80 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5009
SELECT ALL - 73 / - - 80 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5010
SELECT - COUNT( ALL + 64 ) + + - 53 * + COUNT( * ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-5010
SELECT - COUNT ( ALL + 64 ) + + - 53 * + COUNT ( * ) AS col2
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5011
SELECT 42 * - CAST( + + COUNT( * ) AS SIGNED ) * + - 98 col2
----
4116

skipif mysql # not compatible
query I rowsort label-5011
SELECT 42 * - CAST ( + + COUNT ( * ) AS INTEGER ) * + - 98 col2
----
4116

query I rowsort
SELECT ALL - 73 + - 32
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-5013
SELECT ALL COUNT( ALL 32 )
----
1

skipif mysql # not compatible
query I rowsort label-5013
SELECT ALL COUNT ( ALL 32 )
----
1

query I rowsort
SELECT - 10 - + 63
----
-73

query I rowsort
SELECT ALL + ( + 68 )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5016
SELECT + 96 * - SUM( - 36 ) + + COUNT( * )
----
3457

skipif mysql # not compatible
query I rowsort label-5016
SELECT + 96 * - SUM ( - 36 ) + + COUNT ( * )
----
3457

onlyif mysql # DIV for integer division: 
query I rowsort label-5017
SELECT - - 67 DIV - 45
----
-1

skipif mysql # not compatible
query I rowsort label-5017
SELECT - - 67 / - 45
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5018
SELECT DISTINCT ( - ( + - COUNT( * ) ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5018
SELECT DISTINCT ( - ( + - COUNT ( * ) ) ) AS col2
----
1

query I rowsort
SELECT ALL ( - ( 77 ) ) col2
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5020
SELECT - CAST( - - COUNT( * ) AS SIGNED ) DIV - 36 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5020
SELECT - CAST ( - - COUNT ( * ) AS INTEGER ) / - 36 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5021
SELECT DISTINCT + COUNT( * ) * 11 DIV + 14
----
0

skipif mysql # not compatible
query I rowsort label-5021
SELECT DISTINCT + COUNT ( * ) * 11 / + 14
----
0

query I rowsort
SELECT + - 24 col1
----
-24

query I rowsort
SELECT ALL - + ( 99 )
----
-99

query I rowsort
SELECT DISTINCT + + 90 * + + 34 col1
----
3060

query II rowsort
SELECT + 62 AS col1, + 89
----
62
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5026
SELECT ALL CAST( NULL AS SIGNED ) AS col0, SUM( + 45 ) AS col2
----
NULL
45

skipif mysql # not compatible
query II rowsort label-5026
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, SUM ( + 45 ) AS col2
----
NULL
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5027
SELECT ALL + - MIN( ALL - 41 )
----
41

skipif mysql # not compatible
query I rowsort label-5027
SELECT ALL + - MIN ( ALL - 41 )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5028
SELECT + COUNT( * ) - + - 41
----
42

skipif mysql # not compatible
query I rowsort label-5028
SELECT + COUNT ( * ) - + - 41
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5029
SELECT COUNT( DISTINCT - - 75 )
----
1

skipif mysql # not compatible
query I rowsort label-5029
SELECT COUNT ( DISTINCT - - 75 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5030
SELECT - CAST( NULL AS SIGNED ) + - + MIN( 28 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5030
SELECT - CAST ( NULL AS INTEGER ) + - + MIN ( 28 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5031
SELECT + SUM( DISTINCT 70 ) * + 66 * - ( 94 )
----
-434280

skipif mysql # not compatible
query I rowsort label-5031
SELECT + SUM ( DISTINCT 70 ) * + 66 * - ( 94 )
----
-434280

onlyif mysql # aggregate syntax: 
query I rowsort label-5032
SELECT + COUNT( * ) * 15 - 85 AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-5032
SELECT + COUNT ( * ) * 15 - 85 AS col1
----
-70

query I rowsort
SELECT DISTINCT + 33 * + + 73
----
2409

onlyif mysql # aggregate syntax: 
query II rowsort label-5034
SELECT ALL + COUNT( * ) AS col0, 75
----
1
75

skipif mysql # not compatible
query II rowsort label-5034
SELECT ALL + COUNT ( * ) AS col0, 75
----
1
75

query I rowsort
SELECT ( - + 50 )
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-5036
SELECT ALL + 6, - COUNT( * ) AS col0
----
6
-1

skipif mysql # not compatible
query II rowsort label-5036
SELECT ALL + 6, - COUNT ( * ) AS col0
----
6
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5037
SELECT DISTINCT + COALESCE ( + - COUNT( * ), COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5037
SELECT DISTINCT + COALESCE ( + - COUNT ( * ), COUNT ( * ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5038
SELECT DISTINCT COUNT( * ) * - + 70
----
-70

skipif mysql # not compatible
query I rowsort label-5038
SELECT DISTINCT COUNT ( * ) * - + 70
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5039
SELECT + CAST( - - 22 AS SIGNED )
----
22

skipif mysql # not compatible
query I rowsort label-5039
SELECT + CAST ( - - 22 AS INTEGER )
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5040
SELECT DISTINCT + - 66 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5040
SELECT DISTINCT + - 66 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5041
SELECT ALL - ( ( + CAST( NULL AS SIGNED ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5041
SELECT ALL - ( ( + CAST ( NULL AS INTEGER ) ) ) AS col1
----
NULL

query I rowsort
SELECT ALL + 4 * - - 61 AS col1
----
244

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5043
SELECT DISTINCT + 95 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5043
SELECT DISTINCT + 95 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5044
SELECT CAST( NULL AS DECIMAL ) + + 6 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5044
SELECT CAST ( NULL AS REAL ) + + 6 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - + 17 - + 33 AS col2
----
-50

query I rowsort
SELECT - 75 + 83 AS col0
----
8

query I rowsort
SELECT DISTINCT - 19 + 80
----
61

query I rowsort
SELECT DISTINCT + - 40 col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-5049
SELECT ALL MIN( DISTINCT - 1 ) * + - 1
----
1

skipif mysql # not compatible
query I rowsort label-5049
SELECT ALL MIN ( DISTINCT - 1 ) * + - 1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5050
SELECT MIN( ALL + 27 )
----
27

skipif mysql # not compatible
query I rowsort label-5050
SELECT MIN ( ALL + 27 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5051
SELECT - ( + - ( SUM( DISTINCT + 24 ) ) )
----
24

skipif mysql # not compatible
query I rowsort label-5051
SELECT - ( + - ( SUM ( DISTINCT + 24 ) ) )
----
24

query I rowsort
SELECT ALL ( - ( - 44 ) )
----
44

query I rowsort
SELECT + ( - + 42 )
----
-42

query I rowsort
SELECT + ( + 22 ) AS col2
----
22

query I rowsort
SELECT 15 + + 55 AS col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5056
SELECT ALL NULLIF ( - COUNT( * ), - 51 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5056
SELECT ALL NULLIF ( - COUNT ( * ), - 51 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5057
SELECT ALL - MIN( + + 48 ) AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-5057
SELECT ALL - MIN ( + + 48 ) AS col1
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5058
SELECT ALL + COUNT( * ) + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5058
SELECT ALL + COUNT ( * ) + - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - 31 col2
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5060
SELECT COUNT( * ), + CAST( NULL AS SIGNED ) + 92 + + 48 AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-5060
SELECT COUNT ( * ), + CAST ( NULL AS INTEGER ) + 92 + + 48 AS col2
----
1
NULL

query I rowsort
SELECT - 4 * + 20
----
-80

query I rowsort
SELECT - ( + 61 ) * - 61
----
3721

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5063
SELECT - SUM( ALL CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5063
SELECT - SUM ( ALL CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5064
SELECT ALL - MAX( ALL - 25 ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-5064
SELECT ALL - MAX ( ALL - 25 ) AS col1
----
25

query I rowsort
SELECT ( + ( + ( + + 70 ) ) )
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5066
SELECT - CAST( + + 26 AS SIGNED ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-5066
SELECT - CAST ( + + 26 AS INTEGER ) AS col1
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5067
SELECT ( + ( + COUNT( ALL 3 ) ) ) DIV 91 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5067
SELECT ( + ( + COUNT ( ALL 3 ) ) ) / 91 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5068
SELECT ALL - 13 DIV - COUNT( * ) col0
----
13

skipif mysql # not compatible
query I rowsort label-5068
SELECT ALL - 13 / - COUNT ( * ) col0
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-5069
SELECT COUNT( * ) AS col2, 1 AS col2
----
1
1

skipif mysql # not compatible
query II rowsort label-5069
SELECT COUNT ( * ) AS col2, 1 AS col2
----
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5070
SELECT DISTINCT - CAST( + 10 AS SIGNED )
----
-10

skipif mysql # not compatible
query I rowsort label-5070
SELECT DISTINCT - CAST ( + 10 AS INTEGER )
----
-10

query II rowsort
SELECT ALL - + 8 col1, + 32 - - 14 AS col2
----
-8
46

query II rowsort
SELECT ALL 15 - - 24 AS col2, + 17
----
39
17

query I rowsort
SELECT DISTINCT - 55 * + - 52 AS col0
----
2860

onlyif mysql # aggregate syntax: 
query I rowsort label-5074
SELECT ALL - + COUNT( * ) - ( + 10 )
----
-11

skipif mysql # not compatible
query I rowsort label-5074
SELECT ALL - + COUNT ( * ) - ( + 10 )
----
-11

query I rowsort
SELECT DISTINCT - 3 col0
----
-3

query I rowsort
SELECT DISTINCT - - 57 * - 57
----
-3249

query I rowsort
SELECT ALL - 73 * - 47 * - - 66 * + 12 * - 83
----
-225540216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5078
SELECT - COUNT( - CAST( NULL AS SIGNED ) ) + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-5078
SELECT - COUNT ( - CAST ( NULL AS INTEGER ) ) + COUNT ( * )
----
1

query I rowsort
SELECT - 3 + + - 90 * 50 + 55 col2
----
-4448

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5080
SELECT DISTINCT + COALESCE ( + CAST( NULL AS SIGNED ), - COUNT( * ) ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-5080
SELECT DISTINCT + COALESCE ( + CAST ( NULL AS INTEGER ), - COUNT ( * ) ) col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5081
SELECT ALL + ( - ( CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5081
SELECT ALL + ( - ( CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5082
SELECT - COUNT( * ) DIV + - ( - + 73 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5082
SELECT - COUNT ( * ) / + - ( - + 73 ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5083
SELECT + CAST( COUNT( * ) AS SIGNED ) DIV - MIN( DISTINCT 96 )
----
0

skipif mysql # not compatible
query I rowsort label-5083
SELECT + CAST ( COUNT ( * ) AS INTEGER ) / - MIN ( DISTINCT 96 )
----
0

query I rowsort
SELECT - 32 + 86
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5085
SELECT ALL SUM( ALL 8 ) col0
----
8

skipif mysql # not compatible
query I rowsort label-5085
SELECT ALL SUM ( ALL 8 ) col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5086
SELECT + COUNT( * ) * - 24
----
-24

skipif mysql # not compatible
query I rowsort label-5086
SELECT + COUNT ( * ) * - 24
----
-24

query I rowsort
SELECT DISTINCT + ( - 91 )
----
-91

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5088
SELECT DISTINCT + MAX( DISTINCT - CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5088
SELECT DISTINCT + MAX ( DISTINCT - CAST ( NULL AS REAL ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5089
SELECT 91 + COUNT( * ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-5089
SELECT 91 + COUNT ( * ) AS col2
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5090
SELECT DISTINCT 19 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5090
SELECT DISTINCT 19 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5091
SELECT COUNT( * ) - 23 AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-5091
SELECT COUNT ( * ) - 23 AS col2
----
-22

query II rowsort
SELECT ALL 46 AS col1, 85
----
46
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5093
SELECT ALL MAX( + 13 )
----
13

skipif mysql # not compatible
query I rowsort label-5093
SELECT ALL MAX ( + 13 )
----
13

onlyif mysql # DIV for integer division: 
query II rowsort label-5094
SELECT ALL + 16 AS col0, 52 DIV - - 60
----
16
0

skipif mysql # not compatible
query II rowsort label-5094
SELECT ALL + 16 AS col0, 52 / - - 60
----
16
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5095
SELECT - MAX( ALL - 26 )
----
26

skipif mysql # not compatible
query I rowsort label-5095
SELECT - MAX ( ALL - 26 )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5096
SELECT + SUM( DISTINCT 55 )
----
55

skipif mysql # not compatible
query I rowsort label-5096
SELECT + SUM ( DISTINCT 55 )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5097
SELECT ALL MAX( DISTINCT + + 82 )
----
82

skipif mysql # not compatible
query I rowsort label-5097
SELECT ALL MAX ( DISTINCT + + 82 )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5098
SELECT + 21 + COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-5098
SELECT + 21 + COUNT ( * )
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5099
SELECT DISTINCT 91 DIV + + MAX( DISTINCT - 50 )
----
-1

skipif mysql # not compatible
query I rowsort label-5099
SELECT DISTINCT 91 / + + MAX ( DISTINCT - 50 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5100
SELECT - MAX( + 59 ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-5100
SELECT - MAX ( + 59 ) AS col2
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5101
SELECT + CAST( NULL AS SIGNED ) + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-5101
SELECT + CAST ( NULL AS INTEGER ) + 82
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5102
SELECT DISTINCT + 29 AS col0, COUNT( * ) AS col1
----
29
1

skipif mysql # not compatible
query II rowsort label-5102
SELECT DISTINCT + 29 AS col0, COUNT ( * ) AS col1
----
29
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5103
SELECT - - COUNT( * ) + + - 1
----
0

skipif mysql # not compatible
query I rowsort label-5103
SELECT - - COUNT ( * ) + + - 1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5104
SELECT DISTINCT COUNT( * ) DIV - + 84 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5104
SELECT DISTINCT COUNT ( * ) / - + 84 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5105
SELECT ALL - COUNT( * ) * + + 97
----
-97

skipif mysql # not compatible
query I rowsort label-5105
SELECT ALL - COUNT ( * ) * + + 97
----
-97

query II rowsort
SELECT ALL 80 AS col0, - 26
----
80
-26

query I rowsort
SELECT 78 + + 80 * - 95 AS col1
----
-7522

onlyif mysql # DIV for integer division: 
query I rowsort label-5108
SELECT 3 DIV + 78 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5108
SELECT 3 / + 78 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5109
SELECT - ( COUNT( * ) ) * 95 AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-5109
SELECT - ( COUNT ( * ) ) * 95 AS col2
----
-95

query I rowsort
SELECT ALL 25 col2
----
25

query I rowsort
SELECT DISTINCT - NULLIF ( + 22, + 57 ) col0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-5112
SELECT ALL 52 + + COUNT( * ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-5112
SELECT ALL 52 + + COUNT ( * ) AS col1
----
53

query I rowsort
SELECT ALL 11 - + 83
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5114
SELECT ALL SUM( ( CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5114
SELECT ALL SUM ( ( CAST ( NULL AS INTEGER ) ) )
----
NULL

query I rowsort
SELECT ALL 32 * + + 68
----
2176

onlyif mysql # aggregate syntax: 
query I rowsort label-5116
SELECT 18 * - COUNT( * ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-5116
SELECT 18 * - COUNT ( * ) AS col2
----
-18

query I rowsort
SELECT ALL ( - - 7 ) col1
----
7

query I rowsort
SELECT 12 * + 26 col1
----
312

query II rowsort
SELECT - 20 AS col0, - 6 AS col0
----
-20
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5120
SELECT - 46 * NULLIF ( - MIN( DISTINCT + - 84 ), - ( - + 0 ) )
----
-3864

skipif mysql # not compatible
query I rowsort label-5120
SELECT - 46 * NULLIF ( - MIN ( DISTINCT + - 84 ), - ( - + 0 ) )
----
-3864

query I rowsort
SELECT DISTINCT 47 col1
----
47

query I rowsort
SELECT + 91 * + 36
----
3276

onlyif mysql # aggregate syntax: 
query I rowsort label-5123
SELECT - SUM( - 2 )
----
2

skipif mysql # not compatible
query I rowsort label-5123
SELECT - SUM ( - 2 )
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5124
SELECT - COUNT( * ) DIV + - 10
----
0

skipif mysql # not compatible
query I rowsort label-5124
SELECT - COUNT ( * ) / + - 10
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5125
SELECT ALL + + AVG ( + CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5125
SELECT ALL + + AVG ( + CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + + 88 col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5127
SELECT + ( - MIN( DISTINCT + 89 ) )
----
-89

skipif mysql # not compatible
query I rowsort label-5127
SELECT + ( - MIN ( DISTINCT + 89 ) )
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-5128
SELECT MIN( + 96 ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-5128
SELECT MIN ( + 96 ) AS col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5129
SELECT - MAX( DISTINCT 48 ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-5129
SELECT - MAX ( DISTINCT 48 ) AS col2
----
-48

query I rowsort
SELECT + 94 + + + 66
----
160

query I rowsort
SELECT - 60 * + 59
----
-3540

query I rowsort
SELECT 82 + 14
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5133
SELECT DISTINCT - 2 - + + 26 + - ( COUNT( * ) )
----
-29

skipif mysql # not compatible
query I rowsort label-5133
SELECT DISTINCT - 2 - + + 26 + - ( COUNT ( * ) )
----
-29

query I rowsort
SELECT ALL - NULLIF ( - 91, + - 84 ) AS col2
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5135
SELECT COUNT( * ) * - 68 + + + 8 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5135
SELECT COUNT ( * ) * - 68 + + + 8 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5136
SELECT + NULLIF ( - ( - 28 ), - CAST( NULL AS SIGNED ) )
----
28

skipif mysql # not compatible
query I rowsort label-5136
SELECT + NULLIF ( - ( - 28 ), - CAST ( NULL AS INTEGER ) )
----
28

query II rowsort
SELECT + 95 col1, - 30
----
95
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-5138
SELECT 66 * - + COUNT( * )
----
-66

skipif mysql # not compatible
query I rowsort label-5138
SELECT 66 * - + COUNT ( * )
----
-66

query I rowsort
SELECT - 61 * - - 82
----
-5002

query I rowsort
SELECT - - 78 AS col2
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5141
SELECT + ( - + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5141
SELECT + ( - + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5142
SELECT + 45 + - COUNT( * ) col1
----
44

skipif mysql # not compatible
query I rowsort label-5142
SELECT + 45 + - COUNT ( * ) col1
----
44

query I rowsort
SELECT - ( - 11 ) + - 92 AS col2
----
-81

query II rowsort
SELECT DISTINCT 30 AS col0, + 4
----
30
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5145
SELECT ( + 21 ) * + CAST( COUNT( * ) AS SIGNED ) * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5145
SELECT ( + 21 ) * + CAST ( COUNT ( * ) AS INTEGER ) * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + 47 * - - 45 - - 29 AS col0
----
2144

query I rowsort
SELECT DISTINCT 14 * - - 28
----
392

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5148
SELECT ALL 64 + - ( + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5148
SELECT ALL 64 + - ( + CAST ( NULL AS REAL ) )
----
NULL

query II rowsort
SELECT DISTINCT 81, + 88 AS col0
----
81
88

query I rowsort
SELECT DISTINCT - ( - 81 ) col2
----
81

query I rowsort
SELECT DISTINCT 83 - - 54 AS col1
----
137

query I rowsort
SELECT - - 35 AS col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5153
SELECT DISTINCT COUNT( * ) * 62 AS col2
----
62

skipif mysql # not compatible
query I rowsort label-5153
SELECT DISTINCT COUNT ( * ) * 62 AS col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5154
SELECT + 38 * COUNT( * ) - + 62
----
-24

skipif mysql # not compatible
query I rowsort label-5154
SELECT + 38 * COUNT ( * ) - + 62
----
-24

query I rowsort
SELECT ALL + ( + 85 ) AS col0
----
85

query I rowsort
SELECT ALL + ( + 54 )
----
54

query I rowsort
SELECT ALL - ( - + 4 ) AS col0
----
4

query I rowsort
SELECT + 45 * - 19
----
-855

onlyif mysql # aggregate syntax: 
query I rowsort label-5159
SELECT ALL - COUNT( * ) * ( 17 ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-5159
SELECT ALL - COUNT ( * ) * ( 17 ) AS col2
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-5160
SELECT - 47 DIV 8
----
-5

skipif mysql # not compatible
query I rowsort label-5160
SELECT - 47 / 8
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5161
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 42 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5161
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 42 AS col1
----
NULL

query I rowsort
SELECT ALL + + 27 * 18 AS col1
----
486

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5163
SELECT CAST( NULL AS SIGNED ) * 19
----
NULL

skipif mysql # not compatible
query I rowsort label-5163
SELECT CAST ( NULL AS INTEGER ) * 19
----
NULL

query I rowsort
SELECT 66 + 82
----
148

query I rowsort
SELECT + ( 69 )
----
69

query I rowsort
SELECT DISTINCT + + 60 AS col0
----
60

query I rowsort
SELECT + - 61 + 38
----
-23

query II rowsort
SELECT - 50, + 31 AS col1
----
-50
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5169
SELECT ALL + COUNT( * ) - + 40 AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-5169
SELECT ALL + COUNT ( * ) - + 40 AS col1
----
-39

query I rowsort
SELECT ALL ( 8 ) AS col2
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5171
SELECT DISTINCT ( + + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5171
SELECT DISTINCT ( + + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT - 96 * 1
----
-96

query I rowsort
SELECT ALL CASE 49 WHEN + + 31 THEN 75 END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5174
SELECT ALL COALESCE ( - COUNT( * ), - 55 )
----
-1

skipif mysql # not compatible
query I rowsort label-5174
SELECT ALL COALESCE ( - COUNT ( * ), - 55 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5175
SELECT + - 19, CAST( NULL AS SIGNED ) AS col1
----
-19
NULL

skipif mysql # not compatible
query II rowsort label-5175
SELECT + - 19, CAST ( NULL AS INTEGER ) AS col1
----
-19
NULL

query I rowsort
SELECT ALL + 52 col2
----
52

query I rowsort
SELECT DISTINCT 6 * - + 58 - + 92 AS col0
----
-440

query I rowsort
SELECT ALL - - 21 + + + 21 AS col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5179
SELECT ALL - SUM( + 69 )
----
-69

skipif mysql # not compatible
query I rowsort label-5179
SELECT ALL - SUM ( + 69 )
----
-69

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5180
SELECT ( - CAST( + CAST( + - 92 AS DECIMAL ) AS SIGNED ) ) + - - 20 + 65 AS col1
----
177

skipif mysql # not compatible
query I rowsort label-5180
SELECT ( - CAST ( + CAST ( + - 92 AS REAL ) AS INTEGER ) ) + - - 20 + 65 AS col1
----
177

query I rowsort
SELECT 94 * + 9 AS col2
----
846

query I rowsort
SELECT 10 * + 19
----
190

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5183
SELECT DISTINCT - CAST( + - COUNT( * ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5183
SELECT DISTINCT - CAST ( + - COUNT ( * ) AS INTEGER ) AS col2
----
1

query I rowsort
SELECT DISTINCT - ( - 85 )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5185
SELECT - SUM( ALL + 64 )
----
-64

skipif mysql # not compatible
query I rowsort label-5185
SELECT - SUM ( ALL + 64 )
----
-64

query I rowsort
SELECT + 3 + + 89
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5187
SELECT + COUNT( + 98 ) * 21 * ( + COUNT( * ) )
----
21

skipif mysql # not compatible
query I rowsort label-5187
SELECT + COUNT ( + 98 ) * 21 * ( + COUNT ( * ) )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5188
SELECT ALL COUNT( - 10 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-5188
SELECT ALL COUNT ( - 10 ) col2
----
1

query I rowsort
SELECT ALL + NULLIF ( + 46, - 35 )
----
46

query I rowsort
SELECT ALL + ( + + 42 ) AS col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5191
SELECT + ( COUNT( * ) ) * 11 AS col0
----
11

skipif mysql # not compatible
query I rowsort label-5191
SELECT + ( COUNT ( * ) ) * 11 AS col0
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5192
SELECT ALL + AVG ( ALL CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5192
SELECT ALL + AVG ( ALL CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT - 13 * + - ( + 66 ) col1
----
858

query I rowsort
SELECT DISTINCT + ( - 79 ) AS col0
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-5195
SELECT ALL COUNT( ALL + 18 )
----
1

skipif mysql # not compatible
query I rowsort label-5195
SELECT ALL COUNT ( ALL + 18 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5196
SELECT DISTINCT + MAX( + 94 )
----
94

skipif mysql # not compatible
query I rowsort label-5196
SELECT DISTINCT + MAX ( + 94 )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5197
SELECT 29 * - - COUNT( * ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-5197
SELECT 29 * - - COUNT ( * ) AS col2
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5198
SELECT + COALESCE ( CAST( NULL AS SIGNED ), - 35 ) AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-5198
SELECT + COALESCE ( CAST ( NULL AS INTEGER ), - 35 ) AS col2
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-5199
SELECT 61 DIV 91
----
0

skipif mysql # not compatible
query I rowsort label-5199
SELECT 61 / 91
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5200
SELECT - 74 - - COUNT( * ) + - 70
----
-143

skipif mysql # not compatible
query I rowsort label-5200
SELECT - 74 - - COUNT ( * ) + - 70
----
-143

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5201
SELECT - 9 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5201
SELECT - 9 - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5202
SELECT ALL + CAST( - ( - COUNT( * ) ) AS SIGNED ) col0
----
1

skipif mysql # not compatible
query I rowsort label-5202
SELECT ALL + CAST ( - ( - COUNT ( * ) ) AS INTEGER ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5203
SELECT ALL + 31 * COUNT( * ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-5203
SELECT ALL + 31 * COUNT ( * ) AS col1
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-5204
SELECT - - 25 DIV 64 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5204
SELECT - - 25 / 64 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5205
SELECT ALL 73 * + MAX( - 13 )
----
-949

skipif mysql # not compatible
query I rowsort label-5205
SELECT ALL 73 * + MAX ( - 13 )
----
-949

onlyif mysql # aggregate syntax: 
query I rowsort label-5206
SELECT - ( - + 71 ) + - SUM( DISTINCT - + 70 )
----
141

skipif mysql # not compatible
query I rowsort label-5206
SELECT - ( - + 71 ) + - SUM ( DISTINCT - + 70 )
----
141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5207
SELECT ALL + - CAST( + + 34 AS SIGNED ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-5207
SELECT ALL + - CAST ( + + 34 AS INTEGER ) AS col2
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-5208
SELECT + COUNT( ALL + - 1 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5208
SELECT + COUNT ( ALL + - 1 ) AS col1
----
1

query I rowsort
SELECT ALL - 72 + - 95
----
-167

query I rowsort
SELECT + 57 + + 18 AS col1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5211
SELECT ALL COUNT( 91 )
----
1

skipif mysql # not compatible
query I rowsort label-5211
SELECT ALL COUNT ( 91 )
----
1

query I rowsort
SELECT - 67 * + ( - 44 )
----
2948

onlyif mysql # aggregate syntax: 
query I rowsort label-5213
SELECT + 31 * COUNT( * ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-5213
SELECT + 31 * COUNT ( * ) AS col0
----
31

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5214
SELECT - + 13 / + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5214
SELECT - + 13 / + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5215
SELECT DISTINCT + 25 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5215
SELECT DISTINCT + 25 * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5216
SELECT CAST( + 53 AS SIGNED ) * 29 AS col0
----
1537

skipif mysql # not compatible
query I rowsort label-5216
SELECT CAST ( + 53 AS INTEGER ) * 29 AS col0
----
1537

query I rowsort
SELECT 28 + + - 38
----
-10

query II rowsort
SELECT DISTINCT 84 col1, 75
----
84
75

query II rowsort
SELECT - 3 AS col2, 39 AS col2
----
-3
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5220
SELECT ALL COUNT( ALL 58 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5220
SELECT ALL COUNT ( ALL 58 ) AS col0
----
1

query I rowsort
SELECT DISTINCT - - 24 AS col2
----
24

query I rowsort
SELECT DISTINCT + + ( - 37 ) AS col1
----
-37

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5223
SELECT DISTINCT - 48 DIV + 12 + - - CAST( + 51 AS SIGNED )
----
47

skipif mysql # not compatible
query I rowsort label-5223
SELECT DISTINCT - 48 / + 12 + - - CAST ( + 51 AS INTEGER )
----
47

query I rowsort
SELECT DISTINCT + + 31 AS col2
----
31

query I rowsort
SELECT + + ( - 24 )
----
-24

query I rowsort
SELECT ALL 80 * - 13
----
-1040

onlyif mysql # aggregate syntax: 
query I rowsort label-5227
SELECT + COUNT( * ) + + 96
----
97

skipif mysql # not compatible
query I rowsort label-5227
SELECT + COUNT ( * ) + + 96
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5228
SELECT MIN( ALL 73 ) AS col1
----
73

skipif mysql # not compatible
query I rowsort label-5228
SELECT MIN ( ALL 73 ) AS col1
----
73

query I rowsort
SELECT DISTINCT - 30 + + 86 col1
----
56

query I rowsort
SELECT DISTINCT ( 48 ) + + 79 AS col1
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-5231
SELECT 54 - - + MAX( 28 ) col1
----
82

skipif mysql # not compatible
query I rowsort label-5231
SELECT 54 - - + MAX ( 28 ) col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5232
SELECT DISTINCT COUNT( + + 76 ) * + 55
----
55

skipif mysql # not compatible
query I rowsort label-5232
SELECT DISTINCT COUNT ( + + 76 ) * + 55
----
55

query II rowsort
SELECT DISTINCT + 41 col0, 24 AS col0
----
41
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5234
SELECT DISTINCT - - MAX( 82 ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-5234
SELECT DISTINCT - - MAX ( 82 ) AS col1
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5235
SELECT - CAST( - 51 AS SIGNED )
----
51

skipif mysql # not compatible
query I rowsort label-5235
SELECT - CAST ( - 51 AS INTEGER )
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5236
SELECT + CAST( NULL AS SIGNED ) + - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5236
SELECT + CAST ( NULL AS INTEGER ) + - + COUNT ( * )
----
NULL

query I rowsort
SELECT COALESCE ( - 8, 7 + - 26 ) AS col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-5238
SELECT - 67 + MIN( + ( - 67 ) ) AS col2
----
-134

skipif mysql # not compatible
query I rowsort label-5238
SELECT - 67 + MIN ( + ( - 67 ) ) AS col2
----
-134

query II rowsort
SELECT ALL 21 col2, 60
----
21
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5240
SELECT DISTINCT 39 - - - ( - COUNT( * ) )
----
40

skipif mysql # not compatible
query I rowsort label-5240
SELECT DISTINCT 39 - - - ( - COUNT ( * ) )
----
40

query I rowsort
SELECT + ( - 28 )
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5242
SELECT DISTINCT 96 DIV COUNT( * )
----
96

skipif mysql # not compatible
query I rowsort label-5242
SELECT DISTINCT 96 / COUNT ( * )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5243
SELECT ALL COUNT( * ) * + 31 AS col1
----
31

skipif mysql # not compatible
query I rowsort label-5243
SELECT ALL COUNT ( * ) * + 31 AS col1
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5244
SELECT ALL - COUNT( * ) + COALESCE ( 73, - CAST( NULL AS SIGNED ) ) AS col2, 24 AS col0
----
72
24

skipif mysql # not compatible
query II rowsort label-5244
SELECT ALL - COUNT ( * ) + COALESCE ( 73, - CAST ( NULL AS INTEGER ) ) AS col2, 24 AS col0
----
72
24

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5245
SELECT ( + CAST( NULL AS DECIMAL ) ) * - 86 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5245
SELECT ( + CAST ( NULL AS REAL ) ) * - 86 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + ( 11 ) + - 32 AS col0
----
-21

query I rowsort
SELECT 98 + 86 AS col1
----
184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5248
SELECT COUNT( * ) * CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5248
SELECT COUNT ( * ) * CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5249
SELECT ALL - COALESCE ( CAST( NULL AS SIGNED ), - - 98 + - MAX( ALL - 53 ) ) col0
----
-151

skipif mysql # not compatible
query I rowsort label-5249
SELECT ALL - COALESCE ( CAST ( NULL AS INTEGER ), - - 98 + - MAX ( ALL - 53 ) ) col0
----
-151

onlyif mysql # aggregate syntax: 
query I rowsort label-5250
SELECT DISTINCT MIN( ALL + 94 ) col2
----
94

skipif mysql # not compatible
query I rowsort label-5250
SELECT DISTINCT MIN ( ALL + 94 ) col2
----
94

query I rowsort
SELECT 92 * 78 AS col2
----
7176

onlyif mysql # aggregate syntax: 
query I rowsort label-5252
SELECT ALL - 75 * - - 40 + - COUNT( * )
----
-3001

skipif mysql # not compatible
query I rowsort label-5252
SELECT ALL - 75 * - - 40 + - COUNT ( * )
----
-3001

query I rowsort
SELECT + + 91 * - ( 51 ) AS col0
----
-4641

onlyif mysql # aggregate syntax: 
query I rowsort label-5254
SELECT ALL 79 + + COUNT( * ) + + COUNT( * ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-5254
SELECT ALL 79 + + COUNT ( * ) + + COUNT ( * ) AS col1
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5255
SELECT - + 37 * - - CAST( NULL AS SIGNED ) - + MIN( DISTINCT + - 68 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5255
SELECT - + 37 * - - CAST ( NULL AS INTEGER ) - + MIN ( DISTINCT + - 68 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5256
SELECT - + ( + COUNT( * ) ) + 12 * + 95
----
1139

skipif mysql # not compatible
query I rowsort label-5256
SELECT - + ( + COUNT ( * ) ) + 12 * + 95
----
1139

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5257
SELECT ALL COUNT( * ) + + - CAST( 6 AS SIGNED )
----
-5

skipif mysql # not compatible
query I rowsort label-5257
SELECT ALL COUNT ( * ) + + - CAST ( 6 AS INTEGER )
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-5258
SELECT DISTINCT - + COUNT( * ) * - COUNT( - 64 ) AS col2, 4 AS col0
----
1
4

skipif mysql # not compatible
query II rowsort label-5258
SELECT DISTINCT - + COUNT ( * ) * - COUNT ( - 64 ) AS col2, 4 AS col0
----
1
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5259
SELECT ALL + MAX( ALL - - 74 ) + + + SUM( - CAST( 32 AS SIGNED ) )
----
42

skipif mysql # not compatible
query I rowsort label-5259
SELECT ALL + MAX ( ALL - - 74 ) + + + SUM ( - CAST ( 32 AS INTEGER ) )
----
42

query I rowsort
SELECT 92 * - - 44 AS col1
----
4048

onlyif mysql # aggregate syntax: 
query I rowsort label-5261
SELECT ALL SUM( ( 14 ) )
----
14

skipif mysql # not compatible
query I rowsort label-5261
SELECT ALL SUM ( ( 14 ) )
----
14

query I rowsort
SELECT - - 59 col1
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5263
SELECT DISTINCT + 76 DIV COUNT( * )
----
76

skipif mysql # not compatible
query I rowsort label-5263
SELECT DISTINCT + 76 / COUNT ( * )
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5264
SELECT DISTINCT + COUNT( * ) DIV 8
----
0

skipif mysql # not compatible
query I rowsort label-5264
SELECT DISTINCT + COUNT ( * ) / 8
----
0

query I rowsort
SELECT DISTINCT 14 - + 66 AS col2
----
-52

query I rowsort
SELECT ALL COALESCE ( + + 9, 33 ) AS col0
----
9

query I rowsort
SELECT ALL ( - + 61 ) AS col0
----
-61

query I rowsort
SELECT + - 92 + + + 12 AS col1
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5269
SELECT + CAST( + 70 AS SIGNED ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-5269
SELECT + CAST ( + 70 AS INTEGER ) AS col1
----
70

query I rowsort
SELECT DISTINCT ( + 68 ) * 79
----
5372

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5271
SELECT ALL + COUNT( * ) * - + ( - COUNT( * ) ) DIV - + COUNT( * ) AS col2, + 3 + + + 57 AS col2
----
-1
60

skipif mysql # not compatible
query II rowsort label-5271
SELECT ALL + COUNT ( * ) * - + ( - COUNT ( * ) ) / - + COUNT ( * ) AS col2, + 3 + + + 57 AS col2
----
-1
60

query I rowsort
SELECT + 25 * 76
----
1900

query I rowsort
SELECT ALL ( + 36 ) AS col0
----
36

query I rowsort
SELECT - - 73 col1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5275
SELECT DISTINCT - 49 + + + COUNT( * ) + 40 AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-5275
SELECT DISTINCT - 49 + + + COUNT ( * ) + 40 AS col0
----
-8

query I rowsort
SELECT DISTINCT - - ( 67 )
----
67

query I rowsort
SELECT - - NULLIF ( + + 39, - 6 ) AS col0
----
39

query I rowsort
SELECT 16 + - 83 AS col0
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5279
SELECT DISTINCT - ( + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5279
SELECT DISTINCT - ( + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query II rowsort
SELECT + 84 AS col2, 48
----
84
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5281
SELECT ALL - CAST( NULL AS SIGNED ) / + 70 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5281
SELECT ALL - CAST ( NULL AS INTEGER ) / + 70 col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5282
SELECT - 5 * - CAST( + 69 AS SIGNED )
----
345

skipif mysql # not compatible
query I rowsort label-5282
SELECT - 5 * - CAST ( + 69 AS INTEGER )
----
345

query I rowsort
SELECT + + 19 * 83 col2
----
1577

onlyif mysql # aggregate syntax: 
query II rowsort label-5284
SELECT COUNT( * ) AS col1, 25
----
1
25

skipif mysql # not compatible
query II rowsort label-5284
SELECT COUNT ( * ) AS col1, 25
----
1
25

query II rowsort
SELECT ALL - 66, 32 AS col2
----
-66
32

query I rowsort
SELECT ( + 79 ) AS col2
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-5287
SELECT DISTINCT ( + - COALESCE ( + 61, + 94, - + 15 * - + 53 ) ) DIV + ( + + 89 )
----
0

skipif mysql # not compatible
query I rowsort label-5287
SELECT DISTINCT ( + - COALESCE ( + 61, + 94, - + 15 * - + 53 ) ) / + ( + + 89 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5288
SELECT DISTINCT + COUNT( + 18 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5288
SELECT DISTINCT + COUNT ( + 18 ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5289
SELECT - COUNT( * ) DIV - 62 - + 50 * + COUNT( * )
----
-50

skipif mysql # not compatible
query I rowsort label-5289
SELECT - COUNT ( * ) / - 62 - + 50 * + COUNT ( * )
----
-50

query II rowsort
SELECT ALL - ( + 23 ) col2, + 12 AS col1
----
-23
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5291
SELECT + COUNT( * ) + + + 45 AS col1
----
46

skipif mysql # not compatible
query I rowsort label-5291
SELECT + COUNT ( * ) + + + 45 AS col1
----
46

query I rowsort
SELECT + ( - 42 ) col2
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-5293
SELECT - COUNT( * ) * - + 7 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-5293
SELECT - COUNT ( * ) * - + 7 AS col1
----
7

query I rowsort
SELECT ALL - - 69
----
69

query I rowsort
SELECT DISTINCT + 68 * - 73
----
-4964

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5296
SELECT 65 + + CAST( NULL AS SIGNED ) - 23
----
NULL

skipif mysql # not compatible
query I rowsort label-5296
SELECT 65 + + CAST ( NULL AS INTEGER ) - 23
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5297
SELECT ALL 2 * - 54 AS col1, COUNT( * ) + - 97 col2
----
-108
-96

skipif mysql # not compatible
query II rowsort label-5297
SELECT ALL 2 * - 54 AS col1, COUNT ( * ) + - 97 col2
----
-108
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5298
SELECT - + MIN( + - 44 )
----
44

skipif mysql # not compatible
query I rowsort label-5298
SELECT - + MIN ( + - 44 )
----
44

query I rowsort
SELECT - ( 8 ) col2
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-5300
SELECT DISTINCT 72 AS col0, COUNT( * ) * COUNT( * ) AS col0
----
72
1

skipif mysql # not compatible
query II rowsort label-5300
SELECT DISTINCT 72 AS col0, COUNT ( * ) * COUNT ( * ) AS col0
----
72
1

query II rowsort
SELECT 9 AS col1, + 85
----
9
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5302
SELECT - COUNT( * ) * - 21 * - - 16
----
336

skipif mysql # not compatible
query I rowsort label-5302
SELECT - COUNT ( * ) * - 21 * - - 16
----
336

query II rowsort
SELECT 26 AS col1, - 38 AS col1
----
26
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-5304
SELECT + + COUNT( DISTINCT 94 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5304
SELECT + + COUNT ( DISTINCT 94 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5305
SELECT 60 + - SUM( ALL + 22 )
----
38

skipif mysql # not compatible
query I rowsort label-5305
SELECT 60 + - SUM ( ALL + 22 )
----
38

query I rowsort
SELECT + + ( + + 78 ) AS col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5307
SELECT DISTINCT + - 41 - + + MIN( + 76 ) * + + 20
----
-1561

skipif mysql # not compatible
query I rowsort label-5307
SELECT DISTINCT + - 41 - + + MIN ( + 76 ) * + + 20
----
-1561

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5308
SELECT 60 * + CAST( COUNT( DISTINCT + + 81 ) AS SIGNED )
----
60

skipif mysql # not compatible
query I rowsort label-5308
SELECT 60 * + CAST ( COUNT ( DISTINCT + + 81 ) AS INTEGER )
----
60

query I rowsort
SELECT ALL 77 + - 39
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-5310
SELECT 85 - - 6 DIV - - 98
----
85

skipif mysql # not compatible
query I rowsort label-5310
SELECT 85 - - 6 / - - 98
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5311
SELECT DISTINCT - CAST( + 2 AS SIGNED ) * + - 91 * + 69
----
12558

skipif mysql # not compatible
query I rowsort label-5311
SELECT DISTINCT - CAST ( + 2 AS INTEGER ) * + - 91 * + 69
----
12558

query I rowsort
SELECT ( 32 ) col2
----
32

query I rowsort
SELECT - 79 * - ( + - 93 )
----
-7347

onlyif mysql # aggregate syntax: 
query I rowsort label-5314
SELECT ALL MAX( - 3 )
----
-3

skipif mysql # not compatible
query I rowsort label-5314
SELECT ALL MAX ( - 3 )
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5315
SELECT - CAST( NULL AS SIGNED ) + - MIN( DISTINCT + + 96 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5315
SELECT - CAST ( NULL AS INTEGER ) + - MIN ( DISTINCT + + 96 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5316
SELECT - CAST( + COUNT( * ) AS SIGNED ) + + ( - CAST( NULL AS SIGNED ) ), + COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5316
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) + + ( - CAST ( NULL AS INTEGER ) ), + COUNT ( * ) AS col2
----
NULL
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5317
SELECT - COUNT( * ), + 59 DIV - 42
----
-1
-1

skipif mysql # not compatible
query II rowsort label-5317
SELECT - COUNT ( * ), + 59 / - 42
----
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5318
SELECT ALL - 3 + + + MAX( DISTINCT + - 46 )
----
-49

skipif mysql # not compatible
query I rowsort label-5318
SELECT ALL - 3 + + + MAX ( DISTINCT + - 46 )
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5319
SELECT DISTINCT + CAST( + 48 AS SIGNED ) col2
----
48

skipif mysql # not compatible
query I rowsort label-5319
SELECT DISTINCT + CAST ( + 48 AS INTEGER ) col2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-5320
SELECT ALL + 35 * - - COUNT( * ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-5320
SELECT ALL + 35 * - - COUNT ( * ) AS col1
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-5321
SELECT + - 58 AS col2, COUNT( * ) AS col0
----
-58
1

skipif mysql # not compatible
query II rowsort label-5321
SELECT + - 58 AS col2, COUNT ( * ) AS col0
----
-58
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5322
SELECT + ( - - CAST( COUNT( * ) AS SIGNED ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5322
SELECT + ( - - CAST ( COUNT ( * ) AS INTEGER ) ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5323
SELECT + ( CAST( - 71 AS SIGNED ) )
----
-71

skipif mysql # not compatible
query I rowsort label-5323
SELECT + ( CAST ( - 71 AS INTEGER ) )
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-5324
SELECT - + COUNT( * ) * 74
----
-74

skipif mysql # not compatible
query I rowsort label-5324
SELECT - + COUNT ( * ) * 74
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-5325
SELECT ALL - MIN( - - 59 ) AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-5325
SELECT ALL - MIN ( - - 59 ) AS col1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-5326
SELECT COUNT( * ) * 81 col0
----
81

skipif mysql # not compatible
query I rowsort label-5326
SELECT COUNT ( * ) * 81 col0
----
81

query I rowsort
SELECT ( 70 ) AS col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5328
SELECT DISTINCT - 52 + - - COUNT( * )
----
-51

skipif mysql # not compatible
query I rowsort label-5328
SELECT DISTINCT - 52 + - - COUNT ( * )
----
-51

query I rowsort
SELECT 35 col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5330
SELECT ALL COUNT( * ) * + + 89 AS col1
----
89

skipif mysql # not compatible
query I rowsort label-5330
SELECT ALL COUNT ( * ) * + + 89 AS col1
----
89

query I rowsort
SELECT + 10 * + 85 AS col1
----
850

onlyif mysql # aggregate syntax: 
query I rowsort label-5332
SELECT + ( - MAX( DISTINCT 53 ) ) AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-5332
SELECT + ( - MAX ( DISTINCT 53 ) ) AS col1
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-5333
SELECT ALL - 0 * COUNT( * ) - + COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5333
SELECT ALL - 0 * COUNT ( * ) - + COUNT ( * ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5334
SELECT - + 72 + COUNT( * ) AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-5334
SELECT - + 72 + COUNT ( * ) AS col1
----
-71

query I rowsort
SELECT - + ( - 29 ) AS col0
----
29

query I rowsort
SELECT DISTINCT 22 * - 91 AS col2
----
-2002

onlyif mysql # aggregate syntax: 
query I rowsort label-5337
SELECT ALL MIN( - 5 )
----
-5

skipif mysql # not compatible
query I rowsort label-5337
SELECT ALL MIN ( - 5 )
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5338
SELECT + COUNT( * ) DIV + + 10 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5338
SELECT + COUNT ( * ) / + + 10 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5339
SELECT ALL + SUM( DISTINCT 86 ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-5339
SELECT ALL + SUM ( DISTINCT 86 ) AS col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5340
SELECT ALL + COUNT( + 73 )
----
1

skipif mysql # not compatible
query I rowsort label-5340
SELECT ALL + COUNT ( + 73 )
----
1

query I rowsort
SELECT DISTINCT + ( - 51 )
----
-51

query I rowsort
SELECT DISTINCT + + 63 + - 43 + - 64 AS col1
----
-44

query I rowsort
SELECT ALL 89 * 46 * + 59 AS col1
----
241546

onlyif mysql # aggregate syntax: 
query I rowsort label-5344
SELECT DISTINCT COUNT( * ) * - ( - COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-5344
SELECT DISTINCT COUNT ( * ) * - ( - COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5345
SELECT COUNT( * ) DIV ( - NULLIF ( 67, 12 ) ) col1
----
0

skipif mysql # not compatible
query I rowsort label-5345
SELECT COUNT ( * ) / ( - NULLIF ( 67, 12 ) ) col1
----
0

query I rowsort
SELECT 11 + - + 76 * 58
----
-4397

onlyif mysql # aggregate syntax: 
query I rowsort label-5347
SELECT 8 * + - MIN( - 83 )
----
664

skipif mysql # not compatible
query I rowsort label-5347
SELECT 8 * + - MIN ( - 83 )
----
664

query I rowsort
SELECT ALL + ( + 62 )
----
62

query I rowsort
SELECT DISTINCT + COALESCE ( + - 94, - - 55 ) * - - 43 AS col1
----
-4042

query I rowsort
SELECT DISTINCT 71 + 47
----
118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5351
SELECT CAST( NULL AS SIGNED ) * - - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5351
SELECT CAST ( NULL AS INTEGER ) * - - CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT ( - - 83 ) + 36 AS col0
----
119

query II rowsort
SELECT + 46, 38 AS col1
----
46
38

query I rowsort
SELECT 21 + + - 78
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5355
SELECT ALL - CAST( 15 AS SIGNED ) - 29 - + + ( + 55 ) AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-5355
SELECT ALL - CAST ( 15 AS INTEGER ) - 29 - + + ( + 55 ) AS col1
----
-99

query I rowsort
SELECT ALL 29 - 88 * - - 96 AS col2
----
-8419

query II rowsort
SELECT DISTINCT + 91 AS col2, - 80
----
91
-80

query I rowsort
SELECT + 0 * + + 81 AS col2
----
0

query I rowsort
SELECT - - 95 + 38
----
133

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5360
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col2, - 24 col0
----
NULL
-24

skipif mysql # not compatible
query II rowsort label-5360
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2, - 24 col0
----
NULL
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-5361
SELECT DISTINCT + 4 * - COUNT( * ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-5361
SELECT DISTINCT + 4 * - COUNT ( * ) AS col0
----
-4

query I rowsort
SELECT - 3 * 11
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-5363
SELECT - 59 DIV 8
----
-7

skipif mysql # not compatible
query I rowsort label-5363
SELECT - 59 / 8
----
-7

query I rowsort
SELECT - - ( 51 ) AS col1
----
51

query I rowsort
SELECT + 43 * - 82
----
-3526

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5366
SELECT - CAST( - - 81 AS SIGNED )
----
-81

skipif mysql # not compatible
query I rowsort label-5366
SELECT - CAST ( - - 81 AS INTEGER )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5367
SELECT ALL + SUM( - 44 ) * COUNT( * )
----
-44

skipif mysql # not compatible
query I rowsort label-5367
SELECT ALL + SUM ( - 44 ) * COUNT ( * )
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5368
SELECT ALL 30 + CAST( NULL AS SIGNED ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5368
SELECT ALL 30 + CAST ( NULL AS INTEGER ) * + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5369
SELECT ALL - COUNT( ALL + 58 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5369
SELECT ALL - COUNT ( ALL + 58 ) AS col0
----
-1

query I rowsort
SELECT DISTINCT - + ( + + 69 )
----
-69

query I rowsort
SELECT ALL - + ( - 2 ) AS col1
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-5372
SELECT DISTINCT - 33 DIV 80 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5372
SELECT DISTINCT - 33 / 80 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5373
SELECT DISTINCT - 42 + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5373
SELECT DISTINCT - 42 + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5374
SELECT 77 - + ( + - CAST( + + COUNT( * ) AS SIGNED ) ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-5374
SELECT 77 - + ( + - CAST ( + + COUNT ( * ) AS INTEGER ) ) AS col2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5375
SELECT ALL - COUNT( ALL + 37 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-5375
SELECT ALL - COUNT ( ALL + 37 ) col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5376
SELECT - 3 * - COUNT( * ) * + 99
----
297

skipif mysql # not compatible
query I rowsort label-5376
SELECT - 3 * - COUNT ( * ) * + 99
----
297

query II rowsort
SELECT - 83, - 8 AS col1
----
-83
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5378
SELECT ALL - 94 DIV + COUNT( * ) AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-5378
SELECT ALL - 94 / + COUNT ( * ) AS col2
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-5379
SELECT + + COALESCE ( + COUNT( * ), - COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5379
SELECT + + COALESCE ( + COUNT ( * ), - COUNT ( * ) ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5380
SELECT ALL + 90 * COUNT( * ) DIV + COUNT( * ) + 62 AS col1
----
152

skipif mysql # not compatible
query I rowsort label-5380
SELECT ALL + 90 * COUNT ( * ) / + COUNT ( * ) + 62 AS col1
----
152

query I rowsort
SELECT ALL + - ( + - 46 ) AS col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5382
SELECT SUM( DISTINCT - + 96 )
----
-96

skipif mysql # not compatible
query I rowsort label-5382
SELECT SUM ( DISTINCT - + 96 )
----
-96

query I rowsort
SELECT ALL - ( + 40 )
----
-40

onlyif mysql # DIV for integer division: 
query II rowsort label-5384
SELECT 83 DIV + 88 AS col0, 65 col1
----
0
65

skipif mysql # not compatible
query II rowsort label-5384
SELECT 83 / + 88 AS col0, 65 col1
----
0
65

query I rowsort
SELECT 11 + + + 71 AS col1
----
82

query I rowsort
SELECT 18 * + 59 AS col0
----
1062

query II rowsort
SELECT DISTINCT - 19, ( - 57 ) AS col1
----
-19
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-5388
SELECT DISTINCT MIN( - - ( - 43 ) ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-5388
SELECT DISTINCT MIN ( - - ( - 43 ) ) AS col0
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5389
SELECT ALL 1 + + - CAST( NULL AS SIGNED ) + + 17
----
NULL

skipif mysql # not compatible
query I rowsort label-5389
SELECT ALL 1 + + - CAST ( NULL AS INTEGER ) + + 17
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5390
SELECT ALL - 90 - COUNT( * ) col2
----
-91

skipif mysql # not compatible
query I rowsort label-5390
SELECT ALL - 90 - COUNT ( * ) col2
----
-91

query I rowsort
SELECT - 77 + + 15 + + - 85
----
-147

query I rowsort
SELECT DISTINCT - 49 * + 62 - + - 54 AS col1
----
-2984

onlyif mysql # aggregate syntax: 
query I rowsort label-5393
SELECT DISTINCT ( + COUNT( * ) ) + + 0 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5393
SELECT DISTINCT ( + COUNT ( * ) ) + + 0 AS col2
----
1

query I rowsort
SELECT 17 * + 8 AS col2
----
136

query II rowsort
SELECT 51 AS col1, + 2
----
51
2

query I rowsort
SELECT DISTINCT ( + 60 ) AS col0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5397
SELECT ALL COUNT( DISTINCT - 7 )
----
1

skipif mysql # not compatible
query I rowsort label-5397
SELECT ALL COUNT ( DISTINCT - 7 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5398
SELECT ( - MAX( - 47 ) ) + - - 11 * 16
----
223

skipif mysql # not compatible
query I rowsort label-5398
SELECT ( - MAX ( - 47 ) ) + - - 11 * 16
----
223

onlyif mysql # aggregate syntax: 
query II rowsort label-5399
SELECT - COUNT( * ) AS col2, 47
----
-1
47

skipif mysql # not compatible
query II rowsort label-5399
SELECT - COUNT ( * ) AS col2, 47
----
-1
47

query II rowsort
SELECT DISTINCT 41, - ( 14 ) AS col2
----
41
-14

query I rowsort
SELECT DISTINCT - 48 * - 59 col1
----
2832

query I rowsort
SELECT + ( - 35 )
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5403
SELECT + AVG ( ALL - + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5403
SELECT + AVG ( ALL - + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT - + 39 col2
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-5405
SELECT ALL + SUM( - NULLIF ( 52, + - 95 ) )
----
-52

skipif mysql # not compatible
query I rowsort label-5405
SELECT ALL + SUM ( - NULLIF ( 52, + - 95 ) )
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-5406
SELECT + MAX( - 82 ) col2
----
-82

skipif mysql # not compatible
query I rowsort label-5406
SELECT + MAX ( - 82 ) col2
----
-82

query I rowsort
SELECT ALL + 43 + 93
----
136

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5408
SELECT - 82 DIV COUNT( * ) col2, 69 col2
----
-82
69

skipif mysql # not compatible
query II rowsort label-5408
SELECT - 82 / COUNT ( * ) col2, 69 col2
----
-82
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5409
SELECT + COUNT( * ) - 17 col1
----
-16

skipif mysql # not compatible
query I rowsort label-5409
SELECT + COUNT ( * ) - 17 col1
----
-16

query I rowsort
SELECT DISTINCT - 96 * - 17
----
1632

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5411
SELECT ALL AVG ( + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5411
SELECT ALL AVG ( + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5412
SELECT 90 DIV 34 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-5412
SELECT 90 / 34 AS col0
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5413
SELECT - 3 DIV + COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-5413
SELECT - 3 / + COUNT ( * )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5414
SELECT + SUM( - + 69 ) AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-5414
SELECT + SUM ( - + 69 ) AS col0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-5415
SELECT ALL 13 * + COUNT( * )
----
13

skipif mysql # not compatible
query I rowsort label-5415
SELECT ALL 13 * + COUNT ( * )
----
13

query I rowsort
SELECT + + 6 col2
----
6

query II rowsort
SELECT DISTINCT + 21 AS col1, 60 AS col0
----
21
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5418
SELECT + COUNT( * ) + - 64
----
-63

skipif mysql # not compatible
query I rowsort label-5418
SELECT + COUNT ( * ) + - 64
----
-63

query I rowsort
SELECT DISTINCT ( + 29 )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5420
SELECT DISTINCT - SUM( DISTINCT - + 25 ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-5420
SELECT DISTINCT - SUM ( DISTINCT - + 25 ) AS col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5421
SELECT + COALESCE ( + - COUNT( * ), - 96 )
----
-1

skipif mysql # not compatible
query I rowsort label-5421
SELECT + COALESCE ( + - COUNT ( * ), - 96 )
----
-1

query I rowsort
SELECT + + ( - 44 )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-5423
SELECT COUNT( * ) + + COUNT( * ) + 21 col2
----
23

skipif mysql # not compatible
query I rowsort label-5423
SELECT COUNT ( * ) + + COUNT ( * ) + 21 col2
----
23

query I rowsort
SELECT DISTINCT 17 - + - 82
----
99

query I rowsort
SELECT + 6 + + 52
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5426
SELECT ALL - 0 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5426
SELECT ALL - 0 * - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + - ( 8 ) AS col1
----
-8

query II rowsort
SELECT 65 - + - 87 AS col1, - 34
----
152
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-5429
SELECT DISTINCT 69 * - + COUNT( * ) col1
----
-69

skipif mysql # not compatible
query I rowsort label-5429
SELECT DISTINCT 69 * - + COUNT ( * ) col1
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5430
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - - MAX( ALL 78 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5430
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - - MAX ( ALL 78 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5431
SELECT COALESCE ( COUNT( * ), - + 37 )
----
1

skipif mysql # not compatible
query I rowsort label-5431
SELECT COALESCE ( COUNT ( * ), - + 37 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5432
SELECT - 53 * + - COUNT( * ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-5432
SELECT - 53 * + - COUNT ( * ) AS col2
----
53

query I rowsort
SELECT - 17 * + + ( - - 64 ) AS col0
----
-1088

onlyif mysql # aggregate syntax: 
query II rowsort label-5434
SELECT DISTINCT COUNT( * ) AS col0, - 40 AS col1
----
1
-40

skipif mysql # not compatible
query II rowsort label-5434
SELECT DISTINCT COUNT ( * ) AS col0, - 40 AS col1
----
1
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5435
SELECT DISTINCT - + SUM( ALL 29 ) + + CAST( NULL AS SIGNED ) * - + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-5435
SELECT DISTINCT - + SUM ( ALL 29 ) + + CAST ( NULL AS INTEGER ) * - + 4
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5436
SELECT - 31 * - ( - + 53 ) * MIN( DISTINCT - 42 ) col2
----
69006

skipif mysql # not compatible
query I rowsort label-5436
SELECT - 31 * - ( - + 53 ) * MIN ( DISTINCT - 42 ) col2
----
69006

query I rowsort
SELECT 90 * + 96 AS col1
----
8640

query II rowsort
SELECT ALL - ( - 39 ), 80 AS col0
----
39
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5439
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 49 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5439
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 49 AS col1
----
NULL

query I rowsort
SELECT + 50 * - 46
----
-2300

onlyif mysql # aggregate syntax: 
query II rowsort label-5441
SELECT - COUNT( * ) AS col0, - 77
----
-1
-77

skipif mysql # not compatible
query II rowsort label-5441
SELECT - COUNT ( * ) AS col0, - 77
----
-1
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5442
SELECT + - 48 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5442
SELECT + - 48 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5443
SELECT + CAST( NULL AS SIGNED ) * + COUNT( * ), CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5443
SELECT + CAST ( NULL AS INTEGER ) * + COUNT ( * ), CAST ( NULL AS INTEGER )
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5444
SELECT ALL + 74 * + + COUNT( * ) AS col0, + 75 * 48 AS col0
----
74
3600

skipif mysql # not compatible
query II rowsort label-5444
SELECT ALL + 74 * + + COUNT ( * ) AS col0, + 75 * 48 AS col0
----
74
3600

onlyif mysql # aggregate syntax: 
query I rowsort label-5445
SELECT DISTINCT + SUM( + 20 ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-5445
SELECT DISTINCT + SUM ( + 20 ) AS col1
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5446
SELECT CAST( - SUM( DISTINCT + 98 ) AS SIGNED )
----
-98

skipif mysql # not compatible
query I rowsort label-5446
SELECT CAST ( - SUM ( DISTINCT + 98 ) AS INTEGER )
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5447
SELECT CAST( - SUM( - - CAST( NULL AS DECIMAL ) ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5447
SELECT CAST ( - SUM ( - - CAST ( NULL AS REAL ) ) AS INTEGER )
----
NULL

query I rowsort
SELECT - 14 * + 60 AS col1
----
-840

query I rowsort
SELECT ALL 77 + + - 56
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5450
SELECT ALL COUNT( * ) + + + 5
----
6

skipif mysql # not compatible
query I rowsort label-5450
SELECT ALL COUNT ( * ) + + + 5
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5451
SELECT ALL - + MIN( ALL - 42 ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-5451
SELECT ALL - + MIN ( ALL - 42 ) AS col2
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5452
SELECT - CAST( - 11 AS SIGNED )
----
11

skipif mysql # not compatible
query I rowsort label-5452
SELECT - CAST ( - 11 AS INTEGER )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5453
SELECT 43 + COUNT( * ) col0
----
44

skipif mysql # not compatible
query I rowsort label-5453
SELECT 43 + COUNT ( * ) col0
----
44

query I rowsort
SELECT + ( + - 28 ) col0
----
-28

query II rowsort
SELECT DISTINCT 35, 64 AS col2
----
35
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5456
SELECT DISTINCT MIN( - 4 )
----
-4

skipif mysql # not compatible
query I rowsort label-5456
SELECT DISTINCT MIN ( - 4 )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5457
SELECT - MIN( ALL - 96 ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-5457
SELECT - MIN ( ALL - 96 ) AS col2
----
96

query II rowsort
SELECT ALL - - 86 AS col0, 3 col0
----
86
3

query II rowsort
SELECT - 47 AS col0, 96
----
-47
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5460
SELECT ALL + COUNT( * ) - + + SUM( + - 59 )
----
60

skipif mysql # not compatible
query I rowsort label-5460
SELECT ALL + COUNT ( * ) - + + SUM ( + - 59 )
----
60

query I rowsort
SELECT ALL 60 * + + 65 * 65
----
253500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5462
SELECT MIN( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5462
SELECT MIN ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5463
SELECT SUM( - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5463
SELECT SUM ( - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT ( + - 43 ) AS col0
----
-43

query I rowsort
SELECT DISTINCT 99 * - - 2 AS col0
----
198

onlyif mysql # aggregate syntax: 
query I rowsort label-5466
SELECT ALL + - COUNT( * ) * 88
----
-88

skipif mysql # not compatible
query I rowsort label-5466
SELECT ALL + - COUNT ( * ) * 88
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-5467
SELECT - + COUNT( * ) * + 78 AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-5467
SELECT - + COUNT ( * ) * + 78 AS col2
----
-78

query I rowsort
SELECT ALL - 38 + - + 42 AS col1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-5469
SELECT - MAX( + + 94 ) AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-5469
SELECT - MAX ( + + 94 ) AS col0
----
-94

query I rowsort
SELECT + 45 * + + 87 * - 40 AS col2
----
-156600

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5471
SELECT CAST( NULL AS SIGNED ), 44 + + + 65 AS col2
----
NULL
109

skipif mysql # not compatible
query II rowsort label-5471
SELECT CAST ( NULL AS INTEGER ), 44 + + + 65 AS col2
----
NULL
109

query I rowsort
SELECT ALL - - ( 85 )
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5473
SELECT DISTINCT - CAST( - ( - + 83 ) AS SIGNED )
----
-83

skipif mysql # not compatible
query I rowsort label-5473
SELECT DISTINCT - CAST ( - ( - + 83 ) AS INTEGER )
----
-83

query I rowsort
SELECT DISTINCT 58 * - - 88
----
5104

onlyif mysql # aggregate syntax: 
query I rowsort label-5475
SELECT - MAX( + - 39 ) + 57
----
96

skipif mysql # not compatible
query I rowsort label-5475
SELECT - MAX ( + - 39 ) + 57
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5476
SELECT ALL - + COUNT( * ) - ( COUNT( * ) ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-5476
SELECT ALL - + COUNT ( * ) - ( COUNT ( * ) ) AS col2
----
-2

query I rowsort
SELECT + + 77 + 99 * 20
----
2057

query I rowsort
SELECT - 69 + - 23
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-5479
SELECT ALL + COUNT( * ) * + 65 AS col0
----
65

skipif mysql # not compatible
query I rowsort label-5479
SELECT ALL + COUNT ( * ) * + 65 AS col0
----
65

query II rowsort
SELECT - + 88 col0, + 83 col2
----
-88
83

query I rowsort
SELECT ALL - 8 col0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-5482
SELECT SUM( DISTINCT - + 6 )
----
-6

skipif mysql # not compatible
query I rowsort label-5482
SELECT SUM ( DISTINCT - + 6 )
----
-6

query I rowsort
SELECT ALL - ( 82 ) AS col1
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-5484
SELECT DISTINCT + 72 * + - COUNT( * )
----
-72

skipif mysql # not compatible
query I rowsort label-5484
SELECT DISTINCT + 72 * + - COUNT ( * )
----
-72

query I rowsort
SELECT 67 - 94 AS col0
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-5486
SELECT ALL - - 4 - + 57 DIV 56
----
3

skipif mysql # not compatible
query I rowsort label-5486
SELECT ALL - - 4 - + 57 / 56
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5487
SELECT ALL COUNT( * ) + + 61
----
62

skipif mysql # not compatible
query I rowsort label-5487
SELECT ALL COUNT ( * ) + + 61
----
62

query I rowsort
SELECT 78 + + 91
----
169

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5489
SELECT - CAST( + - 74 AS SIGNED ) + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5489
SELECT - CAST ( + - 74 AS INTEGER ) + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL - 67 + + ( - + ( 14 ) ) AS col0
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5491
SELECT ALL + 56 DIV - COUNT( * ) AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-5491
SELECT ALL + 56 / - COUNT ( * ) AS col1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-5492
SELECT ALL COUNT( DISTINCT + + 31 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5492
SELECT ALL COUNT ( DISTINCT + + 31 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5493
SELECT + - SUM( ALL - + 69 )
----
69

skipif mysql # not compatible
query I rowsort label-5493
SELECT + - SUM ( ALL - + 69 )
----
69

query I rowsort
SELECT - 66 + - 93
----
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-5495
SELECT + 83 + + COUNT( * )
----
84

skipif mysql # not compatible
query I rowsort label-5495
SELECT + 83 + + COUNT ( * )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5496
SELECT + 59 + + + COUNT( * ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-5496
SELECT + 59 + + + COUNT ( * ) AS col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5497
SELECT + 77 * + + COUNT( * ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-5497
SELECT + 77 * + + COUNT ( * ) AS col1
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5498
SELECT - CAST( NULL AS SIGNED ) + - - 9 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5498
SELECT - CAST ( NULL AS INTEGER ) + - - 9 AS col0
----
NULL

query I rowsort
SELECT - - 38 * - 45 AS col2
----
-1710

query I rowsort
SELECT 53 * + 74 AS col1
----
3922

onlyif mysql # aggregate syntax: 
query I rowsort label-5501
SELECT DISTINCT COUNT( * ) * - - 51 * + 82 AS col1
----
4182

skipif mysql # not compatible
query I rowsort label-5501
SELECT DISTINCT COUNT ( * ) * - - 51 * + 82 AS col1
----
4182

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5502
SELECT + - CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5502
SELECT + - CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5503
SELECT ALL COUNT( * ) * + 45 * + - ( 70 ) col2
----
-3150

skipif mysql # not compatible
query I rowsort label-5503
SELECT ALL COUNT ( * ) * + 45 * + - ( 70 ) col2
----
-3150

onlyif mysql # aggregate syntax: 
query I rowsort label-5504
SELECT DISTINCT MAX( ALL - 63 ) AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-5504
SELECT DISTINCT MAX ( ALL - 63 ) AS col1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-5505
SELECT DISTINCT - - COALESCE ( - 25, + COUNT( * ) * + 53 )
----
-25

skipif mysql # not compatible
query I rowsort label-5505
SELECT DISTINCT - - COALESCE ( - 25, + COUNT ( * ) * + 53 )
----
-25

query I rowsort
SELECT DISTINCT - 32 * 50
----
-1600

onlyif mysql # aggregate syntax: 
query I rowsort label-5507
SELECT ALL MAX( + ( - 21 ) ) AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-5507
SELECT ALL MAX ( + ( - 21 ) ) AS col0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-5508
SELECT SUM( DISTINCT + 12 ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-5508
SELECT SUM ( DISTINCT + 12 ) AS col1
----
12

query I rowsort
SELECT ALL + - 36 AS col2
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-5510
SELECT ALL - COUNT( * ) * - - 86 + ( + COUNT( * ) )
----
-85

skipif mysql # not compatible
query I rowsort label-5510
SELECT ALL - COUNT ( * ) * - - 86 + ( + COUNT ( * ) )
----
-85

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5511
SELECT + 57 * - - 6 * - + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5511
SELECT + 57 * - - 6 * - + CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT - - 3 + - 7
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-5513
SELECT 72 + + 47 + 69, - COUNT( ALL + 26 ) AS col1
----
188
-1

skipif mysql # not compatible
query II rowsort label-5513
SELECT 72 + + 47 + 69, - COUNT ( ALL + 26 ) AS col1
----
188
-1

query I rowsort
SELECT 62 * - 48
----
-2976

query I rowsort
SELECT ALL 45 - + - 66 AS col2
----
111

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5516
SELECT ALL - + 56 * - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5516
SELECT ALL - + 56 * - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5517
SELECT - COUNT( DISTINCT + 57 )
----
-1

skipif mysql # not compatible
query I rowsort label-5517
SELECT - COUNT ( DISTINCT + 57 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5518
SELECT DISTINCT + 27 * - COUNT( * ) + - 93 AS col2
----
-120

skipif mysql # not compatible
query I rowsort label-5518
SELECT DISTINCT + 27 * - COUNT ( * ) + - 93 AS col2
----
-120

query II rowsort
SELECT + - 97 col1, - 46 AS col0
----
-97
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5520
SELECT DISTINCT + 10 + - + 9 DIV - 56 + COUNT( * ) + - - 9
----
20

skipif mysql # not compatible
query I rowsort label-5520
SELECT DISTINCT + 10 + - + 9 / - 56 + COUNT ( * ) + - - 9
----
20

query I rowsort
SELECT ALL - ( + + 3 )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5522
SELECT DISTINCT 87 + + - COUNT( * ) * + 79 col2
----
8

skipif mysql # not compatible
query I rowsort label-5522
SELECT DISTINCT 87 + + - COUNT ( * ) * + 79 col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5523
SELECT + 40 * + + COUNT( * ) col1
----
40

skipif mysql # not compatible
query I rowsort label-5523
SELECT + 40 * + + COUNT ( * ) col1
----
40

query I rowsort
SELECT ALL + ( - 91 )
----
-91

query I rowsort
SELECT DISTINCT + 26 * + 15
----
390

onlyif mysql # aggregate syntax: 
query I rowsort label-5526
SELECT ALL ( - COALESCE ( - + 87, COUNT( * ) ) )
----
87

skipif mysql # not compatible
query I rowsort label-5526
SELECT ALL ( - COALESCE ( - + 87, COUNT ( * ) ) )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5527
SELECT - 86 * - MIN( + 99 )
----
8514

skipif mysql # not compatible
query I rowsort label-5527
SELECT - 86 * - MIN ( + 99 )
----
8514

onlyif mysql # aggregate syntax: 
query I rowsort label-5528
SELECT + COUNT( * ) + + 44 AS col0
----
45

skipif mysql # not compatible
query I rowsort label-5528
SELECT + COUNT ( * ) + + 44 AS col0
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-5529
SELECT DISTINCT COUNT( * ), ( - - 11 ) AS col2
----
1
11

skipif mysql # not compatible
query II rowsort label-5529
SELECT DISTINCT COUNT ( * ), ( - - 11 ) AS col2
----
1
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5530
SELECT ALL 12 / + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5530
SELECT ALL 12 / + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5531
SELECT DISTINCT 41 DIV - + 2
----
-20

skipif mysql # not compatible
query I rowsort label-5531
SELECT DISTINCT 41 / - + 2
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-5532
SELECT ALL 76 * - COUNT( * ) AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-5532
SELECT ALL 76 * - COUNT ( * ) AS col1
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5533
SELECT ALL - - CAST( NULL AS SIGNED ) * - 37
----
NULL

skipif mysql # not compatible
query I rowsort label-5533
SELECT ALL - - CAST ( NULL AS INTEGER ) * - 37
----
NULL

query I rowsort
SELECT DISTINCT + - 36 + + - 23 * - 59 AS col2
----
1321

query I rowsort
SELECT + ( - 51 ) AS col2
----
-51

query I rowsort
SELECT ALL 88 * - 81 * + - 46
----
327888

onlyif mysql # aggregate syntax: 
query I rowsort label-5537
SELECT + + MIN( ALL - + 59 ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-5537
SELECT + + MIN ( ALL - + 59 ) AS col2
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5538
SELECT - CAST( + - 95 AS SIGNED ) * - MAX( ALL + - 78 ) col2
----
7410

skipif mysql # not compatible
query I rowsort label-5538
SELECT - CAST ( + - 95 AS INTEGER ) * - MAX ( ALL + - 78 ) col2
----
7410

query I rowsort
SELECT - 5 * + ( + 81 )
----
-405

onlyif mysql # aggregate syntax: 
query I rowsort label-5540
SELECT - - COUNT( * ) + - SUM( - 98 )
----
99

skipif mysql # not compatible
query I rowsort label-5540
SELECT - - COUNT ( * ) + - SUM ( - 98 )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5541
SELECT ALL 83 * + COUNT( * ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-5541
SELECT ALL 83 * + COUNT ( * ) AS col1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5542
SELECT ALL 10 - + COUNT( * ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-5542
SELECT ALL 10 - + COUNT ( * ) AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5543
SELECT DISTINCT + ( - COALESCE ( + SUM( + + 64 ), - - ( - + 68 ) ) ) * + 52 + + 84 col2
----
-3244

skipif mysql # not compatible
query I rowsort label-5543
SELECT DISTINCT + ( - COALESCE ( + SUM ( + + 64 ), - - ( - + 68 ) ) ) * + 52 + + 84 col2
----
-3244

onlyif mysql # aggregate syntax: 
query II rowsort label-5544
SELECT - ( + + COUNT( * ) ) AS col2, - 2 AS col2
----
-1
-2

skipif mysql # not compatible
query II rowsort label-5544
SELECT - ( + + COUNT ( * ) ) AS col2, - 2 AS col2
----
-1
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5545
SELECT ALL ( - CAST( - 73 AS SIGNED ) )
----
73

skipif mysql # not compatible
query I rowsort label-5545
SELECT ALL ( - CAST ( - 73 AS INTEGER ) )
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5546
SELECT - 45 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5546
SELECT - 45 * - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT + + 35, + 20 AS col2
----
35
20

query I rowsort
SELECT DISTINCT + + 90 AS col2
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-5549
SELECT ALL 83 DIV + ( - 95 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5549
SELECT ALL 83 / + ( - 95 ) AS col1
----
0

query I rowsort
SELECT ALL - + 22 AS col1
----
-22

query I rowsort
SELECT - 87 - 1
----
-88

query I rowsort
SELECT 89 * - 63 col2
----
-5607

query I rowsort
SELECT ALL + ( 12 ) AS col2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5554
SELECT DISTINCT ( - SUM( - 39 ) ) col0
----
39

skipif mysql # not compatible
query I rowsort label-5554
SELECT DISTINCT ( - SUM ( - 39 ) ) col0
----
39

query I rowsort
SELECT + 21 * + 55 - 50 AS col2
----
1105

onlyif mysql # aggregate syntax: 
query I rowsort label-5556
SELECT - 35 - - COUNT( * )
----
-34

skipif mysql # not compatible
query I rowsort label-5556
SELECT - 35 - - COUNT ( * )
----
-34

query I rowsort
SELECT ALL ( - + 21 ) AS col2
----
-21

query I rowsort
SELECT + 63 * + 74 AS col0
----
4662

query I rowsort
SELECT DISTINCT ( - 86 )
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5560
SELECT - CAST( - 37 AS SIGNED ) * COUNT( * ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-5560
SELECT - CAST ( - 37 AS INTEGER ) * COUNT ( * ) AS col1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5561
SELECT + 73 + + COUNT( * ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-5561
SELECT + 73 + + COUNT ( * ) AS col2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5562
SELECT COUNT( * ) * 94
----
94

skipif mysql # not compatible
query I rowsort label-5562
SELECT COUNT ( * ) * 94
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5563
SELECT DISTINCT 66 + - COUNT( * ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-5563
SELECT DISTINCT 66 + - COUNT ( * ) AS col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5564
SELECT COUNT( - 65 )
----
1

skipif mysql # not compatible
query I rowsort label-5564
SELECT COUNT ( - 65 )
----
1

query I rowsort
SELECT ALL - ( + ( - 10 ) )
----
10

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5566
SELECT - ( - + COUNT( * ) ) * + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5566
SELECT - ( - + COUNT ( * ) ) * + CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT ALL - ( - ( 17 ) ) * + 82 AS col2
----
1394

query I rowsort
SELECT - + 66 col2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5569
SELECT SUM( + 60 )
----
60

skipif mysql # not compatible
query I rowsort label-5569
SELECT SUM ( + 60 )
----
60

query I rowsort
SELECT - 40 * + 13
----
-520

onlyif mysql # aggregate syntax: 
query I rowsort label-5571
SELECT DISTINCT - COUNT( - 12 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5571
SELECT DISTINCT - COUNT ( - 12 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5572
SELECT ALL + - MAX( - ( - 80 ) ) - 60 * 4 AS col2
----
-320

skipif mysql # not compatible
query I rowsort label-5572
SELECT ALL + - MAX ( - ( - 80 ) ) - 60 * 4 AS col2
----
-320

onlyif mysql # aggregate syntax: 
query I rowsort label-5573
SELECT DISTINCT - MIN( ALL + 15 )
----
-15

skipif mysql # not compatible
query I rowsort label-5573
SELECT DISTINCT - MIN ( ALL + 15 )
----
-15

query II rowsort
SELECT ALL + 30, + 40 AS col1
----
30
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5575
SELECT CAST( 15 AS SIGNED )
----
15

skipif mysql # not compatible
query I rowsort label-5575
SELECT CAST ( 15 AS INTEGER )
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-5576
SELECT ALL + 59 DIV 10 + - 46
----
-41

skipif mysql # not compatible
query I rowsort label-5576
SELECT ALL + 59 / 10 + - 46
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5577
SELECT DISTINCT + 74 DIV 47 * - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5577
SELECT DISTINCT + 74 / 47 * - COUNT ( * ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5578
SELECT 50 + COUNT( * ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-5578
SELECT 50 + COUNT ( * ) AS col0
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5579
SELECT COUNT( * ) * - 51, SUM( ALL - - CAST( NULL AS SIGNED ) ) AS col2
----
-51
NULL

skipif mysql # not compatible
query II rowsort label-5579
SELECT COUNT ( * ) * - 51, SUM ( ALL - - CAST ( NULL AS INTEGER ) ) AS col2
----
-51
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5580
SELECT ALL + MIN( - + CAST( + + 11 AS SIGNED ) )
----
-11

skipif mysql # not compatible
query I rowsort label-5580
SELECT ALL + MIN ( - + CAST ( + + 11 AS INTEGER ) )
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-5581
SELECT 34 DIV - 8 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-5581
SELECT 34 / - 8 AS col0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5582
SELECT 40 * + + COUNT( * ) * + 93 AS col0
----
3720

skipif mysql # not compatible
query I rowsort label-5582
SELECT 40 * + + COUNT ( * ) * + 93 AS col0
----
3720

onlyif mysql # aggregate syntax: 
query I rowsort label-5583
SELECT ALL 28 + SUM( DISTINCT + 98 ) * 5 col2
----
518

skipif mysql # not compatible
query I rowsort label-5583
SELECT ALL 28 + SUM ( DISTINCT + 98 ) * 5 col2
----
518

onlyif mysql # aggregate syntax: 
query I rowsort label-5584
SELECT SUM( DISTINCT - - 32 ) * - 67 AS col1
----
-2144

skipif mysql # not compatible
query I rowsort label-5584
SELECT SUM ( DISTINCT - - 32 ) * - 67 AS col1
----
-2144

onlyif mysql # aggregate syntax: 
query I rowsort label-5585
SELECT - 23 + + 28 * - ( COUNT( * ) )
----
-51

skipif mysql # not compatible
query I rowsort label-5585
SELECT - 23 + + 28 * - ( COUNT ( * ) )
----
-51

query I rowsort
SELECT ALL - - 62 col1
----
62

query I rowsort
SELECT ALL ( - + 16 )
----
-16

query I rowsort
SELECT ALL - 64 + + ( 49 ) AS col0
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5589
SELECT ALL MAX( ALL ( + CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5589
SELECT ALL MAX ( ALL ( + CAST ( NULL AS INTEGER ) ) )
----
NULL

query II rowsort
SELECT + 47, + 68 AS col0
----
47
68

query I rowsort
SELECT ALL + + ( + - 42 )
----
-42

query I rowsort
SELECT DISTINCT + + 55 AS col1
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5593
SELECT + CAST( NULL AS SIGNED ) AS col2, 34 AS col2
----
NULL
34

skipif mysql # not compatible
query II rowsort label-5593
SELECT + CAST ( NULL AS INTEGER ) AS col2, 34 AS col2
----
NULL
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5594
SELECT DISTINCT + COUNT( * ) + + 99 AS col2
----
100

skipif mysql # not compatible
query I rowsort label-5594
SELECT DISTINCT + COUNT ( * ) + + 99 AS col2
----
100

onlyif mysql # DIV for integer division: 
query I rowsort label-5595
SELECT + 75 DIV + 80
----
0

skipif mysql # not compatible
query I rowsort label-5595
SELECT + 75 / + 80
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5596
SELECT - ( + CAST( + 79 AS SIGNED ) ) AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-5596
SELECT - ( + CAST ( + 79 AS INTEGER ) ) AS col0
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-5597
SELECT DISTINCT + MAX( ALL 6 ) * - 99 AS col0
----
-594

skipif mysql # not compatible
query I rowsort label-5597
SELECT DISTINCT + MAX ( ALL 6 ) * - 99 AS col0
----
-594

onlyif mysql # aggregate syntax: 
query I rowsort label-5598
SELECT ALL COUNT( * ) * 98 + - 5
----
93

skipif mysql # not compatible
query I rowsort label-5598
SELECT ALL COUNT ( * ) * 98 + - 5
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5599
SELECT + - 47 * COUNT( * ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-5599
SELECT + - 47 * COUNT ( * ) AS col1
----
-47

query I rowsort
SELECT - 73 * 46
----
-3358

query I rowsort
SELECT ALL - ( + 60 )
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-5602
SELECT ALL - + COUNT( DISTINCT - ( + 9 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5602
SELECT ALL - + COUNT ( DISTINCT - ( + 9 ) ) AS col2
----
-1

query I rowsort
SELECT - ( 42 ) * - ( - 81 )
----
-3402

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5604
SELECT - MIN( - 46 ) DIV - CAST( - COUNT( * ) AS SIGNED )
----
46

skipif mysql # not compatible
query I rowsort label-5604
SELECT - MIN ( - 46 ) / - CAST ( - COUNT ( * ) AS INTEGER )
----
46

query I rowsort
SELECT - 60 + + 37 AS col1
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5606
SELECT + + MAX( CAST( NULL AS SIGNED ) ) - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-5606
SELECT + + MAX ( CAST ( NULL AS INTEGER ) ) - 94
----
NULL

query II rowsort
SELECT ALL + 40, - 71 AS col0
----
40
-71

query I rowsort
SELECT ALL ( 66 ) AS col2
----
66

query I rowsort
SELECT DISTINCT - + 15 + 93
----
78

query I rowsort
SELECT ALL + ( + - 28 )
----
-28

query I rowsort
SELECT DISTINCT - ( 42 )
----
-42

query I rowsort
SELECT ALL 69 + - 67 * - 14 AS col1
----
1007

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5613
SELECT DISTINCT 98 DIV 15 AS col0, + MIN( + 5 )
----
6
5

skipif mysql # not compatible
query II rowsort label-5613
SELECT DISTINCT 98 / 15 AS col0, + MIN ( + 5 )
----
6
5

query I rowsort
SELECT + 16 * + 88
----
1408

query I rowsort
SELECT - 78 - 32
----
-110

query I rowsort
SELECT 32 + + + 75
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-5617
SELECT ALL + SUM( DISTINCT + 84 ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-5617
SELECT ALL + SUM ( DISTINCT + 84 ) AS col2
----
84

query I rowsort
SELECT ALL - 60 + 67 + - 36 AS col1
----
-29

query I rowsort
SELECT DISTINCT - 7 * + 97 AS col1
----
-679

onlyif mysql # aggregate syntax: 
query I rowsort label-5620
SELECT DISTINCT COUNT( * ) * COALESCE ( + 47, COUNT( * ) * COUNT( * ) - + 4 + + COUNT( * ) ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-5620
SELECT DISTINCT COUNT ( * ) * COALESCE ( + 47, COUNT ( * ) * COUNT ( * ) - + 4 + + COUNT ( * ) ) AS col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5621
SELECT + 76 + - 87 - - COUNT( * ) col0
----
-10

skipif mysql # not compatible
query I rowsort label-5621
SELECT + 76 + - 87 - - COUNT ( * ) col0
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5622
SELECT ( - 13 ) * + - MAX( DISTINCT + CAST( + 43 AS SIGNED ) )
----
559

skipif mysql # not compatible
query I rowsort label-5622
SELECT ( - 13 ) * + - MAX ( DISTINCT + CAST ( + 43 AS INTEGER ) )
----
559

query I rowsort
SELECT DISTINCT + 29 + - 24 AS col1
----
5

query I rowsort
SELECT - - 7 * + + 25
----
175

onlyif mysql # aggregate syntax: 
query I rowsort label-5625
SELECT + COUNT( DISTINCT - 80 )
----
1

skipif mysql # not compatible
query I rowsort label-5625
SELECT + COUNT ( DISTINCT - 80 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5626
SELECT - COUNT( * ) + 20 AS col0
----
19

skipif mysql # not compatible
query I rowsort label-5626
SELECT - COUNT ( * ) + 20 AS col0
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5627
SELECT ALL - - 31 DIV + COUNT( * ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-5627
SELECT ALL - - 31 / + COUNT ( * ) AS col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5628
SELECT ALL + - 76 * - COUNT( * )
----
76

skipif mysql # not compatible
query I rowsort label-5628
SELECT ALL + - 76 * - COUNT ( * )
----
76

query I rowsort
SELECT DISTINCT ( 98 ) AS col1
----
98

query I rowsort
SELECT ALL 70 * - 88
----
-6160

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5631
SELECT + 14 AS col0, CAST( NULL AS SIGNED )
----
14
NULL

skipif mysql # not compatible
query II rowsort label-5631
SELECT + 14 AS col0, CAST ( NULL AS INTEGER )
----
14
NULL

query I rowsort
SELECT ALL - - 52 AS col1
----
52

query I rowsort
SELECT 57 + + 79 AS col0
----
136

query I rowsort
SELECT 38 + + - 35
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-5635
SELECT ALL - COUNT( - - 78 ), + 39 AS col0
----
-1
39

skipif mysql # not compatible
query II rowsort label-5635
SELECT ALL - COUNT ( - - 78 ), + 39 AS col0
----
-1
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5636
SELECT + COUNT( 31 )
----
1

skipif mysql # not compatible
query I rowsort label-5636
SELECT + COUNT ( 31 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5637
SELECT ALL COUNT( - + 35 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5637
SELECT ALL COUNT ( - + 35 ) AS col2
----
1

query I rowsort
SELECT + 34 - + + 24 col1
----
10

query I rowsort
SELECT ALL - 4 + - 70 AS col2
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5640
SELECT CAST( NULL AS SIGNED ), 3 AS col1
----
NULL
3

skipif mysql # not compatible
query II rowsort label-5640
SELECT CAST ( NULL AS INTEGER ), 3 AS col1
----
NULL
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5641
SELECT DISTINCT + - SUM( + 0 )
----
0

skipif mysql # not compatible
query I rowsort label-5641
SELECT DISTINCT + - SUM ( + 0 )
----
0

query I rowsort
SELECT + - 22 + - 0
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5643
SELECT ALL + + ( + CAST( + COUNT( * ) AS SIGNED ) ) * - COUNT( * ) + 11
----
10

skipif mysql # not compatible
query I rowsort label-5643
SELECT ALL + + ( + CAST ( + COUNT ( * ) AS INTEGER ) ) * - COUNT ( * ) + 11
----
10

query I rowsort
SELECT + 5 * - 13 AS col2
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5645
SELECT DISTINCT - + SUM( + 14 ) AS col0, + ( + COUNT( * ) ) DIV 2 AS col2
----
-14
0

skipif mysql # not compatible
query II rowsort label-5645
SELECT DISTINCT - + SUM ( + 14 ) AS col0, + ( + COUNT ( * ) ) / 2 AS col2
----
-14
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5646
SELECT ALL ( + COUNT( * ) ) * + - 98 AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-5646
SELECT ALL ( + COUNT ( * ) ) * + - 98 AS col2
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-5647
SELECT ALL 63 * COUNT( * ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-5647
SELECT ALL 63 * COUNT ( * ) AS col1
----
63

query I rowsort
SELECT ALL - 8 + 94 AS col0
----
86

query I rowsort
SELECT - 16 * 56 AS col1
----
-896

onlyif mysql # aggregate syntax: 
query I rowsort label-5650
SELECT + 80 * - 66 * + COUNT( * ) AS col1
----
-5280

skipif mysql # not compatible
query I rowsort label-5650
SELECT + 80 * - 66 * + COUNT ( * ) AS col1
----
-5280

query I rowsort
SELECT ALL + 25 * + 89
----
2225

onlyif mysql # aggregate syntax: 
query I rowsort label-5652
SELECT + - 12 - + COUNT( * )
----
-13

skipif mysql # not compatible
query I rowsort label-5652
SELECT + - 12 - + COUNT ( * )
----
-13

query I rowsort
SELECT + + 86 AS col1
----
86

query I rowsort
SELECT + ( - + 66 )
----
-66

query I rowsort
SELECT ALL 32 * + + 15
----
480

query I rowsort
SELECT ALL + 13 + - - 46 AS col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5657
SELECT DISTINCT MAX( + 51 ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-5657
SELECT DISTINCT MAX ( + 51 ) AS col1
----
51

query I rowsort
SELECT 57 * + 80 AS col2
----
4560

query I rowsort
SELECT DISTINCT 34 * - 22 * - - 91 AS col1
----
-68068

onlyif mysql # aggregate syntax: 
query I rowsort label-5660
SELECT DISTINCT COUNT( DISTINCT + 37 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5660
SELECT DISTINCT COUNT ( DISTINCT + 37 ) AS col0
----
1

query I rowsort
SELECT - + ( + - 40 )
----
40

query I rowsort
SELECT - 75 * - - ( + 53 )
----
-3975

onlyif mysql # aggregate syntax: 
query I rowsort label-5663
SELECT COUNT( - 33 )
----
1

skipif mysql # not compatible
query I rowsort label-5663
SELECT COUNT ( - 33 )
----
1

query I rowsort
SELECT ALL + 18 * - - 42
----
756

query I rowsort
SELECT - + ( - 23 )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5666
SELECT ALL MAX( - 5 ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-5666
SELECT ALL MAX ( - 5 ) AS col2
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5667
SELECT ALL 9 DIV + + COUNT( - 32 ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-5667
SELECT ALL 9 / + + COUNT ( - 32 ) AS col0
----
9

query II rowsort
SELECT 85, + 28 * 65 AS col2
----
85
1820

onlyif mysql # aggregate syntax: 
query I rowsort label-5669
SELECT + - SUM( ALL 59 ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-5669
SELECT + - SUM ( ALL 59 ) AS col0
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5670
SELECT - ( + CAST( + COUNT( * ) AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5670
SELECT - ( + CAST ( + COUNT ( * ) AS INTEGER ) )
----
-1

query I rowsort
SELECT DISTINCT 32 * + 57 AS col1
----
1824

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5672
SELECT + COUNT( * ) DIV - - 99
----
0

skipif mysql # not compatible
query I rowsort label-5672
SELECT + COUNT ( * ) / - - 99
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5673
SELECT + MAX( + 1 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-5673
SELECT + MAX ( + 1 ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5674
SELECT ALL + - COUNT( * ) * - 95
----
95

skipif mysql # not compatible
query I rowsort label-5674
SELECT ALL + - COUNT ( * ) * - 95
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-5675
SELECT ALL MIN( ALL - 41 ), - 73 AS col2
----
-41
-73

skipif mysql # not compatible
query II rowsort label-5675
SELECT ALL MIN ( ALL - 41 ), - 73 AS col2
----
-41
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-5676
SELECT DISTINCT MIN( DISTINCT 3 )
----
3

skipif mysql # not compatible
query I rowsort label-5676
SELECT DISTINCT MIN ( DISTINCT 3 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5677
SELECT - 2 * COUNT( - 97 )
----
-2

skipif mysql # not compatible
query I rowsort label-5677
SELECT - 2 * COUNT ( - 97 )
----
-2

query I rowsort
SELECT ALL ( - - 45 ) AS col1
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5679
SELECT ALL - - 31 DIV + + COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-5679
SELECT ALL - - 31 / + + COUNT ( * )
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5680
SELECT DISTINCT + + COALESCE ( + - 71, + CAST( NULL AS SIGNED ) )
----
-71

skipif mysql # not compatible
query I rowsort label-5680
SELECT DISTINCT + + COALESCE ( + - 71, + CAST ( NULL AS INTEGER ) )
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-5681
SELECT ALL + COUNT( * ) * - + ( - COUNT( * ) ) * - + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-5681
SELECT ALL + COUNT ( * ) * - + ( - COUNT ( * ) ) * - + COUNT ( * )
----
-1

query I rowsort
SELECT + ( - 78 ) AS col0
----
-78

query I rowsort
SELECT DISTINCT + - 10 AS col2
----
-10

query I rowsort
SELECT ALL + 53 * 66 + 78 AS col2
----
3576

onlyif mysql # aggregate syntax: 
query I rowsort label-5685
SELECT MIN( DISTINCT + - 42 )
----
-42

skipif mysql # not compatible
query I rowsort label-5685
SELECT MIN ( DISTINCT + - 42 )
----
-42

query I rowsort
SELECT - ( 48 ) AS col2
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-5687
SELECT - COUNT( * ) + 79 AS col1
----
78

skipif mysql # not compatible
query I rowsort label-5687
SELECT - COUNT ( * ) + 79 AS col1
----
78

query I rowsort
SELECT ALL COALESCE ( 26, + 90, - - ( + - 67 ) ) AS col2
----
26

query II rowsort
SELECT ALL - + 35 AS col2, 75 - 78 AS col2
----
-35
-3

query I rowsort
SELECT ALL - ( - 11 ) + + 30
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5691
SELECT ALL + 28 + - COUNT( * ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-5691
SELECT ALL + 28 + - COUNT ( * ) AS col0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5692
SELECT DISTINCT - COUNT( * ) + - - 22 AS col0
----
21

skipif mysql # not compatible
query I rowsort label-5692
SELECT DISTINCT - COUNT ( * ) + - - 22 AS col0
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5693
SELECT COUNT( - + 87 ) + + - 0 DIV - 20 col0
----
1

skipif mysql # not compatible
query I rowsort label-5693
SELECT COUNT ( - + 87 ) + + - 0 / - 20 col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5694
SELECT 99 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5694
SELECT 99 / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5695
SELECT ALL - 82 + + COUNT( - 98 ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-5695
SELECT ALL - 82 + + COUNT ( - 98 ) AS col1
----
-81

query I rowsort
SELECT DISTINCT + - 96 - 18
----
-114

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5697
SELECT COUNT( * ) DIV - 11 + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-5697
SELECT COUNT ( * ) / - 11 + + COUNT ( * )
----
1

query I rowsort
SELECT + - 85 AS col1
----
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-5699
SELECT + + ( 16 ) * MIN( ALL 48 ) AS col1, COUNT( * ) col1
----
768
1

skipif mysql # not compatible
query II rowsort label-5699
SELECT + + ( 16 ) * MIN ( ALL 48 ) AS col1, COUNT ( * ) col1
----
768
1

query I rowsort
SELECT - 52 * - 93 AS col2
----
4836

query I rowsort
SELECT - - 15 AS col2
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5702
SELECT ALL - CAST( + ( + 5 ) AS SIGNED )
----
-5

skipif mysql # not compatible
query I rowsort label-5702
SELECT ALL - CAST ( + ( + 5 ) AS INTEGER )
----
-5

query I rowsort
SELECT DISTINCT - ( - 82 )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5704
SELECT + COUNT( * ) * + 7 col2
----
7

skipif mysql # not compatible
query I rowsort label-5704
SELECT + COUNT ( * ) * + 7 col2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5705
SELECT ALL COUNT( ALL + 59 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5705
SELECT ALL COUNT ( ALL + 59 ) AS col0
----
1

query I rowsort
SELECT - 81 - + 90
----
-171

onlyif mysql # aggregate syntax: 
query I rowsort label-5707
SELECT 53 * + COUNT( * ) + COUNT( * ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-5707
SELECT 53 * + COUNT ( * ) + COUNT ( * ) AS col2
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5708
SELECT ALL + CAST( NULL AS SIGNED ) col1, - 77
----
NULL
-77

skipif mysql # not compatible
query II rowsort label-5708
SELECT ALL + CAST ( NULL AS INTEGER ) col1, - 77
----
NULL
-77

query I rowsort
SELECT ALL + - 31 col2
----
-31

query I rowsort
SELECT + 40 * 14
----
560

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5711
SELECT CAST( + 56 AS SIGNED )
----
56

skipif mysql # not compatible
query I rowsort label-5711
SELECT CAST ( + 56 AS INTEGER )
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-5712
SELECT - COALESCE ( - + 87, + 8 ) DIV 25
----
3

skipif mysql # not compatible
query I rowsort label-5712
SELECT - COALESCE ( - + 87, + 8 ) / 25
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5713
SELECT DISTINCT - COUNT( * ) * + + 13 AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-5713
SELECT DISTINCT - COUNT ( * ) * + + 13 AS col2
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-5714
SELECT ( 97 ) AS col0, COUNT( * ) AS col2
----
97
1

skipif mysql # not compatible
query II rowsort label-5714
SELECT ( 97 ) AS col0, COUNT ( * ) AS col2
----
97
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5715
SELECT CAST( NULL AS SIGNED ) / ( + - 68 ) AS col0, 38
----
NULL
38

skipif mysql # not compatible
query II rowsort label-5715
SELECT CAST ( NULL AS INTEGER ) / ( + - 68 ) AS col0, 38
----
NULL
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5716
SELECT ALL MAX( + + 78 ) col0
----
78

skipif mysql # not compatible
query I rowsort label-5716
SELECT ALL MAX ( + + 78 ) col0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5717
SELECT COUNT( - NULLIF ( + 17, - 65 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5717
SELECT COUNT ( - NULLIF ( + 17, - 65 ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5718
SELECT 81 * COUNT( * ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-5718
SELECT 81 * COUNT ( * ) AS col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5719
SELECT ALL - + MAX( ALL - 27 )
----
27

skipif mysql # not compatible
query I rowsort label-5719
SELECT ALL - + MAX ( ALL - 27 )
----
27

query I rowsort
SELECT + 81 + - - 64 AS col1
----
145

query I rowsort
SELECT ALL + ( ( 25 ) )
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5722
SELECT - CAST( - 55 AS SIGNED )
----
55

skipif mysql # not compatible
query I rowsort label-5722
SELECT - CAST ( - 55 AS INTEGER )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5723
SELECT + 68 - - COUNT( * ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-5723
SELECT + 68 - - COUNT ( * ) AS col2
----
69

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5724
SELECT DISTINCT NULLIF ( - 46, + - CAST( NULL AS DECIMAL ) ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-5724
SELECT DISTINCT NULLIF ( - 46, + - CAST ( NULL AS REAL ) ) AS col2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-5725
SELECT - + COUNT( - 42 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5725
SELECT - + COUNT ( - 42 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5726
SELECT + 71 AS col1, - COUNT( * ) AS col0
----
71
-1

skipif mysql # not compatible
query II rowsort label-5726
SELECT + 71 AS col1, - COUNT ( * ) AS col0
----
71
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5727
SELECT COUNT( * ) + + 26
----
27

skipif mysql # not compatible
query I rowsort label-5727
SELECT COUNT ( * ) + + 26
----
27

query I rowsort
SELECT + - ( - 22 ) AS col2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5729
SELECT + COUNT( * ) * + - 15 + + 10 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-5729
SELECT + COUNT ( * ) * + - 15 + + 10 AS col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5730
SELECT ALL + COUNT( * ) + - COUNT( * ) - + 30
----
-30

skipif mysql # not compatible
query I rowsort label-5730
SELECT ALL + COUNT ( * ) + - COUNT ( * ) - + 30
----
-30

query I rowsort
SELECT DISTINCT - 32 + - - 56 AS col0
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5732
SELECT DISTINCT + 60 * + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5732
SELECT DISTINCT + 60 * + CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT 98 - + 20 AS col1
----
78

onlyif mysql # DIV for integer division: 
query II rowsort label-5734
SELECT - 52 AS col2, + 56 DIV - 48 AS col2
----
-52
-1

skipif mysql # not compatible
query II rowsort label-5734
SELECT - 52 AS col2, + 56 / - 48 AS col2
----
-52
-1

query I rowsort
SELECT + ( - 45 ) AS col0
----
-45

query I rowsort
SELECT ALL + ( - 63 )
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-5737
SELECT - COUNT( - 57 ) - - 63
----
62

skipif mysql # not compatible
query I rowsort label-5737
SELECT - COUNT ( - 57 ) - - 63
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5738
SELECT MAX( DISTINCT + 92 )
----
92

skipif mysql # not compatible
query I rowsort label-5738
SELECT MAX ( DISTINCT + 92 )
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5739
SELECT - - CAST( NULL AS SIGNED ) + - + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-5739
SELECT - - CAST ( NULL AS INTEGER ) + - + 25
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5740
SELECT DISTINCT - 42 + - SUM( ALL 64 ) AS col0
----
-106

skipif mysql # not compatible
query I rowsort label-5740
SELECT DISTINCT - 42 + - SUM ( ALL 64 ) AS col0
----
-106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5741
SELECT CAST( + 42 AS SIGNED ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-5741
SELECT CAST ( + 42 AS INTEGER ) AS col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5742
SELECT 4 * + + COUNT( * ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-5742
SELECT 4 * + + COUNT ( * ) AS col1
----
4

query I rowsort
SELECT 83 * 97 AS col1
----
8051

query I rowsort
SELECT ALL + 42 + - 57 AS col0
----
-15

query I rowsort
SELECT + 62 + + + 53 col1
----
115

query I rowsort
SELECT + 0 * - + 3
----
0

query I rowsort
SELECT DISTINCT ( 50 ) * + 94 AS col1
----
4700

onlyif mysql # aggregate syntax: 
query I rowsort label-5748
SELECT ALL SUM( ALL - - 28 ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-5748
SELECT ALL SUM ( ALL - - 28 ) AS col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5749
SELECT - COUNT( * ) + 78
----
77

skipif mysql # not compatible
query I rowsort label-5749
SELECT - COUNT ( * ) + 78
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5750
SELECT - - MAX( DISTINCT - 48 )
----
-48

skipif mysql # not compatible
query I rowsort label-5750
SELECT - - MAX ( DISTINCT - 48 )
----
-48

query I rowsort
SELECT 89 + 35 AS col1
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-5752
SELECT COUNT( * ) + 27 * - - 41 AS col0
----
1108

skipif mysql # not compatible
query I rowsort label-5752
SELECT COUNT ( * ) + 27 * - - 41 AS col0
----
1108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5753
SELECT CAST( + 66 AS SIGNED ) + + 40 + - 60 + 71 + - COUNT( * )
----
116

skipif mysql # not compatible
query I rowsort label-5753
SELECT CAST ( + 66 AS INTEGER ) + + 40 + - 60 + 71 + - COUNT ( * )
----
116

query I rowsort
SELECT + - 2 col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5755
SELECT DISTINCT - COUNT( * ) + - - 82 AS col2
----
81

skipif mysql # not compatible
query I rowsort label-5755
SELECT DISTINCT - COUNT ( * ) + - - 82 AS col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5756
SELECT MIN( DISTINCT 18 ) AS col1
----
18

skipif mysql # not compatible
query I rowsort label-5756
SELECT MIN ( DISTINCT 18 ) AS col1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5757
SELECT COUNT( DISTINCT 19 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5757
SELECT COUNT ( DISTINCT 19 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5758
SELECT CASE - 31 WHEN COUNT( * ) THEN - 85 ELSE NULL END * + 13
----
NULL

skipif mysql # not compatible
query I rowsort label-5758
SELECT CASE - 31 WHEN COUNT ( * ) THEN - 85 ELSE NULL END * + 13
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5759
SELECT ( - COUNT( * ) ) DIV - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-5759
SELECT ( - COUNT ( * ) ) / - COUNT ( * )
----
1

query I rowsort
SELECT 99 * 73 AS col0
----
7227

onlyif mysql # DIV for integer division: 
query I rowsort label-5761
SELECT - 3 DIV - 79
----
0

skipif mysql # not compatible
query I rowsort label-5761
SELECT - 3 / - 79
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5762
SELECT DISTINCT SUM( 45 ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-5762
SELECT DISTINCT SUM ( 45 ) AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5763
SELECT - SUM( DISTINCT - 79 ) - COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-5763
SELECT - SUM ( DISTINCT - 79 ) - COUNT ( * )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5764
SELECT - COUNT( * ) * + 72
----
-72

skipif mysql # not compatible
query I rowsort label-5764
SELECT - COUNT ( * ) * + 72
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-5765
SELECT - SUM( 60 )
----
-60

skipif mysql # not compatible
query I rowsort label-5765
SELECT - SUM ( 60 )
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5766
SELECT DISTINCT - ( - CAST( NULL AS SIGNED ) ) - 36
----
NULL

skipif mysql # not compatible
query I rowsort label-5766
SELECT DISTINCT - ( - CAST ( NULL AS INTEGER ) ) - 36
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5767
SELECT ALL - 62 * - COUNT( * ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-5767
SELECT ALL - 62 * - COUNT ( * ) AS col1
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5768
SELECT - 97 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5768
SELECT - 97 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5769
SELECT DISTINCT + SUM( DISTINCT - CAST( + 9 AS SIGNED ) ) AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-5769
SELECT DISTINCT + SUM ( DISTINCT - CAST ( + 9 AS INTEGER ) ) AS col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5770
SELECT ALL + MIN( - 6 ) AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-5770
SELECT ALL + MIN ( - 6 ) AS col2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5771
SELECT + - 32 * COUNT( * ) AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-5771
SELECT + - 32 * COUNT ( * ) AS col2
----
-32

query I rowsort
SELECT DISTINCT ( - 56 )
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5773
SELECT ALL + 76 / + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5773
SELECT ALL + 76 / + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5774
SELECT DISTINCT - 32 + MAX( 73 ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-5774
SELECT DISTINCT - 32 + MAX ( 73 ) AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5775
SELECT ALL - COUNT( 24 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5775
SELECT ALL - COUNT ( 24 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5776
SELECT COUNT( * ) + + 29 * 52
----
1509

skipif mysql # not compatible
query I rowsort label-5776
SELECT COUNT ( * ) + + 29 * 52
----
1509

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5777
SELECT ALL CAST( - - 66 AS SIGNED ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-5777
SELECT ALL CAST ( - - 66 AS INTEGER ) AS col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5778
SELECT 74 * + COUNT( * )
----
74

skipif mysql # not compatible
query I rowsort label-5778
SELECT 74 * + COUNT ( * )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5779
SELECT + MIN( DISTINCT 37 )
----
37

skipif mysql # not compatible
query I rowsort label-5779
SELECT + MIN ( DISTINCT 37 )
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5780
SELECT ( - COUNT( * ) ) * + CAST( 73 AS SIGNED ) AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-5780
SELECT ( - COUNT ( * ) ) * + CAST ( 73 AS INTEGER ) AS col0
----
-73

query I rowsort
SELECT ALL - NULLIF ( + 40, - 54 ) - 47 AS col1
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-5782
SELECT ALL + COUNT( * ) * + 70 AS col0
----
70

skipif mysql # not compatible
query I rowsort label-5782
SELECT ALL + COUNT ( * ) * + 70 AS col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5783
SELECT ALL - CASE + 97 WHEN + - 28 THEN NULL ELSE - COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-5783
SELECT ALL - CASE + 97 WHEN + - 28 THEN NULL ELSE - COUNT ( * ) END
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5784
SELECT ( - ( + + CAST( NULL AS DECIMAL ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5784
SELECT ( - ( + + CAST ( NULL AS REAL ) ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5785
SELECT - 57 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5785
SELECT - 57 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5786
SELECT - 21 DIV 62 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5786
SELECT - 21 / 62 AS col0
----
0

query II rowsort
SELECT ALL + 98, 51 AS col2
----
98
51

onlyif mysql # aggregate syntax: 
query II rowsort label-5788
SELECT ( COUNT( * ) ), + 82 AS col0
----
1
82

skipif mysql # not compatible
query II rowsort label-5788
SELECT ( COUNT ( * ) ), + 82 AS col0
----
1
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5789
SELECT DISTINCT 49 * - COUNT( * ) + + + 17
----
-32

skipif mysql # not compatible
query I rowsort label-5789
SELECT DISTINCT 49 * - COUNT ( * ) + + + 17
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-5790
SELECT DISTINCT + 31 * + + COUNT( * ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-5790
SELECT DISTINCT + 31 * + + COUNT ( * ) AS col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5791
SELECT - ( COUNT( * ) ) * + + COUNT( * ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-5791
SELECT - ( COUNT ( * ) ) * + + COUNT ( * ) col1
----
-1

query I rowsort
SELECT - ( - 37 ) AS col0
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-5793
SELECT - - 49 AS col1, - COUNT( * ) AS col0
----
49
-1

skipif mysql # not compatible
query II rowsort label-5793
SELECT - - 49 AS col1, - COUNT ( * ) AS col0
----
49
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5794
SELECT ALL - COUNT( * ) - - 96 AS col1
----
95

skipif mysql # not compatible
query I rowsort label-5794
SELECT ALL - COUNT ( * ) - - 96 AS col1
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-5795
SELECT ALL 9 DIV 87 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5795
SELECT ALL 9 / 87 AS col1
----
0

query I rowsort
SELECT ALL 66 * + 66 AS col0
----
4356

query I rowsort
SELECT 62 + - - 74 AS col1
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-5798
SELECT ALL - NULLIF ( - 67, + SUM( DISTINCT - 79 ) )
----
67

skipif mysql # not compatible
query I rowsort label-5798
SELECT ALL - NULLIF ( - 67, + SUM ( DISTINCT - 79 ) )
----
67

query II rowsort
SELECT - 96, - 96
----
-96
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-5800
SELECT + + 65 DIV + 76
----
0

skipif mysql # not compatible
query I rowsort label-5800
SELECT + + 65 / + 76
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5801
SELECT ALL NULLIF ( COUNT( * ), + - COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5801
SELECT ALL NULLIF ( COUNT ( * ), + - COUNT ( * ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5802
SELECT ALL - COUNT( * ) - - - 29 AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-5802
SELECT ALL - COUNT ( * ) - - - 29 AS col2
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-5803
SELECT + - 55 DIV + - 95 * 34
----
0

skipif mysql # not compatible
query I rowsort label-5803
SELECT + - 55 / + - 95 * 34
----
0

query I rowsort
SELECT ALL + + 38 AS col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5805
SELECT + COUNT( * ) * - 40 * + ( + + SUM( + + 23 ) )
----
-920

skipif mysql # not compatible
query I rowsort label-5805
SELECT + COUNT ( * ) * - 40 * + ( + + SUM ( + + 23 ) )
----
-920

query I rowsort
SELECT ALL 79 * - - 20
----
1580

query I rowsort
SELECT DISTINCT - - 38 AS col0
----
38

query I rowsort
SELECT ALL 3 - + - 96 AS col0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5809
SELECT ALL - COALESCE ( + 3, - CAST( NULL AS SIGNED ) + ( - CASE 40 WHEN + 10 THEN NULL WHEN + 32 THEN NULL ELSE ( + CAST( NULL AS SIGNED ) ) END ) ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-5809
SELECT ALL - COALESCE ( + 3, - CAST ( NULL AS INTEGER ) + ( - CASE 40 WHEN + 10 THEN NULL WHEN + 32 THEN NULL ELSE ( + CAST ( NULL AS INTEGER ) ) END ) ) AS col1
----
-3

query I rowsort
SELECT - ( + + 24 )
----
-24

query I rowsort
SELECT ALL ( - ( - 10 ) )
----
10

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5812
SELECT DISTINCT 23 / - + ( - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5812
SELECT DISTINCT 23 / - + ( - CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5813
SELECT - CAST( + 1 AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-5813
SELECT - CAST ( + 1 AS INTEGER )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5814
SELECT + ( - COUNT( * ) ) * + 7
----
-7

skipif mysql # not compatible
query I rowsort label-5814
SELECT + ( - COUNT ( * ) ) * + 7
----
-7

query I rowsort
SELECT + ( + 54 ) AS col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5816
SELECT ALL 16 - - COUNT( * ) col1
----
17

skipif mysql # not compatible
query I rowsort label-5816
SELECT ALL 16 - - COUNT ( * ) col1
----
17

query II rowsort
SELECT + 71 AS col1, 55
----
71
55

onlyif mysql # DIV for integer division: 
query I rowsort label-5818
SELECT + - 20 * 92 DIV - 25
----
73

skipif mysql # not compatible
query I rowsort label-5818
SELECT + - 20 * 92 / - 25
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5819
SELECT DISTINCT - SUM( DISTINCT 86 ) AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-5819
SELECT DISTINCT - SUM ( DISTINCT 86 ) AS col2
----
-86

query I rowsort
SELECT DISTINCT - NULLIF ( - - ( 49 ), - 89 ) col2
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-5821
SELECT DISTINCT - SUM( DISTINCT 67 )
----
-67

skipif mysql # not compatible
query I rowsort label-5821
SELECT DISTINCT - SUM ( DISTINCT 67 )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-5822
SELECT ( + COUNT( * ) ) + - 65 * - COUNT( * ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-5822
SELECT ( + COUNT ( * ) ) + - 65 * - COUNT ( * ) AS col1
----
66

query I rowsort
SELECT ALL 7 * 65 AS col1
----
455

query I rowsort
SELECT 21 * 67 AS col1
----
1407

query I rowsort
SELECT ALL - COALESCE ( 63, 80 )
----
-63

query I rowsort
SELECT + NULLIF ( + 41, 68 )
----
41

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5827
SELECT DISTINCT CAST( NULL AS DECIMAL ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5827
SELECT DISTINCT CAST ( NULL AS REAL ) + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL - ( + + ( - 83 ) ) AS col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5829
SELECT - MAX( ALL ( + 26 ) ) * 45
----
-1170

skipif mysql # not compatible
query I rowsort label-5829
SELECT - MAX ( ALL ( + 26 ) ) * 45
----
-1170

query I rowsort
SELECT ALL + 50 col1
----
50

query I rowsort
SELECT + 65 + 47 * 47 AS col2
----
2274

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5832
SELECT ALL + AVG ( + CAST( NULL AS SIGNED ) ) * - + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-5832
SELECT ALL + AVG ( + CAST ( NULL AS INTEGER ) ) * - + 48
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5833
SELECT - MAX( - 74 )
----
74

skipif mysql # not compatible
query I rowsort label-5833
SELECT - MAX ( - 74 )
----
74

query I rowsort
SELECT - - ( + 45 )
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-5835
SELECT ALL - - 60 + 44 AS col0, + 51 + - + MIN( + 2 ) col1
----
104
49

skipif mysql # not compatible
query II rowsort label-5835
SELECT ALL - - 60 + 44 AS col0, + 51 + - + MIN ( + 2 ) col1
----
104
49

query I rowsort
SELECT + ( 70 )
----
70

query I rowsort
SELECT + ( 76 ) AS col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5838
SELECT + SUM( ALL + 22 ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-5838
SELECT + SUM ( ALL + 22 ) AS col1
----
22

query I rowsort
SELECT 36 + - 77 + - 85 AS col0
----
-126

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5840
SELECT 24 - - COUNT( * ) DIV 29 AS col0
----
24

skipif mysql # not compatible
query I rowsort label-5840
SELECT 24 - - COUNT ( * ) / 29 AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5841
SELECT SUM( ALL - - 22 ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-5841
SELECT SUM ( ALL - - 22 ) AS col2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5842
SELECT ALL SUM( DISTINCT + - 93 ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-5842
SELECT ALL SUM ( DISTINCT + - 93 ) AS col0
----
-93

query I rowsort
SELECT - ( - - 2 ) AS col0
----
-2

query II rowsort
SELECT + 21, 35 + - ( + 98 ) AS col2
----
21
-63

query I rowsort
SELECT + 73 * - 1
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-5846
SELECT + COUNT( * ) + COUNT( * ) + COUNT( * ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-5846
SELECT + COUNT ( * ) + COUNT ( * ) + COUNT ( * ) AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5847
SELECT + MAX( + + 97 )
----
97

skipif mysql # not compatible
query I rowsort label-5847
SELECT + MAX ( + + 97 )
----
97

query I rowsort
SELECT 54 * - 39 AS col2
----
-2106

query I rowsort
SELECT ALL - + 2 col2
----
-2

query II rowsort
SELECT 84 AS col1, 30
----
84
30

query I rowsort
SELECT ALL - - ( + - 24 )
----
-24

query I rowsort
SELECT DISTINCT - - 41 col1
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5853
SELECT ALL - AVG ( + CAST( NULL AS SIGNED ) ) AS col2, - 15 AS col2
----
NULL
-15

skipif mysql # not compatible
query II rowsort label-5853
SELECT ALL - AVG ( + CAST ( NULL AS INTEGER ) ) AS col2, - 15 AS col2
----
NULL
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-5854
SELECT 50 + + + COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-5854
SELECT 50 + + + COUNT ( * )
----
51

query II rowsort
SELECT 9 AS col0, 88
----
9
88

query II rowsort
SELECT 53, + 5 AS col1
----
53
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5857
SELECT DISTINCT COUNT( - + 22 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5857
SELECT DISTINCT COUNT ( - + 22 ) AS col2
----
1

query I rowsort
SELECT ALL 48 - + 49 + - 47 + - 7
----
-55

query II rowsort
SELECT 39 AS col0, + 67 + + 23
----
39
90

query I rowsort
SELECT - 94 * + + ( - + 51 )
----
4794

query I rowsort
SELECT DISTINCT + + 37 * - 41 AS col0
----
-1517

query I rowsort
SELECT ALL + ( 86 ) AS col0
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5863
SELECT COUNT( * ) DIV + 88 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5863
SELECT COUNT ( * ) / + 88 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5864
SELECT - 86 * - 99 * - SUM( DISTINCT + 57 ) * - 97 - - COUNT( * )
----
47073907

skipif mysql # not compatible
query I rowsort label-5864
SELECT - 86 * - 99 * - SUM ( DISTINCT + 57 ) * - 97 - - COUNT ( * )
----
47073907

query I rowsort
SELECT - - ( + - 72 )
----
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-5866
SELECT + COUNT( * ), + COUNT( * ) AS col1
----
1
1

skipif mysql # not compatible
query II rowsort label-5866
SELECT + COUNT ( * ), + COUNT ( * ) AS col1
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5867
SELECT DISTINCT MAX( ALL - + 16 ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-5867
SELECT DISTINCT MAX ( ALL - + 16 ) AS col2
----
-16

query I rowsort
SELECT DISTINCT NULLIF ( 42, 5 )
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-5869
SELECT DISTINCT - 80 - - 13 DIV - 92 AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-5869
SELECT DISTINCT - 80 - - 13 / - 92 AS col2
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-5870
SELECT ALL + COUNT( * ) * 38 AS col2
----
38

skipif mysql # not compatible
query I rowsort label-5870
SELECT ALL + COUNT ( * ) * 38 AS col2
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5871
SELECT + 24 DIV COUNT( * ) AS col1, COUNT( * ) DIV + 15
----
24
0

skipif mysql # not compatible
query II rowsort label-5871
SELECT + 24 / COUNT ( * ) AS col1, COUNT ( * ) / + 15
----
24
0

query I rowsort
SELECT + 51 * + - 90 AS col0
----
-4590

onlyif mysql # aggregate syntax: 
query II rowsort label-5873
SELECT - 91 + - + MIN( ALL + 16 ) AS col2, COUNT( * ) AS col0
----
-107
1

skipif mysql # not compatible
query II rowsort label-5873
SELECT - 91 + - + MIN ( ALL + 16 ) AS col2, COUNT ( * ) AS col0
----
-107
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5874
SELECT ALL + + COUNT( * ) + - COUNT( ALL + CAST( NULL AS SIGNED ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5874
SELECT ALL + + COUNT ( * ) + - COUNT ( ALL + CAST ( NULL AS INTEGER ) ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5875
SELECT ALL ( + - CAST( - + 93 AS SIGNED ) )
----
93

skipif mysql # not compatible
query I rowsort label-5875
SELECT ALL ( + - CAST ( - + 93 AS INTEGER ) )
----
93

query I rowsort
SELECT - ( - 96 )
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5877
SELECT CAST( - 49 AS SIGNED ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-5877
SELECT CAST ( - 49 AS INTEGER ) AS col2
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5878
SELECT ALL COUNT( * ) DIV - ( - 80 ) + 51
----
51

skipif mysql # not compatible
query I rowsort label-5878
SELECT ALL COUNT ( * ) / - ( - 80 ) + 51
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-5879
SELECT ALL + 18 DIV 3
----
6

skipif mysql # not compatible
query I rowsort label-5879
SELECT ALL + 18 / 3
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5880
SELECT 39 + + COUNT( * ) DIV - COUNT( * )
----
38

skipif mysql # not compatible
query I rowsort label-5880
SELECT 39 + + COUNT ( * ) / - COUNT ( * )
----
38

onlyif mysql # DIV for integer division: 
query II rowsort label-5881
SELECT 32 * 83 DIV - 70 AS col2, 91
----
-37
91

skipif mysql # not compatible
query II rowsort label-5881
SELECT 32 * 83 / - 70 AS col2, 91
----
-37
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5882
SELECT CAST( NULL AS SIGNED ) - + 83 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5882
SELECT CAST ( NULL AS INTEGER ) - + 83 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5883
SELECT ALL 67 + COUNT( * )
----
68

skipif mysql # not compatible
query I rowsort label-5883
SELECT ALL 67 + COUNT ( * )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5884
SELECT ALL - MIN( DISTINCT 47 )
----
-47

skipif mysql # not compatible
query I rowsort label-5884
SELECT ALL - MIN ( DISTINCT 47 )
----
-47

query I rowsort
SELECT DISTINCT 13 + + 14
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-5886
SELECT ALL 48 DIV + 23 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-5886
SELECT ALL 48 / + 23 AS col0
----
2

query I rowsort
SELECT ALL - - 70 col1
----
70

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5888
SELECT + MAX( CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5888
SELECT + MAX ( CAST ( NULL AS REAL ) ) AS col1
----
NULL

query I rowsort
SELECT + + ( - 64 ) + 32
----
-32

query I rowsort
SELECT ALL 74 + + + 17
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5891
SELECT ALL + COUNT( * ) + - MAX( - 78 ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-5891
SELECT ALL + COUNT ( * ) + - MAX ( - 78 ) AS col2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5892
SELECT ALL + SUM( ALL - 12 )
----
-12

skipif mysql # not compatible
query I rowsort label-5892
SELECT ALL + SUM ( ALL - 12 )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-5893
SELECT DISTINCT - 0 * - - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5893
SELECT DISTINCT - 0 * - - COUNT ( * ) AS col0
----
0

query I rowsort
SELECT ALL + + 15 AS col1
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5895
SELECT SUM( DISTINCT - CAST( + 61 AS SIGNED ) )
----
-61

skipif mysql # not compatible
query I rowsort label-5895
SELECT SUM ( DISTINCT - CAST ( + 61 AS INTEGER ) )
----
-61

query I rowsort
SELECT ALL 25 - + 79 AS col0
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-5897
SELECT 16 DIV + 65 - 66
----
-66

skipif mysql # not compatible
query I rowsort label-5897
SELECT 16 / + 65 - 66
----
-66

query I rowsort
SELECT - 46 * - + 26 AS col0
----
1196

query I rowsort
SELECT 22 + - 82
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5900
SELECT ALL 2 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5900
SELECT ALL 2 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 18 + - 3
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5902
SELECT + COUNT( * ) + 56 AS col0
----
57

skipif mysql # not compatible
query I rowsort label-5902
SELECT + COUNT ( * ) + 56 AS col0
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5903
SELECT ALL + - CAST( NULL AS SIGNED ) + 30 - - - COUNT( ALL + 68 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5903
SELECT ALL + - CAST ( NULL AS INTEGER ) + 30 - - - COUNT ( ALL + 68 ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 80 - + 72 AS col2
----
-152

query II rowsort
SELECT DISTINCT - 9 * + 97 AS col0, 89 AS col2
----
-873
89

onlyif mysql # aggregate syntax: 
query I rowsort label-5906
SELECT ALL - ( + MAX( 18 ) ) AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-5906
SELECT ALL - ( + MAX ( 18 ) ) AS col1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-5907
SELECT DISTINCT SUM( DISTINCT - - ( + 52 ) ) col1
----
52

skipif mysql # not compatible
query I rowsort label-5907
SELECT DISTINCT SUM ( DISTINCT - - ( + 52 ) ) col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5908
SELECT DISTINCT + COUNT( * ) * - 59
----
-59

skipif mysql # not compatible
query I rowsort label-5908
SELECT DISTINCT + COUNT ( * ) * - 59
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5909
SELECT ALL ( + CAST( - COUNT( * ) AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5909
SELECT ALL ( + CAST ( - COUNT ( * ) AS INTEGER ) )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5910
SELECT 16 AS col0, COUNT( * )
----
16
1

skipif mysql # not compatible
query II rowsort label-5910
SELECT 16 AS col0, COUNT ( * )
----
16
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5911
SELECT - + MAX( - 26 ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-5911
SELECT - + MAX ( - 26 ) AS col2
----
26

query II rowsort
SELECT ALL 3, + 39 AS col1
----
3
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5913
SELECT - COUNT( * ) + - + COUNT( * ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-5913
SELECT - COUNT ( * ) + - + COUNT ( * ) AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5914
SELECT - COUNT( * ) + - 27
----
-28

skipif mysql # not compatible
query I rowsort label-5914
SELECT - COUNT ( * ) + - 27
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5915
SELECT ALL + ( + 64 ) / CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5915
SELECT ALL + ( + 64 ) / CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5916
SELECT + COUNT( DISTINCT + 44 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5916
SELECT + COUNT ( DISTINCT + 44 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5917
SELECT ALL ( - + ( + COUNT( * ) ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5917
SELECT ALL ( - + ( + COUNT ( * ) ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5918
SELECT - MAX( - + 95 ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-5918
SELECT - MAX ( - + 95 ) AS col1
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5919
SELECT ALL - 60 / - - ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5919
SELECT ALL - 60 / - - ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5920
SELECT ALL - COUNT( * ) + 49, - COUNT( * ) AS col0
----
48
-1

skipif mysql # not compatible
query II rowsort label-5920
SELECT ALL - COUNT ( * ) + 49, - COUNT ( * ) AS col0
----
48
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5921
SELECT DISTINCT - + 23 * - + COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-5921
SELECT DISTINCT - + 23 * - + COUNT ( * )
----
23

query I rowsort
SELECT ALL 16 * + 12 AS col2
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-5923
SELECT COUNT( * ) + - 20 AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-5923
SELECT COUNT ( * ) + - 20 AS col1
----
-19

query I rowsort
SELECT ALL + - 81 + - 71
----
-152

onlyif mysql # aggregate syntax: 
query I rowsort label-5925
SELECT - COUNT( * ) + 71 + + COUNT( * ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-5925
SELECT - COUNT ( * ) + 71 + + COUNT ( * ) AS col2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5926
SELECT + MAX( DISTINCT - 1 ) * + 98 AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-5926
SELECT + MAX ( DISTINCT - 1 ) * + 98 AS col1
----
-98

query I rowsort
SELECT + - ( 80 )
----
-80

query I rowsort
SELECT + ( + 50 )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5929
SELECT ALL - COUNT( 41 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-5929
SELECT ALL - COUNT ( 41 ) col0
----
-1

query I rowsort
SELECT ALL - 69 + - 5 AS col1
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-5931
SELECT + MIN( ALL 57 ) * + 1 AS col2
----
57

skipif mysql # not compatible
query I rowsort label-5931
SELECT + MIN ( ALL 57 ) * + 1 AS col2
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5932
SELECT CAST( - 19 AS SIGNED ) AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-5932
SELECT CAST ( - 19 AS INTEGER ) AS col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-5933
SELECT ( + MAX( - 12 ) )
----
-12

skipif mysql # not compatible
query I rowsort label-5933
SELECT ( + MAX ( - 12 ) )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-5934
SELECT - MIN( ALL 30 ) * + - 90 AS col1
----
2700

skipif mysql # not compatible
query I rowsort label-5934
SELECT - MIN ( ALL 30 ) * + - 90 AS col1
----
2700

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5935
SELECT DISTINCT + + COUNT( * ) * + COUNT( * ) DIV 33 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5935
SELECT DISTINCT + + COUNT ( * ) * + COUNT ( * ) / 33 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5936
SELECT - - NULLIF ( COUNT( * ), - + CAST( NULL AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-5936
SELECT - - NULLIF ( COUNT ( * ), - + CAST ( NULL AS INTEGER ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5937
SELECT ALL COUNT( * ) * + 4 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-5937
SELECT ALL COUNT ( * ) * + 4 AS col2
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5938
SELECT DISTINCT + CAST( ( + SUM( - 14 ) ) AS SIGNED ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-5938
SELECT DISTINCT + CAST ( ( + SUM ( - 14 ) ) AS INTEGER ) AS col0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-5939
SELECT DISTINCT + ( COUNT( * ) ) * + - 20
----
-20

skipif mysql # not compatible
query I rowsort label-5939
SELECT DISTINCT + ( COUNT ( * ) ) * + - 20
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-5940
SELECT COUNT( * ) * + - 19
----
-19

skipif mysql # not compatible
query I rowsort label-5940
SELECT COUNT ( * ) * + - 19
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5941
SELECT ( - CAST( NULL AS SIGNED ) ) * + - 50 * + NULLIF ( + - 92, 86 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5941
SELECT ( - CAST ( NULL AS INTEGER ) ) * + - 50 * + NULLIF ( + - 92, 86 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5942
SELECT ALL + 76 + + SUM( DISTINCT - 28 )
----
48

skipif mysql # not compatible
query I rowsort label-5942
SELECT ALL + 76 + + SUM ( DISTINCT - 28 )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-5943
SELECT COUNT( 24 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5943
SELECT COUNT ( 24 ) AS col1
----
1

query I rowsort
SELECT ALL - - 62 + + + 19
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5945
SELECT MAX( + CAST( NULL AS SIGNED ) ) * + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5945
SELECT MAX ( + CAST ( NULL AS INTEGER ) ) * + + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT + 86 - 72 AS col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5947
SELECT + COUNT( * ) + + - 98 AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-5947
SELECT + COUNT ( * ) + + - 98 AS col0
----
-97

query I rowsort
SELECT - 4 + - 90 AS col0
----
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5949
SELECT - COUNT( * ) * + 48 DIV 21 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-5949
SELECT - COUNT ( * ) * + 48 / 21 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5950
SELECT + + COUNT( * ) - + 46 + 72 AS col2
----
27

skipif mysql # not compatible
query I rowsort label-5950
SELECT + + COUNT ( * ) - + 46 + 72 AS col2
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5951
SELECT ALL + 56 DIV - - ( COUNT( * ) ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-5951
SELECT ALL + 56 / - - ( COUNT ( * ) ) AS col1
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-5952
SELECT 81 col2, - COUNT( * ) AS col2
----
81
-1

skipif mysql # not compatible
query II rowsort label-5952
SELECT 81 col2, - COUNT ( * ) AS col2
----
81
-1

onlyif mysql # aggregate syntax: 
query III rowsort label-5953
SELECT ALL MAX( - 59 ) + + ( 97 ) AS col0, + 57, - 80 AS col1
----
38
57
-80

skipif mysql # not compatible
query III rowsort label-5953
SELECT ALL MAX ( - 59 ) + + ( 97 ) AS col0, + 57, - 80 AS col1
----
38
57
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-5954
SELECT DISTINCT + COUNT( * ) * 34 AS col1
----
34

skipif mysql # not compatible
query I rowsort label-5954
SELECT DISTINCT + COUNT ( * ) * 34 AS col1
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-5955
SELECT DISTINCT - 50 DIV + 84 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5955
SELECT DISTINCT - 50 / + 84 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5956
SELECT DISTINCT ( COUNT( DISTINCT 29 ) ) DIV + 73 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5956
SELECT DISTINCT ( COUNT ( DISTINCT 29 ) ) / + 73 AS col0
----
0

query I rowsort
SELECT DISTINCT 60 col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5958
SELECT + MAX( DISTINCT - + 32 )
----
-32

skipif mysql # not compatible
query I rowsort label-5958
SELECT + MAX ( DISTINCT - + 32 )
----
-32

query I rowsort
SELECT DISTINCT + - 82
----
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5960
SELECT + - 16 DIV COUNT( * ) AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-5960
SELECT + - 16 / COUNT ( * ) AS col1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5961
SELECT ALL NULLIF ( + + 81, NULLIF ( - - 13, - MAX( ALL + + 97 ) + - 77 ) * - + 97 )
----
81

skipif mysql # not compatible
query I rowsort label-5961
SELECT ALL NULLIF ( + + 81, NULLIF ( - - 13, - MAX ( ALL + + 97 ) + - 77 ) * - + 97 )
----
81

query I rowsort
SELECT ALL ( - 78 ) AS col1
----
-78

query I rowsort
SELECT DISTINCT ( + 58 ) AS col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5964
SELECT + 55 * + 86 - COUNT( * ) AS col0
----
4729

skipif mysql # not compatible
query I rowsort label-5964
SELECT + 55 * + 86 - COUNT ( * ) AS col0
----
4729

query I rowsort
SELECT + ( + 73 ) AS col1
----
73

query I rowsort
SELECT ALL - ( - + 88 )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5967
SELECT 81 - + COUNT( * )
----
80

skipif mysql # not compatible
query I rowsort label-5967
SELECT 81 - + COUNT ( * )
----
80

query I rowsort
SELECT ALL - 40 - + - 88
----
48

query I rowsort
SELECT 34 + + 23 AS col2
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5970
SELECT 10 DIV COUNT( * ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-5970
SELECT 10 / COUNT ( * ) AS col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5971
SELECT ALL + 36 * + COUNT( * ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-5971
SELECT ALL + 36 * + COUNT ( * ) AS col2
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-5972
SELECT DISTINCT + 64 DIV - - 86 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5972
SELECT DISTINCT + 64 / - - 86 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5973
SELECT MIN( + 35 ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-5973
SELECT MIN ( + 35 ) AS col2
----
35

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5974
SELECT + - COALESCE ( - NULLIF ( - 82, + 34 ), + 95 ) * + CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5974
SELECT + - COALESCE ( - NULLIF ( - 82, + 34 ), + 95 ) * + CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5975
SELECT ALL - CAST( NULL AS SIGNED ) + + - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-5975
SELECT ALL - CAST ( NULL AS INTEGER ) + + - 5
----
NULL

query I rowsort
SELECT ALL - 94 * - + 3 + - - 41
----
323

onlyif mysql # aggregate syntax: 
query I rowsort label-5977
SELECT ALL MIN( 56 ) col2
----
56

skipif mysql # not compatible
query I rowsort label-5977
SELECT ALL MIN ( 56 ) col2
----
56

query I rowsort
SELECT DISTINCT + 32 col0
----
32

query II rowsort
SELECT ALL + 61 AS col2, + 48 col0
----
61
48

onlyif mysql # DIV for integer division: 
query I rowsort label-5980
SELECT ALL - ( - 56 ) DIV COALESCE ( 36, - 31, + ( 85 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5980
SELECT ALL - ( - 56 ) / COALESCE ( 36, - 31, + ( 85 ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5981
SELECT 10 * + COUNT( * ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-5981
SELECT 10 * + COUNT ( * ) AS col0
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-5982
SELECT 16 DIV 68
----
0

skipif mysql # not compatible
query I rowsort label-5982
SELECT 16 / 68
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5983
SELECT ALL 48 + COUNT( * ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-5983
SELECT ALL 48 + COUNT ( * ) AS col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5984
SELECT COUNT( * ) + - 17 AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-5984
SELECT COUNT ( * ) + - 17 AS col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5985
SELECT ALL - MIN( - ( 80 ) ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-5985
SELECT ALL - MIN ( - ( 80 ) ) AS col1
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5986
SELECT DISTINCT COUNT( * ) DIV - 12 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5986
SELECT DISTINCT COUNT ( * ) / - 12 AS col2
----
0

query I rowsort
SELECT DISTINCT - ( - 80 )
----
80

query I rowsort
SELECT - ( - 73 ) AS col1
----
73

query I rowsort
SELECT DISTINCT - + 78 col0
----
-78

query I rowsort
SELECT ALL - ( 12 ) * + 43 AS col2
----
-516

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5991
SELECT + COUNT( * ) DIV - 76 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5991
SELECT + COUNT ( * ) / - 76 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5992
SELECT - CAST( NULL AS SIGNED ) - + 96 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5992
SELECT - CAST ( NULL AS INTEGER ) - + 96 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5993
SELECT ALL - MAX( DISTINCT - ( 96 ) ) + 2 AS col1
----
98

skipif mysql # not compatible
query I rowsort label-5993
SELECT ALL - MAX ( DISTINCT - ( 96 ) ) + 2 AS col1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5994
SELECT ALL SUM( DISTINCT + 11 )
----
11

skipif mysql # not compatible
query I rowsort label-5994
SELECT ALL SUM ( DISTINCT + 11 )
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5995
SELECT ALL + COUNT( * ) * + CAST( NULL AS SIGNED ) * + COUNT( * ) - COUNT( * ) * - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5995
SELECT ALL + COUNT ( * ) * + CAST ( NULL AS INTEGER ) * + COUNT ( * ) - COUNT ( * ) * - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5996
SELECT ALL - 6 DIV + COUNT( * )
----
-6

skipif mysql # not compatible
query I rowsort label-5996
SELECT ALL - 6 / + COUNT ( * )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5997
SELECT ALL - - MIN( ALL + 82 ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-5997
SELECT ALL - - MIN ( ALL + 82 ) AS col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5998
SELECT DISTINCT - + ( + COUNT( * ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-5998
SELECT DISTINCT - + ( + COUNT ( * ) ) col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5999
SELECT - - ( COUNT( * ) ) * 15
----
15

skipif mysql # not compatible
query I rowsort label-5999
SELECT - - ( COUNT ( * ) ) * 15
----
15

query I rowsort
SELECT DISTINCT 37 + - 98
----
-61

query I rowsort
SELECT ALL + 91 * - 1
----
-91

query I rowsort
SELECT ALL 30 * 90 AS col0
----
2700

onlyif mysql # aggregate syntax: 
query I rowsort label-6003
SELECT DISTINCT SUM( 93 )
----
93

skipif mysql # not compatible
query I rowsort label-6003
SELECT DISTINCT SUM ( 93 )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6004
SELECT DISTINCT + + MIN( - - 4 )
----
4

skipif mysql # not compatible
query I rowsort label-6004
SELECT DISTINCT + + MIN ( - - 4 )
----
4

query I rowsort
SELECT + 60 * - + 67 AS col0
----
-4020

query I rowsort
SELECT - ( 12 )
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6007
SELECT ALL ( CAST( NULL AS SIGNED ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6007
SELECT ALL ( CAST ( NULL AS INTEGER ) ) col2
----
NULL

query II rowsort
SELECT DISTINCT - ( + + 26 ), + 72 AS col1
----
-26
72

query I rowsort
SELECT ( - 75 ) * - + 33
----
2475

query I rowsort
SELECT DISTINCT + 73 + + + 77
----
150

query I rowsort
SELECT DISTINCT - 35 + - + 34 AS col0
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-6012
SELECT + + 96, COUNT( * ) AS col2
----
96
1

skipif mysql # not compatible
query II rowsort label-6012
SELECT + + 96, COUNT ( * ) AS col2
----
96
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6013
SELECT ALL - - 6 col0, ( + - MIN( ALL - 52 ) ) + COUNT( * )
----
6
53

skipif mysql # not compatible
query II rowsort label-6013
SELECT ALL - - 6 col0, ( + - MIN ( ALL - 52 ) ) + COUNT ( * )
----
6
53

onlyif mysql # aggregate syntax: 
query I rowsort label-6014
SELECT + SUM( ALL + ( + 42 ) )
----
42

skipif mysql # not compatible
query I rowsort label-6014
SELECT + SUM ( ALL + ( + 42 ) )
----
42

query II rowsort
SELECT 16 AS col2, + NULLIF ( - 84, + 59 ) AS col1
----
16
-84

query II rowsort
SELECT + 61 AS col2, 59
----
61
59

query I rowsort
SELECT DISTINCT - ( 77 ) AS col1
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-6018
SELECT ALL COUNT( 72 )
----
1

skipif mysql # not compatible
query I rowsort label-6018
SELECT ALL COUNT ( 72 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6019
SELECT + ( MAX( - 39 ) ) + + COUNT( * ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-6019
SELECT + ( MAX ( - 39 ) ) + + COUNT ( * ) AS col2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-6020
SELECT - + 77 + + 11 * COUNT( * ) AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-6020
SELECT - + 77 + + 11 * COUNT ( * ) AS col0
----
-66

query I rowsort
SELECT ALL + - 54 col1
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6022
SELECT ALL 13 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6022
SELECT ALL 13 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6023
SELECT ALL + 66 + - COUNT( ALL 61 )
----
65

skipif mysql # not compatible
query I rowsort label-6023
SELECT ALL + 66 + - COUNT ( ALL 61 )
----
65

query I rowsort
SELECT + 78 * + 16
----
1248

query I rowsort
SELECT + ( - + 84 ) AS col2
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6026
SELECT ALL CAST( NULL AS SIGNED ) * - - NULLIF ( - 19, COALESCE ( - CAST( 33 AS SIGNED ), - 61 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6026
SELECT ALL CAST ( NULL AS INTEGER ) * - - NULLIF ( - 19, COALESCE ( - CAST ( 33 AS INTEGER ), - 61 ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6027
SELECT COUNT( * ) + - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6027
SELECT COUNT ( * ) + - - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6028
SELECT ALL COUNT( DISTINCT 29 ) DIV ( + 23 )
----
0

skipif mysql # not compatible
query I rowsort label-6028
SELECT ALL COUNT ( DISTINCT 29 ) / ( + 23 )
----
0

query I rowsort
SELECT ALL 40 + + 8
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-6030
SELECT ALL COUNT( ( - - 47 ) )
----
1

skipif mysql # not compatible
query I rowsort label-6030
SELECT ALL COUNT ( ( - - 47 ) )
----
1

query I rowsort
SELECT + 36 col2
----
36

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6032
SELECT + + 54 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6032
SELECT + + 54 * - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL - 75 * + 32
----
-2400

query I rowsort
SELECT + ( 18 ) AS col1
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6035
SELECT - AVG ( - - CAST( NULL AS SIGNED ) ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6035
SELECT - AVG ( - - CAST ( NULL AS INTEGER ) ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6036
SELECT DISTINCT + NULLIF ( + + 56, + - 18 ) DIV 30
----
1

skipif mysql # not compatible
query I rowsort label-6036
SELECT DISTINCT + NULLIF ( + + 56, + - 18 ) / 30
----
1

query I rowsort
SELECT ALL + ( - - 21 )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6038
SELECT + 69 + + - 69 + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-6038
SELECT + 69 + + - 69 + - COUNT ( * )
----
-1

query I rowsort
SELECT ALL 69 + - 7 AS col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6040
SELECT + MIN( ( + 80 ) ) * + 66
----
5280

skipif mysql # not compatible
query I rowsort label-6040
SELECT + MIN ( ( + 80 ) ) * + 66
----
5280

onlyif mysql # aggregate syntax: 
query I rowsort label-6041
SELECT ALL COUNT( * ) * 2
----
2

skipif mysql # not compatible
query I rowsort label-6041
SELECT ALL COUNT ( * ) * 2
----
2

query I rowsort
SELECT COALESCE ( + + 43, 46 ) + + + 41
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6043
SELECT DISTINCT MAX( DISTINCT + 76 ) * + COUNT( * )
----
76

skipif mysql # not compatible
query I rowsort label-6043
SELECT DISTINCT MAX ( DISTINCT + 76 ) * + COUNT ( * )
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6044
SELECT CAST( NULL AS SIGNED ) / 33 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6044
SELECT CAST ( NULL AS INTEGER ) / 33 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6045
SELECT CAST( - 93 AS SIGNED ) + - COUNT( * )
----
-94

skipif mysql # not compatible
query I rowsort label-6045
SELECT CAST ( - 93 AS INTEGER ) + - COUNT ( * )
----
-94

query I rowsort
SELECT ALL - 99 + - 8 AS col1
----
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-6047
SELECT MIN( DISTINCT - 49 ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-6047
SELECT MIN ( DISTINCT - 49 ) AS col0
----
-49

query I rowsort
SELECT ALL + - 32 AS col0
----
-32

query I rowsort
SELECT ALL + - 6 * + - 2 AS col1
----
12

query II rowsort
SELECT ALL 72, - 83 AS col2
----
72
-83

query I rowsort
SELECT 94 * - ( - 31 ) col1
----
2914

onlyif mysql # aggregate syntax: 
query I rowsort label-6052
SELECT COUNT( * ) - - 63
----
64

skipif mysql # not compatible
query I rowsort label-6052
SELECT COUNT ( * ) - - 63
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6053
SELECT COUNT( * ) + 73 AS col0
----
74

skipif mysql # not compatible
query I rowsort label-6053
SELECT COUNT ( * ) + 73 AS col0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6054
SELECT 12 * + ( - + COUNT( * ) ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-6054
SELECT 12 * + ( - + COUNT ( * ) ) AS col1
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6055
SELECT + - COUNT( * ) DIV + 64 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6055
SELECT + - COUNT ( * ) / + 64 AS col0
----
0

query I rowsort
SELECT - 70 * - 71 col2
----
4970

query II rowsort
SELECT - 36, - 10 AS col0
----
-36
-10

query I rowsort
SELECT ALL - 92 * + + 16 AS col0
----
-1472

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6059
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6059
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - - COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT ALL - 33 * + 46 AS col2
----
-1518

onlyif mysql # aggregate syntax: 
query I rowsort label-6061
SELECT NULLIF ( + NULLIF ( + COUNT( * ), 24 ), - MIN( - - 50 ) )
----
1

skipif mysql # not compatible
query I rowsort label-6061
SELECT NULLIF ( + NULLIF ( + COUNT ( * ), 24 ), - MIN ( - - 50 ) )
----
1

query I rowsort
SELECT - 3 * - 85 AS col2
----
255

onlyif mysql # aggregate syntax: 
query I rowsort label-6063
SELECT DISTINCT MAX( DISTINCT - 6 ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-6063
SELECT DISTINCT MAX ( DISTINCT - 6 ) AS col1
----
-6

query I rowsort
SELECT DISTINCT - ( - + 56 ) * - + 96
----
-5376

query I rowsort
SELECT DISTINCT - 46 + 95 - + 61 AS col0
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6066
SELECT + CAST( NULL AS SIGNED ) + + 36 * - 5 + + AVG ( ALL + 78 ) - - 48 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6066
SELECT + CAST ( NULL AS INTEGER ) + + 36 * - 5 + + AVG ( ALL + 78 ) - - 48 AS col0
----
NULL

query I rowsort
SELECT 86 + 82 AS col2
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-6068
SELECT ALL - - COUNT( * ) * 76 AS col1
----
76

skipif mysql # not compatible
query I rowsort label-6068
SELECT ALL - - COUNT ( * ) * 76 AS col1
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6069
SELECT ALL SUM( ALL ( + CAST( NULL AS SIGNED ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6069
SELECT ALL SUM ( ALL ( + CAST ( NULL AS INTEGER ) ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6070
SELECT ALL - MAX( 89 ) AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-6070
SELECT ALL - MAX ( 89 ) AS col1
----
-89

query II rowsort
SELECT ( + 11 ) AS col2, 80
----
11
80

onlyif mysql # DIV for integer division: 
query I rowsort label-6072
SELECT DISTINCT 19 DIV + + ( - 18 ) + 28
----
27

skipif mysql # not compatible
query I rowsort label-6072
SELECT DISTINCT 19 / + + ( - 18 ) + 28
----
27

query I rowsort
SELECT ( + 42 ) AS col2
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6074
SELECT + + ( - ( CAST( NULL AS SIGNED ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6074
SELECT + + ( - ( CAST ( NULL AS INTEGER ) ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6075
SELECT DISTINCT + SUM( ALL + 77 ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-6075
SELECT DISTINCT + SUM ( ALL + 77 ) AS col2
----
77

query I rowsort
SELECT DISTINCT ( 86 ) * 51 AS col1
----
4386

query I rowsort
SELECT 57 - - 72 AS col2
----
129

query II rowsort
SELECT DISTINCT - 28 AS col1, + 3
----
-28
3

query II rowsort
SELECT + + 69 col0, + 44 AS col0
----
69
44

onlyif mysql # aggregate syntax: 
query I rowsort label-6080
SELECT - COUNT( * ) * 12 + + COUNT( * ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-6080
SELECT - COUNT ( * ) * 12 + + COUNT ( * ) AS col0
----
-11

query II rowsort
SELECT - 2 AS col0, 21 * + 30
----
-2
630

onlyif mysql # aggregate syntax: 
query I rowsort label-6082
SELECT - COUNT( * ) * + 38
----
-38

skipif mysql # not compatible
query I rowsort label-6082
SELECT - COUNT ( * ) * + 38
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-6083
SELECT + + 55 * + COUNT( * )
----
55

skipif mysql # not compatible
query I rowsort label-6083
SELECT + + 55 * + COUNT ( * )
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6084
SELECT DISTINCT + 97 * - CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6084
SELECT DISTINCT + 97 * - CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + 5 * + 99 AS col0
----
495

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6086
SELECT DISTINCT + CAST( NULL AS SIGNED ) + 58 - - 22 + + - 49 * + 63 * - + MAX( + 84 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6086
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 58 - - 22 + + - 49 * + 63 * - + MAX ( + 84 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6087
SELECT ALL COUNT( * ) * + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6087
SELECT ALL COUNT ( * ) * + COUNT ( * ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6088
SELECT ALL 10 * COUNT( * ) DIV - 31
----
0

skipif mysql # not compatible
query I rowsort label-6088
SELECT ALL 10 * COUNT ( * ) / - 31
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6089
SELECT DISTINCT - + COUNT( - + 75 ), COUNT( * ) * + COUNT( * ) * 55 AS col2
----
-1
55

skipif mysql # not compatible
query II rowsort label-6089
SELECT DISTINCT - + COUNT ( - + 75 ), COUNT ( * ) * + COUNT ( * ) * 55 AS col2
----
-1
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6090
SELECT DISTINCT + 51 DIV - - COUNT( * ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-6090
SELECT DISTINCT + 51 / - - COUNT ( * ) AS col0
----
51

query I rowsort
SELECT ALL 12 * 55 AS col0
----
660

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6092
SELECT ALL + 56 DIV - - MIN( - 70 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6092
SELECT ALL + 56 / - - MIN ( - 70 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6093
SELECT DISTINCT - NULLIF ( + SUM( + + 64 ), + 59 ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-6093
SELECT DISTINCT - NULLIF ( + SUM ( + + 64 ), + 59 ) AS col0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-6094
SELECT ALL COUNT( * ) + - + 50 AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-6094
SELECT ALL COUNT ( * ) + - + 50 AS col2
----
-49

query I rowsort
SELECT DISTINCT - 20 + + 87
----
67

query I rowsort
SELECT ALL + 38 + - 42
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-6097
SELECT ALL 58 AS col0, MIN( - 22 ) + - - 71
----
58
49

skipif mysql # not compatible
query II rowsort label-6097
SELECT ALL 58 AS col0, MIN ( - 22 ) + - - 71
----
58
49

query II rowsort
SELECT ALL + 7, 10 AS col1
----
7
10

onlyif mysql # DIV for integer division: 
query I rowsort label-6099
SELECT DISTINCT - 8 DIV 25 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6099
SELECT DISTINCT - 8 / 25 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6100
SELECT COUNT( - 50 )
----
1

skipif mysql # not compatible
query I rowsort label-6100
SELECT COUNT ( - 50 )
----
1

query I rowsort
SELECT + 92 + - + 11
----
81

query I rowsort
SELECT ALL + - 88 AS col2
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-6103
SELECT ALL + MAX( DISTINCT + 68 ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-6103
SELECT ALL + MAX ( DISTINCT + 68 ) AS col0
----
68

query I rowsort
SELECT + ( - 78 ) AS col1
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6105
SELECT + CAST( - - 24 AS SIGNED ) col1
----
24

skipif mysql # not compatible
query I rowsort label-6105
SELECT + CAST ( - - 24 AS INTEGER ) col1
----
24

query I rowsort
SELECT ( + 92 ) AS col0
----
92

query I rowsort
SELECT ( + - 47 ) AS col1
----
-47

query II rowsort
SELECT 70 * 34 AS col2, 62 AS col2
----
2380
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6109
SELECT ALL COUNT( * ) + 62 - + 26
----
37

skipif mysql # not compatible
query I rowsort label-6109
SELECT ALL COUNT ( * ) + 62 - + 26
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-6110
SELECT DISTINCT 40 + + COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-6110
SELECT DISTINCT 40 + + COUNT ( * )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6111
SELECT DISTINCT 75 + + COUNT( * ) + 17 AS col0
----
93

skipif mysql # not compatible
query I rowsort label-6111
SELECT DISTINCT 75 + + COUNT ( * ) + 17 AS col0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6112
SELECT DISTINCT - MAX( ALL 58 )
----
-58

skipif mysql # not compatible
query I rowsort label-6112
SELECT DISTINCT - MAX ( ALL 58 )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6113
SELECT COUNT( - 25 )
----
1

skipif mysql # not compatible
query I rowsort label-6113
SELECT COUNT ( - 25 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6114
SELECT - CAST( NULL AS SIGNED ) + - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-6114
SELECT - CAST ( NULL AS INTEGER ) + - 28
----
NULL

query I rowsort
SELECT ( - 94 )
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-6116
SELECT ALL + ( + - 42 ) * + ( 89 ) - - COUNT( * )
----
-3737

skipif mysql # not compatible
query I rowsort label-6116
SELECT ALL + ( + - 42 ) * + ( 89 ) - - COUNT ( * )
----
-3737

query I rowsort
SELECT ( + 80 ) AS col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6118
SELECT ALL + COUNT( + 4 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6118
SELECT ALL + COUNT ( + 4 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6119
SELECT - NULLIF ( + 10, + 44 ) * + COUNT( * ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-6119
SELECT - NULLIF ( + 10, + 44 ) * + COUNT ( * ) AS col1
----
-10

query I rowsort
SELECT DISTINCT + ( - + 66 )
----
-66

query I rowsort
SELECT DISTINCT 84 * - 48 col2
----
-4032

onlyif mysql # DIV for integer division: 
query I rowsort label-6122
SELECT + 12 * 4 DIV 2 AS col0
----
24

skipif mysql # not compatible
query I rowsort label-6122
SELECT + 12 * 4 / 2 AS col0
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6123
SELECT - CAST( - - 48 AS SIGNED ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-6123
SELECT - CAST ( - - 48 AS INTEGER ) AS col2
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-6124
SELECT ALL ( MIN( - + 98 ) )
----
-98

skipif mysql # not compatible
query I rowsort label-6124
SELECT ALL ( MIN ( - + 98 ) )
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-6125
SELECT COUNT( * ) * + - 53
----
-53

skipif mysql # not compatible
query I rowsort label-6125
SELECT COUNT ( * ) * + - 53
----
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-6126
SELECT ALL - COUNT( DISTINCT - 91 ), - 95 col1
----
-1
-95

skipif mysql # not compatible
query II rowsort label-6126
SELECT ALL - COUNT ( DISTINCT - 91 ), - 95 col1
----
-1
-95

query I rowsort
SELECT + ( 95 ) AS col1
----
95

query I rowsort
SELECT DISTINCT - 53 + - 5 AS col0
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6129
SELECT ALL NULLIF ( + COUNT( * ), - - 22 ) DIV + 37
----
0

skipif mysql # not compatible
query I rowsort label-6129
SELECT ALL NULLIF ( + COUNT ( * ), - - 22 ) / + 37
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6130
SELECT 36 * + CAST( - 32 AS SIGNED ) AS col2
----
-1152

skipif mysql # not compatible
query I rowsort label-6130
SELECT 36 * + CAST ( - 32 AS INTEGER ) AS col2
----
-1152

query I rowsort
SELECT ALL - - 84 col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6132
SELECT ALL COUNT( * ) + 28
----
29

skipif mysql # not compatible
query I rowsort label-6132
SELECT ALL COUNT ( * ) + 28
----
29

query I rowsort
SELECT + - COALESCE ( - 77, 44, + 78 )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6134
SELECT MAX( ALL - 41 )
----
-41

skipif mysql # not compatible
query I rowsort label-6134
SELECT MAX ( ALL - 41 )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-6135
SELECT ALL MIN( + + 43 )
----
43

skipif mysql # not compatible
query I rowsort label-6135
SELECT ALL MIN ( + + 43 )
----
43

query I rowsort
SELECT + 70 * + - 51 AS col2
----
-3570

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6137
SELECT - 34 + + + 76 * + ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6137
SELECT - 34 + + + 76 * + ( CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT + 27 + 57
----
84

query I rowsort
SELECT ALL COALESCE ( + - 32, 20 ) col1
----
-32

query I rowsort
SELECT + ( - - 43 ) AS col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6141
SELECT SUM( + - 25 ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-6141
SELECT SUM ( + - 25 ) AS col0
----
-25

query I rowsort
SELECT ALL 49 * + 51
----
2499

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6143
SELECT DISTINCT - MIN( CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6143
SELECT DISTINCT - MIN ( CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query II rowsort
SELECT ALL - 85, + 86 AS col2
----
-85
86

query I rowsort
SELECT 45 - - 38
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6146
SELECT ALL + 87 + - - 83 DIV - + COUNT( DISTINCT 42 )
----
4

skipif mysql # not compatible
query I rowsort label-6146
SELECT ALL + 87 + - - 83 / - + COUNT ( DIS