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 ( DISTINCT 42 )
----
4

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

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

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

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

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

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

query II rowsort
SELECT - ( + 50 ) AS col2, - 39 col0
----
-50
-39

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6153
SELECT DISTINCT - MIN( ALL - + 28 ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-6153
SELECT DISTINCT - MIN ( ALL - + 28 ) AS col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6154
SELECT + - 55 + + 60 * - + COUNT( * ) - COUNT( * ) + - 24 AS col0
----
-140

skipif mysql # not compatible
query I rowsort label-6154
SELECT + - 55 + + 60 * - + COUNT ( * ) - COUNT ( * ) + - 24 AS col0
----
-140

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6160
SELECT ALL + 18 AS col2, - 86 * + + COUNT( * )
----
18
-86

skipif mysql # not compatible
query II rowsort label-6160
SELECT ALL + 18 AS col2, - 86 * + + COUNT ( * )
----
18
-86

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6162
SELECT 10 * - - 3 + - + COUNT( * ) * + - 38 AS col2
----
68

skipif mysql # not compatible
query I rowsort label-6162
SELECT 10 * - - 3 + - + COUNT ( * ) * + - 38 AS col2
----
68

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6164
SELECT DISTINCT - 31 DIV + - 34
----
0

skipif mysql # not compatible
query I rowsort label-6164
SELECT DISTINCT - 31 / + - 34
----
0

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

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

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

query I rowsort
SELECT ALL - 7 * 78 col0
----
-546

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

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

query I rowsort
SELECT + 82 * - 32
----
-2624

query I rowsort
SELECT + 57 + - 28 AS col2
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6171
SELECT DISTINCT 56 DIV + COUNT( * ) col2
----
56

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

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

query I rowsort
SELECT DISTINCT - - 14
----
14

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

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

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

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6179
SELECT - NULLIF ( + 75, - COUNT ( * ) + COUNT ( * ) ) + + COUNT ( * ) AS col0
----
-74

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

skipif mysql # not compatible
query I rowsort label-6180
SELECT DISTINCT 21 / COUNT ( * )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6181
SELECT ALL SUM( - 56 ) AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-6181
SELECT ALL SUM ( - 56 ) AS col0
----
-56

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6183
SELECT + - 47 DIV - + 74 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6183
SELECT + - 47 / - + 74 AS col2
----
0

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

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

skipif mysql # not compatible
query I rowsort label-6185
SELECT MAX ( + - 80 )
----
-80

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

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

query I rowsort
SELECT - 50 * + + 6
----
-300

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6190
SELECT + 64 + 34 AS col1, - COUNT( * )
----
98
-1

skipif mysql # not compatible
query II rowsort label-6190
SELECT + 64 + 34 AS col1, - COUNT ( * )
----
98
-1

query I rowsort
SELECT DISTINCT 57 - + - 41
----
98

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6193
SELECT DISTINCT - 79 DIV - COUNT( * ) * + + ( COUNT( * ) ) col0, - 69 AS col1
----
79
-69

skipif mysql # not compatible
query II rowsort label-6193
SELECT DISTINCT - 79 / - COUNT ( * ) * + + ( COUNT ( * ) ) col0, - 69 AS col1
----
79
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-6194
SELECT ALL - - COUNT( ALL - - 14 ) + - 21 AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-6194
SELECT ALL - - COUNT ( ALL - - 14 ) + - 21 AS col0
----
-20

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

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

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

skipif mysql # not compatible
query I rowsort label-6196
SELECT ALL CAST ( - CAST ( COUNT ( * ) AS INTEGER ) AS INTEGER ) * MIN ( 34 )
----
-34

query I rowsort
SELECT 64 - - 82
----
146

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

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

query I rowsort
SELECT DISTINCT - 41 + - 80 AS col2
----
-121

query I rowsort
SELECT NULLIF ( - 47, - 70 )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-6201
SELECT DISTINCT + SUM( ALL + 72 ) - + 19
----
53

skipif mysql # not compatible
query I rowsort label-6201
SELECT DISTINCT + SUM ( ALL + 72 ) - + 19
----
53

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6204
SELECT ( - SUM ( + 10 ) )
----
-10

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

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

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

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

query I rowsort
SELECT ALL + COALESCE ( + + 79, 85 ) * + 99
----
7821

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6209
SELECT 2 DIV - - 7 * 18 * - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6209
SELECT 2 / - - 7 * 18 * - COUNT ( * ) AS col2
----
0

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

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6213
SELECT COUNT( * ) DIV + 17 * ( + + 17 ) + 47
----
47

skipif mysql # not compatible
query I rowsort label-6213
SELECT COUNT ( * ) / + 17 * ( + + 17 ) + 47
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6214
SELECT MAX( ALL 8 ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-6214
SELECT MAX ( ALL 8 ) AS col2
----
8

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

skipif mysql # not compatible
query I rowsort label-6215
SELECT + SUM ( - - 32 )
----
32

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

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

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

query I rowsort
SELECT DISTINCT 76 + + 23
----
99

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6221
SELECT + SUM ( + 69 )
----
69

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

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

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

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

query I rowsort
SELECT ALL - 59 * - 87
----
5133

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6225
SELECT ALL 6 + - + CAST( + 80 AS SIGNED ) + - + 82
----
-156

skipif mysql # not compatible
query I rowsort label-6225
SELECT ALL 6 + - + CAST ( + 80 AS INTEGER ) + - + 82
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-6226
SELECT MAX( 55 )
----
55

skipif mysql # not compatible
query I rowsort label-6226
SELECT MAX ( 55 )
----
55

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

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

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

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

query I rowsort
SELECT DISTINCT ( 26 ) col0
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6231
SELECT - CAST( - + 7 AS SIGNED ) * - 95 AS col1
----
-665

skipif mysql # not compatible
query I rowsort label-6231
SELECT - CAST ( - + 7 AS INTEGER ) * - 95 AS col1
----
-665

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6233
SELECT 83 DIV - 29 col2, - COUNT( * ) * - 96
----
-2
96

skipif mysql # not compatible
query II rowsort label-6233
SELECT 83 / - 29 col2, - COUNT ( * ) * - 96
----
-2
96

query II rowsort
SELECT 36 AS col0, 89 AS col1
----
36
89

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

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

query I rowsort
SELECT + 14 * + 90 AS col1
----
1260

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

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

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

query II rowsort
SELECT - 75 - - 53 AS col1, + 55 AS col1
----
-22
55

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6244
SELECT MAX( - 40 ) col1, MIN( ALL 99 )
----
-40
99

skipif mysql # not compatible
query II rowsort label-6244
SELECT MAX ( - 40 ) col1, MIN ( ALL 99 )
----
-40
99

onlyif mysql # DIV for integer division: 
query I rowsort label-6245
SELECT ALL 18 DIV - - 95 + - ( - 9 ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-6245
SELECT ALL 18 / - - 95 + - ( - 9 ) AS col1
----
9

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

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

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

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

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

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

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

query I rowsort
SELECT ALL + 85 + - 98 col0
----
-13

query I rowsort
SELECT DISTINCT - 52 * + 67 AS col2
----
-3484

onlyif mysql # aggregate syntax: 
query I rowsort label-6252
SELECT NULLIF ( + 96, + 75 ) * - COUNT( * )
----
-96

skipif mysql # not compatible
query I rowsort label-6252
SELECT NULLIF ( + 96, + 75 ) * - COUNT ( * )
----
-96

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

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

query I rowsort
SELECT - 64 col1
----
-64

query I rowsort
SELECT - + 67 * - - 52 col2
----
-3484

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6257
SELECT + + SUM( + 49 ) DIV + 3
----
16

skipif mysql # not compatible
query I rowsort label-6257
SELECT + + SUM ( + 49 ) / + 3
----
16

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6259
SELECT + CAST( NULL AS SIGNED ) * - MIN( ALL + - 25 ) * + - 34 + + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-6259
SELECT + CAST ( NULL AS INTEGER ) * - MIN ( ALL + - 25 ) * + - 34 + + 75
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6260
SELECT DISTINCT COALESCE ( - 55, - COUNT( * ) ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-6260
SELECT DISTINCT COALESCE ( - 55, - COUNT ( * ) ) AS col1
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-6261
SELECT 27 DIV + + 83
----
0

skipif mysql # not compatible
query I rowsort label-6261
SELECT 27 / + + 83
----
0

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6264
SELECT 47 + COUNT( * ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-6264
SELECT 47 + COUNT ( * ) AS col1
----
48

query I rowsort
SELECT 25 * - 59
----
-1475

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

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

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

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

query I rowsort
SELECT + + 40 * + 24 col1
----
960

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6271
SELECT + NULLIF ( - - 67, - 44 ) + - + SUM( ALL - 28 )
----
95

skipif mysql # not compatible
query I rowsort label-6271
SELECT + NULLIF ( - - 67, - 44 ) + - + SUM ( ALL - 28 )
----
95

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT - 2 * 63 AS col2
----
-126

query I rowsort
SELECT + COALESCE ( + + 61, 7 ) + - 74 AS col0
----
-13

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

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

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

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

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6289
SELECT ALL - 92 DIV - + 18 col0
----
5

skipif mysql # not compatible
query I rowsort label-6289
SELECT ALL - 92 / - + 18 col0
----
5

query I rowsort
SELECT ALL + 74 * - - 60 * + 98 AS col0
----
435120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6291
SELECT - 50 + - CAST( + 64 AS SIGNED ) AS col2, COUNT( * ) * + 87
----
-114
87

skipif mysql # not compatible
query II rowsort label-6291
SELECT - 50 + - CAST ( + 64 AS INTEGER ) AS col2, COUNT ( * ) * + 87
----
-114
87

onlyif mysql # aggregate syntax: 
query II rowsort label-6292
SELECT + 53 AS col2, 20 + - + COUNT( * )
----
53
19

skipif mysql # not compatible
query II rowsort label-6292
SELECT + 53 AS col2, 20 + - + COUNT ( * )
----
53
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6293
SELECT ALL - SUM( ALL ( 26 ) ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-6293
SELECT ALL - SUM ( ALL ( 26 ) ) AS col0
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-6294
SELECT ALL 68 DIV ( - 17 )
----
-4

skipif mysql # not compatible
query I rowsort label-6294
SELECT ALL 68 / ( - 17 )
----
-4

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

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

query I rowsort
SELECT ALL 67 * - 26
----
-1742

query I rowsort
SELECT - + 13 * + - 20
----
260

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6299
SELECT - 68 * + ( MIN( - 12 ) ) AS col2
----
816

skipif mysql # not compatible
query I rowsort label-6299
SELECT - 68 * + ( MIN ( - 12 ) ) AS col2
----
816

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6301
SELECT ALL + - 18 * + + MIN( + + ( + 38 ) ) col2
----
-684

skipif mysql # not compatible
query I rowsort label-6301
SELECT ALL + - 18 * + + MIN ( + + ( + 38 ) ) col2
----
-684

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6302
SELECT COUNT( * ) * - - COUNT( + 99 ) + + - 25 + - - ( NULLIF ( - CAST( NULL AS SIGNED ), + COUNT( * ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6302
SELECT COUNT ( * ) * - - COUNT ( + 99 ) + + - 25 + - - ( NULLIF ( - CAST ( NULL AS INTEGER ), + COUNT ( * ) ) ) AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6303
SELECT DISTINCT - 82 - - ( + COUNT ( * ) ) AS col0
----
-81

query I rowsort
SELECT 59 + 76 + - 24
----
111

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6306
SELECT - NULLIF ( + 5, COUNT( * ) + - ( 64 ) ) * - + COUNT( * ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-6306
SELECT - NULLIF ( + 5, COUNT ( * ) + - ( 64 ) ) * - + COUNT ( * ) AS col1
----
5

query I rowsort
SELECT DISTINCT - ( 61 ) + - - 20 AS col2
----
-41

query I rowsort
SELECT DISTINCT - + 98 * 51 AS col1
----
-4998

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

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

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

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

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

query I rowsort
SELECT + 21 + + 88
----
109

onlyif mysql # DIV for integer division: 
query I rowsort label-6313
SELECT - 27 DIV + 15 col0
----
-1

skipif mysql # not compatible
query I rowsort label-6313
SELECT - 27 / + 15 col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6314
SELECT ALL ( - ( + COALESCE ( - 80, CAST( - 27 AS SIGNED ) ) ) )
----
80

skipif mysql # not compatible
query I rowsort label-6314
SELECT ALL ( - ( + COALESCE ( - 80, CAST ( - 27 AS INTEGER ) ) ) )
----
80

query I rowsort
SELECT - - 69 AS col2
----
69

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6319
SELECT - 86 * CAST( - 87 AS SIGNED )
----
7482

skipif mysql # not compatible
query I rowsort label-6319
SELECT - 86 * CAST ( - 87 AS INTEGER )
----
7482

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

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

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

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

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

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

query I rowsort
SELECT 83 + - + 39 - + 71 * - - 7
----
-453

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

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6328
SELECT - 45 DIV + 79
----
0

skipif mysql # not compatible
query I rowsort label-6328
SELECT - 45 / + 79
----
0

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

query I rowsort
SELECT - 91 * 61 col1
----
-5551

query I rowsort
SELECT - 16 + - - 31 AS col1
----
15

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6333
SELECT + COUNT( * ) + - COUNT( * ) * - 70 AS col1
----
71

skipif mysql # not compatible
query I rowsort label-6333
SELECT + COUNT ( * ) + - COUNT ( * ) * - 70 AS col1
----
71

query I rowsort
SELECT + 29 + + - 17
----
12

query I rowsort
SELECT + 4 * + - 26 AS col0
----
-104

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

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

query I rowsort
SELECT 28 * + - 35 AS col2
----
-980

onlyif mysql # aggregate syntax: 
query I rowsort label-6338
SELECT 87 + - + MIN( - 50 ) AS col2
----
137

skipif mysql # not compatible
query I rowsort label-6338
SELECT 87 + - + MIN ( - 50 ) AS col2
----
137

query I rowsort
SELECT 32 - + + 89 + + 69 col1
----
12

query I rowsort
SELECT - 86 + - 78 AS col2
----
-164

query I rowsort
SELECT - 50 + 53
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6342
SELECT + 95 DIV - 49 + - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-6342
SELECT + 95 / - 49 + - COUNT ( * )
----
-2

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

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

query I rowsort
SELECT ALL + 66 * - ( + 73 ) AS col1
----
-4818

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

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

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

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

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

query I rowsort
SELECT ALL 97 * - 0 col0
----
0

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6351
SELECT + + COALESCE ( + 5, COUNT ( * ), 14 ) AS col2
----
5

query II rowsort
SELECT 68 AS col2, 20 + + 47
----
68
67

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

skipif mysql # not compatible
query I rowsort label-6353
SELECT SUM ( + + 47 )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6354
SELECT - SUM( ALL + + 55 ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-6354
SELECT - SUM ( ALL + + 55 ) AS col2
----
-55

query I rowsort
SELECT + 23 + + 3 AS col1
----
26

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

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

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

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

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

query I rowsort
SELECT DISTINCT + + 25 * - + 55
----
-1375

query I rowsort
SELECT ALL - 96 + + 14 AS col1
----
-82

query I rowsort
SELECT DISTINCT + + 15 + - 38
----
-23

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

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

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

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

query I rowsort
SELECT DISTINCT ( 10 ) col1
----
10

query I rowsort
SELECT ALL + 89 + 15 + 53
----
157

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

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

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

query I rowsort
SELECT 65 * 53
----
3445

query II rowsort
SELECT ALL 11 AS col0, 50 AS col0
----
11
50

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

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

query II rowsort
SELECT ALL + 20, - 63 AS col2
----
20
-63

query I rowsort
SELECT - 20 * + 62 col1
----
-1240

query II rowsort
SELECT 42 AS col1, 68 AS col0
----
42
68

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6376
SELECT ALL 55 * MAX( - 86 ) AS col1
----
-4730

skipif mysql # not compatible
query I rowsort label-6376
SELECT ALL 55 * MAX ( - 86 ) AS col1
----
-4730

onlyif mysql # aggregate syntax: 
query I rowsort label-6377
SELECT + 20 * - SUM( DISTINCT - - 19 )
----
-380

skipif mysql # not compatible
query I rowsort label-6377
SELECT + 20 * - SUM ( DISTINCT - - 19 )
----
-380

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

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

query I rowsort
SELECT ALL 78 * 96
----
7488

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6383
SELECT - 78 * + - MAX( DISTINCT 64 ) AS col0
----
4992

skipif mysql # not compatible
query I rowsort label-6383
SELECT - 78 * + - MAX ( DISTINCT 64 ) AS col0
----
4992

onlyif mysql # aggregate syntax: 
query I rowsort label-6384
SELECT ALL MAX( 36 ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-6384
SELECT ALL MAX ( 36 ) AS col0
----
36

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6388
SELECT ALL + 62 DIV + 79 + 59
----
59

skipif mysql # not compatible
query I rowsort label-6388
SELECT ALL + 62 / + 79 + 59
----
59

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

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

query I rowsort
SELECT - 27 * + 90 AS col0
----
-2430

onlyif mysql # aggregate syntax: 
query I rowsort label-6391
SELECT ( + COUNT( * ) ) + + 33
----
34

skipif mysql # not compatible
query I rowsort label-6391
SELECT ( + COUNT ( * ) ) + + 33
----
34

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

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

query I rowsort
SELECT DISTINCT + 60 + 1 * 64 col2
----
124

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

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

query I rowsort
SELECT 10 * - + 45 AS col1
----
-450

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6397
SELECT 6 + COUNT( DISTINCT - 96 ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-6397
SELECT 6 + COUNT ( DISTINCT - 96 ) AS col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6398
SELECT + SUM( - + 47 ) * - 97
----
4559

skipif mysql # not compatible
query I rowsort label-6398
SELECT + SUM ( - + 47 ) * - 97
----
4559

query I rowsort
SELECT DISTINCT + 61 * + 39 AS col1
----
2379

onlyif mysql # aggregate syntax: 
query I rowsort label-6400
SELECT - MAX( 13 )
----
-13

skipif mysql # not compatible
query I rowsort label-6400
SELECT - MAX ( 13 )
----
-13

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

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

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

query I rowsort
SELECT - 40 + + + 11 AS col2
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6404
SELECT 26 * + - CAST( - 6 AS SIGNED )
----
156

skipif mysql # not compatible
query I rowsort label-6404
SELECT 26 * + - CAST ( - 6 AS INTEGER )
----
156

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

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

query I rowsort
SELECT 16 + - 27 - + 51 AS col2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-6407
SELECT SUM( DISTINCT 12 ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-6407
SELECT SUM ( DISTINCT 12 ) AS col0
----
12

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

query I rowsort
SELECT 84 * 73
----
6132

query II rowsort
SELECT DISTINCT 4, 71 AS col1
----
4
71

query I rowsort
SELECT 9 + 5
----
14

query I rowsort
SELECT 44 * - 92
----
-4048

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6414
SELECT + NULLIF ( + - MAX( DISTINCT + ( 38 ) ), + AVG ( DISTINCT + + 81 ) ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-6414
SELECT + NULLIF ( + - MAX ( DISTINCT + ( 38 ) ), + AVG ( DISTINCT + + 81 ) ) AS col0
----
-38

query I rowsort
SELECT - - 50 - + 47
----
3

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

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

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

skipif mysql # not compatible
query I rowsort label-6417
SELECT ALL + - 0 * + + CAST ( + + MAX ( + 81 ) AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6418
SELECT ALL + COUNT( * ) + NULLIF ( + 38, + 40 ) + COALESCE ( 53, - - COUNT( * ) ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-6418
SELECT ALL + COUNT ( * ) + NULLIF ( + 38, + 40 ) + COALESCE ( 53, - - COUNT ( * ) ) AS col2
----
92

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6420
SELECT ALL MAX( + CAST( - - 65 AS SIGNED ) ) + - 52 AS col1
----
13

skipif mysql # not compatible
query I rowsort label-6420
SELECT ALL MAX ( + CAST ( - - 65 AS INTEGER ) ) + - 52 AS col1
----
13

query II rowsort
SELECT 69 AS col2, - 37
----
69
-37

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

skipif mysql # not compatible
query I rowsort label-6422
SELECT DISTINCT SUM ( 28 )
----
28

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6429
SELECT ALL SUM( DISTINCT + + 23 ) col1
----
23

skipif mysql # not compatible
query I rowsort label-6429
SELECT ALL SUM ( DISTINCT + + 23 ) col1
----
23

query II rowsort
SELECT - 61, + 64 AS col2
----
-61
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6431
SELECT - SUM( + + 5 ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-6431
SELECT - SUM ( + + 5 ) AS col0
----
-5

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

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

query I rowsort
SELECT DISTINCT 37 + - 80
----
-43

query I rowsort
SELECT - 66 + - + 28 AS col2
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-6435
SELECT - - 43 * + MIN( ALL + + 40 ) col1
----
1720

skipif mysql # not compatible
query I rowsort label-6435
SELECT - - 43 * + MIN ( ALL + + 40 ) col1
----
1720

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6439
SELECT ALL - - CASE - 91 WHEN + COUNT( * ) * - 41 + - 2 THEN 60 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6439
SELECT ALL - - CASE - 91 WHEN + COUNT ( * ) * - 41 + - 2 THEN 60 ELSE NULL END
----
NULL

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

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

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

query I rowsort
SELECT 69 - - - 91
----
-22

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

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

query I rowsort
SELECT ALL + 80 - - 20 col2
----
100

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

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

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

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6451
SELECT - MIN ( 87 )
----
-87

query II rowsort
SELECT DISTINCT - 30 AS col0, 91
----
-30
91

query I rowsort
SELECT 0 + 3 AS col0
----
3

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6455
SELECT 41 DIV - + COALESCE ( + - 62, 83 ) DIV - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-6455
SELECT 41 / - + COALESCE ( + - 62, 83 ) / - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6456
SELECT MAX( 94 )
----
94

skipif mysql # not compatible
query I rowsort label-6456
SELECT MAX ( 94 )
----
94

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

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

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

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

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

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

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

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

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

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

query II rowsort
SELECT ALL + + 67, 76 - + + 89 col2
----
67
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-6464
SELECT ALL MIN( 13 ) col1
----
13

skipif mysql # not compatible
query I rowsort label-6464
SELECT ALL MIN ( 13 ) col1
----
13

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6466
SELECT 26 + MAX( + 32 ) * - 99
----
-3142

skipif mysql # not compatible
query I rowsort label-6466
SELECT 26 + MAX ( + 32 ) * - 99
----
-3142

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6467
SELECT DISTINCT - - 8 * - MIN( ALL - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6467
SELECT DISTINCT - - 8 * - MIN ( ALL - CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT ( 32 ) + - ( - 15 ) col1
----
47

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

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

query I rowsort
SELECT ALL + 49 - + + 64 AS col0
----
-15

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

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

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

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

query I rowsort
SELECT ALL 66 + - + 76
----
-10

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6475
SELECT DISTINCT + + COUNT( * ) AS col0, 8 DIV - CAST( + - SUM( 60 ) AS SIGNED ) AS col2
----
1
0

skipif mysql # not compatible
query II rowsort label-6475
SELECT DISTINCT + + COUNT ( * ) AS col0, 8 / - CAST ( + - SUM ( 60 ) AS INTEGER ) AS col2
----
1
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6476
SELECT + 71 AS col1, - CAST( NULL AS DECIMAL ) AS col1
----
71
NULL

skipif mysql # not compatible
query II rowsort label-6476
SELECT + 71 AS col1, - CAST ( NULL AS REAL ) AS col1
----
71
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6479
SELECT + + 59 * + + MIN( DISTINCT - - 36 )
----
2124

skipif mysql # not compatible
query I rowsort label-6479
SELECT + + 59 * + + MIN ( DISTINCT - - 36 )
----
2124

onlyif mysql # DIV for integer division: 
query I rowsort label-6480
SELECT 22 DIV - 47 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6480
SELECT 22 / - 47 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6481
SELECT ALL - COUNT( * ) AS col2, 86 + + 54
----
-1
140

skipif mysql # not compatible
query II rowsort label-6481
SELECT ALL - COUNT ( * ) AS col2, 86 + + 54
----
-1
140

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

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

query I rowsort
SELECT DISTINCT 32 * + + 49
----
1568

query I rowsort
SELECT ALL + 70 * - 99
----
-6930

query I rowsort
SELECT ALL 77 * + 84
----
6468

query I rowsort
SELECT ALL - 48 + - 44 AS col0
----
-92

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6488
SELECT 33 DIV 6
----
5

skipif mysql # not compatible
query I rowsort label-6488
SELECT 33 / 6
----
5

query I rowsort
SELECT - 65 * + 28
----
-1820

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

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

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

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

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

query I rowsort
SELECT ALL 36 * 75
----
2700

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

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

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

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

query I rowsort
SELECT NULLIF ( - - 31, 64 ) AS col2
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-6497
SELECT DISTINCT + COUNT( * ) AS col2, + MAX( ALL - 3 ) col2
----
1
-3

skipif mysql # not compatible
query II rowsort label-6497
SELECT DISTINCT + COUNT ( * ) AS col2, + MAX ( ALL - 3 ) col2
----
1
-3

query I rowsort
SELECT ( + - 31 ) + + 69
----
38

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

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

query I rowsort
SELECT - 84 + + - 24
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-6501
SELECT - 19 - - COUNT( * ) AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-6501
SELECT - 19 - - COUNT ( * ) AS col0
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-6502
SELECT DISTINCT 66 DIV 33 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-6502
SELECT DISTINCT 66 / 33 AS col2
----
2

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

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

skipif mysql # not compatible
query I rowsort label-6504
SELECT + 6 / 33 - - + COUNT ( * )
----
1

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

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

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

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

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

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

skipif mysql # not compatible
query II rowsort label-6508
SELECT + - CAST ( - + MIN ( - 85 ) AS INTEGER ), - COUNT ( * ) AS col2
----
-85
-1

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6511
SELECT DISTINCT + 33 * + MIN( DISTINCT 80 ) + 89
----
2729

skipif mysql # not compatible
query I rowsort label-6511
SELECT DISTINCT + 33 * + MIN ( DISTINCT 80 ) + 89
----
2729

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

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

query I rowsort
SELECT 35 + + 70
----
105

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6514
SELECT ALL 99 * + - 82 AS col1, + CAST( NULL AS SIGNED )
----
-8118
NULL

skipif mysql # not compatible
query II rowsort label-6514
SELECT ALL 99 * + - 82 AS col1, + CAST ( NULL AS INTEGER )
----
-8118
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6515
SELECT + SUM( ALL - + 59 ) AS col1, - 69 * + - 75
----
-59
5175

skipif mysql # not compatible
query II rowsort label-6515
SELECT + SUM ( ALL - + 59 ) AS col1, - 69 * + - 75
----
-59
5175

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

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

query I rowsort
SELECT + 2 * + 8 col1
----
16

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

skipif mysql # not compatible
query I rowsort label-6518
SELECT - COUNT ( * ) / + - 75 * - 2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6519
SELECT DISTINCT COALESCE ( COUNT( DISTINCT - + 70 ), - 66 ) + + 98
----
99

skipif mysql # not compatible
query I rowsort label-6519
SELECT DISTINCT COALESCE ( COUNT ( DISTINCT - + 70 ), - 66 ) + + 98
----
99

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

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

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

skipif mysql # not compatible
query I rowsort label-6521
SELECT - 83 + - - 71 + - + ( - COUNT ( * ) ) AS col1
----
-11

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6523
SELECT ( + + SUM( DISTINCT - 48 ) ) AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-6523
SELECT ( + + SUM ( DISTINCT - 48 ) ) AS col0
----
-48

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6526
SELECT 21 DIV + - 18
----
-1

skipif mysql # not compatible
query I rowsort label-6526
SELECT 21 / + - 18
----
-1

query I rowsort
SELECT ALL - 55 * - 73 AS col2
----
4015

query I rowsort
SELECT 63 + - - 8
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6529
SELECT + - MIN( DISTINCT CAST( 98 AS SIGNED ) ) AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-6529
SELECT + - MIN ( DISTINCT CAST ( 98 AS INTEGER ) ) AS col0
----
-98

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

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

query II rowsort
SELECT + 59 AS col0, 31 AS col2
----
59
31

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6535
SELECT SUM ( + 43 )
----
43

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6538
SELECT - 82 / - COUNT ( * ) AS col2
----
82

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6540
SELECT ALL 30 * 74 * + - MAX( DISTINCT + - 5 )
----
11100

skipif mysql # not compatible
query I rowsort label-6540
SELECT ALL 30 * 74 * + - MAX ( DISTINCT + - 5 )
----
11100

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

query I rowsort
SELECT ALL - 78 * - ( 96 )
----
7488

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6546
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) - + 6 AS col0
----
-5

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

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

query I rowsort
SELECT DISTINCT + 6 - - 6
----
12

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

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

query I rowsort
SELECT 30 + 21
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6551
SELECT 20 + + + COALESCE ( COUNT( * ), + 72 * - 65 DIV - 19 ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-6551
SELECT 20 + + + COALESCE ( COUNT ( * ), + 72 * - 65 / - 19 ) AS col1
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6552
SELECT DISTINCT + + 86 - - 76 DIV CAST( - COUNT( * ) AS SIGNED ) + + 59 AS col0
----
69

skipif mysql # not compatible
query I rowsort label-6552
SELECT DISTINCT + + 86 - - 76 / CAST ( - COUNT ( * ) AS INTEGER ) + + 59 AS col0
----
69

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

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6558
SELECT DISTINCT - 32 * - 39 AS col2, ( COUNT( * ) ) * - + 90
----
1248
-90

skipif mysql # not compatible
query II rowsort label-6558
SELECT DISTINCT - 32 * - 39 AS col2, ( COUNT ( * ) ) * - + 90
----
1248
-90

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6560
SELECT ALL 74 DIV - COUNT( DISTINCT + 94 )
----
-74

skipif mysql # not compatible
query I rowsort label-6560
SELECT ALL 74 / - COUNT ( DISTINCT + 94 )
----
-74

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

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

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

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

query I rowsort
SELECT + 29 * + 25
----
725

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6568
SELECT DISTINCT 6 + - - COUNT ( * ) * + - COUNT ( * ) AS col0
----
5

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

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

query I rowsort
SELECT - 68 col1
----
-68

query I rowsort
SELECT - 73 * + 17
----
-1241

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

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

query II rowsort
SELECT - - 68 AS col2, - 59
----
68
-59

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

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

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

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

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6579
SELECT DISTINCT - NULLIF ( COUNT ( * ), 79 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6580
SELECT + COUNT( * ) + ( - 30 ) AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-6580
SELECT + COUNT ( * ) + ( - 30 ) AS col1
----
-29

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6582
SELECT + + 29 DIV 71, - COUNT( 69 ) + CAST( 71 AS SIGNED ) * 16 DIV 26 + - + 90 * + COUNT( * ) AS col1
----
0
-48

skipif mysql # not compatible
query II rowsort label-6582
SELECT + + 29 / 71, - COUNT ( 69 ) + CAST ( 71 AS INTEGER ) * 16 / 26 + - + 90 * + COUNT ( * ) AS col1
----
0
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-6583
SELECT - COUNT( * ) + - 47 + - 88 AS col1
----
-136

skipif mysql # not compatible
query I rowsort label-6583
SELECT - COUNT ( * ) + - 47 + - 88 AS col1
----
-136

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

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

query I rowsort
SELECT NULLIF ( 61, - 53 )
----
61

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

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

query I rowsort
SELECT ALL + 47 + + 67 * - - NULLIF ( + 78, 91 )
----
5273

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6590
SELECT ALL CAST( + 42 AS SIGNED ) * 39
----
1638

skipif mysql # not compatible
query I rowsort label-6590
SELECT ALL CAST ( + 42 AS INTEGER ) * 39
----
1638

onlyif mysql # aggregate syntax: 
query I rowsort label-6591
SELECT + COUNT( * ) + 87
----
88

skipif mysql # not compatible
query I rowsort label-6591
SELECT + COUNT ( * ) + 87
----
88

query I rowsort
SELECT + 1 - - + 8 * + 91
----
729

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

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

skipif mysql # not compatible
query I rowsort label-6594
SELECT DISTINCT MAX ( - 90 )
----
-90

query I rowsort
SELECT - 58 + + 78 * - - 92 + + ( 87 ) AS col2
----
7205

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6598
SELECT ALL COUNT( * ) + 20 * 31
----
621

skipif mysql # not compatible
query I rowsort label-6598
SELECT ALL COUNT ( * ) + 20 * 31
----
621

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

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

query I rowsort
SELECT ALL + 73 * - 28 AS col2
----
-2044

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

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

query I rowsort
SELECT ALL - 49 + + 45 AS col2
----
-4

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

query I rowsort
SELECT + 42 * - 31
----
-1302

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6610
SELECT ALL 30 + + MAX( - - 33 )
----
63

skipif mysql # not compatible
query I rowsort label-6610
SELECT ALL 30 + + MAX ( - - 33 )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6611
SELECT ALL - + NULLIF ( + COUNT( * ), + 50 * 79 ) + 56
----
55

skipif mysql # not compatible
query I rowsort label-6611
SELECT ALL - + NULLIF ( + COUNT ( * ), + 50 * 79 ) + 56
----
55

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

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

query I rowsort
SELECT DISTINCT - 77 + - 27
----
-104

query I rowsort
SELECT 73 * - 22 * 97
----
-155782

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6616
SELECT - MAX( ALL 94 ) AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-6616
SELECT - MAX ( ALL 94 ) AS col1
----
-94

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6619
SELECT ALL - 83 DIV 61
----
-1

skipif mysql # not compatible
query I rowsort label-6619
SELECT ALL - 83 / 61
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6620
SELECT + ( CASE WHEN NULL <= NULL THEN + 74 END ) * MIN( DISTINCT + CAST( NULL AS SIGNED ) ) - 90
----
NULL

skipif mysql # not compatible
query I rowsort label-6620
SELECT + ( CASE WHEN NULL <= NULL THEN + 74 END ) * MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) - 90
----
NULL

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

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

query I rowsort
SELECT + - 28 + 17
----
-11

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

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

query I rowsort
SELECT + - 51 col1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6625
SELECT + 95 * - - MAX( ALL - 86 )
----
-8170

skipif mysql # not compatible
query I rowsort label-6625
SELECT + 95 * - - MAX ( ALL - 86 )
----
-8170

query II rowsort
SELECT DISTINCT + 40 col0, 44 * + 22
----
40
968

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6628
SELECT ALL CAST( NULL AS DECIMAL ) col1, 46
----
NULL
46

skipif mysql # not compatible
query II rowsort label-6628
SELECT ALL CAST ( NULL AS REAL ) col1, 46
----
NULL
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6629
SELECT + COUNT( DISTINCT + 18 ) DIV + - 76
----
0

skipif mysql # not compatible
query I rowsort label-6629
SELECT + COUNT ( DISTINCT + 18 ) / + - 76
----
0

query I rowsort
SELECT 12 * 63
----
756

onlyif mysql # aggregate syntax: 
query I rowsort label-6631
SELECT - MAX( DISTINCT 44 ) col1
----
-44

skipif mysql # not compatible
query I rowsort label-6631
SELECT - MAX ( DISTINCT 44 ) col1
----
-44

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

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

skipif mysql # not compatible
query I rowsort label-6633
SELECT COUNT ( * ) / + + 79 col2
----
0

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

skipif mysql # not compatible
query II rowsort label-6634
SELECT 41, ( - - CAST ( NULL AS INTEGER ) ) AS col0
----
41
NULL

query I rowsort
SELECT ALL + - 88 * 37
----
-3256

query I rowsort
SELECT ALL 22 * + 49 * - 8
----
-8624

onlyif mysql # DIV for integer division: 
query I rowsort label-6637
SELECT 75 DIV - + 77 + - 21
----
-21

skipif mysql # not compatible
query I rowsort label-6637
SELECT 75 / - + 77 + - 21
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-6638
SELECT - CASE + COUNT( * ) WHEN - 91 THEN 54 * + 95 END * - MIN( DISTINCT - 97 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6638
SELECT - CASE + COUNT ( * ) WHEN - 91 THEN 54 * + 95 END * - MIN ( DISTINCT - 97 ) AS col0
----
NULL

query I rowsort
SELECT + + 28 * + + 43
----
1204

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

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

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

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

query I rowsort
SELECT DISTINCT + - 54 * - 26
----
1404

query I rowsort
SELECT 58 + 74 AS col2
----
132

query I rowsort
SELECT ALL 40 * - 13 AS col2
----
-520

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

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

query I rowsort
SELECT ALL 54 + - 24 AS col0
----
30

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL 50 * - 52 + + 57
----
-2543

onlyif mysql # aggregate syntax: 
query I rowsort label-6654
SELECT ALL 82 * + COUNT( + + 71 ) col1
----
82

skipif mysql # not compatible
query I rowsort label-6654
SELECT ALL 82 * + COUNT ( + + 71 ) col1
----
82

query I rowsort
SELECT - - 74 * - 16
----
-1184

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

query I rowsort
SELECT DISTINCT + 6 * 25 AS col1
----
150

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6659
SELECT CASE - 25 WHEN 62 THEN - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6659
SELECT CASE - 25 WHEN 62 THEN - COUNT ( * ) ELSE NULL END
----
NULL

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

query I rowsort
SELECT DISTINCT + 90 * - + ( - 49 ) AS col1
----
4410

query I rowsort
SELECT ALL + - 3 * - NULLIF ( - 47, + ( + - 38 ) / - + 17 )
----
-141

query I rowsort
SELECT ALL - - 50 * + + 28 AS col0
----
1400

query I rowsort
SELECT - 23 * - + ( - 66 )
----
-1518

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6666
SELECT MAX( DISTINCT - 84 ) AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-6666
SELECT MAX ( DISTINCT - 84 ) AS col0
----
-84

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6668
SELECT DISTINCT + COUNT( * ) - 47 * 90 AS col0
----
-4229

skipif mysql # not compatible
query I rowsort label-6668
SELECT DISTINCT + COUNT ( * ) - 47 * 90 AS col0
----
-4229

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

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

skipif mysql # not compatible
query I rowsort label-6670
SELECT ALL MIN ( ALL - 61 )
----
-61

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

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

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

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

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

query II rowsort
SELECT DISTINCT - 48 AS col0, 95
----
-48
95

query I rowsort
SELECT ( + 4 ) * + 38 AS col1
----
152

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6676
SELECT ALL + 24 * + + ( CAST( NULL AS SIGNED ) ) AS col1, 27
----
NULL
27

skipif mysql # not compatible
query II rowsort label-6676
SELECT ALL + 24 * + + ( CAST ( NULL AS INTEGER ) ) AS col1, 27
----
NULL
27

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6679
SELECT ALL + 31 * + MAX( DISTINCT + + 6 ) AS col2
----
186

skipif mysql # not compatible
query I rowsort label-6679
SELECT ALL + 31 * + MAX ( DISTINCT + + 6 ) AS col2
----
186

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

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

query I rowsort
SELECT ALL - 45 col2
----
-45

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6683
SELECT DISTINCT MAX( 24 ) col1
----
24

skipif mysql # not compatible
query I rowsort label-6683
SELECT DISTINCT MAX ( 24 ) col1
----
24

query I rowsort
SELECT - 41 * 63
----
-2583

query II rowsort
SELECT + 46 AS col1, 43
----
46
43

query I rowsort
SELECT + + 52 + - - 49 AS col1
----
101

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

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

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

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

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

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

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

query I rowsort
SELECT + 51 - - 60 AS col1
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-6692
SELECT NULLIF ( - 34, - COUNT( * ) ) * - 15 AS col0
----
510

skipif mysql # not compatible
query I rowsort label-6692
SELECT NULLIF ( - 34, - COUNT ( * ) ) * - 15 AS col0
----
510

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

skipif mysql # not compatible
query I rowsort label-6693
SELECT ALL - COUNT ( * ) + MIN ( 63 ) AS col1
----
62

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6697
SELECT DISTINCT COALESCE ( 9, + COUNT( * ) ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-6697
SELECT DISTINCT COALESCE ( 9, + COUNT ( * ) ) AS col1
----
9

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6699
SELECT 83 DIV + 41
----
2

skipif mysql # not compatible
query I rowsort label-6699
SELECT 83 / + 41
----
2

query I rowsort
SELECT ALL 63 - - 22
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6701
SELECT CAST( NULL AS SIGNED ) * 75 / ( + - 78 )
----
NULL

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

query I rowsort
SELECT 46 + - 29
----
17

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

skipif mysql # not compatible
query I rowsort label-6703
SELECT ALL + COUNT ( * ) + ( - 72 ) AS col2
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-6704
SELECT 93 DIV 59 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6704
SELECT 93 / 59 AS col0
----
1

query II rowsort
SELECT 35 AS col1, + 18 col1
----
35
18

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

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

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

query I rowsort
SELECT ALL + 88 - - + 80 AS col1
----
168

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

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6713
SELECT - SUM ( ALL - 23 )
----
23

query I rowsort
SELECT DISTINCT + 45 + 67
----
112

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

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

query I rowsort
SELECT ALL + 71 - 80 AS col1
----
-9

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

skipif mysql # not compatible
query I rowsort label-6717
SELECT - MAX ( ALL - ( - 67 ) )
----
-67

query I rowsort
SELECT + 6 * - 90
----
-540

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

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

query I rowsort
SELECT ( + + 64 ) - - - 47 AS col0
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6721
SELECT DISTINCT CAST( + 87 AS SIGNED ) * 13 AS col0
----
1131

skipif mysql # not compatible
query I rowsort label-6721
SELECT DISTINCT CAST ( + 87 AS INTEGER ) * 13 AS col0
----
1131

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6723
SELECT - 19 + - SUM( DISTINCT - - 28 ) * 47 AS col2
----
-1335

skipif mysql # not compatible
query I rowsort label-6723
SELECT - 19 + - SUM ( DISTINCT - - 28 ) * 47 AS col2
----
-1335

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

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

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

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

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

query I rowsort
SELECT ALL - + 69 * + - 83 + 92 AS col1
----
5819

query I rowsort
SELECT - NULLIF ( + + 46, + - AVG ( DISTINCT + - 45 ) )
----
-46

query I rowsort
SELECT DISTINCT - 17 + 59 AS col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-6730
SELECT - - MAX( DISTINCT + - 5 )
----
-5

skipif mysql # not compatible
query I rowsort label-6730
SELECT - - MAX ( DISTINCT + - 5 )
----
-5

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

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

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

query II rowsort
SELECT ALL - 95, 28 col1
----
-95
28

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

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

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

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

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

query I rowsort
SELECT 72 * - 71
----
-5112

query I rowsort
SELECT + 74 * + + 11 AS col2
----
814

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

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

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

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

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

query I rowsort
SELECT - + 67 + 19
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6743
SELECT + CAST( + COALESCE ( + AVG ( - + 34 ), - + 53 ) AS SIGNED ) AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-6743
SELECT + CAST ( + COALESCE ( + AVG ( - + 34 ), - + 53 ) AS INTEGER ) AS col1
----
-34

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6746
SELECT CAST( CAST( - COUNT( DISTINCT 94 ) AS SIGNED ) AS SIGNED ) + + 89
----
88

skipif mysql # not compatible
query I rowsort label-6746
SELECT CAST ( CAST ( - COUNT ( DISTINCT 94 ) AS INTEGER ) AS INTEGER ) + + 89
----
88

query I rowsort
SELECT DISTINCT 69 + 10 AS col0
----
79

query II rowsort
SELECT ALL 40 AS col1, 77
----
40
77

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

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

query I rowsort
SELECT ALL 64 + + - 95 col0
----
-31

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

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

query I rowsort
SELECT 64 * + 79 AS col0
----
5056

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6756
SELECT + + 87 DIV 14 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-6756
SELECT + + 87 / 14 AS col0
----
6

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6759
SELECT ( + 53 ) * + + COUNT( * ) + 94 AS col0
----
147

skipif mysql # not compatible
query I rowsort label-6759
SELECT ( + 53 ) * + + COUNT ( * ) + 94 AS col0
----
147

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

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

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

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

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

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

query I rowsort
SELECT + 29 * - 72
----
-2088

query I rowsort
SELECT - 68 * 85
----
-5780

onlyif mysql # DIV for integer division: 
query I rowsort label-6765
SELECT - 86 DIV - + 65
----
1

skipif mysql # not compatible
query I rowsort label-6765
SELECT - 86 / - + 65
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6766
SELECT - 50 DIV + - MAX( - 84 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6766
SELECT - 50 / + - MAX ( - 84 ) AS col0
----
0

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

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

query I rowsort
SELECT - 10 * - 24 AS col0
----
240

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

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

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

query II rowsort
SELECT DISTINCT + 85, - 11 AS col0
----
85
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-6773
SELECT + COUNT( * ) + + SUM( + 75 )
----
76

skipif mysql # not compatible
query I rowsort label-6773
SELECT + COUNT ( * ) + + SUM ( + 75 )
----
76

query II rowsort
SELECT + 25 AS col2, + ( - ( + 96 ) ) + - + 89
----
25
-185

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6776
SELECT - 98 + - SUM( 59 ) AS col2
----
-157

skipif mysql # not compatible
query I rowsort label-6776
SELECT - 98 + - SUM ( 59 ) AS col2
----
-157

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

query I rowsort
SELECT 51 * - ( 14 )
----
-714

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

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

query I rowsort
SELECT + - 20 + 96 col1
----
76

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6783
SELECT - 68 / COUNT ( * ) AS col2
----
-68

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT + 36 * - 7 AS col0
----
-252

query II rowsort
SELECT 41 + 2 AS col2, + 65
----
43
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6792
SELECT DISTINCT - ( + COALESCE ( CAST( + + NULLIF ( - + COUNT( * ), COUNT( * ) ) AS SIGNED ), + COUNT( * ) ) ) * + 71
----
71

skipif mysql # not compatible
query I rowsort label-6792
SELECT DISTINCT - ( + COALESCE ( CAST ( + + NULLIF ( - + COUNT ( * ), COUNT ( * ) ) AS INTEGER ), + COUNT ( * ) ) ) * + 71
----
71

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

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

query I rowsort
SELECT DISTINCT 58 * 7 AS col2
----
406

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6798
SELECT - COUNT ( * ) / - ( - 66 ) / ( COUNT ( * ) ) * - + 41
----
0

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

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

query I rowsort
SELECT DISTINCT ( 58 ) * 59 AS col2
----
3422

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - 76 * 52 AS col1
----
-3952

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

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

query I rowsort
SELECT 50 * 45
----
2250

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6810
SELECT + 59 + COUNT( * ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-6810
SELECT + 59 + COUNT ( * ) AS col0
----
60

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

query I rowsort
SELECT ALL NULLIF ( + 14, - + NULLIF ( - 52, - 94 ) ) AS col1
----
14

query I rowsort
SELECT - 39 * + 63 AS col0
----
-2457

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

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

query I rowsort
SELECT DISTINCT - + 70 * - + 61
----
4270

query I rowsort
SELECT + - 87 * - 0 AS col0
----
0

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

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

query I rowsort
SELECT + 5 * - - 61 AS col0
----
305

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6822
SELECT MAX ( DISTINCT 5 )
----
5

query I rowsort
SELECT 59 - 98
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-6824
SELECT MIN( 31 ) * - - 36
----
1116

skipif mysql # not compatible
query I rowsort label-6824
SELECT MIN ( 31 ) * - - 36
----
1116

query I rowsort
SELECT ALL + 25 * + 29 + - 97 AS col1
----
628

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

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

query I rowsort
SELECT DISTINCT NULLIF ( - - ( - + 23 ), 24 ) AS col1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-6828
SELECT DISTINCT ( SUM( + 62 ) ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-6828
SELECT DISTINCT ( SUM ( + 62 ) ) AS col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6829
SELECT COALESCE ( COUNT( * ), 30 + - + 46 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6829
SELECT COALESCE ( COUNT ( * ), 30 + - + 46 ) AS col1
----
1

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

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

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

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

query I rowsort
SELECT 69 + 37 AS col1
----
106

onlyif mysql # DIV for integer division: 
query I rowsort label-6834
SELECT DISTINCT 27 DIV - 20 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6834
SELECT DISTINCT 27 / - 20 AS col2
----
-1

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

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

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

skipif mysql # not compatible
query I rowsort label-6836
SELECT DISTINCT MIN ( DISTINCT + - CAST ( + 14 AS INTEGER ) )
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-6837
SELECT 98 + + 1 DIV + + 92 AS col2
----
98

skipif mysql # not compatible
query I rowsort label-6837
SELECT 98 + + 1 / + + 92 AS col2
----
98

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6840
SELECT + MAX( + 41 ) col0
----
41

skipif mysql # not compatible
query I rowsort label-6840
SELECT + MAX ( + 41 ) col0
----
41

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

skipif mysql # not compatible
query I rowsort label-6841
SELECT ALL + COUNT ( * ) + - 19 AS col1
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6842
SELECT DISTINCT ( MIN( DISTINCT + 62 ) ) DIV - ( + - 98 )
----
0

skipif mysql # not compatible
query I rowsort label-6842
SELECT DISTINCT ( MIN ( DISTINCT + 62 ) ) / - ( + - 98 )
----
0

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

skipif mysql # not compatible
query I rowsort label-6843
SELECT DISTINCT MAX ( 40 )
----
40

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

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

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

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

query I rowsort
SELECT ALL 28 * - - 42 AS col2
----
1176

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

query I rowsort
SELECT - 9 * + 22 AS col1
----
-198

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6851
SELECT + - COUNT( * ) DIV + + SUM( DISTINCT + 61 )
----
0

skipif mysql # not compatible
query I rowsort label-6851
SELECT + - COUNT ( * ) / + + SUM ( DISTINCT + 61 )
----
0

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

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

query I rowsort
SELECT 64 * 43 AS col1
----
2752

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

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

query II rowsort
SELECT ALL - + 31 AS col2, 94 + 51
----
-31
145

query II rowsort
SELECT DISTINCT - 62 AS col1, + 96 AS col1
----
-62
96

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

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

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

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

query I rowsort
SELECT DISTINCT 42 * - 63 AS col1
----
-2646

query I rowsort
SELECT ALL + - COALESCE ( + + 5, - + 30 ) AS col2
----
-5

query I rowsort
SELECT - 42 + - 51 * - 13
----
621

onlyif mysql # DIV for integer division: 
query II rowsort label-6862
SELECT ALL 61 DIV - - 22 + + + 18, 70 AS col2
----
20
70

skipif mysql # not compatible
query II rowsort label-6862
SELECT ALL 61 / - - 22 + + + 18, 70 AS col2
----
20
70

onlyif mysql # DIV for integer division: 
query I rowsort label-6863
SELECT - - 76 DIV - 37 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-6863
SELECT - - 76 / - 37 AS col0
----
-2

query I rowsort
SELECT - - 64 * + 43 col2
----
2752

onlyif mysql # aggregate syntax: 
query I rowsort label-6865
SELECT COUNT( * ) + - NULLIF ( - 30, - 60 ) + + 16
----
47

skipif mysql # not compatible
query I rowsort label-6865
SELECT COUNT ( * ) + - NULLIF ( - 30, - 60 ) + + 16
----
47

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

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

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

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

query I rowsort
SELECT - 41 * - 21 AS col2
----
861

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

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

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6874
SELECT ALL + 66 + - ( + COUNT ( * ) ) AS col2
----
65

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

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

query II rowsort
SELECT - 73 AS col2, 37
----
-73
37

query I rowsort
SELECT DISTINCT 60 * 39 AS col2
----
2340

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6879
SELECT + COUNT( * ) DIV + CAST( + - 53 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-6879
SELECT + COUNT ( * ) / + CAST ( + - 53 AS INTEGER )
----
0

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

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

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

skipif mysql # not compatible
query I rowsort label-6881
SELECT - CAST ( NULL AS INTEGER ) / + - 10 AS col2
----
NULL

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

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

query I rowsort
SELECT 41 * + + 22
----
902

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

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

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

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

query I rowsort
SELECT DISTINCT 32 * + 15
----
480

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6889
SELECT - 85 * - + NULLIF ( 17, - CAST( NULL AS DECIMAL ) )
----
1445

skipif mysql # not compatible
query I rowsort label-6889
SELECT - 85 * - + NULLIF ( 17, - CAST ( NULL AS REAL ) )
----
1445

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

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

query I rowsort
SELECT 48 * - - ( - 21 )
----
-1008

query I rowsort
SELECT ALL - - 65 + + + 0
----
65

query I rowsort
SELECT ALL + 75 * - 19
----
-1425

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6896
SELECT + 10 / 96
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6898
SELECT ALL MAX( DISTINCT - - 48 )
----
48

skipif mysql # not compatible
query I rowsort label-6898
SELECT ALL MAX ( DISTINCT - - 48 )
----
48

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

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

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

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

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

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

query I rowsort
SELECT ALL 33 * 33
----
1089

query I rowsort
SELECT 66 * + 3
----
198

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6905
SELECT ALL MAX( DISTINCT 51 ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-6905
SELECT ALL MAX ( DISTINCT 51 ) AS col2
----
51

query I rowsort
SELECT DISTINCT - 44 + + - 19 AS col1
----
-63

query I rowsort
SELECT 72 - - 38
----
110

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT ( + + 65 ) * - 26 AS col2
----
-1690

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

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

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

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

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

query I rowsort
SELECT ALL ( - 32 ) - + + 23 + + 9
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-6918
SELECT MIN( - - 57 ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-6918
SELECT MIN ( - - 57 ) AS col1
----
57

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6922
SELECT DISTINCT + 46 * MIN( 45 ) AS col1
----
2070

skipif mysql # not compatible
query I rowsort label-6922
SELECT DISTINCT + 46 * MIN ( 45 ) AS col1
----
2070

query I rowsort
SELECT + - ( - - 90 ) * - 46 AS col1
----
4140

query I rowsort
SELECT + 64 - 33 + 88
----
119

query I rowsort
SELECT DISTINCT + 22 * 31 AS col2
----
682

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

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

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

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

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

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

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

query I rowsort
SELECT 81 * + 61 AS col0
----
4941

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

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

query I rowsort
SELECT + - 61 + + 66
----
5

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

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

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

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

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

query I rowsort
SELECT - 78 + + 7
----
-71

query II rowsort
SELECT 83 AS col0, 53 - + - 9
----
83
62

onlyif mysql # DIV for integer division: 
query I rowsort label-6938
SELECT 79 DIV 39 * + 65
----
130

skipif mysql # not compatible
query I rowsort label-6938
SELECT 79 / 39 * + 65
----
130

onlyif mysql # aggregate syntax: 
query II rowsort label-6939
SELECT ALL - 24 AS col0, + MIN( + 46 ) AS col0
----
-24
46

skipif mysql # not compatible
query II rowsort label-6939
SELECT ALL - 24 AS col0, + MIN ( + 46 ) AS col0
----
-24
46

onlyif mysql # DIV for integer division: 
query I rowsort label-6940
SELECT ALL 7 DIV - 19 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6940
SELECT ALL 7 / - 19 AS col0
----
0

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

query I rowsort
SELECT + 60 * - - 89 AS col0
----
5340

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

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

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

query I rowsort
SELECT 71 * + - ( - 6 )
----
426

onlyif mysql # aggregate syntax: 
query I rowsort label-6946
SELECT COUNT( * ) - - 85 + + 86 AS col0
----
172

skipif mysql # not compatible
query I rowsort label-6946
SELECT COUNT ( * ) - - 85 + + 86 AS col0
----
172

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6950
SELECT - 92 + + COUNT( * ) * + 99 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-6950
SELECT - 92 + + COUNT ( * ) * + 99 AS col0
----
7

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

query I rowsort
SELECT DISTINCT + 84 * - + 53
----
-4452

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

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

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

skipif mysql # not compatible
query I rowsort label-6954
SELECT + + MAX ( + + 80 )
----
80

query II rowsort
SELECT ALL 25, - 95 AS col2
----
25
-95

query I rowsort
SELECT + 50 * + - ( - - 92 )
----
-4600

query I rowsort
SELECT ALL + 63 * + + 20 AS col2
----
1260

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

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

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

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

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

query I rowsort
SELECT ALL 48 * + 55 AS col2
----
2640

query I rowsort
SELECT ALL - - 36 col0
----
36

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

query II rowsort
SELECT + 80 AS col1, + 7
----
80
7

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

skipif mysql # not compatible
query I rowsort label-6965
SELECT DISTINCT + 17 + COUNT ( * ) AS col0
----
18

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6968
SELECT ALL MAX( + 38 ) * CAST( - + 76 AS SIGNED ) AS col0
----
-2888

skipif mysql # not compatible
query I rowsort label-6968
SELECT ALL MAX ( + 38 ) * CAST ( - + 76 AS INTEGER ) AS col0
----
-2888

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

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6976
SELECT MAX( DISTINCT + - 72 )
----
-72

skipif mysql # not compatible
query I rowsort label-6976
SELECT MAX ( DISTINCT + - 72 )
----
-72

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

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

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

query II rowsort
SELECT + 39 AS col2, 20
----
39
20

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

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

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

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

query II rowsort
SELECT DISTINCT 90 AS col0, - 57
----
90
-57

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

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

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

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

query I rowsort
SELECT 15 + + 78
----
93

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6989
SELECT 8 DIV + - 60 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6989
SELECT 8 / + - 60 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6990
SELECT ALL 32 * + COUNT( * ) AS col2, - 31 AS col0
----
32
-31

skipif mysql # not compatible
query II rowsort label-6990
SELECT ALL 32 * + COUNT ( * ) AS col2, - 31 AS col0
----
32
-31

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

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

query I rowsort
SELECT ALL - 46 + 64 * - ( 59 ) AS col0
----
-3822

onlyif mysql # aggregate syntax: 
query II rowsort label-6993
SELECT ALL - 78 AS col1, - 68 * - COUNT( * )
----
-78
68

skipif mysql # not compatible
query II rowsort label-6993
SELECT ALL - 78 AS col1, - 68 * - COUNT ( * )
----
-78
68

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

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

query II rowsort
SELECT ALL + 57 + + 33 + - 54 * - 59 AS col1, 46
----
3276
46

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6997
SELECT DISTINCT SUM( + 69 ) + + ( + CAST( 76 AS SIGNED ) )
----
145

skipif mysql # not compatible
query I rowsort label-6997
SELECT DISTINCT SUM ( + 69 ) + + ( + CAST ( 76 AS INTEGER ) )
----
145

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

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

query I rowsort
SELECT ALL - 6 * 73 + 15 AS col0
----
-423

query I rowsort
SELECT - 68 * 78
----
-5304

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

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

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

query II rowsort
SELECT ALL + + 2 AS col0, 24
----
2
24

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

query I rowsort
SELECT + 68 * + 46
----
3128

onlyif mysql # aggregate syntax: 
query I rowsort label-7006
SELECT + ( + SUM( ALL - 64 ) ) AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-7006
SELECT + ( + SUM ( ALL - 64 ) ) AS col2
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-7007
SELECT SUM( 92 ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-7007
SELECT SUM ( 92 ) AS col2
----
92

query I rowsort
SELECT - 37 - + + 16 col1
----
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7009
SELECT ALL - 97 DIV 86 * - + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7009
SELECT ALL - 97 / 86 * - + COUNT ( * ) AS col0
----
1

query I rowsort
SELECT - ( + 74 ) AS col0
----
-74

query I rowsort
SELECT ALL - NULLIF ( - 32, - 47 ) AS col1
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7012
SELECT 43 + - CAST( NULL AS SIGNED ) * + 99 + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-7012
SELECT 43 + - CAST ( NULL AS INTEGER ) * + 99 + 96
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7013
SELECT COUNT( * ) - - 27 AS col2
----
28

skipif mysql # not compatible
query I rowsort label-7013
SELECT COUNT ( * ) - - 27 AS col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-7014
SELECT - SUM( + 2 )
----
-2

skipif mysql # not compatible
query I rowsort label-7014
SELECT - SUM ( + 2 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7015
SELECT + COUNT( DISTINCT 92 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7015
SELECT + COUNT ( DISTINCT 92 ) AS col1
----
1

query I rowsort
SELECT ALL - 59 * + ( 19 ) AS col0
----
-1121

query I rowsort
SELECT DISTINCT - 86 * + 60
----
-5160

onlyif mysql # aggregate syntax: 
query I rowsort label-7018
SELECT DISTINCT + 14 + COUNT( * )
----
15

skipif mysql # not compatible
query I rowsort label-7018
SELECT DISTINCT + 14 + COUNT ( * )
----
15

query I rowsort
SELECT ALL - ( + 82 )
----
-82

query I rowsort
SELECT - 8 + ( - 13 - - 9 ) AS col1
----
-12

query I rowsort
SELECT ALL + 69 - - ( + 83 ) AS col2
----
152

query I rowsort
SELECT - 25 - 80 AS col1
----
-105

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7023
SELECT - COUNT( * ) DIV 76 col2
----
0

skipif mysql # not compatible
query I rowsort label-7023
SELECT - COUNT ( * ) / 76 col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7024
SELECT + ( + 50 ) DIV - COUNT( * ) col2
----
-50

skipif mysql # not compatible
query I rowsort label-7024
SELECT + ( + 50 ) / - COUNT ( * ) col2
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-7025
SELECT ALL + 67 DIV + 53 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7025
SELECT ALL + 67 / + 53 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7026
SELECT ALL COUNT( * ) * 3
----
3

skipif mysql # not compatible
query I rowsort label-7026
SELECT ALL COUNT ( * ) * 3
----
3

query I rowsort
SELECT + ( + - 20 ) AS col1
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-7028
SELECT ALL - 37 * + COUNT( - 21 )
----
-37

skipif mysql # not compatible
query I rowsort label-7028
SELECT ALL - 37 * + COUNT ( - 21 )
----
-37

query I rowsort
SELECT - 32 * + 1
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-7030
SELECT ALL + ( - MAX( + 96 ) )
----
-96

skipif mysql # not compatible
query I rowsort label-7030
SELECT ALL + ( - MAX ( + 96 ) )
----
-96

query I rowsort
SELECT ALL + - ( - 99 ) + + 57
----
156

query I rowsort
SELECT ALL - 62 + - 33
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-7033
SELECT DISTINCT NULLIF ( + - COUNT( * ), 93 )
----
-1

skipif mysql # not compatible
query I rowsort label-7033
SELECT DISTINCT NULLIF ( + - COUNT ( * ), 93 )
----
-1

query I rowsort
SELECT 23 * - + 85 AS col0
----
-1955

query II rowsort
SELECT DISTINCT - ( - + 96 ) AS col0, + 19
----
96
19

query I rowsort
SELECT ALL 31 + - 59
----
-28

query I rowsort
SELECT 53 * + 75
----
3975

query I rowsort
SELECT - ( - + ( 24 ) ) AS col1
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7039
SELECT - - SUM( ALL - - ( - CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7039
SELECT - - SUM ( ALL - - ( - CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7040
SELECT DISTINCT MIN( DISTINCT + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7040
SELECT DISTINCT MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7041
SELECT ALL COUNT( DISTINCT 0 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7041
SELECT ALL COUNT ( DISTINCT 0 ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7042
SELECT - 19 DIV 85
----
0

skipif mysql # not compatible
query I rowsort label-7042
SELECT - 19 / 85
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7043
SELECT ALL - - 64 * + COUNT( * ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-7043
SELECT ALL - - 64 * + COUNT ( * ) AS col1
----
64

query I rowsort
SELECT ALL + - 15 col0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7045
SELECT - + MAX( DISTINCT - 56 )
----
56

skipif mysql # not compatible
query I rowsort label-7045
SELECT - + MAX ( DISTINCT - 56 )
----
56

query I rowsort
SELECT ALL - ( - 80 ) AS col1
----
80

query I rowsort
SELECT ALL + 12 * 93 AS col2
----
1116

onlyif mysql # aggregate syntax: 
query I rowsort label-7048
SELECT + SUM( 92 ) col2
----
92

skipif mysql # not compatible
query I rowsort label-7048
SELECT + SUM ( 92 ) col2
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-7049
SELECT DISTINCT COUNT( * ), + 11 AS col0
----
1
11

skipif mysql # not compatible
query II rowsort label-7049
SELECT DISTINCT COUNT ( * ), + 11 AS col0
----
1
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7050
SELECT COUNT( * ) DIV - 29 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7050
SELECT COUNT ( * ) / - 29 AS col1
----
0

query I rowsort
SELECT 67 - - 37 AS col0
----
104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7052
SELECT COUNT( * ) - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7052
SELECT COUNT ( * ) - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7053
SELECT DISTINCT + 60 * ( + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7053
SELECT DISTINCT + 60 * ( + + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT + + ( + - 47 ) col2
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7055
SELECT + - COUNT( * ) DIV + 14 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7055
SELECT + - COUNT ( * ) / + 14 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7056
SELECT DISTINCT NULLIF ( + COUNT( * ), - SUM( DISTINCT + + 62 ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-7056
SELECT DISTINCT NULLIF ( + COUNT ( * ), - SUM ( DISTINCT + + 62 ) ) col2
----
1

query I rowsort
SELECT ALL ( + 32 ) AS col2
----
32

query I rowsort
SELECT ALL ( - 91 )
----
-91

query I rowsort
SELECT DISTINCT 26 * ( - 21 ) - 31 AS col1
----
-577

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7060
SELECT + CAST( + 76 AS SIGNED ) * + COUNT( * ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-7060
SELECT + CAST ( + 76 AS INTEGER ) * + COUNT ( * ) AS col0
----
76

query I rowsort
SELECT ALL - 54 * - - 45
----
-2430

query I rowsort
SELECT DISTINCT + ( - 36 )
----
-36

query I rowsort
SELECT - 79 * 5 + 93
----
-302

query I rowsort
SELECT + 67 * + + 62
----
4154

query I rowsort
SELECT ALL - 95 + 5
----
-90

query I rowsort
SELECT ALL + 68 + + 18
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7067
SELECT + 38 DIV - SUM( ALL - 37 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7067
SELECT + 38 / - SUM ( ALL - 37 ) AS col1
----
1

query II rowsort
SELECT DISTINCT - 51, + 33 AS col2
----
-51
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7069
SELECT ALL - + ( - + COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7069
SELECT ALL - + ( - + COUNT ( * ) ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7070
SELECT ( 50 ) + - COUNT( * ) + - 94 * - 74 / - CAST( NULL AS SIGNED ) / - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7070
SELECT ( 50 ) + - COUNT ( * ) + - 94 * - 74 / - CAST ( NULL AS INTEGER ) / - COUNT ( * )
----
NULL

query I rowsort
SELECT - - 66 col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7072
SELECT DISTINCT - COUNT( ALL + 1 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7072
SELECT DISTINCT - COUNT ( ALL + 1 ) AS col0
----
-1

query II rowsort
SELECT ALL - ( + - 32 ), 12 col0
----
32
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7074
SELECT ALL COUNT( * ) * - CAST( 14 AS SIGNED )
----
-14

skipif mysql # not compatible
query I rowsort label-7074
SELECT ALL COUNT ( * ) * - CAST ( 14 AS INTEGER )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-7075
SELECT DISTINCT COALESCE ( - 36, COUNT( DISTINCT - 27 ) )
----
-36

skipif mysql # not compatible
query I rowsort label-7075
SELECT DISTINCT COALESCE ( - 36, COUNT ( DISTINCT - 27 ) )
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7076
SELECT ALL CAST( NULL AS SIGNED ) AS col1, COUNT( - 47 ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-7076
SELECT ALL CAST ( NULL AS INTEGER ) AS col1, COUNT ( - 47 ) AS col0
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7077
SELECT ALL - MAX( ALL - 0 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7077
SELECT ALL - MAX ( ALL - 0 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7078
SELECT DISTINCT - MAX( ALL - 45 )
----
45

skipif mysql # not compatible
query I rowsort label-7078
SELECT DISTINCT - MAX ( ALL - 45 )
----
45

query I rowsort
SELECT DISTINCT + 64 col1
----
64

query I rowsort
SELECT ALL - 81 * - + 11
----
891

onlyif mysql # aggregate syntax: 
query II rowsort label-7081
SELECT ALL - 95 AS col1, - COUNT( + 85 )
----
-95
-1

skipif mysql # not compatible
query II rowsort label-7081
SELECT ALL - 95 AS col1, - COUNT ( + 85 )
----
-95
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7082
SELECT DISTINCT COUNT( * ) * 40
----
40

skipif mysql # not compatible
query I rowsort label-7082
SELECT DISTINCT COUNT ( * ) * 40
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7083
SELECT ALL - - MAX( - + 71 ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-7083
SELECT ALL - - MAX ( - + 71 ) AS col0
----
-71

query I rowsort
SELECT DISTINCT - ( - 76 ) + 53
----
129

query I rowsort
SELECT ALL + 4 * + - 22 AS col0
----
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7086
SELECT - 95 DIV + COUNT( * ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-7086
SELECT - 95 / + COUNT ( * ) AS col2
----
-95

query I rowsort
SELECT DISTINCT - ( + - 93 ) * - 50
----
-4650

query I rowsort
SELECT DISTINCT - 50 * + - 84
----
4200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7089
SELECT - - CAST( SUM( DISTINCT + ( + - CAST( NULL AS SIGNED ) ) ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7089
SELECT - - CAST ( SUM ( DISTINCT + ( + - CAST ( NULL AS INTEGER ) ) ) AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7090
SELECT + CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) AS col1, - 30
----
NULL
-30

skipif mysql # not compatible
query II rowsort label-7090
SELECT + CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) AS col1, - 30
----
NULL
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-7091
SELECT + + COUNT( * ) * - - COUNT( * ) * - - 60 AS col0
----
60

skipif mysql # not compatible
query I rowsort label-7091
SELECT + + COUNT ( * ) * - - COUNT ( * ) * - - 60 AS col0
----
60

query I rowsort
SELECT DISTINCT - 44 * - 25 - + 63 AS col1
----
1037

query I rowsort
SELECT - - 98 col2
----
98

query I rowsort
SELECT ALL 66 * - 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7095
SELECT ALL + 88 + + 9 + - - COUNT( * ) * + - 54
----
43

skipif mysql # not compatible
query I rowsort label-7095
SELECT ALL + 88 + + 9 + - - COUNT ( * ) * + - 54
----
43

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7096
SELECT ALL + CAST( NULL AS DECIMAL ) - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7096
SELECT ALL + CAST ( NULL AS REAL ) - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 51 + 34
----
85

query I rowsort
SELECT DISTINCT 12 + + 57
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7099
SELECT + SUM( DISTINCT - + 41 ) AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-7099
SELECT + SUM ( DISTINCT - + 41 ) AS col1
----
-41

query I rowsort
SELECT - 64 * 97 AS col1
----
-6208

query I rowsort
SELECT DISTINCT + + 5 AS col1
----
5

query I rowsort
SELECT + ( + - 76 )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-7103
SELECT ALL - 87 + COUNT( * ) + - + 14
----
-100

skipif mysql # not compatible
query I rowsort label-7103
SELECT ALL - 87 + COUNT ( * ) + - + 14
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-7104
SELECT - - COUNT( * ) + - + 55 AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-7104
SELECT - - COUNT ( * ) + - + 55 AS col1
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-7105
SELECT + - COALESCE ( + + 69, + 81 ) DIV + + 39
----
-1

skipif mysql # not compatible
query I rowsort label-7105
SELECT + - COALESCE ( + + 69, + 81 ) / + + 39
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7106
SELECT + 58 * 67 + - - COUNT( * ) - - COUNT( * )
----
3888

skipif mysql # not compatible
query I rowsort label-7106
SELECT + 58 * 67 + - - COUNT ( * ) - - COUNT ( * )
----
3888

query I rowsort
SELECT + ( - 6 ) AS col1
----
-6

query I rowsort
SELECT DISTINCT - 38 - + - 46 + + 40
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7109
SELECT - + SUM( DISTINCT + ( - + 16 ) )
----
16

skipif mysql # not compatible
query I rowsort label-7109
SELECT - + SUM ( DISTINCT + ( - + 16 ) )
----
16

query I rowsort
SELECT + 43 * 96 + - 61 AS col2
----
4067

onlyif mysql # aggregate syntax: 
query I rowsort label-7111
SELECT 30 * COUNT( * ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-7111
SELECT 30 * COUNT ( * ) AS col1
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7112
SELECT - 22 / + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7112
SELECT - 22 / + CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7113
SELECT SUM( ALL - 71 ) + + + 86
----
15

skipif mysql # not compatible
query I rowsort label-7113
SELECT SUM ( ALL - 71 ) + + + 86
----
15

query I rowsort
SELECT + 61 * 85 AS col1
----
5185

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7115
SELECT DISTINCT MIN( - + CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7115
SELECT DISTINCT MIN ( - + CAST ( NULL AS REAL ) ) AS col1
----
NULL

query I rowsort
SELECT ( - 17 ) AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-7117
SELECT - 77 * - COUNT( * ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-7117
SELECT - 77 * - COUNT ( * ) AS col1
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-7118
SELECT ALL 41 DIV - 91 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7118
SELECT ALL 41 / - 91 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7119
SELECT CAST( - 81 AS SIGNED )
----
-81

skipif mysql # not compatible
query I rowsort label-7119
SELECT CAST ( - 81 AS INTEGER )
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7120
SELECT + CAST( + 31 AS SIGNED )
----
31

skipif mysql # not compatible
query I rowsort label-7120
SELECT + CAST ( + 31 AS INTEGER )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-7121
SELECT ALL + 18 + COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-7121
SELECT ALL + 18 + COUNT ( * )
----
19

query I rowsort
SELECT ( 96 ) - - 73
----
169

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7123
SELECT CAST( NULL AS SIGNED ) / - CAST( + + 45 AS SIGNED ) * - + 38 / + COUNT( * ) * MIN( DISTINCT + 91 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7123
SELECT CAST ( NULL AS INTEGER ) / - CAST ( + + 45 AS INTEGER ) * - + 38 / + COUNT ( * ) * MIN ( DISTINCT + 91 ) AS col0
----
NULL

query I rowsort
SELECT ALL - ( + 10 ) AS col1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-7125
SELECT ALL COUNT( + - 78 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7125
SELECT ALL COUNT ( + - 78 ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7126
SELECT ALL - 38 DIV 12
----
-3

skipif mysql # not compatible
query I rowsort label-7126
SELECT ALL - 38 / 12
----
-3

query I rowsort
SELECT + 64 + + - ( - + 59 )
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-7128
SELECT ALL MAX( ALL - - 79 )
----
79

skipif mysql # not compatible
query I rowsort label-7128
SELECT ALL MAX ( ALL - - 79 )
----
79

query I rowsort
SELECT - 30 * + 70 AS col0
----
-2100

onlyif mysql # DIV for integer division: 
query I rowsort label-7130
SELECT - 12 DIV + - 7 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7130
SELECT - 12 / + - 7 AS col1
----
1

query I rowsort
SELECT DISTINCT - 90 * 52 AS col2
----
-4680

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7132
SELECT CAST( NULL AS SIGNED ) AS col0, + 10 AS col0
----
NULL
10

skipif mysql # not compatible
query II rowsort label-7132
SELECT CAST ( NULL AS INTEGER ) AS col0, + 10 AS col0
----
NULL
10

query I rowsort
SELECT ALL + ( + + 58 )
----
58

query I rowsort
SELECT - 58 + 53
----
-5

query I rowsort
SELECT DISTINCT 45 * + 98
----
4410

onlyif mysql # aggregate syntax: 
query II rowsort label-7136
SELECT 62, + COUNT( * ) * 68 col1
----
62
68

skipif mysql # not compatible
query II rowsort label-7136
SELECT 62, + COUNT ( * ) * 68 col1
----
62
68

query I rowsort
SELECT + - ( + 31 )
----
-31

query I rowsort
SELECT ALL + + 29 AS col1
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7139
SELECT ALL + + MAX( ALL - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7139
SELECT ALL + + MAX ( ALL - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7140
SELECT COUNT( * ) * - ( - 31 ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-7140
SELECT COUNT ( * ) * - ( - 31 ) AS col2
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7141
SELECT + 69 + + + COUNT( ALL - 3 ) DIV + 65
----
69

skipif mysql # not compatible
query I rowsort label-7141
SELECT + 69 + + + COUNT ( ALL - 3 ) / + 65
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7142
SELECT 84 * + - COUNT( * ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-7142
SELECT 84 * + - COUNT ( * ) AS col2
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-7143
SELECT DISTINCT 66 * COUNT( * ) * + 73
----
4818

skipif mysql # not compatible
query I rowsort label-7143
SELECT DISTINCT 66 * COUNT ( * ) * + 73
----
4818

onlyif mysql # aggregate syntax: 
query I rowsort label-7144
SELECT ALL COUNT( ALL - 55 ) * - 83
----
-83

skipif mysql # not compatible
query I rowsort label-7144
SELECT ALL COUNT ( ALL - 55 ) * - 83
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-7145
SELECT ALL - COUNT( * ) * 47 AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-7145
SELECT ALL - COUNT ( * ) * 47 AS col0
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7146
SELECT CAST( NULL AS SIGNED ) * - - 54 / - 19 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7146
SELECT CAST ( NULL AS INTEGER ) * - - 54 / - 19 col0
----
NULL

query II rowsort
SELECT 33 AS col1, 94
----
33
94

query I rowsort
SELECT DISTINCT + 3 - - - 76 col0
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7149
SELECT - MAX( ALL - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7149
SELECT - MAX ( ALL - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7150
SELECT ALL MIN( ALL - 12 ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-7150
SELECT ALL MIN ( ALL - 12 ) AS col0
----
-12

query I rowsort
SELECT - 18 - + + 97 AS col1
----
-115

onlyif mysql # aggregate syntax: 
query II rowsort label-7152
SELECT + 39 AS col1, COUNT( * )
----
39
1

skipif mysql # not compatible
query II rowsort label-7152
SELECT + 39 AS col1, COUNT ( * )
----
39
1

query I rowsort
SELECT ALL NULLIF ( - 13, + + 83 ) * + + 79
----
-1027

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7154
SELECT - CAST( - + 33 AS SIGNED )
----
33

skipif mysql # not compatible
query I rowsort label-7154
SELECT - CAST ( - + 33 AS INTEGER )
----
33

query I rowsort
SELECT DISTINCT ( - 88 )
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7156
SELECT ALL + 66 + ( CAST( NULL AS SIGNED ) ) col2, COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-7156
SELECT ALL + 66 + ( CAST ( NULL AS INTEGER ) ) col2, COUNT ( * ) AS col2
----
NULL
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7157
SELECT - CAST( + 5 AS SIGNED ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-7157
SELECT - CAST ( + 5 AS INTEGER ) AS col1
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7158
SELECT - COUNT( * ) * + CAST( NULL AS SIGNED ) * + 96 * 3 * + ( + - COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7158
SELECT - COUNT ( * ) * + CAST ( NULL AS INTEGER ) * + 96 * 3 * + ( + - COUNT ( * ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7159
SELECT + 54 - - COUNT( * )
----
55

skipif mysql # not compatible
query I rowsort label-7159
SELECT + 54 - - COUNT ( * )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7160
SELECT ALL - MAX( DISTINCT 85 ) AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-7160
SELECT ALL - MAX ( DISTINCT 85 ) AS col2
----
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-7161
SELECT 44 DIV + 84
----
0

skipif mysql # not compatible
query I rowsort label-7161
SELECT 44 / + 84
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7162
SELECT + CAST( 33 AS SIGNED )
----
33

skipif mysql # not compatible
query I rowsort label-7162
SELECT + CAST ( 33 AS INTEGER )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7163
SELECT ALL + - COUNT( * ) - 15 AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-7163
SELECT ALL + - COUNT ( * ) - 15 AS col2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-7164
SELECT - COUNT( * ) * + 78 + + + 97
----
19

skipif mysql # not compatible
query I rowsort label-7164
SELECT - COUNT ( * ) * + 78 + + + 97
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-7165
SELECT ALL 23 + - COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-7165
SELECT ALL 23 + - COUNT ( * )
----
22

query I rowsort
SELECT - - 47 + - 57
----
-10

query I rowsort
SELECT DISTINCT 72 * + 83 * - 79 AS col2
----
-472104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7168
SELECT - NULLIF ( - CAST( NULL AS SIGNED ), - 77 ) / - - 0
----
NULL

skipif mysql # not compatible
query I rowsort label-7168
SELECT - NULLIF ( - CAST ( NULL AS INTEGER ), - 77 ) / - - 0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7169
SELECT ALL COUNT( * ) * COUNT( * ) DIV + - COUNT( * ) - + 88 * - 32
----
2815

skipif mysql # not compatible
query I rowsort label-7169
SELECT ALL COUNT ( * ) * COUNT ( * ) / + - COUNT ( * ) - + 88 * - 32
----
2815

onlyif mysql # aggregate syntax: 
query I rowsort label-7170
SELECT DISTINCT + 45 * + ( - COUNT( * ) ) AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-7170
SELECT DISTINCT + 45 * + ( - COUNT ( * ) ) AS col2
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7171
SELECT ALL AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7171
SELECT ALL AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7172
SELECT ALL ( + ( ( + 37 ) ) ) + - ( - - 54 ) + - COUNT( * )
----
-18

skipif mysql # not compatible
query I rowsort label-7172
SELECT ALL ( + ( ( + 37 ) ) ) + - ( - - 54 ) + - COUNT ( * )
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7173
SELECT 63 DIV COUNT( * ) + - 57 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-7173
SELECT 63 / COUNT ( * ) + - 57 AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7174
SELECT ALL ( + + 4 ) * + + COUNT( * ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-7174
SELECT ALL ( + + 4 ) * + + COUNT ( * ) AS col1
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-7175
SELECT ALL + COUNT( * ) AS col1, COUNT( * ) + 9
----
1
10

skipif mysql # not compatible
query II rowsort label-7175
SELECT ALL + COUNT ( * ) AS col1, COUNT ( * ) + 9
----
1
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7176
SELECT ALL - CAST( NULL AS SIGNED ) * 3
----
NULL

skipif mysql # not compatible
query I rowsort label-7176
SELECT ALL - CAST ( NULL AS INTEGER ) * 3
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7177
SELECT - MIN( + 78 ), 29 - MAX( - + 84 ) AS col1
----
-78
113

skipif mysql # not compatible
query II rowsort label-7177
SELECT - MIN ( + 78 ), 29 - MAX ( - + 84 ) AS col1
----
-78
113

onlyif mysql # aggregate syntax: 
query I rowsort label-7178
SELECT COUNT( ALL 42 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7178
SELECT COUNT ( ALL 42 ) AS col1
----
1

query I rowsort
SELECT 43 - + - 65
----
108

query I rowsort
SELECT DISTINCT - + ( 17 ) AS col0
----
-17

query I rowsort
SELECT ALL - - 64 + 59
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-7182
SELECT 41 + - + COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-7182
SELECT 41 + - + COUNT ( * )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7183
SELECT - - COUNT( * ) * + 92
----
92

skipif mysql # not compatible
query I rowsort label-7183
SELECT - - COUNT ( * ) * + 92
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7184
SELECT + - CAST( - + COUNT( * ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7184
SELECT + - CAST ( - + COUNT ( * ) AS INTEGER ) AS col2
----
1

query I rowsort
SELECT - ( - 58 ) AS col2
----
58

query I rowsort
SELECT + 36 * - 43
----
-1548

query I rowsort
SELECT DISTINCT ( 95 )
----
95

query I rowsort
SELECT ALL + ( + 18 ) AS col1
----
18

query I rowsort
SELECT DISTINCT + 39 col0
----
39

query I rowsort
SELECT ALL + + 68 col2
----
68

query I rowsort
SELECT DISTINCT + + 2 * + 13
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7192
SELECT ALL - NULLIF ( 28, COUNT( * ) )
----
-28

skipif mysql # not compatible
query I rowsort label-7192
SELECT ALL - NULLIF ( 28, COUNT ( * ) )
----
-28

query I rowsort
SELECT + - ( 18 ) AS col0
----
-18

query II rowsort
SELECT - 12 AS col2, 54 AS col1
----
-12
54

onlyif mysql # aggregate syntax: 
query I rowsort label-7195
SELECT DISTINCT 64 + COUNT( * ) * + 99
----
163

skipif mysql # not compatible
query I rowsort label-7195
SELECT DISTINCT 64 + COUNT ( * ) * + 99
----
163

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7196
SELECT DISTINCT - - ( + CAST( - + 41 AS SIGNED ) )
----
-41

skipif mysql # not compatible
query I rowsort label-7196
SELECT DISTINCT - - ( + CAST ( - + 41 AS INTEGER ) )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-7197
SELECT ALL + + COUNT( * ) * + + MAX( ALL - 56 )
----
-56

skipif mysql # not compatible
query I rowsort label-7197
SELECT ALL + + COUNT ( * ) * + + MAX ( ALL - 56 )
----
-56

query I rowsort
SELECT + 99 col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7199
SELECT ALL + 57 + - ( + + COUNT( * ) )
----
56

skipif mysql # not compatible
query I rowsort label-7199
SELECT ALL + 57 + - ( + + COUNT ( * ) )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7200
SELECT - 40 * + - MIN( DISTINCT - 49 )
----
-1960

skipif mysql # not compatible
query I rowsort label-7200
SELECT - 40 * + - MIN ( DISTINCT - 49 )
----
-1960

onlyif mysql # aggregate syntax: 
query I rowsort label-7201
SELECT ALL - COUNT( * ) * MIN( ALL 22 )
----
-22

skipif mysql # not compatible
query I rowsort label-7201
SELECT ALL - COUNT ( * ) * MIN ( ALL 22 )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-7202
SELECT - 17 - + COUNT( * )
----
-18

skipif mysql # not compatible
query I rowsort label-7202
SELECT - 17 - + COUNT ( * )
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7203
SELECT - + SUM( - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7203
SELECT - + SUM ( - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7204
SELECT ALL 12 * - + 2 col1, COUNT( * ) AS col2
----
-24
1

skipif mysql # not compatible
query II rowsort label-7204
SELECT ALL 12 * - + 2 col1, COUNT ( * ) AS col2
----
-24
1

query I rowsort
SELECT DISTINCT 41 * 25 col2
----
1025

onlyif mysql # aggregate syntax: 
query I rowsort label-7206
SELECT 0 + + 66 * + 43 - - + COUNT( * )
----
2839

skipif mysql # not compatible
query I rowsort label-7206
SELECT 0 + + 66 * + 43 - - + COUNT ( * )
----
2839

query I rowsort
SELECT - 77 * - 73 * - 92
----
-517132

query I rowsort
SELECT ALL + 57 + + 6 AS col0
----
63

query I rowsort
SELECT + + 39 AS col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7210
SELECT ALL + 30 * - COUNT( * ) AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-7210
SELECT ALL + 30 * - COUNT ( * ) AS col2
----
-30

query I rowsort
SELECT 22 + - 85
----
-63

query I rowsort
SELECT ALL NULLIF ( 63, + 34 + 28 * + - 64 ) AS col0
----
63

query I rowsort
SELECT DISTINCT - 84 + + + 49
----
-35

query I rowsort
SELECT DISTINCT + ( + 18 )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7215
SELECT DISTINCT - ( + COUNT( * ) ) * - 91
----
91

skipif mysql # not compatible
query I rowsort label-7215
SELECT DISTINCT - ( + COUNT ( * ) ) * - 91
----
91

query I rowsort
SELECT DISTINCT - ( + 57 ) - + + 27
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7217
SELECT ALL MAX( DISTINCT - + CAST( + + 26 AS SIGNED ) ) AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-7217
SELECT ALL MAX ( DISTINCT - + CAST ( + + 26 AS INTEGER ) ) AS col2
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-7218
SELECT ALL 10 DIV 94
----
0

skipif mysql # not compatible
query I rowsort label-7218
SELECT ALL 10 / 94
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7219
SELECT ALL + - 24 + - COUNT( * ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-7219
SELECT ALL + - 24 + - COUNT ( * ) AS col0
----
-25

query I rowsort
SELECT 91 * - 83 AS col0
----
-7553

query I rowsort
SELECT 71 - 56
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7222
SELECT COUNT( * ) DIV + CAST( - 44 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7222
SELECT COUNT ( * ) / + CAST ( - 44 AS INTEGER ) AS col1
----
0

query I rowsort
SELECT DISTINCT 69 * 50 col1
----
3450

onlyif mysql # aggregate syntax: 
query I rowsort label-7224
SELECT COUNT( * ) * COUNT( * ) * + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-7224
SELECT COUNT ( * ) * COUNT ( * ) * + + COUNT ( * )
----
1

query II rowsort
SELECT - 1, - 73 + + 72 AS col1
----
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7226
SELECT DISTINCT - MIN( DISTINCT - 16 ) * - 41 AS col2
----
-656

skipif mysql # not compatible
query I rowsort label-7226
SELECT DISTINCT - MIN ( DISTINCT - 16 ) * - 41 AS col2
----
-656

onlyif mysql # aggregate syntax: 
query I rowsort label-7227
SELECT 90 + + + COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-7227
SELECT 90 + + + COUNT ( * )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7228
SELECT DISTINCT MIN( + - 41 ) col2
----
-41

skipif mysql # not compatible
query I rowsort label-7228
SELECT DISTINCT MIN ( + - 41 ) col2
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-7229
SELECT ALL COUNT( + 52 )
----
1

skipif mysql # not compatible
query I rowsort label-7229
SELECT ALL COUNT ( + 52 )
----
1

query I rowsort
SELECT ALL ( 3 ) AS col0
----
3

query I rowsort
SELECT ALL + ( 49 )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7232
SELECT DISTINCT + 87 * + COUNT( * ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-7232
SELECT DISTINCT + 87 * + COUNT ( * ) AS col0
----
87

query I rowsort
SELECT ALL + ( - 57 ) AS col0
----
-57

query I rowsort
SELECT ALL 38 * + 29 + - 64
----
1038

query I rowsort
SELECT - ( - 70 ) AS col2
----
70

query I rowsort
SELECT - 35 - - 49 AS col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7237
SELECT DISTINCT - COUNT( DISTINCT 41 )
----
-1

skipif mysql # not compatible
query I rowsort label-7237
SELECT DISTINCT - COUNT ( DISTINCT 41 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7238
SELECT ALL - + SUM( - 59 )
----
59

skipif mysql # not compatible
query I rowsort label-7238
SELECT ALL - + SUM ( - 59 )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7239
SELECT - MAX( + + 93 ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-7239
SELECT - MAX ( + + 93 ) AS col0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-7240
SELECT ALL - COUNT( * ) * - 26 AS col0
----
26

skipif mysql # not compatible
query I rowsort label-7240
SELECT ALL - COUNT ( * ) * - 26 AS col0
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-7241
SELECT 6 DIV + 86 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7241
SELECT 6 / + 86 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7242
SELECT + COUNT( * ) DIV + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7242
SELECT + COUNT ( * ) / + COUNT ( * ) AS col0
----
1

query I rowsort
SELECT - 46 * - 62
----
2852

onlyif mysql # aggregate syntax: 
query I rowsort label-7244
SELECT + COUNT( * ) + + 78 + + 82
----
161

skipif mysql # not compatible
query I rowsort label-7244
SELECT + COUNT ( * ) + + 78 + + 82
----
161

onlyif mysql # aggregate syntax: 
query I rowsort label-7245
SELECT ALL - COUNT( + 47 )
----
-1

skipif mysql # not compatible
query I rowsort label-7245
SELECT ALL - COUNT ( + 47 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7246
SELECT DISTINCT + 57 + + ( + COUNT( * ) ) * 42
----
99

skipif mysql # not compatible
query I rowsort label-7246
SELECT DISTINCT + 57 + + ( + COUNT ( * ) ) * 42
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7247
SELECT ALL COUNT( - ( + 39 ) )
----
1

skipif mysql # not compatible
query I rowsort label-7247
SELECT ALL COUNT ( - ( + 39 ) )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7248
SELECT DISTINCT + + 9, - ( - COUNT( ALL 48 ) ) AS col2
----
9
1

skipif mysql # not compatible
query II rowsort label-7248
SELECT DISTINCT + + 9, - ( - COUNT ( ALL 48 ) ) AS col2
----
9
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7249
SELECT + COUNT( * ) DIV + ( + + 98 )
----
0

skipif mysql # not compatible
query I rowsort label-7249
SELECT + COUNT ( * ) / + ( + + 98 )
----
0

query I rowsort
SELECT + ( 40 ) AS col2
----
40

query I rowsort
SELECT ALL ( + 76 )
----
76

query I rowsort
SELECT ALL + 78 + - + 61
----
17

query I rowsort
SELECT DISTINCT + ( + 91 )
----
91

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7254
SELECT DISTINCT CAST( + 49 AS SIGNED ) DIV ( - 1 ) AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-7254
SELECT DISTINCT CAST ( + 49 AS INTEGER ) / ( - 1 ) AS col1
----
-49

query I rowsort
SELECT - ( ( + 33 ) ) AS col2
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7256
SELECT ALL + COUNT( DISTINCT CAST( NULL AS SIGNED ) ) * - - 4 col2
----
0

skipif mysql # not compatible
query I rowsort label-7256
SELECT ALL + COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) * - - 4 col2
----
0

query II rowsort
SELECT 45 AS col0, - 72 * + 64
----
45
-4608

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7258
SELECT + 78 AS col0, + ( CAST( COUNT( * ) AS SIGNED ) ) AS col1
----
78
1

skipif mysql # not compatible
query II rowsort label-7258
SELECT + 78 AS col0, + ( CAST ( COUNT ( * ) AS INTEGER ) ) AS col1
----
78
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7259
SELECT COUNT( * ) DIV - 13
----
0

skipif mysql # not compatible
query I rowsort label-7259
SELECT COUNT ( * ) / - 13
----
0

query I rowsort
SELECT 63 * + 36 - + 17
----
2251

query I rowsort
SELECT ALL + ( - 80 )
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7262
SELECT CAST( - 82 AS SIGNED ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-7262
SELECT CAST ( - 82 AS INTEGER ) AS col0
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7263
SELECT CAST( - - 33 AS SIGNED )
----
33

skipif mysql # not compatible
query I rowsort label-7263
SELECT CAST ( - - 33 AS INTEGER )
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7264
SELECT ALL + CAST( - - 12 AS SIGNED ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-7264
SELECT ALL + CAST ( - - 12 AS INTEGER ) AS col2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7265
SELECT + + MIN( + 22 )
----
22

skipif mysql # not compatible
query I rowsort label-7265
SELECT + + MIN ( + 22 )
----
22

query I rowsort
SELECT ALL + 24 * + + 24
----
576

onlyif mysql # aggregate syntax: 
query I rowsort label-7267
SELECT SUM( ALL - 1 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7267
SELECT SUM ( ALL - 1 ) AS col2
----
-1

query I rowsort
SELECT 44 + - 47
----
-3

query I rowsort
SELECT ALL 65 + + ( - 89 )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7270
SELECT ALL + COUNT( * ) - + 17 AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-7270
SELECT ALL + COUNT ( * ) - + 17 AS col2
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7271
SELECT ALL + + COUNT( * ) DIV - ( + COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-7271
SELECT ALL + + COUNT ( * ) / - ( + COUNT ( * ) )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7272
SELECT + CAST( NULL AS SIGNED ) + - 50
----
NULL

skipif mysql # not compatible
query I rowsort label-7272
SELECT + CAST ( NULL AS INTEGER ) + - 50
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7273
SELECT ALL - CAST( NULL AS SIGNED ) + 78 * + + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-7273
SELECT ALL - CAST ( NULL AS INTEGER ) + 78 * + + 62
----
NULL

query I rowsort
SELECT 79 + + + 93 AS col2
----
172

onlyif mysql # aggregate syntax: 
query I rowsort label-7275
SELECT ( - COUNT( * ) ) + + - 88
----
-89

skipif mysql # not compatible
query I rowsort label-7275
SELECT ( - COUNT ( * ) ) + + - 88
----
-89

query I rowsort
SELECT ALL + 6 - + 1 - 40 * - ( - ( 53 ) ) AS col0
----
-2115

onlyif mysql # aggregate syntax: 
query I rowsort label-7277
SELECT ALL COUNT( * ) * + 58 AS col2
----
58

skipif mysql # not compatible
query I rowsort label-7277
SELECT ALL COUNT ( * ) * + 58 AS col2
----
58

query I rowsort
SELECT ALL + - 71 AS col2
----
-71

query I rowsort
SELECT + - 96 * 24 AS col2
----
-2304

onlyif mysql # aggregate syntax: 
query II rowsort label-7280
SELECT DISTINCT + - COUNT( * ) AS col0, 7
----
-1
7

skipif mysql # not compatible
query II rowsort label-7280
SELECT DISTINCT + - COUNT ( * ) AS col0, 7
----
-1
7

query I rowsort
SELECT ( + - 84 )
----
-84

query I rowsort
SELECT + 18 + - - 42
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7283
SELECT DISTINCT ( + SUM( ALL - 50 ) ) AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-7283
SELECT DISTINCT ( + SUM ( ALL - 50 ) ) AS col1
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7284
SELECT DISTINCT - COUNT( * ) DIV - + 16
----
0

skipif mysql # not compatible
query I rowsort label-7284
SELECT DISTINCT - COUNT ( * ) / - + 16
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7285
SELECT + - 86 DIV - - 13 - - - SUM( 38 ) * 98 - 50 - 36 * - 16 AS col2
----
-3204

skipif mysql # not compatible
query I rowsort label-7285
SELECT + - 86 / - - 13 - - - SUM ( 38 ) * 98 - 50 - 36 * - 16 AS col2
----
-3204

onlyif mysql # aggregate syntax: 
query I rowsort label-7286
SELECT - - 0 * + ( - + COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-7286
SELECT - - 0 * + ( - + COUNT ( * ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7287
SELECT - 92 + + COUNT( * ) + + COUNT( * )
----
-90

skipif mysql # not compatible
query I rowsort label-7287
SELECT - 92 + + COUNT ( * ) + + COUNT ( * )
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7288
SELECT + CAST( NULL AS SIGNED ) + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7288
SELECT + CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7289
SELECT DISTINCT - 35 + - + 86 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7289
SELECT DISTINCT - 35 + - + 86 * - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT - - ( 62 )
----
62

query I rowsort
SELECT 72 * - + 12 AS col2
----
-864

query I rowsort
SELECT 66 + - 42 AS col0
----
24

query I rowsort
SELECT + 1 * - 83
----
-83

query II rowsort
SELECT ALL - 55 AS col0, 28
----
-55
28

query I rowsort
SELECT DISTINCT - + 16 AS col1
----
-16

query I rowsort
SELECT ALL ( ( + 83 ) ) + + 60 + ( - - 4 )
----
147

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7297
SELECT + - COUNT( * ) * - - MIN( DISTINCT CAST( NULL AS SIGNED ) ) + + - 37
----
NULL

skipif mysql # not compatible
query I rowsort label-7297
SELECT + - COUNT ( * ) * - - MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) + + - 37
----
NULL

query I rowsort
SELECT NULLIF ( + 78, 33 )
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-7299
SELECT ALL 23 DIV - - 28
----
0

skipif mysql # not compatible
query I rowsort label-7299
SELECT ALL 23 / - - 28
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7300
SELECT ALL - MIN( 36 )
----
-36

skipif mysql # not compatible
query I rowsort label-7300
SELECT ALL - MIN ( 36 )
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-7301
SELECT + ( 83 ) * - 45 * - 20 * + ( + - 68 ) AS col1, COUNT( * ) * + 45 AS col1
----
-5079600
45

skipif mysql # not compatible
query II rowsort label-7301
SELECT + ( 83 ) * - 45 * - 20 * + ( + - 68 ) AS col1, COUNT ( * ) * + 45 AS col1
----
-5079600
45

query I rowsort
SELECT DISTINCT - 3 + 87
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7303
SELECT COUNT( * ) * + + 38 AS col1
----
38

skipif mysql # not compatible
query I rowsort label-7303
SELECT COUNT ( * ) * + + 38 AS col1
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7304
SELECT - CAST( 49 AS SIGNED )
----
-49

skipif mysql # not compatible
query I rowsort label-7304
SELECT - CAST ( 49 AS INTEGER )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-7305
SELECT - + 56 * - COUNT( * ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-7305
SELECT - + 56 * - COUNT ( * ) AS col0
----
56

query I rowsort
SELECT - 86 + + 58
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7307
SELECT + - 34 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7307
SELECT + - 34 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7308
SELECT DISTINCT - COUNT( * ) * 79
----
-79

skipif mysql # not compatible
query I rowsort label-7308
SELECT DISTINCT - COUNT ( * ) * 79
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7309
SELECT - CAST( 70 AS SIGNED )
----
-70

skipif mysql # not compatible
query I rowsort label-7309
SELECT - CAST ( 70 AS INTEGER )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-7310
SELECT ALL - COUNT( * ) - COUNT( DISTINCT + 56 )
----
-2

skipif mysql # not compatible
query I rowsort label-7310
SELECT ALL - COUNT ( * ) - COUNT ( DISTINCT + 56 )
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7311
SELECT ALL + CAST( COUNT( * ) AS SIGNED ) * CAST( NULL AS SIGNED ) + - ( 30 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7311
SELECT ALL + CAST ( COUNT ( * ) AS INTEGER ) * CAST ( NULL AS INTEGER ) + - ( 30 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7312
SELECT DISTINCT + COUNT( ALL - - ( 37 ) )
----
1

skipif mysql # not compatible
query I rowsort label-7312
SELECT DISTINCT + COUNT ( ALL - - ( 37 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7313
SELECT ALL + MAX( ALL + ( + 72 ) ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-7313
SELECT ALL + MAX ( ALL + ( + 72 ) ) AS col0
----
72

query I rowsort
SELECT + - 20 col0
----
-20

query I rowsort
SELECT ALL - - 44 AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7316
SELECT ALL - 25 * + - MIN( ALL + + ( + 34 ) ) * - - 70 AS col2
----
59500

skipif mysql # not compatible
query I rowsort label-7316
SELECT ALL - 25 * + - MIN ( ALL + + ( + 34 ) ) * - - 70 AS col2
----
59500

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7317
SELECT ALL - 9 + 37 + CAST( NULL AS SIGNED ) * + 72 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7317
SELECT ALL - 9 + 37 + CAST ( NULL AS INTEGER ) * + 72 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7318
SELECT ALL NULLIF ( - 70, - + COUNT( * ) )
----
-70

skipif mysql # not compatible
query I rowsort label-7318
SELECT ALL NULLIF ( - 70, - + COUNT ( * ) )
----
-70

query I rowsort
SELECT - 4 + - 55 * 57 AS col2
----
-3139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7320
SELECT - CAST( - 85 AS SIGNED ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-7320
SELECT - CAST ( - 85 AS INTEGER ) AS col1
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7321
SELECT COUNT( * ) AS col0, ( + ( - - CAST( NULL AS SIGNED ) ) )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-7321
SELECT COUNT ( * ) AS col0, ( + ( - - CAST ( NULL AS INTEGER ) ) )
----
1
NULL

query I rowsort
SELECT ( - - COALESCE ( - 82, + 77 ) )
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-7323
SELECT ( + 72 ) + - COUNT( * ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-7323
SELECT ( + 72 ) + - COUNT ( * ) AS col0
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7324
SELECT CAST( + ( + + 85 ) AS SIGNED )
----
85

skipif mysql # not compatible
query I rowsort label-7324
SELECT CAST ( + ( + + 85 ) AS INTEGER )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7325
SELECT + 74 - COUNT( * ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-7325
SELECT + 74 - COUNT ( * ) AS col0
----
73

query I rowsort
SELECT ALL ( - 10 ) AS col2
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7327
SELECT - + 39 + - + CAST( 41 AS SIGNED ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-7327
SELECT - + 39 + - + CAST ( 41 AS INTEGER ) AS col0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-7328
SELECT ALL - COALESCE ( - + COUNT( * ), + + 16 )
----
1

skipif mysql # not compatible
query I rowsort label-7328
SELECT ALL - COALESCE ( - + COUNT ( * ), + + 16 )
----
1

query I rowsort
SELECT - + ( - 8 ) AS col1
----
8

query I rowsort
SELECT + ( - ( - - 65 ) ) col0
----
-65

query I rowsort
SELECT ALL - 15 * + + 54 AS col2
----
-810

onlyif mysql # aggregate syntax: 
query II rowsort label-7332
SELECT ALL - SUM( ALL 67 ) col1, - COUNT( * ) AS col2
----
-67
-1

skipif mysql # not compatible
query II rowsort label-7332
SELECT ALL - SUM ( ALL 67 ) col1, - COUNT ( * ) AS col2
----
-67
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7333
SELECT 67 + - SUM( ALL + + 81 ) + + COUNT( * ) AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-7333
SELECT 67 + - SUM ( ALL + + 81 ) + + COUNT ( * ) AS col2
----
-13

query I rowsort
SELECT ALL ( - 5 ) AS col0
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7335
SELECT NULLIF ( + + 57, - - ( + CAST( NULL AS SIGNED ) ) ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-7335
SELECT NULLIF ( + + 57, - - ( + CAST ( NULL AS INTEGER ) ) ) AS col0
----
57

query I rowsort
SELECT ALL 76 * 43 AS col0
----
3268

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7337
SELECT DISTINCT + CAST( NULL AS SIGNED ) / 51
----
NULL

skipif mysql # not compatible
query I rowsort label-7337
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / 51
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7338
SELECT DISTINCT - COUNT( * ) AS col0, 50 col2
----
-1
50

skipif mysql # not compatible
query II rowsort label-7338
SELECT DISTINCT - COUNT ( * ) AS col0, 50 col2
----
-1
50

onlyif mysql # aggregate syntax: 
query I rowsort label-7339
SELECT ALL 33 + - 54 + + + COUNT( * )
----
-20

skipif mysql # not compatible
query I rowsort label-7339
SELECT ALL 33 + - 54 + + + COUNT ( * )
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-7340
SELECT ALL - - 67 DIV - 38 col0
----
-1

skipif mysql # not compatible
query I rowsort label-7340
SELECT ALL - - 67 / - 38 col0
----
-1

query II rowsort
SELECT - - 50, + 57 AS col2
----
50
57

query I rowsort
SELECT DISTINCT - 74 + + 59
----
-15

query I rowsort
SELECT - 57 * 51
----
-2907

onlyif mysql # aggregate syntax: 
query I rowsort label-7344
SELECT SUM( + 54 ) * 46 col1
----
2484

skipif mysql # not compatible
query I rowsort label-7344
SELECT SUM ( + 54 ) * 46 col1
----
2484

onlyif mysql # aggregate syntax: 
query I rowsort label-7345
SELECT DISTINCT + 8 * - 32 * - 90 * - COUNT( * ) AS col0
----
-23040

skipif mysql # not compatible
query I rowsort label-7345
SELECT DISTINCT + 8 * - 32 * - 90 * - COUNT ( * ) AS col0
----
-23040

onlyif mysql # aggregate syntax: 
query II rowsort label-7346
SELECT ALL - COUNT( * ) AS col2, 98 AS col2
----
-1
98

skipif mysql # not compatible
query II rowsort label-7346
SELECT ALL - COUNT ( * ) AS col2, 98 AS col2
----
-1
98

onlyif mysql # DIV for integer division: 
query I rowsort label-7347
SELECT 66 DIV 7
----
9

skipif mysql # not compatible
query I rowsort label-7347
SELECT 66 / 7
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7348
SELECT DISTINCT MAX( DISTINCT - 81 )
----
-81

skipif mysql # not compatible
query I rowsort label-7348
SELECT DISTINCT MAX ( DISTINCT - 81 )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7349
SELECT ALL MAX( ALL + ( 85 ) ) * 15
----
1275

skipif mysql # not compatible
query I rowsort label-7349
SELECT ALL MAX ( ALL + ( 85 ) ) * 15
----
1275

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7350
SELECT 91 - + COUNT( * ) + - - CAST( - 78 AS SIGNED )
----
12

skipif mysql # not compatible
query I rowsort label-7350
SELECT 91 - + COUNT ( * ) + - - CAST ( - 78 AS INTEGER )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7351
SELECT COUNT( * ) * - 46 AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-7351
SELECT COUNT ( * ) * - 46 AS col2
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-7352
SELECT DISTINCT COUNT( * ) * 83 AS col0, + 69 * + 87
----
83
6003

skipif mysql # not compatible
query II rowsort label-7352
SELECT DISTINCT COUNT ( * ) * 83 AS col0, + 69 * + 87
----
83
6003

onlyif mysql # aggregate syntax: 
query I rowsort label-7353
SELECT + - 13 + + - COUNT( ALL 79 )
----
-14

skipif mysql # not compatible
query I rowsort label-7353
SELECT + - 13 + + - COUNT ( ALL 79 )
----
-14

query I rowsort
SELECT DISTINCT + + 12
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7355
SELECT ALL MIN( DISTINCT 80 )
----
80

skipif mysql # not compatible
query I rowsort label-7355
SELECT ALL MIN ( DISTINCT 80 )
----
80

query II rowsort
SELECT 37 AS col2, - 23
----
37
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-7357
SELECT DISTINCT + ( 57 ) * + COUNT( * ) + + 58 AS col2
----
115

skipif mysql # not compatible
query I rowsort label-7357
SELECT DISTINCT + ( 57 ) * + COUNT ( * ) + + 58 AS col2
----
115

query II rowsort
SELECT DISTINCT ( 91 ), + 49 AS col2
----
91
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7359
SELECT - 68 + - - SUM( - 90 ) AS col1
----
-158

skipif mysql # not compatible
query I rowsort label-7359
SELECT - 68 + - - SUM ( - 90 ) AS col1
----
-158

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7360
SELECT ALL CAST( CAST( - 43 AS SIGNED ) AS SIGNED ) AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-7360
SELECT ALL CAST ( CAST ( - 43 AS INTEGER ) AS INTEGER ) AS col2
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-7361
SELECT - - 12 + + 23, + MAX( - + 96 ) + + 95 - + ( - + ( 30 ) ) AS col0
----
35
29

skipif mysql # not compatible
query II rowsort label-7361
SELECT - - 12 + + 23, + MAX ( - + 96 ) + + 95 - + ( - + ( 30 ) ) AS col0
----
35
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7362
SELECT DISTINCT - - 99 + - COUNT( * )
----
98

skipif mysql # not compatible
query I rowsort label-7362
SELECT DISTINCT - - 99 + - COUNT ( * )
----
98

query I rowsort
SELECT 44 + 40
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-7364
SELECT 30 DIV - + 86 col2
----
0

skipif mysql # not compatible
query I rowsort label-7364
SELECT 30 / - + 86 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7365
SELECT DISTINCT COUNT( * ) * + 59 AS col1
----
59

skipif mysql # not compatible
query I rowsort label-7365
SELECT DISTINCT COUNT ( * ) * + 59 AS col1
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7366
SELECT COUNT( * ) / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7366
SELECT COUNT ( * ) / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7367
SELECT ALL - COUNT( * ) * + 34 AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-7367
SELECT ALL - COUNT ( * ) * + 34 AS col2
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7368
SELECT ALL + - COUNT( * ) * + 26 DIV - 98 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7368
SELECT ALL + - COUNT ( * ) * + 26 / - 98 AS col0
----
0

query I rowsort
SELECT 28 * - 91 AS col2
----
-2548

onlyif mysql # aggregate syntax: 
query II rowsort label-7370
SELECT + 17, - COUNT( * ) * 87 * 24 AS col1
----
17
-2088

skipif mysql # not compatible
query II rowsort label-7370
SELECT + 17, - COUNT ( * ) * 87 * 24 AS col1
----
17
-2088

query I rowsort
SELECT DISTINCT - 3 + + - 70
----
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-7372
SELECT - COUNT( * ) AS col0, 26
----
-1
26

skipif mysql # not compatible
query II rowsort label-7372
SELECT - COUNT ( * ) AS col0, 26
----
-1
26

query II rowsort
SELECT ALL 83, 58 AS col2
----
83
58

query II rowsort
SELECT - ( 54 ) AS col0, 41 AS col2
----
-54
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7375
SELECT + COUNT( * ) + COUNT( * ) * - + 54
----
-53

skipif mysql # not compatible
query I rowsort label-7375
SELECT + COUNT ( * ) + COUNT ( * ) * - + 54
----
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-7376
SELECT ALL + COUNT( * ) - COUNT( * ) + 41 * 8 AS col1, - 48 AS col1
----
328
-48

skipif mysql # not compatible
query II rowsort label-7376
SELECT ALL + COUNT ( * ) - COUNT ( * ) + 41 * 8 AS col1, - 48 AS col1
----
328
-48

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7377
SELECT ALL + + 8 AS col1, + 50 + + CAST( NULL AS DECIMAL ) AS col2
----
8
NULL

skipif mysql # not compatible
query II rowsort label-7377
SELECT ALL + + 8 AS col1, + 50 + + CAST ( NULL AS REAL ) AS col2
----
8
NULL

query I rowsort
SELECT - 56 * - 36
----
2016

onlyif mysql # aggregate syntax: 
query I rowsort label-7379
SELECT - 74 + - COUNT( * ) AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-7379
SELECT - 74 + - COUNT ( * ) AS col0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7380
SELECT - COUNT( * ) + + - 10
----
-11

skipif mysql # not compatible
query I rowsort label-7380
SELECT - COUNT ( * ) + + - 10
----
-11

query I rowsort
SELECT 64 * + + 82
----
5248

onlyif mysql # aggregate syntax: 
query I rowsort label-7382
SELECT - - ( - COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7382
SELECT - - ( - COUNT ( * ) ) AS col1
----
-1

query I rowsort
SELECT DISTINCT ( - 74 ) AS col1
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-7384
SELECT ALL - 56 + + COUNT( * ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-7384
SELECT ALL - 56 + + COUNT ( * ) AS col2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-7385
SELECT + COUNT( * ) + - - 6 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-7385
SELECT + COUNT ( * ) + - - 6 AS col1
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7386
SELECT ALL ( + + CAST( NULL AS SIGNED ) ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7386
SELECT ALL ( + + CAST ( NULL AS INTEGER ) ) + - COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7387
SELECT DISTINCT - 54 DIV - - 87
----
0

skipif mysql # not compatible
query I rowsort label-7387
SELECT DISTINCT - 54 / - - 87
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7388
SELECT + CAST( - + 1 AS SIGNED ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-7388
SELECT + CAST ( - + 1 AS INTEGER ) col1
----
-1

query I rowsort
SELECT - ( 47 ) * - 42 col2
----
1974

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7390
SELECT DISTINCT COUNT( + CAST( 82 AS SIGNED ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7390
SELECT DISTINCT COUNT ( + CAST ( 82 AS INTEGER ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7391
SELECT DISTINCT + COUNT( * ) + - 43
----
-42

skipif mysql # not compatible
query I rowsort label-7391
SELECT DISTINCT + COUNT ( * ) + - 43
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7392
SELECT ALL + CAST( 79 AS SIGNED ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-7392
SELECT ALL + CAST ( 79 AS INTEGER ) AS col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7393
SELECT ALL + MIN( + 24 )
----
24

skipif mysql # not compatible
query I rowsort label-7393
SELECT ALL + MIN ( + 24 )
----
24

query I rowsort
SELECT ALL 25 * + - 18 AS col2
----
-450

query I rowsort
SELECT - 63 * - 34 * + 87 col1
----
186354

onlyif mysql # aggregate syntax: 
query I rowsort label-7396
SELECT + COUNT( * ) + - 86
----
-85

skipif mysql # not compatible
query I rowsort label-7396
SELECT + COUNT ( * ) + - 86
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-7397
SELECT - 10 + COUNT( * )
----
-9

skipif mysql # not compatible
query I rowsort label-7397
SELECT - 10 + COUNT ( * )
----
-9

query I rowsort
SELECT DISTINCT + ( - 1 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7399
SELECT DISTINCT CAST( - COUNT( * ) AS SIGNED ) * SUM( CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7399
SELECT DISTINCT CAST ( - COUNT ( * ) AS INTEGER ) * SUM ( CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7400
SELECT DISTINCT - 22 + - ( + + 31 ) + + CAST( - CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7400
SELECT DISTINCT - 22 + - ( + + 31 ) + + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

query I rowsort
SELECT 41 * + 57
----
2337

query II rowsort
SELECT - 77 AS col1, + NULLIF ( + 19, + 15 )
----
-77
19

onlyif mysql # aggregate syntax: 
query I rowsort label-7403
SELECT COUNT( * ) * + + 3 * + - 94 AS col0
----
-282

skipif mysql # not compatible
query I rowsort label-7403
SELECT COUNT ( * ) * + + 3 * + - 94 AS col0
----
-282

query I rowsort
SELECT + - ( + - 90 ) AS col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7405
SELECT + 84 + - ( - - SUM( + 72 ) )
----
12

skipif mysql # not compatible
query I rowsort label-7405
SELECT + 84 + - ( - - SUM ( + 72 ) )
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7406
SELECT - - 81 / + 94 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7406
SELECT - - 81 / + 94 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7407
SELECT ALL ( - + COUNT( * ) ) * 49
----
-49

skipif mysql # not compatible
query I rowsort label-7407
SELECT ALL ( - + COUNT ( * ) ) * 49
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7408
SELECT - COUNT( * ) DIV - 49 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7408
SELECT - COUNT ( * ) / - 49 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7409
SELECT - MIN( DISTINCT 82 ) AS col2, + 7
----
-82
7

skipif mysql # not compatible
query II rowsort label-7409
SELECT - MIN ( DISTINCT 82 ) AS col2, + 7
----
-82
7

query I rowsort
SELECT DISTINCT + + 85 AS col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7411
SELECT - 22 - - MAX( DISTINCT + + 17 )
----
-5

skipif mysql # not compatible
query I rowsort label-7411
SELECT - 22 - - MAX ( DISTINCT + + 17 )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7412
SELECT ALL 17 * + COUNT( * ) + + + MIN( 24 )
----
41

skipif mysql # not compatible
query I rowsort label-7412
SELECT ALL 17 * + COUNT ( * ) + + + MIN ( 24 )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7413
SELECT MAX( ALL + 35 )
----
35

skipif mysql # not compatible
query I rowsort label-7413
SELECT MAX ( ALL + 35 )
----
35

query II rowsort
SELECT - 27 AS col0, 53 AS col1
----
-27
53

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7415
SELECT + + ( + + AVG ( DISTINCT + CAST( NULL AS DECIMAL ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7415
SELECT + + ( + + AVG ( DISTINCT + CAST ( NULL AS REAL ) ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7416
SELECT DISTINCT 15 * + COUNT( * ) * - + 0
----
0

skipif mysql # not compatible
query I rowsort label-7416
SELECT DISTINCT 15 * + COUNT ( * ) * - + 0
----
0

query I rowsort
SELECT DISTINCT + - 92 - 79 AS col1
----
-171

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7418
SELECT DISTINCT + + 25 DIV + + COUNT( * ) AS col0, COUNT( * ) AS col0
----
25
1

skipif mysql # not compatible
query II rowsort label-7418
SELECT DISTINCT + + 25 / + + COUNT ( * ) AS col0, COUNT ( * ) AS col0
----
25
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7419
SELECT ALL - MAX( - - 41 ), - 5 AS col2
----
-41
-5

skipif mysql # not compatible
query II rowsort label-7419
SELECT ALL - MAX ( - - 41 ), - 5 AS col2
----
-41
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7420
SELECT ALL - COUNT( * ) + + CAST( - + 56 AS SIGNED ) AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-7420
SELECT ALL - COUNT ( * ) + + CAST ( - + 56 AS INTEGER ) AS col0
----
-57

query I rowsort
SELECT ALL + 47 * 59 AS col0
----
2773

query I rowsort
SELECT - 75 - - 67
----
-8

query I rowsort
SELECT + ( + 22 )
----
22

query I rowsort
SELECT DISTINCT + 5 col1
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7425
SELECT - MIN( CAST( NULL AS SIGNED ) ) + - MAX( ALL CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7425
SELECT - MIN ( CAST ( NULL AS INTEGER ) ) + - MAX ( ALL CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT + 21 * + - 58 AS col0
----
-1218

query I rowsort
SELECT ALL + 37 col2
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-7428
SELECT - + 99 DIV 97 + ( + 53 )
----
52

skipif mysql # not compatible
query I rowsort label-7428
SELECT - + 99 / 97 + ( + 53 )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7429
SELECT MAX( 48 )
----
48

skipif mysql # not compatible
query I rowsort label-7429
SELECT MAX ( 48 )
----
48

query I rowsort
SELECT + 63 * + 88
----
5544

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7431
SELECT CAST( ( + 88 ) AS SIGNED )
----
88

skipif mysql # not compatible
query I rowsort label-7431
SELECT CAST ( ( + 88 ) AS INTEGER )
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7432
SELECT + COUNT( * ) + + + 81, - COALESCE ( + COUNT( * ), - 41 * - + 47 DIV - - 22 ) AS col0
----
82
-1

skipif mysql # not compatible
query II rowsort label-7432
SELECT + COUNT ( * ) + + + 81, - COALESCE ( + COUNT ( * ), - 41 * - + 47 / - - 22 ) AS col0
----
82
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7433
SELECT ALL - MIN( DISTINCT - - 2 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-7433
SELECT ALL - MIN ( DISTINCT - - 2 ) AS col1
----
-2

query I rowsort
SELECT ALL - - 64 + 90 AS col0
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-7435
SELECT - MAX( DISTINCT 85 ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-7435
SELECT - MAX ( DISTINCT 85 ) AS col1
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-7436
SELECT COUNT( * ) * - SUM( ALL - 43 ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-7436
SELECT COUNT ( * ) * - SUM ( ALL - 43 ) AS col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7437
SELECT DISTINCT MIN( DISTINCT + 77 ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-7437
SELECT DISTINCT MIN ( DISTINCT + 77 ) AS col2
----
77

query I rowsort
SELECT DISTINCT + ( - 95 )
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-7439
SELECT + MIN( 51 ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-7439
SELECT + MIN ( 51 ) AS col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7440
SELECT MIN( 1 )
----
1

skipif mysql # not compatible
query I rowsort label-7440
SELECT MIN ( 1 )
----
1

query I rowsort
SELECT - ( - 80 ) AS col2
----
80

query I rowsort
SELECT - 22 - - 0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-7443
SELECT ALL MIN( DISTINCT 75 )
----
75

skipif mysql # not compatible
query I rowsort label-7443
SELECT ALL MIN ( DISTINCT 75 )
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7444
SELECT DISTINCT + 66 DIV - COUNT( * ) + 87 AS col1
----
21

skipif mysql # not compatible
query I rowsort label-7444
SELECT DISTINCT + 66 / - COUNT ( * ) + 87 AS col1
----
21

query I rowsort
SELECT + ( + - 41 ) * 39 col0
----
-1599

onlyif mysql # aggregate syntax: 
query I rowsort label-7446
SELECT - + MIN( ALL - - 92 ) + + 53 AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-7446
SELECT - + MIN ( ALL - - 92 ) + + 53 AS col2
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-7447
SELECT ALL + + ( - COUNT( * ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-7447
SELECT ALL + + ( - COUNT ( * ) ) col2
----
-1

query I rowsort
SELECT ALL 44 + 41
----
85

query I rowsort
SELECT DISTINCT - - ( - 78 )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-7450
SELECT + MIN( ALL 37 ) * + 15
----
555

skipif mysql # not compatible
query I rowsort label-7450
SELECT + MIN ( ALL 37 ) * + 15
----
555

onlyif mysql # aggregate syntax: 
query I rowsort label-7451
SELECT - COUNT( - 7 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-7451
SELECT - COUNT ( - 7 ) col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7452
SELECT COUNT( * ) * + 0 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7452
SELECT COUNT ( * ) * + 0 AS col0
----
0

query I rowsort
SELECT + ( + 97 ) AS col1
----
97

query I rowsort
SELECT - 73 * - 36 AS col1
----
2628

query I rowsort
SELECT ALL + + 55 col1
----
55

query I rowsort
SELECT + + 58 * - 34
----
-1972

onlyif mysql # aggregate syntax: 
query I rowsort label-7457
SELECT - ( 60 ) + - - COUNT( * )
----
-59

skipif mysql # not compatible
query I rowsort label-7457
SELECT - ( 60 ) + - - COUNT ( * )
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-7458
SELECT 5 AS col1, - SUM( + 64 )
----
5
-64

skipif mysql # not compatible
query II rowsort label-7458
SELECT 5 AS col1, - SUM ( + 64 )
----
5
-64

query II rowsort
SELECT DISTINCT + - 21, - 43 AS col2
----
-21
-43

query I rowsort
SELECT ALL - ( 75 ) col0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7461
SELECT ALL - 41 - - COUNT( ALL - - 57 ) AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-7461
SELECT ALL - 41 - - COUNT ( ALL - - 57 ) AS col0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-7462
SELECT DISTINCT COUNT( * ) * SUM( ALL + + 37 )
----
37

skipif mysql # not compatible
query I rowsort label-7462
SELECT DISTINCT COUNT ( * ) * SUM ( ALL + + 37 )
----
37

query I rowsort
SELECT ALL 16 - - - 65
----
-49

query I rowsort
SELECT 42 - - 94
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-7465
SELECT ALL - ( - SUM( - - 65 ) ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-7465
SELECT ALL - ( - SUM ( - - 65 ) ) AS col0
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-7466
SELECT 79 AS col1, - COUNT( * )
----
79
-1

skipif mysql # not compatible
query II rowsort label-7466
SELECT 79 AS col1, - COUNT ( * )
----
79
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7467
SELECT - CAST( + + 30 AS SIGNED ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-7467
SELECT - CAST ( + + 30 AS INTEGER ) AS col1
----
-30

query I rowsort
SELECT ALL 85 + ( - 44 ) AS col2
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-7469
SELECT - COUNT( * ) AS col1, 53 AS col2
----
-1
53

skipif mysql # not compatible
query II rowsort label-7469
SELECT - COUNT ( * ) AS col1, 53 AS col2
----
-1
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7470
SELECT ALL CAST( + 54 AS SIGNED )
----
54

skipif mysql # not compatible
query I rowsort label-7470
SELECT ALL CAST ( + 54 AS INTEGER )
----
54

query I rowsort
SELECT + 92 * - + 49 + - 27
----
-4535

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7472
SELECT + CAST( - 83 AS SIGNED ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-7472
SELECT + CAST ( - 83 AS INTEGER ) AS col0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-7473
SELECT + ( - + MIN( + 83 ) ) col0
----
-83

skipif mysql # not compatible
query I rowsort label-7473
SELECT + ( - + MIN ( + 83 ) ) col0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-7474
SELECT ALL + NULLIF ( + + COUNT( * ), - 62 + - 60 * + 71 )
----
1

skipif mysql # not compatible
query I rowsort label-7474
SELECT ALL + NULLIF ( + + COUNT ( * ), - 62 + - 60 * + 71 )
----
1

query I rowsort
SELECT ALL + ( + ( 94 ) )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7476
SELECT NULLIF ( + + COUNT( * ), - 60 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7476
SELECT NULLIF ( + + COUNT ( * ), - 60 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7477
SELECT ALL - MIN( 87 ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-7477
SELECT ALL - MIN ( 87 ) AS col1
----
-87

query I rowsort
SELECT - - ( 64 )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7479
SELECT DISTINCT + 42 + - COUNT( * ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-7479
SELECT DISTINCT + 42 + - COUNT ( * ) AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7480
SELECT ALL - MAX( ALL - 59 ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-7480
SELECT ALL - MAX ( ALL - 59 ) AS col0
----
59

query I rowsort
SELECT 26 * + 72
----
1872

query I rowsort
SELECT 21 + - ( 91 ) AS col1
----
-70

query I rowsort
SELECT + 44 * - + 63
----
-2772

onlyif mysql # aggregate syntax: 
query II rowsort label-7484
SELECT DISTINCT - - 36 AS col0, COUNT( * ) AS col2
----
36
1

skipif mysql # not compatible
query II rowsort label-7484
SELECT DISTINCT - - 36 AS col0, COUNT ( * ) AS col2
----
36
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7485
SELECT + COUNT( * ) * - - MIN( + NULLIF ( CAST( NULL AS SIGNED ), 8 ) ) * - COUNT( * ) AS col1, COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-7485
SELECT + COUNT ( * ) * - - MIN ( + NULLIF ( CAST ( NULL AS INTEGER ), 8 ) ) * - COUNT ( * ) AS col1, COUNT ( * ) AS col2
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7486
SELECT ALL COUNT( ALL - - ( - 48 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7486
SELECT ALL COUNT ( ALL - - ( - 48 ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7487
SELECT ALL COUNT( * ) - + CASE + 57 WHEN 65 THEN - 75 ELSE 43 END AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-7487
SELECT ALL COUNT ( * ) - + CASE + 57 WHEN 65 THEN - 75 ELSE 43 END AS col0
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-7488
SELECT + COUNT( * ) + 93, + 83 AS col0
----
94
83

skipif mysql # not compatible
query II rowsort label-7488
SELECT + COUNT ( * ) + 93, + 83 AS col0
----
94
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7489
SELECT COUNT( DISTINCT + 4 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-7489
SELECT COUNT ( DISTINCT + 4 ) col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7490
SELECT + 95 DIV + 61 col1
----
1

skipif mysql # not compatible
query I rowsort label-7490
SELECT + 95 / + 61 col1
----
1

query II rowsort
SELECT 28 AS col0, 58 * + + 54 + - ( - 80 ) + + 76 AS col0
----
28
3288

query I rowsort
SELECT - 62 + 68 AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7493
SELECT MAX( ALL - 69 ) AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-7493
SELECT MAX ( ALL - 69 ) AS col0
----
-69

query I rowsort
SELECT + - 30 - 8
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-7495
SELECT DISTINCT - COUNT( * ) * 31
----
-31

skipif mysql # not compatible
query I rowsort label-7495
SELECT DISTINCT - COUNT ( * ) * 31
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-7496
SELECT - ( COUNT( * ) ) - 32 AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-7496
SELECT - ( COUNT ( * ) ) - 32 AS col2
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7497
SELECT - CAST( + CAST( + + 76 AS SIGNED ) AS SIGNED )
----
-76

skipif mysql # not compatible
query I rowsort label-7497
SELECT - CAST ( + CAST ( + + 76 AS INTEGER ) AS INTEGER )
----
-76

query I rowsort
SELECT 71 * + + 75 AS col2
----
5325

onlyif mysql # aggregate syntax: 
query I rowsort label-7499
SELECT ALL ( + 18 ) + + + MAX( DISTINCT + - 88 ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-7499
SELECT ALL ( + 18 ) + + + MAX ( DISTINCT + - 88 ) AS col0
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7500
SELECT ALL - + 51 - + 24 / CAST( NULL AS SIGNED ) * - - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7500
SELECT ALL - + 51 - + 24 / CAST ( NULL AS INTEGER ) * - - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7501
SELECT - ( - 67 ) * + COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-7501
SELECT - ( - 67 ) * + COUNT ( * )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7502
SELECT ALL + 37 * - COUNT( * ) col2
----
-37

skipif mysql # not compatible
query I rowsort label-7502
SELECT ALL + 37 * - COUNT ( * ) col2
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-7503
SELECT + + 93 * - + COUNT( * ) * 57 * COUNT( * ) AS col0
----
-5301

skipif mysql # not compatible
query I rowsort label-7503
SELECT + + 93 * - + COUNT ( * ) * 57 * COUNT ( * ) AS col0
----
-5301

onlyif mysql # aggregate syntax: 
query II rowsort label-7504
SELECT ALL + COUNT( DISTINCT 14 ), 31 col0
----
1
31

skipif mysql # not compatible
query II rowsort label-7504
SELECT ALL + COUNT ( DISTINCT 14 ), 31 col0
----
1
31

query I rowsort
SELECT ALL + 97 * 59
----
5723

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7506
SELECT - 90 + - COUNT( * ) DIV + COUNT( * )
----
-91

skipif mysql # not compatible
query I rowsort label-7506
SELECT - 90 + - COUNT ( * ) / + COUNT ( * )
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-7507
SELECT + COUNT( * ) + 47 col0, + ( ( - 88 ) ) AS col1
----
48
-88

skipif mysql # not compatible
query II rowsort label-7507
SELECT + COUNT ( * ) + 47 col0, + ( ( - 88 ) ) AS col1
----
48
-88

query I rowsort
SELECT DISTINCT 24 * - 79
----
-1896

onlyif mysql # DIV for integer division: 
query I rowsort label-7509
SELECT ALL 78 DIV - 88
----
0

skipif mysql # not compatible
query I rowsort label-7509
SELECT ALL 78 / - 88
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7510
SELECT CAST( NULL AS SIGNED ) + - 16 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7510
SELECT CAST ( NULL AS INTEGER ) + - 16 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 13 * + 93
----
1209

onlyif mysql # aggregate syntax: 
query II rowsort label-7512
SELECT ALL COUNT( * ) + + 60 AS col2, 55 AS col1
----
61
55

skipif mysql # not compatible
query II rowsort label-7512
SELECT ALL COUNT ( * ) + + 60 AS col2, 55 AS col1
----
61
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7513
SELECT ALL 8 * + COUNT( * ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-7513
SELECT ALL 8 * + COUNT ( * ) AS col2
----
8

query I rowsort
SELECT DISTINCT - 52 * + + 17 AS col2
----
-884

onlyif mysql # aggregate syntax: 
query I rowsort label-7515
SELECT ALL 72 * COUNT( * ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-7515
SELECT ALL 72 * COUNT ( * ) AS col0
----
72

query I rowsort
SELECT 20 * ( + 55 ) AS col2
----
1100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7517
SELECT COUNT( * ) DIV + 11 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7517
SELECT COUNT ( * ) / + 11 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7518
SELECT DISTINCT + COUNT( + + 0 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7518
SELECT DISTINCT + COUNT ( + + 0 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7519
SELECT ALL + - ( + 36 ) * COUNT( * ) * 58 col2
----
-2088

skipif mysql # not compatible
query I rowsort label-7519
SELECT ALL + - ( + 36 ) * COUNT ( * ) * 58 col2
----
-2088

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7520
SELECT DISTINCT + ( + - CAST( - - COUNT( * ) AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-7520
SELECT DISTINCT + ( + - CAST ( - - COUNT ( * ) AS INTEGER ) )
----
-1

query I rowsort
SELECT DISTINCT + 31 col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-7522
SELECT + MAX( ALL + - 8 ) col1
----
-8

skipif mysql # not compatible
query I rowsort label-7522
SELECT + MAX ( ALL + - 8 ) col1
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-7523
SELECT + 3 * MIN( - - 88 ), - 3 AS col1
----
264
-3

skipif mysql # not compatible
query II rowsort label-7523
SELECT + 3 * MIN ( - - 88 ), - 3 AS col1
----
264
-3

query I rowsort
SELECT DISTINCT + ( + + 4 ) AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7525
SELECT COUNT( - 0 )
----
1

skipif mysql # not compatible
query I rowsort label-7525
SELECT COUNT ( - 0 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7526
SELECT ALL + 76 DIV + - COUNT( * )
----
-76

skipif mysql # not compatible
query I rowsort label-7526
SELECT ALL + 76 / + - COUNT ( * )
----
-76

query I rowsort
SELECT - + 13 col0
----
-13

query I rowsort
SELECT ALL + 20 + + 78
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7529
SELECT + - COUNT( * ) - + - CAST( - COUNT( * ) AS SIGNED )
----
-2

skipif mysql # not compatible
query I rowsort label-7529
SELECT + - COUNT ( * ) - + - CAST ( - COUNT ( * ) AS INTEGER )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7530
SELECT ALL + MIN( - 26 )
----
-26

skipif mysql # not compatible
query I rowsort label-7530
SELECT ALL + MIN ( - 26 )
----
-26

query I rowsort
SELECT + 90 * - - ( + 20 ) * + 54 AS col0
----
97200

onlyif mysql # DIV for integer division: 
query I rowsort label-7532
SELECT ALL - 13 DIV + 91 col2
----
0

skipif mysql # not compatible
query I rowsort label-7532
SELECT ALL - 13 / + 91 col2
----
0

query I rowsort
SELECT + 14 * 65 AS col2
----
910

query I rowsort
SELECT - CASE 85 WHEN - 10 + - 83 THEN 40 ELSE - - 34 END AS col1
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7535
SELECT + + COUNT( * ) DIV - - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-7535
SELECT + + COUNT ( * ) / - - COUNT ( * )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7536
SELECT + 99 DIV + + 8
----
12

skipif mysql # not compatible
query I rowsort label-7536
SELECT + 99 / + + 8
----
12

query I rowsort
SELECT ALL - - 15 - - 79
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7538
SELECT - - COUNT( * ) * CAST( - - 19 AS SIGNED ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-7538
SELECT - - COUNT ( * ) * CAST ( - - 19 AS INTEGER ) AS col1
----
19

query I rowsort
SELECT ALL 39 * - 60 AS col2
----
-2340

onlyif mysql # aggregate syntax: 
query I rowsort label-7540
SELECT ALL - 21 + - + COUNT( * )
----
-22

skipif mysql # not compatible
query I rowsort label-7540
SELECT ALL - 21 + - + COUNT ( * )
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-7541
SELECT + SUM( ALL + 93 ) AS col2, 68 * + 59 + + + COUNT( * )
----
93
4013

skipif mysql # not compatible
query II rowsort label-7541
SELECT + SUM ( ALL + 93 ) AS col2, 68 * + 59 + + + COUNT ( * )
----
93
4013

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7542
SELECT + CAST( 23 AS SIGNED )
----
23

skipif mysql # not compatible
query I rowsort label-7542
SELECT + CAST ( 23 AS INTEGER )
----
23

query I rowsort
SELECT ( + 41 ) AS col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7544
SELECT SUM( ALL 15 ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-7544
SELECT SUM ( ALL 15 ) AS col2
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7545
SELECT - CAST( - COUNT( * ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7545
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7546
SELECT - COUNT( * ) * - 16 * + + 22 AS col0
----
352

skipif mysql # not compatible
query I rowsort label-7546
SELECT - COUNT ( * ) * - 16 * + + 22 AS col0
----
352

onlyif mysql # aggregate syntax: 
query I rowsort label-7547
SELECT ALL - - COUNT( * ) + - 37 AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-7547
SELECT ALL - - COUNT ( * ) + - 37 AS col2
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-7548
SELECT MAX( 88 ) + - 94
----
-6

skipif mysql # not compatible
query I rowsort label-7548
SELECT MAX ( 88 ) + - 94
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-7549
SELECT - 66 AS col0, - 92 * + COUNT( * ) + - COUNT( DISTINCT - 27 ) * + COUNT( * ) AS col0
----
-66
-93

skipif mysql # not compatible
query II rowsort label-7549
SELECT - 66 AS col0, - 92 * + COUNT ( * ) + - COUNT ( DISTINCT - 27 ) * + COUNT ( * ) AS col0
----
-66
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-7550
SELECT + - MAX( ALL 20 )
----
-20

skipif mysql # not compatible
query I rowsort label-7550
SELECT + - MAX ( ALL 20 )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-7551
SELECT ( + COUNT( DISTINCT + 45 ) )
----
1

skipif mysql # not compatible
query I rowsort label-7551
SELECT ( + COUNT ( DISTINCT + 45 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7552
SELECT ALL - SUM( DISTINCT 24 ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-7552
SELECT ALL - SUM ( DISTINCT 24 ) AS col1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7553
SELECT + - COUNT( ALL - + 36 ) * + 40
----
-40

skipif mysql # not compatible
query I rowsort label-7553
SELECT + - COUNT ( ALL - + 36 ) * + 40
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-7554
SELECT - 21 DIV - 67 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7554
SELECT - 21 / - 67 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7555
SELECT - CAST( - ( 65 ) AS SIGNED )
----
65

skipif mysql # not compatible
query I rowsort label-7555
SELECT - CAST ( - ( 65 ) AS INTEGER )
----
65

query I rowsort
SELECT - COALESCE ( + 45, + ( - 0 ) * 26 + - - 27 ) + + 79
----
34

query I rowsort
SELECT ALL ( + 73 ) AS col1
----
73

query I rowsort
SELECT DISTINCT ( 40 ) AS col2
----
40

query I rowsort
SELECT DISTINCT - - 0 * - + 47
----
0

query I rowsort
SELECT + 83 + - 87 AS col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7561
SELECT + 45 - + COUNT( * )
----
44

skipif mysql # not compatible
query I rowsort label-7561
SELECT + 45 - + COUNT ( * )
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7562
SELECT ALL CAST( NULL AS SIGNED ) - + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7562
SELECT ALL CAST ( NULL AS INTEGER ) - + + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7563
SELECT ALL 54 / + + 8 * + 76 * 83 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7563
SELECT ALL 54 / + + 8 * + 76 * 83 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7564
SELECT CAST( - - 52 AS SIGNED ) + - 40 + + 10 AS col0
----
22

skipif mysql # not compatible
query I rowsort label-7564
SELECT CAST ( - - 52 AS INTEGER ) + - 40 + + 10 AS col0
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7565
SELECT DISTINCT - SUM( - - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7565
SELECT DISTINCT - SUM ( - - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL 67 * + 11
----
737

query I rowsort
SELECT DISTINCT - ( 81 ) AS col2
----
-81

query I rowsort
SELECT ALL 13 * + - 41 col0
----
-533

onlyif mysql # aggregate syntax: 
query II rowsort label-7569
SELECT + 29 AS col1, COUNT( + - 36 ) AS col1
----
29
1

skipif mysql # not compatible
query II rowsort label-7569
SELECT + 29 AS col1, COUNT ( + - 36 ) AS col1
----
29
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7570
SELECT CAST( NULL AS DECIMAL ) + + + 40 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7570
SELECT CAST ( NULL AS REAL ) + + + 40 AS col1
----
NULL

query I rowsort
SELECT ALL ( - 11 ) AS col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-7572
SELECT COUNT( - 58 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7572
SELECT COUNT ( - 58 ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7573
SELECT - + CAST( NULL AS SIGNED ) + + - 39 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7573
SELECT - + CAST ( NULL AS INTEGER ) + + - 39 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7574
SELECT ( + MIN( DISTINCT - 79 ) ) AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-7574
SELECT ( + MIN ( DISTINCT - 79 ) ) AS col2
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-7575
SELECT - COUNT( * ) * - ( + + 39 )
----
39

skipif mysql # not compatible
query I rowsort label-7575
SELECT - COUNT ( * ) * - ( + + 39 )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7576
SELECT ALL 26 + - COUNT( * ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-7576
SELECT ALL 26 + - COUNT ( * ) AS col2
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7577
SELECT DISTINCT - SUM( DISTINCT CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7577
SELECT DISTINCT - SUM ( DISTINCT CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7578
SELECT CAST( 91 AS SIGNED ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-7578
SELECT CAST ( 91 AS INTEGER ) AS col1
----
91

query I rowsort
SELECT - 37 - + 39
----
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-7580
SELECT ALL + 95 DIV 12
----
7

skipif mysql # not compatible
query I rowsort label-7580
SELECT ALL + 95 / 12
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7581
SELECT - 77 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7581
SELECT - 77 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + ( 82 ) col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7583
SELECT DISTINCT - COUNT( * ) + 25 * - + 1
----
-26

skipif mysql # not compatible
query I rowsort label-7583
SELECT DISTINCT - COUNT ( * ) + 25 * - + 1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-7584
SELECT - MAX( ALL + 93 )
----
-93

skipif mysql # not compatible
query I rowsort label-7584
SELECT - MAX ( ALL + 93 )
----
-93

query I rowsort
SELECT + 83 + 88 * + 52 AS col0
----
4659

onlyif mysql # aggregate syntax: 
query I rowsort label-7586
SELECT COUNT( * ) * - 73 + + COUNT( * ) AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-7586
SELECT COUNT ( * ) * - 73 + + COUNT ( * ) AS col1
----
-72

query I rowsort
SELECT + ( - + 13 ) + + 23
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7588
SELECT - MAX( - 93 ) * 53 AS col1
----
4929

skipif mysql # not compatible
query I rowsort label-7588
SELECT - MAX ( - 93 ) * 53 AS col1
----
4929

query I rowsort
SELECT 58 * 23
----
1334

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7590
SELECT COUNT( * ) DIV 67 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7590
SELECT COUNT ( * ) / 67 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7591
SELECT - NULLIF ( + 71, COUNT( * ) )
----
-71

skipif mysql # not compatible
query I rowsort label-7591
SELECT - NULLIF ( + 71, COUNT ( * ) )
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7592
SELECT + COALESCE ( + NULLIF ( + CAST( NULL AS SIGNED ), + - 99 + - COUNT( * ) ), + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-7592
SELECT + COALESCE ( + NULLIF ( + CAST ( NULL AS INTEGER ), + - 99 + - COUNT ( * ) ), + COUNT ( * ) )
----
1

query I rowsort
SELECT ALL - - ( - - 94 ) AS col0
----
94

query I rowsort
SELECT DISTINCT - 87 * + + 20 AS col1
----
-1740

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7595
SELECT DISTINCT - CAST( - 55 AS SIGNED )
----
55

skipif mysql # not compatible
query I rowsort label-7595
SELECT DISTINCT - CAST ( - 55 AS INTEGER )
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7596
SELECT 21, CAST( NULL AS SIGNED ) AS col0
----
21
NULL

skipif mysql # not compatible
query II rowsort label-7596
SELECT 21, CAST ( NULL AS INTEGER ) AS col0
----
21
NULL

query II rowsort
SELECT ALL 90, - 76 AS col2
----
90
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7598
SELECT ALL + 28 DIV - - ( + COUNT( * ) ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-7598
SELECT ALL + 28 / - - ( + COUNT ( * ) ) AS col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-7599
SELECT + ( - MIN( - 18 ) )
----
18

skipif mysql # not compatible
query I rowsort label-7599
SELECT + ( - MIN ( - 18 ) )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7600
SELECT - 73 * COUNT( * ) col0
----
-73

skipif mysql # not compatible
query I rowsort label-7600
SELECT - 73 * COUNT ( * ) col0
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-7601
SELECT ALL + 38 * - COUNT( + 6 ) col2
----
-38

skipif mysql # not compatible
query I rowsort label-7601
SELECT ALL + 38 * - COUNT ( + 6 ) col2
----
-38

query I rowsort
SELECT - + 62 col1
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7603
SELECT CAST( - 83 AS SIGNED ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-7603
SELECT CAST ( - 83 AS INTEGER ) AS col0
----
-83

query I rowsort
SELECT 37 + - + 2
----
35

query II rowsort
SELECT 17 * 33, + 41 AS col1
----
561
41

query I rowsort
SELECT ALL - + 56 + - 82 AS col0
----
-138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7607
SELECT DISTINCT + ( - CAST( - + COUNT( * ) AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-7607
SELECT DISTINCT + ( - CAST ( - + COUNT ( * ) AS INTEGER ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7608
SELECT SUM( DISTINCT + - 21 ) AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-7608
SELECT SUM ( DISTINCT + - 21 ) AS col2
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-7609
SELECT + COUNT( * ) - - + 63 col1
----
64

skipif mysql # not compatible
query I rowsort label-7609
SELECT + COUNT ( * ) - - + 63 col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7610
SELECT DISTINCT MIN( DISTINCT + ( - 21 ) )
----
-21

skipif mysql # not compatible
query I rowsort label-7610
SELECT DISTINCT MIN ( DISTINCT + ( - 21 ) )
----
-21

query I rowsort
SELECT DISTINCT + - 2 * + 59
----
-118

onlyif mysql # aggregate syntax: 
query II rowsort label-7612
SELECT + 3 AS col0, + COUNT( * ) AS col1
----
3
1

skipif mysql # not compatible
query II rowsort label-7612
SELECT + 3 AS col0, + COUNT ( * ) AS col1
----
3
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7613
SELECT - MAX( ALL 18 )
----
-18

skipif mysql # not compatible
query I rowsort label-7613
SELECT - MAX ( ALL 18 )
----
-18

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7614
SELECT ALL + COUNT( * ) * + - ( + - CAST( NULL AS DECIMAL ) ) + + + 61 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7614
SELECT ALL + COUNT ( * ) * + - ( + - CAST ( NULL AS REAL ) ) + + + 61 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7615
SELECT - - COUNT( 8 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7615
SELECT - - COUNT ( 8 ) AS col0
----
1

query I rowsort
SELECT ALL + 34 - + 90
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-7617
SELECT COUNT( * ) * 51 AS col2
----
51

skipif mysql # not compatible
query I rowsort label-7617
SELECT COUNT ( * ) * 51 AS col2
----
51

query I rowsort
SELECT ALL 77 + - 79
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7619
SELECT 21 * - COUNT( * )
----
-21

skipif mysql # not compatible
query I rowsort label-7619
SELECT 21 * - COUNT ( * )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-7620
SELECT DISTINCT COUNT( - 2 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7620
SELECT DISTINCT COUNT ( - 2 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7621
SELECT MIN( - 27 ) - + COUNT( * ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-7621
SELECT MIN ( - 27 ) - + COUNT ( * ) AS col0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-7622
SELECT MAX( ALL + + 94 )
----
94

skipif mysql # not compatible
query I rowsort label-7622
SELECT MAX ( ALL + + 94 )
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7623
SELECT ( CAST( NULL AS SIGNED ) ) / + + COUNT( * ) + MAX( - 76 ) / - - 1
----
NULL

skipif mysql # not compatible
query I rowsort label-7623
SELECT ( CAST ( NULL AS INTEGER ) ) / + + COUNT ( * ) + MAX ( - 76 ) / - - 1
----
NULL

query I rowsort
SELECT DISTINCT - ( - - 26 )
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-7625
SELECT DISTINCT - 39 - COUNT( * )
----
-40

skipif mysql # not compatible
query I rowsort label-7625
SELECT DISTINCT - 39 - COUNT ( * )
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-7626
SELECT ALL + 6 DIV - + 51 col1
----
0

skipif mysql # not compatible
query I rowsort label-7626
SELECT ALL + 6 / - + 51 col1
----
0

query I rowsort
SELECT - 32 + + 70
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-7628
SELECT - COUNT( ALL + 67 )
----
-1

skipif mysql # not compatible
query I rowsort label-7628
SELECT - COUNT ( ALL + 67 )
----
-1

query I rowsort
SELECT - 12 + + ( + 86 ) * 73
----
6266

query II rowsort
SELECT DISTINCT + 83 AS col2, + 46 AS col2
----
83
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7631
SELECT + COUNT( * ) + - 81 AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-7631
SELECT + COUNT ( * ) + - 81 AS col2
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7632
SELECT + CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) * 92
----
NULL

skipif mysql # not compatible
query I rowsort label-7632
SELECT + CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) * 92
----
NULL

query I rowsort
SELECT ALL ( + + 77 ) col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7634
SELECT 15 + + MAX( ALL - 48 ) - + COUNT( * )
----
-34

skipif mysql # not compatible
query I rowsort label-7634
SELECT 15 + + MAX ( ALL - 48 ) - + COUNT ( * )
----
-34

query I rowsort
SELECT + 86 + + + 70
----
156

query I rowsort
SELECT ALL + 94 * 87 * - 86 AS col1
----
-703308

query I rowsort
SELECT 56 * + - 87 AS col2
----
-4872

onlyif mysql # aggregate syntax: 
query II rowsort label-7638
SELECT 65 * 29, - COUNT( * ) AS col0
----
1885
-1

skipif mysql # not compatible
query II rowsort label-7638
SELECT 65 * 29, - COUNT ( * ) AS col0
----
1885
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7639
SELECT - ( + COUNT( * ) ) * - ( 0 ) * - 52
----
0

skipif mysql # not compatible
query I rowsort label-7639
SELECT - ( + COUNT ( * ) ) * - ( 0 ) * - 52
----
0

query I rowsort
SELECT ALL ( - ( + ( - + 29 ) ) )
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-7641
SELECT DISTINCT 59 DIV 3
----
19

skipif mysql # not compatible
query I rowsort label-7641
SELECT DISTINCT 59 / 3
----
19

query I rowsort
SELECT ALL ( - 3 )
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7643
SELECT ALL CAST( + 94 AS SIGNED ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-7643
SELECT ALL CAST ( + 94 AS INTEGER ) AS col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7644
SELECT + COUNT( DISTINCT - 87 ) * 24
----
24

skipif mysql # not compatible
query I rowsort label-7644
SELECT + COUNT ( DISTINCT - 87 ) * 24
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7645
SELECT - 16 + ( + COUNT( * ) )
----
-15

skipif mysql # not compatible
query I rowsort label-7645
SELECT - 16 + ( + COUNT ( * ) )
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7646
SELECT DISTINCT CAST( + 15 AS SIGNED ) col1
----
15

skipif mysql # not compatible
query I rowsort label-7646
SELECT DISTINCT CAST ( + 15 AS INTEGER ) col1
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7647
SELECT + CAST( 56 AS SIGNED )
----
56

skipif mysql # not compatible
query I rowsort label-7647
SELECT + CAST ( 56 AS INTEGER )
----
56

query I rowsort
SELECT DISTINCT 60 * 11
----
660

onlyif mysql # aggregate syntax: 
query I rowsort label-7649
SELECT DISTINCT - COUNT( 36 )
----
-1

skipif mysql # not compatible
query I rowsort label-7649
SELECT DISTINCT - COUNT ( 36 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7650
SELECT ALL - MAX( - 81 ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-7650
SELECT ALL - MAX ( - 81 ) AS col1
----
81

query I rowsort
SELECT 38 * - 89
----
-3382

onlyif mysql # aggregate syntax: 
query I rowsort label-7652
SELECT ALL + + COUNT( * ) * COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-7652
SELECT ALL + + COUNT ( * ) * COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7653
SELECT + COUNT( ALL ( + 48 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7653
SELECT + COUNT ( ALL ( + 48 ) ) AS col0
----
1

query I rowsort
SELECT 19 * - 72 col2
----
-1368

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7655
SELECT ALL - CAST( NULL AS SIGNED ) + CAST( + 65 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7655
SELECT ALL - CAST ( NULL AS INTEGER ) + CAST ( + 65 AS INTEGER )
----
NULL

query I rowsort
SELECT 25 - 97 AS col2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-7657
SELECT DISTINCT - COUNT( * ) + + - 65
----
-66

skipif mysql # not compatible
query I rowsort label-7657
SELECT DISTINCT - COUNT ( * ) + + - 65
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-7658
SELECT DISTINCT COUNT( * ), MIN( - + 21 ) AS col1
----
1
-21

skipif mysql # not compatible
query II rowsort label-7658
SELECT DISTINCT COUNT ( * ), MIN ( - + 21 ) AS col1
----
1
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-7659
SELECT - - MAX( 73 )
----
73

skipif mysql # not compatible
query I rowsort label-7659
SELECT - - MAX ( 73 )
----
73

query I rowsort
SELECT + - 49 - + 82
----
-131

onlyif mysql # aggregate syntax: 
query I rowsort label-7661
SELECT + 62 + + MIN( + 84 )
----
146

skipif mysql # not compatible
query I rowsort label-7661
SELECT + 62 + + MIN ( + 84 )
----
146

onlyif mysql # DIV for integer division: 
query II rowsort label-7662
SELECT - 86, + 80 DIV - - 18 + 70 AS col0
----
-86
74

skipif mysql # not compatible
query II rowsort label-7662
SELECT - 86, + 80 / - - 18 + 70 AS col0
----
-86
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7663
SELECT ALL + COUNT( * ) + + COUNT( ALL 18 ) DIV COALESCE ( + 40, 42, 68 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7663
SELECT ALL + COUNT ( * ) + + COUNT ( ALL 18 ) / COALESCE ( + 40, 42, 68 ) AS col0
----
1

query I rowsort
SELECT ( + ( + - 80 ) ) AS col2
----
-80

query I rowsort
SELECT - 62 col2
----
-62

query I rowsort
SELECT - 41 col0
----
-41

query I rowsort
SELECT DISTINCT - - 80
----
80

query I rowsort
SELECT - 80 + + 59
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7669
SELECT 3 * + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7669
SELECT 3 * + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7670
SELECT COUNT( * ) * - - 69 AS col1, 36 AS col1
----
69
36

skipif mysql # not compatible
query II rowsort label-7670
SELECT COUNT ( * ) * - - 69 AS col1, 36 AS col1
----
69
36

query I rowsort
SELECT DISTINCT - 92 + + 82 AS col1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-7672
SELECT COUNT( * ) * - - ( - + 24 ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-7672
SELECT COUNT ( * ) * - - ( - + 24 ) AS col2
----
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-7673
SELECT COUNT( * ) * - 44 AS col2, + 9
----
-44
9

skipif mysql # not compatible
query II rowsort label-7673
SELECT COUNT ( * ) * - 44 AS col2, + 9
----
-44
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7674
SELECT ( - COUNT( * ) ) + 74 + - 37 * CAST( NULL AS SIGNED ) / 96
----
NULL

skipif mysql # not compatible
query I rowsort label-7674
SELECT ( - COUNT ( * ) ) + 74 + - 37 * CAST ( NULL AS INTEGER ) / 96
----
NULL

query I rowsort
SELECT ALL - - ( - 83 ) AS col0
----
-83

query I rowsort
SELECT - 36 + + + 81 + 4 AS col1
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7677
SELECT + ( + COUNT( * ) ) / + + 64 * + CAST( NULL AS SIGNED ) - 3 * - 16
----
NULL

skipif mysql # not compatible
query I rowsort label-7677
SELECT + ( + COUNT ( * ) ) / + + 64 * + CAST ( NULL AS INTEGER ) - 3 * - 16
----
NULL

query I rowsort
SELECT + + ( + 30 )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7679
SELECT + 84 * COUNT( * ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-7679
SELECT + 84 * COUNT ( * ) AS col1
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7680
SELECT DISTINCT CAST( - - 15 AS SIGNED ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-7680
SELECT DISTINCT CAST ( - - 15 AS INTEGER ) AS col1
----
15

query I rowsort
SELECT DISTINCT COALESCE ( - - 7, - 76, + 98 ) col2
----
7

query II rowsort
SELECT DISTINCT + 6 - - 90 AS col0, + 19 col1
----
96
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7683
SELECT CAST( NULL AS SIGNED ) + MIN( - 29 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7683
SELECT CAST ( NULL AS INTEGER ) + MIN ( - 29 ) AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7684
SELECT ALL CAST( NULL AS DECIMAL ) * - 54
----
NULL

skipif mysql # not compatible
query I rowsort label-7684
SELECT ALL CAST ( NULL AS REAL ) * - 54
----
NULL

query I rowsort
SELECT - ( - + 34 )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7686
SELECT 9 * - COUNT( * ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-7686
SELECT 9 * - COUNT ( * ) AS col1
----
-9

query I rowsort
SELECT 38 * + + 76 col1
----
2888

onlyif mysql # aggregate syntax: 
query I rowsort label-7688
SELECT - COUNT( + - 43 )
----
-1

skipif mysql # not compatible
query I rowsort label-7688
SELECT - COUNT ( + - 43 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7689
SELECT + CAST( - + 70 AS SIGNED )
----
-70

skipif mysql # not compatible
query I rowsort label-7689
SELECT + CAST ( - + 70 AS INTEGER )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-7690
SELECT - - COUNT( 80 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-7690
SELECT - - COUNT ( 80 ) col1
----
1

query I rowsort
SELECT ALL + - ( 72 ) AS col1
----
-72

query I rowsort
SELECT - 8 * - 40 AS col1
----
320

onlyif mysql # aggregate syntax: 
query I rowsort label-7693
SELECT ALL + + MAX( + 80 )
----
80

skipif mysql # not compatible
query I rowsort label-7693
SELECT ALL + + MAX ( + 80 )
----
80

query I rowsort
SELECT ALL + ( + 82 ) AS col0
----
82

query I rowsort
SELECT ALL ( + 76 ) + + + ( 35 )
----
111

query I rowsort
SELECT ALL + 61 - + 10
----
51

query II rowsort
SELECT DISTINCT 63 AS col0, + 26
----
63
26

onlyif mysql # aggregate syntax: 
query II rowsort label-7698
SELECT ALL + COUNT( * ) col0, 89
----
1
89

skipif mysql # not compatible
query II rowsort label-7698
SELECT ALL + COUNT ( * ) col0, 89
----
1
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7699
SELECT + CAST( + 52 AS SIGNED )
----
52

skipif mysql # not compatible
query I rowsort label-7699
SELECT + CAST ( + 52 AS INTEGER )
----
52

query I rowsort
SELECT DISTINCT - 65 - + 38
----
-103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7701
SELECT DISTINCT + COALESCE ( + ( + ( SUM( DISTINCT - CAST( NULL AS SIGNED ) ) ) ), - 60 ) col2
----
-60

skipif mysql # not compatible
query I rowsort label-7701
SELECT DISTINCT + COALESCE ( + ( + ( SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) ) ), - 60 ) col2
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-7702
SELECT DISTINCT 82 * - - COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-7702
SELECT DISTINCT 82 * - - COUNT ( * )
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7703
SELECT - CAST( NULL AS SIGNED ) + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7703
SELECT - CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + - 84 * 28
----
-2352

query I rowsort
SELECT ALL - 68 + 57
----
-11

query I rowsort
SELECT 7 - - 79
----
86

query II rowsort
SELECT ALL - ( 32 ), - 70 AS col2
----
-32
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-7708
SELECT NULLIF ( + COUNT( * ), + COUNT( * ) * + 27 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7708
SELECT NULLIF ( + COUNT ( * ), + COUNT ( * ) * + 27 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7709
SELECT + COUNT( + - 49 )
----
1

skipif mysql # not compatible
query I rowsort label-7709
SELECT + COUNT ( + - 49 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7710
SELECT + - COUNT( * ) * + 22 AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-7710
SELECT + - COUNT ( * ) * + 22 AS col0
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-7711
SELECT - - SUM( ALL + 23 ), - 14 AS col2
----
23
-14

skipif mysql # not compatible
query II rowsort label-7711
SELECT - - SUM ( ALL + 23 ), - 14 AS col2
----
23
-14

query I rowsort
SELECT DISTINCT + + 85
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7713
SELECT + MAX( ALL + 67 ) col0
----
67

skipif mysql # not compatible
query I rowsort label-7713
SELECT + MAX ( ALL + 67 ) col0
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7714
SELECT + COUNT( * ) DIV 22 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7714
SELECT + COUNT ( * ) / 22 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7715
SELECT ALL 33 * ( COUNT( * ) )
----
33

skipif mysql # not compatible
query I rowsort label-7715
SELECT ALL 33 * ( COUNT ( * ) )
----
33

query II rowsort
SELECT 82, 72 AS col2
----
82
72

query I rowsort
SELECT + ( - 92 ) AS col0
----
-92

query I rowsort
SELECT 78 - 34 AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7719
SELECT ALL + 49 * MIN( ALL + 17 ) col2
----
833

skipif mysql # not compatible
query I rowsort label-7719
SELECT ALL + 49 * MIN ( ALL + 17 ) col2
----
833

onlyif mysql # aggregate syntax: 
query I rowsort label-7720
SELECT DISTINCT + 31 + - COUNT( * )
----
30

skipif mysql # not compatible
query I rowsort label-7720
SELECT DISTINCT + 31 + - COUNT ( * )
----
30

query I rowsort
SELECT + 23 + - - 24 col0
----
47

query I rowsort
SELECT ALL + ( - + 38 )
----
-38

query II rowsort
SELECT ALL + 25, + 22 AS col2
----
25
22

onlyif mysql # aggregate syntax: 
query I rowsort label-7724
SELECT ALL + ( + + SUM( - - 36 ) )
----
36

skipif mysql # not compatible
query I rowsort label-7724
SELECT ALL + ( + + SUM ( - - 36 ) )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7725
SELECT DISTINCT + COUNT( ALL - 97 )
----
1

skipif mysql # not compatible
query I rowsort label-7725
SELECT DISTINCT + COUNT ( ALL - 97 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7726
SELECT + COUNT( * ) * - 39 + + 31
----
-8

skipif mysql # not compatible
query I rowsort label-7726
SELECT + COUNT ( * ) * - 39 + + 31
----
-8

query I rowsort
SELECT DISTINCT + 0 + - 12
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-7728
SELECT ALL + 19 + COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-7728
SELECT ALL + 19 + COUNT ( * )
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7729
SELECT DISTINCT CAST( + ( 80 ) AS SIGNED )
----
80

skipif mysql # not compatible
query I rowsort label-7729
SELECT DISTINCT CAST ( + ( 80 ) AS INTEGER )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7730
SELECT + CASE - 37 WHEN + 40 THEN 35 - + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7730
SELECT + CASE - 37 WHEN + 40 THEN 35 - + COUNT ( * ) END
----
NULL

query I rowsort
SELECT DISTINCT - ( + 92 ) col2
----
-92

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7732
SELECT ALL MIN( DISTINCT + - 13 ) + CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7732
SELECT ALL MIN ( DISTINCT + - 13 ) + CAST ( NULL AS REAL ) col2
----
NULL

query I rowsort
SELECT ALL 59 * - + 39
----
-2301

onlyif mysql # aggregate syntax: 
query I rowsort label-7734
SELECT - MAX( - 95 ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-7734
SELECT - MAX ( - 95 ) AS col0
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7735
SELECT ALL + + 84 + + ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7735
SELECT ALL + + 84 + + ( CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT 81 * - 22
----
-1782

onlyif mysql # aggregate syntax: 
query I rowsort label-7737
SELECT ALL COUNT( * ) * + + MIN( ALL - - 92 ) * + COUNT( * ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-7737
SELECT ALL COUNT ( * ) * + + MIN ( ALL - - 92 ) * + COUNT ( * ) AS col0
----
92

query I rowsort
SELECT DISTINCT 53 - 5 AS col0
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-7739
SELECT DISTINCT - 66 * 56 DIV 71 AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-7739
SELECT DISTINCT - 66 * 56 / 71 AS col2
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7740
SELECT DISTINCT + 39 + - 2 + - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7740
SELECT DISTINCT + 39 + - 2 + - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT ALL + + 68, + 45 AS col1
----
68
45

onlyif mysql # aggregate syntax: 
query II rowsort label-7742
SELECT ALL + SUM( DISTINCT - 0 ), COUNT( * ) AS col0
----
0
1

skipif mysql # not compatible
query II rowsort label-7742
SELECT ALL + SUM ( DISTINCT - 0 ), COUNT ( * ) AS col0
----
0
1

query I rowsort
SELECT - 40 * + ( - - 83 )
----
-3320

query I rowsort
SELECT + 53 + - 89
----
-36

query I rowsort
SELECT + + 16 + + ( 86 )
----
102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7746
SELECT DISTINCT CAST( NULL AS SIGNED ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7746
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7747
SELECT ALL COUNT( * ) * ( + COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7747
SELECT ALL COUNT ( * ) * ( + COUNT ( * ) ) AS col0
----
1

query I rowsort
SELECT DISTINCT - 27 + + 51 AS col1
----
24

query I rowsort
SELECT - 7 * + 24 AS col2
----
-168

onlyif mysql # DIV for integer division: 
query I rowsort label-7750
SELECT + 71 DIV 20 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-7750
SELECT + 71 / 20 AS col0
----
3

query I rowsort
SELECT ALL + ( - 53 ) AS col1
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7752
SELECT DISTINCT CAST( - 85 AS SIGNED )
----
-85

skipif mysql # not compatible
query I rowsort label-7752
SELECT DISTINCT CAST ( - 85 AS INTEGER )
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7753
SELECT - ( + SUM( ALL CAST( NULL AS SIGNED ) ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7753
SELECT - ( + SUM ( ALL CAST ( NULL AS INTEGER ) ) ) col2
----
NULL

query I rowsort
SELECT ALL + 38 - + 48 AS col2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-7755
SELECT ALL - 59 * + COUNT( * )
----
-59

skipif mysql # not compatible
query I rowsort label-7755
SELECT ALL - 59 * + COUNT ( * )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-7756
SELECT ALL - MIN( DISTINCT - 53 ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-7756
SELECT ALL - MIN ( DISTINCT - 53 ) AS col1
----
53

query I rowsort
SELECT + - ( - 31 )
----
31

query I rowsort
SELECT 67 * 17 * 51
----
58089

onlyif mysql # aggregate syntax: 
query I rowsort label-7759
SELECT + 4 + - COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-7759
SELECT + 4 + - COUNT ( * )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7760
SELECT ALL MIN( ALL 22 ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-7760
SELECT ALL MIN ( ALL 22 ) AS col1
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7761
SELECT ALL - CAST( + + MAX( 81 ) AS SIGNED )
----
-81

skipif mysql # not compatible
query I rowsort label-7761
SELECT ALL - CAST ( + + MAX ( 81 ) AS INTEGER )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7762
SELECT + SUM( DISTINCT - - 65 ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-7762
SELECT + SUM ( DISTINCT - - 65 ) AS col2
----
65

query I rowsort
SELECT ALL ( 98 )
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7764
SELECT ALL + AVG ( - - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7764
SELECT ALL + AVG ( - - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7765
SELECT DISTINCT + NULLIF ( + COUNT( * ), - - MAX( - CAST( NULL AS SIGNED ) ) + + 40 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7765
SELECT DISTINCT + NULLIF ( + COUNT ( * ), - - MAX ( - CAST ( NULL AS INTEGER ) ) + + 40 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7766
SELECT + + 81, - COUNT( * ) * - + ( + 87 ) AS col1
----
81
87

skipif mysql # not compatible
query II rowsort label-7766
SELECT + + 81, - COUNT ( * ) * - + ( + 87 ) AS col1
----
81
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7767
SELECT ALL + 23 * + 8 - - COUNT( * ) AS col2
----
185

skipif mysql # not compatible
query I rowsort label-7767
SELECT ALL + 23 * + 8 - - COUNT ( * ) AS col2
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-7768
SELECT + - COUNT( * ) * - 29
----
29

skipif mysql # not compatible
query I rowsort label-7768
SELECT + - COUNT ( * ) * - 29
----
29

query I rowsort
SELECT - 18 + + - 24 + - 28 AS col0
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7770
SELECT 51 + - CAST( NULL AS SIGNED ) * + COUNT( * ) AS col1, - CAST( - 5 AS SIGNED ) AS col2
----
NULL
5

skipif mysql # not compatible
query II rowsort label-7770
SELECT 51 + - CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col1, - CAST ( - 5 AS INTEGER ) AS col2
----
NULL
5

query I rowsort
SELECT ALL - ( - 97 ) * - 77 AS col2
----
-7469

onlyif mysql # aggregate syntax: 
query I rowsort label-7772
SELECT ALL COUNT( ALL - - 93 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7772
SELECT ALL COUNT ( ALL - - 93 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7773
SELECT + ( - COUNT( * ) ) + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7773
SELECT + ( - COUNT ( * ) ) + COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7774
SELECT - COUNT( * ) DIV + COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7774
SELECT - COUNT ( * ) / + COUNT ( * ) AS col2
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7775
SELECT AVG ( - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7775
SELECT AVG ( - CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7776
SELECT - + MIN( 98 ) * - SUM( ALL + + 67 )
----
6566

skipif mysql # not compatible
query I rowsort label-7776
SELECT - + MIN ( 98 ) * - SUM ( ALL + + 67 )
----
6566

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7777
SELECT COUNT( * ) AS col1, - CAST( NULL AS SIGNED ) AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-7777
SELECT COUNT ( * ) AS col1, - CAST ( NULL AS INTEGER ) AS col1
----
1
NULL

query I rowsort
SELECT + ( - - 54 )
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7779
SELECT ALL - CAST( + + 61 AS SIGNED ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-7779
SELECT ALL - CAST ( + + 61 AS INTEGER ) AS col2
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7780
SELECT DISTINCT - + CAST( + COUNT( * ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-7780
SELECT DISTINCT - + CAST ( + COUNT ( * ) AS INTEGER )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7781
SELECT 60 + - + COUNT( * ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-7781
SELECT 60 + - + COUNT ( * ) AS col0
----
59

query I rowsort
SELECT 21 - - 5
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7783
SELECT - + COUNT( ALL - 43 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7783
SELECT - + COUNT ( ALL - 43 ) AS col1
----
-1

query I rowsort
SELECT - 31 * + - 72 AS col1
----
2232

query I rowsort
SELECT - 5 * 57 col0
----
-285

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7786
SELECT CAST( NULL AS SIGNED ) * - 73 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7786
SELECT CAST ( NULL AS INTEGER ) * - 73 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7787
SELECT - - CAST( NULL AS SIGNED ) * + ( - 61 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7787
SELECT - - CAST ( NULL AS INTEGER ) * + ( - 61 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7788
SELECT DISTINCT + COUNT( DISTINCT + 79 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7788
SELECT DISTINCT + COUNT ( DISTINCT + 79 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7789
SELECT + COUNT( * ), + 58 AS col0
----
1
58

skipif mysql # not compatible
query II rowsort label-7789
SELECT + COUNT ( * ), + 58 AS col0
----
1
58

onlyif mysql # aggregate syntax: 
query II rowsort label-7790
SELECT + COUNT( * ), - 60 AS col2
----
1
-60

skipif mysql # not compatible
query II rowsort label-7790
SELECT + COUNT ( * ), - 60 AS col2
----
1
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7791
SELECT - - COALESCE ( + - 84, + CAST( NULL AS SIGNED ) )
----
-84

skipif mysql # not compatible
query I rowsort label-7791
SELECT - - COALESCE ( + - 84, + CAST ( NULL AS INTEGER ) )
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7792
SELECT + CAST( - + ( - 9 ) AS SIGNED ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-7792
SELECT + CAST ( - + ( - 9 ) AS INTEGER ) AS col1
----
9

query I rowsort
SELECT ALL + - ( + 48 )
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7794
SELECT CAST( - 56 AS SIGNED )
----
-56

skipif mysql # not compatible
query I rowsort label-7794
SELECT CAST ( - 56 AS INTEGER )
----
-56

query I rowsort
SELECT ALL ( 17 ) AS col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-7796
SELECT - - MAX( DISTINCT 89 ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-7796
SELECT - - MAX ( DISTINCT 89 ) AS col2
----
89

query I rowsort
SELECT - 44 - + + 11 col2
----
-55

query I rowsort
SELECT 88 * 29 * + + 79 col2
----
201608

onlyif mysql # aggregate syntax: 
query II rowsort label-7799
SELECT NULLIF ( + COUNT( - 70 ), 52 ) * + + COUNT( * ) col0, - 24
----
1
-24

skipif mysql # not compatible
query II rowsort label-7799
SELECT NULLIF ( + COUNT ( - 70 ), 52 ) * + + COUNT ( * ) col0, - 24
----
1
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7800
SELECT DISTINCT - CAST( - 51 AS SIGNED ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-7800
SELECT DISTINCT - CAST ( - 51 AS INTEGER ) AS col1
----
51

query II rowsort
SELECT + ( - 19 ) * + + 24 AS col2, + 88
----
-456
88

query II rowsort
SELECT 65, 31 col2
----
65
31

query I rowsort
SELECT 1 * - 69 AS col2
----
-69

query I rowsort
SELECT DISTINCT + + 55 AS col0
----
55

query I rowsort
SELECT + 43 + + 4
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7806
SELECT + CAST( 12 AS SIGNED ) * - 10
----
-120

skipif mysql # not compatible
query I rowsort label-7806
SELECT + CAST ( 12 AS INTEGER ) * - 10
----
-120

query II rowsort
SELECT - 9 AS col2, - 89 * - 61 AS col2
----
-9
5429

query I rowsort
SELECT - 29 - - 10 + - 39
----
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-7809
SELECT - - COUNT( * ) AS col1, + 93 AS col0
----
1
93

skipif mysql # not compatible
query II rowsort label-7809
SELECT - - COUNT ( * ) AS col1, + 93 AS col0
----
1
93

onlyif mysql # DIV for integer division: 
query I rowsort label-7810
SELECT - 6 + + 95 DIV + 74
----
-5

skipif mysql # not compatible
query I rowsort label-7810
SELECT - 6 + + 95 / + 74
----
-5

query I rowsort
SELECT + - ( + - 52 ) AS col1
----
52

query I rowsort
SELECT - ( + 43 ) AS col2
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7813
SELECT - - SUM( ALL + - CAST( NULL AS SIGNED ) ) + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-7813
SELECT - - SUM ( ALL + - CAST ( NULL AS INTEGER ) ) + 46
----
NULL

query I rowsort
SELECT ALL 12 - - - ( 21 )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7815
SELECT 29 * COUNT( * )
----
29

skipif mysql # not compatible
query I rowsort label-7815
SELECT 29 * COUNT ( * )
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-7816
SELECT + - 35 AS col2, COUNT( * )
----
-35
1

skipif mysql # not compatible
query II rowsort label-7816
SELECT + - 35 AS col2, COUNT ( * )
----
-35
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7817
SELECT COUNT( * ) - + 20
----
-19

skipif mysql # not compatible
query I rowsort label-7817
SELECT COUNT ( * ) - + 20
----
-19

query I rowsort
SELECT ALL + - 25 * 29
----
-725

query I rowsort
SELECT DISTINCT + 86 + + 10
----
96

query I rowsort
SELECT ALL - + 92 AS col1
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7821
SELECT ALL - CAST( NULL AS SIGNED ) * - ( - - 84 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7821
SELECT ALL - CAST ( NULL AS INTEGER ) * - ( - - 84 ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + + ( - + 53 ) AS col2
----
-53

query I rowsort
SELECT + ( + 94 )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7824
SELECT DISTINCT + SUM( 29 )
----
29

skipif mysql # not compatible
query I rowsort label-7824
SELECT DISTINCT + SUM ( 29 )
----
29

query I rowsort
SELECT - 85 * - 27
----
2295

query I rowsort
SELECT - NULLIF ( + 7, 85 )
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7827
SELECT ALL + - ( CAST( - 26 AS SIGNED ) )
----
26

skipif mysql # not compatible
query I rowsort label-7827
SELECT ALL + - ( CAST ( - 26 AS INTEGER ) )
----
26

query I rowsort
SELECT ALL + + 96 AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7829
SELECT SUM( DISTINCT - + ( + 94 ) ) AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-7829
SELECT SUM ( DISTINCT - + ( + 94 ) ) AS col0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-7830
SELECT DISTINCT ( + + COUNT( * ) ) + - 84
----
-83

skipif mysql # not compatible
query I rowsort label-7830
SELECT DISTINCT ( + + COUNT ( * ) ) + - 84
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7831
SELECT ALL CAST( NULL AS SIGNED ) + + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-7831
SELECT ALL CAST ( NULL AS INTEGER ) + + 1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7832
SELECT ALL 95 + COUNT( * )
----
96

skipif mysql # not compatible
query I rowsort label-7832
SELECT ALL 95 + COUNT ( * )
----
96

query I rowsort
SELECT - + 49 AS col0
----
-49

query I rowsort
SELECT DISTINCT + ( - 47 )
----
-47

query I rowsort
SELECT ALL + 13 col0
----
13

query I rowsort
SELECT - ( - 72 )
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-7837
SELECT + 96 DIV + 77
----
1

skipif mysql # not compatible
query I rowsort label-7837
SELECT + 96 / + 77
----
1

query I rowsort
SELECT + + 76 + + 94 col1
----
170

query I rowsort
SELECT ALL - 37 + + 93
----
56

query I rowsort
SELECT - ( 9 )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7841
SELECT ALL ( - + MIN( - 85 ) )
----
85

skipif mysql # not compatible
query I rowsort label-7841
SELECT ALL ( - + MIN ( - 85 ) )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7842
SELECT ALL - ( - ( - COUNT( * ) ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-7842
SELECT ALL - ( - ( - COUNT ( * ) ) ) col2
----
-1

query I rowsort
SELECT - 89 * + + 38 * - 98
----
331436

query I rowsort
SELECT DISTINCT + 87 col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7845
SELECT DISTINCT + COUNT( * ) * + 2 + - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-7845
SELECT DISTINCT + COUNT ( * ) * + 2 + - COUNT ( * )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7846
SELECT DISTINCT + COUNT( * ) DIV - + 20 * - 69 col2, 98
----
0
98

skipif mysql # not compatible
query II rowsort label-7846
SELECT DISTINCT + COUNT ( * ) / - + 20 * - 69 col2, 98
----
0
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7847
SELECT ( - - COUNT( * ) ) * + - 53
----
-53

skipif mysql # not compatible
query I rowsort label-7847
SELECT ( - - COUNT ( * ) ) * + - 53
----
-53

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7848
SELECT DISTINCT + 85 + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7848
SELECT DISTINCT + 85 + CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT + NULLIF ( - 4, - 78 )
----
-4

query II rowsort
SELECT ( + - 36 ), 52 AS col0
----
-36
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7851
SELECT ALL COUNT( + + 97 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7851
SELECT ALL COUNT ( + + 97 ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7852
SELECT ALL - CAST( - 97 AS SIGNED ) DIV - 95 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7852
SELECT ALL - CAST ( - 97 AS INTEGER ) / - 95 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7853
SELECT DISTINCT COUNT( - - 90 )
----
1

skipif mysql # not compatible
query I rowsort label-7853
SELECT DISTINCT COUNT ( - - 90 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7854
SELECT - 30 + - 74 + + 14 DIV + MIN( ALL + 33 ) * - 27 AS col2
----
-104

skipif mysql # not compatible
query I rowsort label-7854
SELECT - 30 + - 74 + + 14 / + MIN ( ALL + 33 ) * - 27 AS col2
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-7855
SELECT ALL COUNT( DISTINCT 60 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7855
SELECT ALL COUNT ( DISTINCT 60 ) AS col2
----
1

query I rowsort
SELECT + 28 * 1 AS col0
----
28

query I rowsort
SELECT - 40 + 90
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-7858
SELECT + COUNT( ALL - - ( + 53 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7858
SELECT + COUNT ( ALL - - ( + 53 ) ) AS col0
----
1

query I rowsort
SELECT ALL + - ( 53 )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-7860
SELECT ALL - + COUNT( * ) * COUNT( * ) - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-7860
SELECT ALL - + COUNT ( * ) * COUNT ( * ) - COUNT ( * )
----
-2

query I rowsort
SELECT + - 74 * + - 33 AS col2
----
2442

query I rowsort
SELECT ALL ( + + 67 )
----
67

query I rowsort
SELECT ALL NULLIF ( - + 23, + + 54 ) AS col0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-7864
SELECT + COUNT( * ) * - 13 - - 95 AS col0
----
82

skipif mysql # not compatible
query I rowsort label-7864
SELECT + COUNT ( * ) * - 13 - - 95 AS col0
----
82

query I rowsort
SELECT 73 + + - 19 AS col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-7866
SELECT ALL - SUM( 75 ) AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-7866
SELECT ALL - SUM ( 75 ) AS col2
----
-75

query I rowsort
SELECT 36 * 91
----
3276

query I rowsort
SELECT 52 * - 19 AS col0
----
-988

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7869
SELECT - - COUNT( * ) + + MIN( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7869
SELECT - - COUNT ( * ) + + MIN ( CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL 36 * 56 + + 96 AS col0
----
2112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7871
SELECT - AVG ( - + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7871
SELECT - AVG ( - + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7872
SELECT - COUNT( * ) * - 90
----
90

skipif mysql # not compatible
query I rowsort label-7872
SELECT - COUNT ( * ) * - 90
----
90

query I rowsort
SELECT ALL ( + 35 ) AS col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7874
SELECT ALL + MAX( - - 6 )
----
6

skipif mysql # not compatible
query I rowsort label-7874
SELECT ALL + MAX ( - - 6 )
----
6

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7875
SELECT - - COUNT( CAST( NULL AS DECIMAL ) )
----
0

skipif mysql # not compatible
query I rowsort label-7875
SELECT - - COUNT ( CAST ( NULL AS REAL ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7876
SELECT COUNT( - 51 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7876
SELECT COUNT ( - 51 ) AS col2
----
1

query I rowsort
SELECT ( - - 75 )
----
75

query I rowsort
SELECT 4 + + 39
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-7879
SELECT + + 96 AS col0, COUNT( * )
----
96
1

skipif mysql # not compatible
query II rowsort label-7879
SELECT + + 96 AS col0, COUNT ( * )
----
96
1

query I rowsort
SELECT ALL 86 + + 43 AS col0
----
129

query I rowsort
SELECT DISTINCT + + 91 * + 73 AS col2
----
6643

query I rowsort
SELECT NULLIF ( + 13, - 97 ) col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7883
SELECT ALL ( COUNT( * ) ) * - 36
----
-36

skipif mysql # not compatible
query I rowsort label-7883
SELECT ALL ( COUNT ( * ) ) * - 36
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7884
SELECT - COUNT( * ) * COUNT( * ) + + CAST( - + 74 AS SIGNED ) AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-7884
SELECT - COUNT ( * ) * COUNT ( * ) + + CAST ( - + 74 AS INTEGER ) AS col0
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7885
SELECT - + 39, + ( 27 ) + COUNT( * ) + - COALESCE ( + 75, COUNT( - CAST( + 37 AS SIGNED ) ) ) * ( + 43 ) AS col1
----
-39
-3197

skipif mysql # not compatible
query II rowsort label-7885
SELECT - + 39, + ( 27 ) + COUNT ( * ) + - COALESCE ( + 75, COUNT ( - CAST ( + 37 AS INTEGER ) ) ) * ( + 43 ) AS col1
----
-39
-3197

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7886
SELECT - CAST( 66 AS SIGNED )
----
-66

skipif mysql # not compatible
query I rowsort label-7886
SELECT - CAST ( 66 AS INTEGER )
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-7887
SELECT - + 10 AS col1, COUNT( * ) AS col2
----
-10
1

skipif mysql # not compatible
query II rowsort label-7887
SELECT - + 10 AS col1, COUNT ( * ) AS col2
----
-10
1

query I rowsort
SELECT + - 81 * 85 AS col0
----
-6885

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7889
SELECT + COUNT( * ) + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7889
SELECT + COUNT ( * ) + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7890
SELECT + + MIN( 31 ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-7890
SELECT + + MIN ( 31 ) AS col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-7891
SELECT - COUNT( * ) + - 71
----
-72

skipif mysql # not compatible
query I rowsort label-7891
SELECT - COUNT ( * ) + - 71
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-7892
SELECT ALL - COUNT( DISTINCT - - 23 )
----
-1

skipif mysql # not compatible
query I rowsort label-7892
SELECT ALL - COUNT ( DISTINCT - - 23 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7893
SELECT + + SUM( DISTINCT - CAST( NULL AS SIGNED ) ) / 57
----
NULL

skipif mysql # not compatible
query I rowsort label-7893
SELECT + + SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) / 57
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7894
SELECT 11 DIV - 52
----
0

skipif mysql # not compatible
query I rowsort label-7894
SELECT 11 / - 52
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7895
SELECT DISTINCT - CAST( MAX( + - 12 ) AS SIGNED ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-7895
SELECT DISTINCT - CAST ( MAX ( + - 12 ) AS INTEGER ) AS col2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7896
SELECT - + COALESCE ( - + COUNT( * ), + SUM( DISTINCT + - 38 ), + + 35, - - SUM( ALL + 37 ) )
----
1

skipif mysql # not compatible
query I rowsort label-7896
SELECT - + COALESCE ( - + COUNT ( * ), + SUM ( DISTINCT + - 38 ), + + 35, - - SUM ( ALL + 37 ) )
----
1

query I rowsort
SELECT ALL - 56 col1
----
-56

query I rowsort
SELECT DISTINCT 10 * - 56 AS col0
----
-560

query I rowsort
SELECT 46 + 70 * + + 20 + 69
----
1515

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7900
SELECT ALL - CAST( + 4 AS SIGNED )
----
-4

skipif mysql # not compatible
query I rowsort label-7900
SELECT ALL - CAST ( + 4 AS INTEGER )
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7901
SELECT - + COUNT( * ) DIV + 8 * 41 + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-7901
SELECT - + COUNT ( * ) / + 8 * 41 + + COUNT ( * )
----
1

query II rowsort
SELECT 7 col2, 73
----
7
73

onlyif mysql # aggregate syntax: 
query II rowsort label-7903
SELECT ALL + - 90 + - MAX( ALL 56 ), 68 AS col0
----
-146
68

skipif mysql # not compatible
query II rowsort label-7903
SELECT ALL + - 90 + - MAX ( ALL 56 ), 68 AS col0
----
-146
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7904
SELECT ALL ( - ( - NULLIF ( + COALESCE ( + - MAX( ALL 84 ), 17 ), + - NULLIF ( + + 68, + COUNT( * ) ) ) ) ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-7904
SELECT ALL ( - ( - NULLIF ( + COALESCE ( + - MAX ( ALL 84 ), 17 ), + - NULLIF ( + + 68, + COUNT ( * ) ) ) ) ) AS col2
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-7905
SELECT DISTINCT - 83 - COUNT( * )
----
-84

skipif mysql # not compatible
query I rowsort label-7905
SELECT DISTINCT - 83 - COUNT ( * )
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-7906
SELECT ALL + MAX( 4 ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-7906
SELECT ALL + MAX ( 4 ) AS col1
----
4

query I rowsort
SELECT + 45 * + 13 AS col2
----
585

query I rowsort
SELECT + 39 + 24
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7909
SELECT CAST( - + COUNT( * ) AS SIGNED ) * - ( COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-7909
SELECT CAST ( - + COUNT ( * ) AS INTEGER ) * - ( COUNT ( * ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7910
SELECT ALL CAST( + ( + MAX( ALL 98 ) ) AS SIGNED ) + - 68 * - 21 AS col1
----
1526

skipif mysql # not compatible
query I rowsort label-7910
SELECT ALL CAST ( + ( + MAX ( ALL 98 ) ) AS INTEGER ) + - 68 * - 21 AS col1
----
1526

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7911
SELECT + - CAST( - - 91 AS SIGNED )
----
-91

skipif mysql # not compatible
query I rowsort label-7911
SELECT + - CAST ( - - 91 AS INTEGER )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7912
SELECT ALL - + ( - COUNT( * ) ) - - COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-7912
SELECT ALL - + ( - COUNT ( * ) ) - - COUNT ( * ) AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7913
SELECT DISTINCT - MAX( ALL + 11 ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-7913
SELECT DISTINCT - MAX ( ALL + 11 ) AS col1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-7914
SELECT ALL COUNT( - 41 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7914
SELECT ALL COUNT ( - 41 ) AS col0
----
1

query I rowsort
SELECT ALL ( - - 90 )
----
90

query I rowsort
SELECT + - 35 + - ( + 97 ) * + + ( + 85 ) * - 52 AS col1
----
428705

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7917
SELECT + + 8 * + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7917
SELECT + + 8 * + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7918
SELECT ALL 88 DIV 79 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7918
SELECT ALL 88 / 79 AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7919
SELECT ALL + MAX( + + 47 ) * + COUNT( * ) AS col0, + 14 * + 60 * - - 46 AS col1
----
47
38640

skipif mysql # not compatible
query II rowsort label-7919
SELECT ALL + MAX ( + + 47 ) * + COUNT ( * ) AS col0, + 14 * + 60 * - - 46 AS col1
----
47
38640

query I rowsort
SELECT - 62 + - 50 AS col2
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-7921
SELECT + 40 * 86 * + COUNT( * ) * + 5 AS col2
----
17200

skipif mysql # not compatible
query I rowsort label-7921
SELECT + 40 * 86 * + COUNT ( * ) * + 5 AS col2
----
17200

query I rowsort
SELECT 61 - - + 7
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7923
SELECT COUNT( * ) + + 76
----
77

skipif mysql # not compatible
query I rowsort label-7923
SELECT COUNT ( * ) + + 76
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-7924
SELECT 17 DIV 63 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7924
SELECT 17 / 63 AS col0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7925
SELECT - + ( - + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7925
SELECT - + ( - + CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7926
SELECT ALL - COUNT( * ) + 13 * + - 2 AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-7926
SELECT ALL - COUNT ( * ) + 13 * + - 2 AS col2
----
-27

query I rowsort
SELECT ALL - COALESCE ( 48, 36 ) AS col2
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7928
SELECT ALL + COALESCE ( - 83, - + CAST( NULL AS SIGNED ) + 39 ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-7928
SELECT ALL + COALESCE ( - 83, - + CAST ( NULL AS INTEGER ) + 39 ) AS col2
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7929
SELECT MIN( - - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7929
SELECT MIN ( - - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7930
SELECT DISTINCT - 62 + + COALESCE ( + MAX( ALL - + ( - ( 6 ) ) ), 2 ) + + 3 + COUNT( * )
----
-52

skipif mysql # not compatible
query I rowsort label-7930
SELECT DISTINCT - 62 + + COALESCE ( + MAX ( ALL - + ( - ( 6 ) ) ), 2 ) + + 3 + COUNT ( * )
----
-52

query I rowsort
SELECT + 5 col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7932
SELECT 84 * + 19 + - COUNT( * ) * + - 19
----
1615

skipif mysql # not compatible
query I rowsort label-7932
SELECT 84 * + 19 + - COUNT ( * ) * + - 19
----
1615

query I rowsort
SELECT DISTINCT + ( 29 )
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-7934
SELECT + - 13 + 47 AS col0, COUNT( * )
----
34
1

skipif mysql # not compatible
query II rowsort label-7934
SELECT + - 13 + 47 AS col0, COUNT ( * )
----
34
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7935
SELECT - COUNT( ALL + 20 )
----
-1

skipif mysql # not compatible
query I rowsort label-7935
SELECT - COUNT ( ALL + 20 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7936
SELECT - 15 + COUNT( * ) AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-7936
SELECT - 15 + COUNT ( * ) AS col2
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-7937
SELECT ( + COUNT( * ) ) + ( + 16 ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-7937
SELECT ( + COUNT ( * ) ) + ( + 16 ) AS col0
----
17

query I rowsort
SELECT 64 + + 0 * - - 92 col0
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7939
SELECT ALL ( MAX( + CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7939
SELECT ALL ( MAX ( + CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) ) ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7940
SELECT ALL - 27 + MAX( DISTINCT 46 ) * + 35 * - - 98 AS col2
----
157753

skipif mysql # not compatible
query I rowsort label-7940
SELECT ALL - 27 + MAX ( DISTINCT 46 ) * + 35 * - - 98 AS col2
----
157753

onlyif mysql # aggregate syntax: 
query I rowsort label-7941
SELECT ALL + COUNT( - 98 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7941
SELECT ALL + COUNT ( - 98 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7942
SELECT DISTINCT + MIN( DISTINCT + 18 ) + - 39 AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-7942
SELECT DISTINCT + MIN ( DISTINCT + 18 ) + - 39 AS col2
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-7943
SELECT ALL 40 + + - MIN( DISTINCT + + ( - 70 ) ) AS col0
----
110

skipif mysql # not compatible
query I rowsort label-7943
SELECT ALL 40 + + - MIN ( DISTINCT + + ( - 70 ) ) AS col0
----
110

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7944
SELECT DISTINCT - 18 * - COUNT( * ) DIV + 1
----
18

skipif mysql # not compatible
query I rowsort label-7944
SELECT DISTINCT - 18 * - COUNT ( * ) / + 1
----
18

query I rowsort
SELECT ALL 50 * - 65
----
-3250

query I rowsort
SELECT ALL - + ( 3 ) col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7947
SELECT ALL 52 + + COUNT( * )
----
53

skipif mysql # not compatible
query I rowsort label-7947
SELECT ALL 52 + + COUNT ( * )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7948
SELECT COUNT( * ) * 71
----
71

skipif mysql # not compatible
query I rowsort label-7948
SELECT COUNT ( * ) * 71
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7949
SELECT + - COUNT( * ) * - 43
----
43

skipif mysql # not compatible
query I rowsort label-7949
SELECT + - COUNT ( * ) * - 43
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7950
SELECT DISTINCT + COUNT( * ) * + + 18
----
18

skipif mysql # not compatible
query I rowsort label-7950
SELECT DISTINCT + COUNT ( * ) * + + 18
----
18

query I rowsort
SELECT + ( - - 3 )
----
3

query I rowsort
SELECT COALESCE ( - 15, + 66 ) col0
----
-15

query I rowsort
SELECT - ( + 15 ) AS col0
----
-15

query II rowsort
SELECT DISTINCT + 79 AS col0, + 28 AS col1
----
79
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7955
SELECT ALL 93 DIV + COUNT( * ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-7955
SELECT ALL 93 / + COUNT ( * ) AS col2
----
93

query II rowsort
SELECT ALL - 63 AS col1, - 92
----
-63
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7957
SELECT CAST( NULL AS SIGNED ) - - - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7957
SELECT CAST ( NULL AS INTEGER ) - - - COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7958
SELECT ALL - CAST( - 52 AS SIGNED ) col2
----
52

skipif mysql # not compatible
query I rowsort label-7958
SELECT ALL - CAST ( - 52 AS INTEGER ) col2
----
52

query I rowsort
SELECT ALL - ( - + 22 ) AS col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-7960
SELECT MAX( - 52 )
----
-52

skipif mysql # not compatible
query I rowsort label-7960
SELECT MAX ( - 52 )
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-7961
SELECT ALL MIN( - + 7 ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-7961
SELECT ALL MIN ( - + 7 ) AS col2
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7962
SELECT - + ( - 50 ) DIV - COUNT( * ) - + 95
----
-145

skipif mysql # not compatible
query I rowsort label-7962
SELECT - + ( - 50 ) / - COUNT ( * ) - + 95
----
-145

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7963
SELECT ALL CAST( + 70 AS SIGNED ) + + - 94 AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-7963
SELECT ALL CAST ( + 70 AS INTEGER ) + + - 94 AS col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7964
SELECT ALL COUNT( 52 ) + 98 AS col2
----
99

skipif mysql # not compatible
query I rowsort label-7964
SELECT ALL COUNT ( 52 ) + 98 AS col2
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7965
SELECT ALL COUNT( * ) DIV + 30 AS col0, - 52
----
0
-52

skipif mysql # not compatible
query II rowsort label-7965
SELECT ALL COUNT ( * ) / + 30 AS col0, - 52
----
0
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-7966
SELECT MIN( ALL ( - 13 ) ) * - 20 col2
----
260

skipif mysql # not compatible
query I rowsort label-7966
SELECT MIN ( ALL ( - 13 ) ) * - 20 col2
----
260

query I rowsort
SELECT + 25 * - 96 AS col2
----
-2400

query I rowsort
SELECT ALL + 1 + 43 AS col1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7969
SELECT + COUNT( * ) + 52 AS col0
----
53

skipif mysql # not compatible
query I rowsort label-7969
SELECT + COUNT ( * ) + 52 AS col0
----
53

onlyif mysql # DIV for integer division: 
query II rowsort label-7970
SELECT - 30, ( - - 98 ) DIV 24 AS col1
----
-30
4

skipif mysql # not compatible
query II rowsort label-7970
SELECT - 30, ( - - 98 ) / 24 AS col1
----
-30
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7971
SELECT - 87 * ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7971
SELECT - 87 * ( - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT - 16 * - 61 AS col2
----
976

query I rowsort
SELECT + 62 * 11 AS col0
----
682

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7974
SELECT DISTINCT + ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7974
SELECT DISTINCT + ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7975
SELECT - MAX( ALL - 55 ) col2
----
55

skipif mysql # not compatible
query I rowsort label-7975
SELECT - MAX ( ALL - 55 ) col2
----
55

query I rowsort
SELECT ALL - 5 * + 71 + + 90
----
-265

query I rowsort
SELECT ALL ( + 4 )
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-7978
SELECT + 4 * - + COUNT( * ) AS col0, - 90
----
-4
-90

skipif mysql # not compatible
query II rowsort label-7978
SELECT + 4 * - + COUNT ( * ) AS col0, - 90
----
-4
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7979
SELECT ALL COUNT( * ) * - CAST( NULL AS SIGNED ) * + - 0
----
NULL

skipif mysql # not compatible
query I rowsort label-7979
SELECT ALL COUNT ( * ) * - CAST ( NULL AS INTEGER ) * + - 0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7980
SELECT + MAX( - 72 ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-7980
SELECT + MAX ( - 72 ) AS col2
----
-72

query I rowsort
SELECT DISTINCT - + ( - 18 ) col1
----
18

query I rowsort
SELECT DISTINCT - + 2 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7983
SELECT DISTINCT + ( + ( + COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-7983
SELECT DISTINCT + ( + ( + COUNT ( * ) ) )
----
1

query I rowsort
SELECT DISTINCT + ( - 91 ) AS col0
----
-91

query II rowsort
SELECT + 44 AS col0, 89
----
44
89

onlyif mysql # aggregate syntax: 
query II rowsort label-7986
SELECT COUNT( * ) AS col1, COUNT( * ) AS col0
----
1
1

skipif mysql # not compatible
query II rowsort label-7986
SELECT COUNT ( * ) AS col1, COUNT ( * ) AS col0
----
1
1

query I rowsort
SELECT DISTINCT - 35 + 90
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7988
SELECT ALL - COUNT( * ) + 48 AS col2
----
47

skipif mysql # not compatible
query I rowsort label-7988
SELECT ALL - COUNT ( * ) + 48 AS col2
----
47

query I rowsort
SELECT DISTINCT + - 1 AS col0
----
-1

query I rowsort
SELECT ALL + ( + + 90 ) col2
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-7991
SELECT + 40 DIV 68 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7991
SELECT + 40 / 68 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7992
SELECT ALL CAST( - 92 AS SIGNED )
----
-92

skipif mysql # not compatible
query I rowsort label-7992
SELECT ALL CAST ( - 92 AS INTEGER )
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-7993
SELECT 95 * - COUNT( * ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-7993
SELECT 95 * - COUNT ( * ) AS col0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-7994
SELECT MIN( - 62 )
----
-62

skipif mysql # not compatible
query I rowsort label-7994
SELECT MIN ( - 62 )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-7995
SELECT - MAX( ( - 21 ) )
----
21

skipif mysql # not compatible
query I rowsort label-7995
SELECT - MAX ( ( - 21 ) )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7996
SELECT COUNT( + 75 )
----
1

skipif mysql # not compatible
query I rowsort label-7996
SELECT COUNT ( + 75 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7997
SELECT CAST( NULL AS SIGNED ) * + - 44
----
NULL

skipif mysql # not compatible
query I rowsort label-7997
SELECT CAST ( NULL AS INTEGER ) * + - 44
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7998
SELECT + 66 * + MIN( + - 45 ) AS col2
----
-2970

skipif mysql # not compatible
query I rowsort label-7998
SELECT + 66 * + MIN ( + - 45 ) AS col2
----
-2970

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7999
SELECT - ( - CAST( NULL AS SIGNED ) ) * + 26 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7999
SELECT - ( - CAST ( NULL AS INTEGER ) ) * + 26 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8000
SELECT - CAST( NULL AS DECIMAL ) * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8000
SELECT - CAST ( NULL AS REAL ) * + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8001
SELECT - CAST( NULL AS SIGNED ) / - + CAST( NULL AS SIGNED ), + 17 AS col1
----
NULL
17

skipif mysql # not compatible
query II rowsort label-8001
SELECT - CAST ( NULL AS INTEGER ) / - + CAST ( NULL AS INTEGER ), + 17 AS col1
----
NULL
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8002
SELECT COUNT( - 5 )
----
1

skipif mysql # not compatible
query I rowsort label-8002
SELECT COUNT ( - 5 )
----
1

query I rowsort
SELECT - + 70 * - 40 col0
----
2800

onlyif mysql # aggregate syntax: 
query II rowsort label-8004
SELECT + ( + 33 ) AS col2, - COUNT( * ) AS col1
----
33
-1

skipif mysql # not compatible
query II rowsort label-8004
SELECT + ( + 33 ) AS col2, - COUNT ( * ) AS col1
----
33
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8005
SELECT - CAST( - 43 AS SIGNED )
----
43

skipif mysql # not compatible
query I rowsort label-8005
SELECT - CAST ( - 43 AS INTEGER )
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-8006
SELECT 99, - COUNT( * ) AS col2
----
99
-1

skipif mysql # not compatible
query II rowsort label-8006
SELECT 99, - COUNT ( * ) AS col2
----
99
-1

query I rowsort
SELECT - ( - ( - + 74 ) ) AS col0
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8008
SELECT ALL - 53 + - CAST( COUNT( * ) AS SIGNED )
----
-54

skipif mysql # not compatible
query I rowsort label-8008
SELECT ALL - 53 + - CAST ( COUNT ( * ) AS INTEGER )
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8009
SELECT DISTINCT + CAST( - 62 AS SIGNED ) * COUNT( * ) * + COUNT( * )
----
-62

skipif mysql # not compatible
query I rowsort label-8009
SELECT DISTINCT + CAST ( - 62 AS INTEGER ) * COUNT ( * ) * + COUNT ( * )
----
-62

query I rowsort
SELECT ALL + - ( + - 45 ) AS col1
----
45

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8011
SELECT + - CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8011
SELECT + - CAST ( NULL AS REAL ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8012
SELECT ALL + NULLIF ( - 82, 10 ) + - - COUNT( * )
----
-81

skipif mysql # not compatible
query I rowsort label-8012
SELECT ALL + NULLIF ( - 82, 10 ) + - - COUNT ( * )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8013
SELECT - MIN( DISTINCT + - 80 )
----
80

skipif mysql # not compatible
query I rowsort label-8013
SELECT - MIN ( DISTINCT + - 80 )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8014
SELECT + - 71 * COUNT( * )
----
-71

skipif mysql # not compatible
query I rowsort label-8014
SELECT + - 71 * COUNT ( * )
----
-71

query I rowsort
SELECT ALL + ( - 79 ) AS col0
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8016
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + 19 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8016
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + 19 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8017
SELECT + COUNT( ALL + 99 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8017
SELECT + COUNT ( ALL + 99 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8018
SELECT ALL - CAST( 66 AS SIGNED )
----
-66

skipif mysql # not compatible
query I rowsort label-8018
SELECT ALL - CAST ( 66 AS INTEGER )
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-8019
SELECT ALL 51 + + MAX( ALL + - ( + 37 ) )
----
14

skipif mysql # not compatible
query I rowsort label-8019
SELECT ALL 51 + + MAX ( ALL + - ( + 37 ) )
----
14

query I rowsort
SELECT 25 * - ( + + 50 )
----
-1250

onlyif mysql # aggregate syntax: 
query I rowsort label-8021
SELECT NULLIF ( + COUNT( * ), - + ( 45 ) ) + - ( - + 81 ) * - + 9
----
-728

skipif mysql # not compatible
query I rowsort label-8021
SELECT NULLIF ( + COUNT ( * ), - + ( 45 ) ) + - ( - + 81 ) * - + 9
----
-728

onlyif mysql # aggregate syntax: 
query I rowsort label-8022
SELECT COUNT( * ) * + ( - 65 ) - 35
----
-100

skipif mysql # not compatible
query I rowsort label-8022
SELECT COUNT ( * ) * + ( - 65 ) - 35
----
-100

query I rowsort
SELECT - + 66 AS col2
----
-66

query I rowsort
SELECT 82 * - 39 AS col1
----
-3198

onlyif mysql # aggregate syntax: 
query I rowsort label-8025
SELECT DISTINCT - COUNT( * ) * + 89
----
-89

skipif mysql # not compatible
query I rowsort label-8025
SELECT DISTINCT - COUNT ( * ) * + 89
----
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-8026
SELECT ALL - 86 col0, COUNT( * )
----
-86
1

skipif mysql # not compatible
query II rowsort label-8026
SELECT ALL - 86 col0, COUNT ( * )
----
-86
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8027
SELECT - - 33 - MIN( DISTINCT + 3 ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-8027
SELECT - - 33 - MIN ( DISTINCT + 3 ) AS col2
----
30

query I rowsort
SELECT + ( - + 68 ) AS col0
----
-68

query I rowsort
SELECT - ( + NULLIF ( + 35, - 27 ) ) + + 43 col1
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8030
SELECT + SUM( DISTINCT - + CAST( - - 38 AS SIGNED ) ) AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-8030
SELECT + SUM ( DISTINCT - + CAST ( - - 38 AS INTEGER ) ) AS col1
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-8031
SELECT - 26 * - COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-8031
SELECT - 26 * - COUNT ( * )
----
26

query I rowsort
SELECT - 44 + - 6 AS col0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-8033
SELECT DISTINCT + + COUNT( * ) * + + ( + + 77 ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-8033
SELECT DISTINCT + + COUNT ( * ) * + + ( + + 77 ) AS col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8034
SELECT - COUNT( * ) - 38 + - - COUNT( * )
----
-38

skipif mysql # not compatible
query I rowsort label-8034
SELECT - COUNT ( * ) - 38 + - - COUNT ( * )
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8035
SELECT DISTINCT - - MIN( - 92 ) + - CAST( - 53 AS SIGNED )
----
-39

skipif mysql # not compatible
query I rowsort label-8035
SELECT DISTINCT - - MIN ( - 92 ) + - CAST ( - 53 AS INTEGER )
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8036
SELECT CAST( NULL AS SIGNED ) + - + 3 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8036
SELECT CAST ( NULL AS INTEGER ) + - + 3 AS col0
----
NULL

query I rowsort
SELECT ALL + 26 + 35 AS col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8038
SELECT ALL SUM( ALL - 57 ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-8038
SELECT ALL SUM ( ALL - 57 ) AS col1
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-8039
SELECT MIN( DISTINCT - 33 ) AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-8039
SELECT MIN ( DISTINCT - 33 ) AS col2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-8040
SELECT + COUNT( ALL 53 )
----
1

skipif mysql # not compatible
query I rowsort label-8040
SELECT + COUNT ( ALL 53 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8041
SELECT 1 DIV - 59
----
0

skipif mysql # not compatible
query I rowsort label-8041
SELECT 1 / - 59
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8042
SELECT ALL 51 + + 51 * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8042
SELECT ALL 51 + + 51 * + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8043
SELECT ALL + - CAST( NULL AS SIGNED ) + ( - - 14 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8043
SELECT ALL + - CAST ( NULL AS INTEGER ) + ( - - 14 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8044
SELECT - 85 DIV + + 23 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-8044
SELECT - 85 / + + 23 AS col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8045
SELECT + NULLIF ( + 12, - COUNT( * ) + - + ( + COUNT( * ) ) )
----
12

skipif mysql # not compatible
query I rowsort label-8045
SELECT + NULLIF ( + 12, - COUNT ( * ) + - + ( + COUNT ( * ) ) )
----
12

query I rowsort
SELECT ( 96 ) * 73 + 59
----
7067

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8047
SELECT + CAST( + 79 AS SIGNED ) col1
----
79

skipif mysql # not compatible
query I rowsort label-8047
SELECT + CAST ( + 79 AS INTEGER ) col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8048
SELECT ALL COUNT( * ) * + COUNT( - 74 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8048
SELECT ALL COUNT ( * ) * + COUNT ( - 74 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8049
SELECT MIN( 58 )
----
58

skipif mysql # not compatible
query I rowsort label-8049
SELECT MIN ( 58 )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8050
SELECT ALL 23 * - COUNT( * ) AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-8050
SELECT ALL 23 * - COUNT ( * ) AS col0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8051
SELECT - MIN( ALL 27 ) + - 21
----
-48

skipif mysql # not compatible
query I rowsort label-8051
SELECT - MIN ( ALL 27 ) + - 21
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-8052
SELECT ALL - 14 * COUNT( * )
----
-14

skipif mysql # not compatible
query I rowsort label-8052
SELECT ALL - 14 * COUNT ( * )
----
-14

query I rowsort
SELECT 19 + - 36
----
-17

query I rowsort
SELECT ALL + ( - 34 ) * 33 AS col1
----
-1122

query I rowsort
SELECT DISTINCT + 71 * + 85 AS col0
----
6035

query I rowsort
SELECT ALL 48 * + + 45 AS col1
----
2160

onlyif mysql # aggregate syntax: 
query I rowsort label-8057
SELECT - COUNT( * ) + + - 60
----
-61

skipif mysql # not compatible
query I rowsort label-8057
SELECT - COUNT ( * ) + + - 60
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-8058
SELECT ALL - + ( + - COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8058
SELECT ALL - + ( + - COUNT ( * ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8059
SELECT DISTINCT - 40 + COUNT( * ) * + 25 AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-8059
SELECT DISTINCT - 40 + COUNT ( * ) * + 25 AS col1
----
-15

query I rowsort
SELECT DISTINCT 59 col0
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8061
SELECT + 74 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8061
SELECT + 74 / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8062
SELECT 40 DIV 82 + + + 92 + 72 AS col0
----
164

skipif mysql # not compatible
query I rowsort label-8062
SELECT 40 / 82 + + + 92 + 72 AS col0
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-8063
SELECT - 38 * - COUNT( * ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-8063
SELECT - 38 * - COUNT ( * ) AS col1
----
38

query I rowsort
SELECT - ( 79 ) * - 40
----
3160

onlyif mysql # aggregate syntax: 
query I rowsort label-8065
SELECT - + COUNT( * ) - 44 AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-8065
SELECT - + COUNT ( * ) - 44 AS col0
----
-45

query I rowsort
SELECT 69 * - 40
----
-2760

onlyif mysql # aggregate syntax: 
query I rowsort label-8067
SELECT COUNT( 61 ) * + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-8067
SELECT COUNT ( 61 ) * + COUNT ( * )
----
1

query II rowsort
SELECT - 95 AS col2, 23 col2
----
-95
23

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8069
SELECT ALL MAX( ALL - 17 ) + + ( 14 ) AS col1, - CAST( NULL AS DECIMAL )
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-8069
SELECT ALL MAX ( ALL - 17 ) + + ( 14 ) AS col1, - CAST ( NULL AS REAL )
----
-3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8070
SELECT - MAX( DISTINCT - 90 ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-8070
SELECT - MAX ( DISTINCT - 90 ) AS col2
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8071
SELECT ALL + + CAST( NULL AS SIGNED ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8071
SELECT ALL + + CAST ( NULL AS INTEGER ) + - COUNT ( * )
----
NULL

query I rowsort
SELECT 49 * - 31
----
-1519

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8073
SELECT + - ( - 43 ) * - CAST( NULL AS SIGNED ) - + 78 + + + 38 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8073
SELECT + - ( - 43 ) * - CAST ( NULL AS INTEGER ) - + 78 + + + 38 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8074
SELECT ALL + 66 DIV - 27
----
-2

skipif mysql # not compatible
query I rowsort label-8074
SELECT ALL + 66 / - 27
----
-2

query I rowsort
SELECT + 14 * + 3
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8076
SELECT + 56 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8076
SELECT + 56 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8077
SELECT CAST( NULL AS DECIMAL ) AS col0, + COUNT( * ) * - CAST( NULL AS SIGNED ) AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8077
SELECT CAST ( NULL AS REAL ) AS col0, + COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col0
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8078
SELECT DISTINCT + MAX( ALL - 72 )
----
-72

skipif mysql # not compatible
query I rowsort label-8078
SELECT DISTINCT + MAX ( ALL - 72 )
----
-72

query I rowsort
SELECT ALL - ( NULLIF ( - 79, + 47 ) )
----
79

query I rowsort
SELECT ( + 38 ) AS col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8081
SELECT ALL - - 66 + - COUNT( * ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-8081
SELECT ALL - - 66 + - COUNT ( * ) AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8082
SELECT ALL MIN( + - 11 ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-8082
SELECT ALL MIN ( + - 11 ) AS col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-8083
SELECT ALL - ( - ( + COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-8083
SELECT ALL - ( - ( + COUNT ( * ) ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8084
SELECT DISTINCT - CAST( + + 99 AS SIGNED )
----
-99

skipif mysql # not compatible
query I rowsort label-8084
SELECT DISTINCT - CAST ( + + 99 AS INTEGER )
----
-99

query I rowsort
SELECT ALL - 32 * 34
----
-1088

query I rowsort
SELECT - - 94 * 62
----
5828

onlyif mysql # aggregate syntax: 
query I rowsort label-8087
SELECT DISTINCT MIN( DISTINCT - 15 )
----
-15

skipif mysql # not compatible
query I rowsort label-8087
SELECT DISTINCT MIN ( DISTINCT - 15 )
----
-15

query I rowsort
SELECT + COALESCE ( + 77, 53 )
----
77

query I rowsort
SELECT + ( + 42 ) AS col1
----
42

query I rowsort
SELECT ALL 75 * 26 + + 46 + - + 33 AS col1
----
1963

query I rowsort
SELECT ALL ( + ( + 0 ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8092
SELECT DISTINCT + COUNT( * ) * + 86 AS col2
----
86

skipif mysql # not compatible
query I rowsort label-8092
SELECT DISTINCT + COUNT ( * ) * + 86 AS col2
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8093
SELECT ALL CAST( 99 AS SIGNED )
----
99

skipif mysql # not compatible
query I rowsort label-8093
SELECT ALL CAST ( 99 AS INTEGER )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8094
SELECT ALL - + ( - + COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8094
SELECT ALL - + ( - + COUNT ( * ) ) AS col2
----
1

query I rowsort
SELECT ALL 62 * 33 AS col0
----
2046

onlyif mysql # aggregate syntax: 
query I rowsort label-8096
SELECT ( + COUNT( * ) ) * + ( - COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8096
SELECT ( + COUNT ( * ) ) * + ( - COUNT ( * ) ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8097
SELECT + CAST( - 69 AS SIGNED ) AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-8097
SELECT + CAST ( - 69 AS INTEGER ) AS col0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-8098
SELECT DISTINCT + 3 + - 47 * - COUNT( + + 36 )
----
50

skipif mysql # not compatible
query I rowsort label-8098
SELECT DISTINCT + 3 + - 47 * - COUNT ( + + 36 )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8099
SELECT - COUNT( * ) * + 37 AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-8099
SELECT - COUNT ( * ) * + 37 AS col2
----
-37

query I rowsort
SELECT 57 + + 41 * + + 9 AS col0
----
426

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8101
SELECT ALL 91 DIV SUM( DISTINCT ( - 29 ) ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-8101
SELECT ALL 91 / SUM ( DISTINCT ( - 29 ) ) AS col0
----
-3

query I rowsort
SELECT 64 * - 37
----
-2368

onlyif mysql # aggregate syntax: 
query I rowsort label-8103
SELECT ALL SUM( ALL - 36 ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-8103
SELECT ALL SUM ( ALL - 36 ) AS col0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-8104
SELECT COALESCE ( + COUNT( DISTINCT + + 95 ), + 22 ) + - 23 AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-8104
SELECT COALESCE ( + COUNT ( DISTINCT + + 95 ), + 22 ) + - 23 AS col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-8105
SELECT - 13 * + + SUM( ALL - - 59 ) AS col0
----
-767

skipif mysql # not compatible
query I rowsort label-8105
SELECT - 13 * + + SUM ( ALL - - 59 ) AS col0
----
-767

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8106
SELECT ALL + MAX( ALL + + ( + CAST( NULL AS SIGNED ) ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8106
SELECT ALL + MAX ( ALL + + ( + CAST ( NULL AS INTEGER ) ) ) col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8107
SELECT + - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8107
SELECT + - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) col1
----
NULL

query I rowsort
SELECT - 15 * + 79 AS col1
----
-1185

onlyif mysql # aggregate syntax: 
query I rowsort label-8109
SELECT ALL + MAX( 90 )
----
90

skipif mysql # not compatible
query I rowsort label-8109
SELECT ALL + MAX ( 90 )
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8110
SELECT + MAX( - + CAST( NULL AS SIGNED ) ) * 24
----
NULL

skipif mysql # not compatible
query I rowsort label-8110
SELECT + MAX ( - + CAST ( NULL AS INTEGER ) ) * 24
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8111
SELECT ALL CASE 6 WHEN - 9 THEN + - 47 ELSE + 58 END * 45 - - COUNT( * ) + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8111
SELECT ALL CASE 6 WHEN - 9 THEN + - 47 ELSE + 58 END * 45 - - COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 82 + - 89
----
-7

query II rowsort
SELECT 73, - 14 AS col0
----
73
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-8114
SELECT + COUNT( * ) + - ( COUNT( * ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8114
SELECT + COUNT ( * ) + - ( COUNT ( * ) ) AS col0
----
0

query I rowsort
SELECT ALL 82 * 91 + + 45 AS col0
----
7507

query I rowsort
SELECT ( - 6 ) * + + 2 AS col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-8117
SELECT - - MAX( 70 )
----
70

skipif mysql # not compatible
query I rowsort label-8117
SELECT - - MAX ( 70 )
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8118
SELECT + COUNT( * ) DIV + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-8118
SELECT + COUNT ( * ) / + + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8119
SELECT ALL - + MIN( - + 57 ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-8119
SELECT ALL - + MIN ( - + 57 ) AS col1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8120
SELECT MAX( ALL + 51 )
----
51

skipif mysql # not compatible
query I rowsort label-8120
SELECT MAX ( ALL + 51 )
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8121
SELECT + COUNT( * ) + - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8121
SELECT + COUNT ( * ) + - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8122
SELECT ALL MIN( - 89 ) AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-8122
SELECT ALL MIN ( - 89 ) AS col0
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-8123
SELECT - + ( COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8123
SELECT - + ( COUNT ( * ) ) AS col0
----
-1

query I rowsort
SELECT ALL + + 87 + - 55
----
32

query I rowsort
SELECT ALL + 12 col1
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8126
SELECT CAST( NULL AS SIGNED ) * COUNT( * ) + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8126
SELECT CAST ( NULL AS INTEGER ) * COUNT ( * ) + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT ALL + ( 84 ) AS col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8128
SELECT ALL - COUNT( * ) * - + 38
----
38

skipif mysql # not compatible
query I rowsort label-8128
SELECT ALL - COUNT ( * ) * - + 38
----
38

query II rowsort
SELECT - 19 AS col2, + 74 * + 18 AS col0
----
-19
1332

query II rowsort
SELECT ALL - 36 AS col2, 48
----
-36
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8131
SELECT DISTINCT 19 + + ( ( + - COUNT( 59 ) ) )
----
18

skipif mysql # not compatible
query I rowsort label-8131
SELECT DISTINCT 19 + + ( ( + - COUNT ( 59 ) ) )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8132
SELECT - COUNT( * ) * + - 51
----
51

skipif mysql # not compatible
query I rowsort label-8132
SELECT - COUNT ( * ) * + - 51
----
51

query I rowsort
SELECT + 77 * + - 70 AS col2
----
-5390

query I rowsort
SELECT DISTINCT - - 26 AS col1
----
26

query I rowsort
SELECT ALL NULLIF ( + ( - 41 ), + 43 )
----
-41

query I rowsort
SELECT - ( + 49 ) * - - 30
----
-1470

onlyif mysql # aggregate syntax: 
query I rowsort label-8137
SELECT 80 * + 16 + - + COUNT( * )
----
1279

skipif mysql # not compatible
query I rowsort label-8137
SELECT 80 * + 16 + - + COUNT ( * )
----
1279

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8138
SELECT + ( CAST( NULL AS SIGNED ) ) * + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-8138
SELECT + ( CAST ( NULL AS INTEGER ) ) * + 80
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8139
SELECT - - 41 + 7 - + + COUNT( * ) * + CAST( - + 59 AS SIGNED ) * - - 12 AS col0
----
756

skipif mysql # not compatible
query I rowsort label-8139
SELECT - - 41 + 7 - + + COUNT ( * ) * + CAST ( - + 59 AS INTEGER ) * - - 12 AS col0
----
756

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8140
SELECT - 78 DIV - + ( - CAST( + 35 AS SIGNED ) ) AS col2, + 37 + - SUM( DISTINCT + 81 )
----
-2
-44

skipif mysql # not compatible
query II rowsort label-8140
SELECT - 78 / - + ( - CAST ( + 35 AS INTEGER ) ) AS col2, + 37 + - SUM ( DISTINCT + 81 )
----
-2
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8141
SELECT ALL - + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8141
SELECT ALL - + CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT DISTINCT 17 - + 84
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-8143
SELECT ALL - SUM( ALL 87 ) AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-8143
SELECT ALL - SUM ( ALL 87 ) AS col0
----
-87

query I rowsort
SELECT 97 * - - 50
----
4850

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8145
SELECT - 89 DIV COUNT( * ) AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-8145
SELECT - 89 / COUNT ( * ) AS col2
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-8146
SELECT COUNT( * ) - + COUNT( * ) col1
----
0

skipif mysql # not compatible
query I rowsort label-8146
SELECT COUNT ( * ) - + COUNT ( * ) col1
----
0

query I rowsort
SELECT DISTINCT + 6 * - - 9
----
54

query I rowsort
SELECT 66 * + + 16 AS col1
----
1056

query I rowsort
SELECT DISTINCT - 16 + + 3
----
-13

query II rowsort
SELECT - 36 col0, 80
----
-36
80

query II rowsort
SELECT ALL 34 AS col0, - 36 AS col2
----
34
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-8152
SELECT + - COUNT( - 70 )
----
-1

skipif mysql # not compatible
query I rowsort label-8152
SELECT + - COUNT ( - 70 )
----
-1

query I rowsort
SELECT ALL + + 29 * - 82 AS col2
----
-2378

query I rowsort
SELECT + NULLIF ( + 24, + 86 ) AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8155
SELECT DISTINCT ( - MIN( + 35 ) )
----
-35

skipif mysql # not compatible
query I rowsort label-8155
SELECT DISTINCT ( - MIN ( + 35 ) )
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8156
SELECT ALL 22 / - CAST( NULL AS SIGNED ) + - 17 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8156
SELECT ALL 22 / - CAST ( NULL AS INTEGER ) + - 17 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8157
SELECT ALL + SUM( DISTINCT - 39 ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-8157
SELECT ALL + SUM ( DISTINCT - 39 ) AS col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-8158
SELECT ALL ( - MAX( ALL 84 ) )
----
-84

skipif mysql # not compatible
query I rowsort label-8158
SELECT ALL ( - MAX ( ALL 84 ) )
----
-84

query I rowsort
SELECT - 86 + 24 col0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-8160
SELECT COUNT( * ) + + - 38 AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-8160
SELECT COUNT ( * ) + + - 38 AS col0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-8161
SELECT COUNT( * ) + + 23
----
24

skipif mysql # not compatible
query I rowsort label-8161
SELECT COUNT ( * ) + + 23
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8162
SELECT 0 + CAST( NULL AS SIGNED ) * 10 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8162
SELECT 0 + CAST ( NULL AS INTEGER ) * 10 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8163
SELECT ALL CAST( NULL AS SIGNED ) * + 99 + - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-8163
SELECT ALL CAST ( NULL AS INTEGER ) * + 99 + - 6
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8164
SELECT - - COUNT( 25 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8164
SELECT - - COUNT ( 25 ) AS col0
----
1

query I rowsort
SELECT ALL - ( + - 84 )
----
84

query I rowsort
SELECT - 3 * + 33
----
-99

query I rowsort
SELECT + ( - 43 )
----
-43

query I rowsort
SELECT 35 + 61
----
96

query I rowsort
SELECT - - 32 col2
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8170
SELECT 35 DIV - ( + COUNT( * ) ) AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-8170
SELECT 35 / - ( + COUNT ( * ) ) AS col2
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-8171
SELECT COUNT( - 85 )
----
1

skipif mysql # not compatible
query I rowsort label-8171
SELECT COUNT ( - 85 )
----
1

query II rowsort
SELECT - 61, + 64 AS col0
----
-61
64

onlyif mysql # DIV for integer division: 
query I rowsort label-8173
SELECT + + 91 DIV - + 14 col1
----
-6

skipif mysql # not compatible
query I rowsort label-8173
SELECT + + 91 / - + 14 col1
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8174
SELECT ALL + CAST( + + 88 AS SIGNED )
----
88

skipif mysql # not compatible
query I rowsort label-8174
SELECT ALL + CAST ( + + 88 AS INTEGER )
----
88

query I rowsort
SELECT ALL + - ( - 56 )
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8176
SELECT ALL CAST( + - 69 AS SIGNED )
----
-69

skipif mysql # not compatible
query I rowsort label-8176
SELECT ALL CAST ( + - 69 AS INTEGER )
----
-69

query I rowsort
SELECT DISTINCT ( - 35 ) col1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-8178
SELECT - 95 - + COUNT( * ) + + 88
----
-8

skipif mysql # not compatible
query I rowsort label-8178
SELECT - 95 - + COUNT ( * ) + + 88
----
-8

query I rowsort
SELECT 70 - - 33
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-8180
SELECT ( ( - + MIN( + + 42 ) ) ) + 73 AS col2
----
31

skipif mysql # not compatible
query I rowsort label-8180
SELECT ( ( - + MIN ( + + 42 ) ) ) + 73 AS col2
----
31

query I rowsort
SELECT 5 - - 79 AS col0
----
84

query I rowsort
SELECT 27 + - + 67
----
-40

query I rowsort
SELECT + - 96 AS col0
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8184
SELECT CAST( - - 41 AS SIGNED ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-8184
SELECT CAST ( - - 41 AS INTEGER ) AS col2
----
41

query I rowsort
SELECT 50 * 96 + + + 66
----
4866

onlyif mysql # aggregate syntax: 
query I rowsort label-8186
SELECT NULLIF ( 23, + + COUNT( * ) ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-8186
SELECT NULLIF ( 23, + + COUNT ( * ) ) AS col0
----
23

query I rowsort
SELECT DISTINCT + + ( + 45 ) col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8188
SELECT - 66 * COUNT( * ) AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-8188
SELECT - 66 * COUNT ( * ) AS col2
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8189
SELECT - COUNT( * ) * - AVG ( ALL CAST( NULL AS SIGNED ) ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8189
SELECT - COUNT ( * ) * - AVG ( ALL CAST ( NULL AS INTEGER ) ) * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 25 * - 3 + 84
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8191
SELECT COUNT( * ) * + MAX( + + 65 ) + - 70 + - 64
----
-69

skipif mysql # not compatible
query I rowsort label-8191
SELECT COUNT ( * ) * + MAX ( + + 65 ) + - 70 + - 64
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-8192
SELECT DISTINCT - 52 * - COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-8192
SELECT DISTINCT - 52 * - COUNT ( * )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8193
SELECT DISTINCT + + 74 * - COUNT( * )
----
-74

skipif mysql # not compatible
query I rowsort label-8193
SELECT DISTINCT + + 74 * - COUNT ( * )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-8194
SELECT ALL - 54 * + COUNT( * ) * - + COUNT( * ) col1
----
54

skipif mysql # not compatible
query I rowsort label-8194
SELECT ALL - 54 * + COUNT ( * ) * - + COUNT ( * ) col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8195
SELECT DISTINCT + SUM( + - 18 ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-8195
SELECT DISTINCT + SUM ( + - 18 ) AS col2
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-8196
SELECT ALL 7 DIV - - 11
----
0

skipif mysql # not compatible
query I rowsort label-8196
SELECT ALL 7 / - - 11
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8197
SELECT ALL - ( COUNT( * ) ) * COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-8197
SELECT ALL - ( COUNT ( * ) ) * COUNT ( * )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8198
SELECT + 49 * + CAST( + + 31 AS SIGNED ) AS col2
----
1519

skipif mysql # not compatible
query I rowsort label-8198
SELECT + 49 * + CAST ( + + 31 AS INTEGER ) AS col2
----
1519

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8199
SELECT - CAST( NULL AS SIGNED ) * + 72 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8199
SELECT - CAST ( NULL AS INTEGER ) * + 72 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8200
SELECT MIN( 16 ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-8200
SELECT MIN ( 16 ) AS col1
----
16

query I rowsort
SELECT DISTINCT + + ( - + 11 )
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8202
SELECT + - COUNT( * ) / - + 61 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8202
SELECT + - COUNT ( * ) / - + 61 - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + ( + - 95 ) AS col2
----
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-8204
SELECT ALL - 11 DIV - + 75 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8204
SELECT ALL - 11 / - + 75 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8205
SELECT CAST( 22 AS SIGNED ) col2
----
22

skipif mysql # not compatible
query I rowsort label-8205
SELECT CAST ( 22 AS INTEGER ) col2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8206
SELECT ALL MAX( - 0 )
----
0

skipif mysql # not compatible
query I rowsort label-8206
SELECT ALL MAX ( - 0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8207
SELECT 4 + + + COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-8207
SELECT 4 + + + COUNT ( * )
----
5

query I rowsort
SELECT ALL - ( 86 )
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-8209
SELECT SUM( DISTINCT 82 ) + 14
----
96

skipif mysql # not compatible
query I rowsort label-8209
SELECT SUM ( DISTINCT 82 ) + 14
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-8210
SELECT ALL 1, + ( COUNT( * ) )
----
1
1

skipif mysql # not compatible
query II rowsort label-8210
SELECT ALL 1, + ( COUNT ( * ) )
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8211
SELECT ALL - COUNT( 82 )
----
-1

skipif mysql # not compatible
query I rowsort label-8211
SELECT ALL - COUNT ( 82 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8212
SELECT COUNT( - 43 )
----
1

skipif mysql # not compatible
query I rowsort label-8212
SELECT COUNT ( - 43 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8213
SELECT COUNT( * ) * - - 83 AS col2
----
83

skipif mysql # not compatible
query I rowsort label-8213
SELECT COUNT ( * ) * - - 83 AS col2
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8214
SELECT + 49 * CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8214
SELECT + 49 * CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8215
SELECT ALL + SUM( ALL - - 11 )
----
11

skipif mysql # not compatible
query I rowsort label-8215
SELECT ALL + SUM ( ALL - - 11 )
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8216
SELECT - CAST( NULLIF ( + 75, + COUNT( * ) ) AS SIGNED ) * + 89 * - 3
----
20025

skipif mysql # not compatible
query I rowsort label-8216
SELECT - CAST ( NULLIF ( + 75, + COUNT ( * ) ) AS INTEGER ) * + 89 * - 3
----
20025

query I rowsort
SELECT - ( - - 20 ) AS col1
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8218
SELECT DISTINCT COUNT( * ), CAST( NULL AS SIGNED ) AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-8218
SELECT DISTINCT COUNT ( * ), CAST ( NULL AS INTEGER ) AS col2
----
1
NULL

query II rowsort
SELECT - 22, - 98 AS col0
----
-22
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-8220
SELECT ALL + COUNT( * ) * + + 76 col0
----
76

skipif mysql # not compatible
query I rowsort label-8220
SELECT ALL + COUNT ( * ) * + + 76 col0
----
76

query I rowsort
SELECT DISTINCT 72 - - ( - 53 )
----
19

query II rowsort
SELECT + 56, + 95 * 83 AS col2
----
56
7885

query II rowsort
SELECT + - 12, - 33 AS col2
----
-12
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-8224
SELECT + COUNT( * ) * + 83
----
83

skipif mysql # not compatible
query I rowsort label-8224
SELECT + COUNT ( * ) * + 83
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8225
SELECT COUNT( * ) * + + CAST( - CAST( - COUNT( * ) AS SIGNED ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-8225
SELECT COUNT ( * ) * + + CAST ( - CAST ( - COUNT ( * ) AS INTEGER ) AS INTEGER )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8226
SELECT ALL MIN( ALL - + 40 ) AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-8226
SELECT ALL MIN ( ALL - + 40 ) AS col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8227
SELECT + 44 * - COUNT( * ) AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-8227
SELECT + 44 * - COUNT ( * ) AS col1
----
-44

query I rowsort
SELECT ALL + 75 * 50 AS col0
----
3750

onlyif mysql # aggregate syntax: 
query I rowsort label-8229
SELECT ALL COUNT( * ) * + + 80 AS col0
----
80

skipif mysql # not compatible
query I rowsort label-8229
SELECT ALL COUNT ( * ) * + + 80 AS col0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8230
SELECT - 49 * + COUNT( * )
----
-49

skipif mysql # not compatible
query I rowsort label-8230
SELECT - 49 * + COUNT ( * )
----
-49

query I rowsort
SELECT ALL ( + 27 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8232
SELECT - COUNT( * ) * + - COUNT( * ) col0
----
1

skipif mysql # not compatible
query I rowsort label-8232
SELECT - COUNT ( * ) * + - COUNT ( * ) col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8233
SELECT ( CAST( NULL AS SIGNED ) ) * 55 * + + COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8233
SELECT ( CAST ( NULL AS INTEGER ) ) * 55 * + + COUNT ( * ) col2
----
NULL

query I rowsort
SELECT 87 * + 0 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8235
SELECT DISTINCT - COUNT( * ) DIV 75 col2
----
0

skipif mysql # not compatible
query I rowsort label-8235
SELECT DISTINCT - COUNT ( * ) / 75 col2
----
0

query I rowsort
SELECT DISTINCT 68 col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8237
SELECT DISTINCT - 20 + - SUM( - ( + 21 ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-8237
SELECT DISTINCT - 20 + - SUM ( - ( + 21 ) ) col2
----
1

query I rowsort
SELECT DISTINCT - 48 * 41
----
-1968

query I rowsort
SELECT ALL - 3 - + 82 AS col2
----
-85

query I rowsort
SELECT 40 * - 87 - + 4
----
-3484

query I rowsort
SELECT 58 * 86
----
4988

onlyif mysql # aggregate syntax: 
query I rowsort label-8242
SELECT COUNT( ALL + 17 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8242
SELECT COUNT ( ALL + 17 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8243
SELECT + 70 / CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8243
SELECT + 70 / CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 91 * - 26
----
2366

onlyif mysql # DIV for integer division: 
query I rowsort label-8245
SELECT - 48 DIV - 79
----
0

skipif mysql # not compatible
query I rowsort label-8245
SELECT - 48 / - 79
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8246
SELECT ( + COALESCE ( - CAST( NULL AS SIGNED ), 30 ) ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-8246
SELECT ( + COALESCE ( - CAST ( NULL AS INTEGER ), 30 ) ) AS col1
----
30

query I rowsort
SELECT ( - - 42 )
----
42

query I rowsort
SELECT - 94 * 25 col0
----
-2350

onlyif mysql # aggregate syntax: 
query I rowsort label-8249
SELECT + MIN( DISTINCT - - 21 ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-8249
SELECT + MIN ( DISTINCT - - 21 ) AS col0
----
21

query I rowsort
SELECT DISTINCT + - 34 AS col1
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8251
SELECT ALL 92 col1, CAST( - 73 AS SIGNED ) + + COUNT( * ) AS col0
----
92
-72

skipif mysql # not compatible
query II rowsort label-8251
SELECT ALL 92 col1, CAST ( - 73 AS INTEGER ) + + COUNT ( * ) AS col0
----
92
-72

query I rowsort
SELECT - 78 + 70 AS col2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8253
SELECT DISTINCT + - COUNT( + + 85 ) - - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8253
SELECT DISTINCT + - COUNT ( + + 85 ) - - COUNT ( * ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8254
SELECT DISTINCT - ( 26 ) + - - MAX( DISTINCT CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8254
SELECT DISTINCT - ( 26 ) + - - MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8255
SELECT DISTINCT 85 * + 73 AS col1, - COUNT( * )
----
6205
-1

skipif mysql # not compatible
query II rowsort label-8255
SELECT DISTINCT 85 * + 73 AS col1, - COUNT ( * )
----
6205
-1

query I rowsort
SELECT ALL + 50 + 49 AS col1
----
99

query I rowsort
SELECT + 88 - ( 54 )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8258
SELECT DISTINCT + + SUM( DISTINCT + 30 )
----
30

skipif mysql # not compatible
query I rowsort label-8258
SELECT DISTINCT + + SUM ( DISTINCT + 30 )
----
30

query I rowsort
SELECT ALL 85 * + 93 AS col1
----
7905

onlyif mysql # aggregate syntax: 
query I rowsort label-8260
SELECT - + COALESCE ( COUNT( * ), + + 45 ) + + - SUM( + 26 ) - ( 64 ) col0
----
-91

skipif mysql # not compatible
query I rowsort label-8260
SELECT - + COALESCE ( COUNT ( * ), + + 45 ) + + - SUM ( + 26 ) - ( 64 ) col0
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-8261
SELECT DISTINCT 96 DIV - 69
----
-1

skipif mysql # not compatible
query I rowsort label-8261
SELECT DISTINCT 96 / - 69
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8262
SELECT ALL - 19 - COUNT( * )
----
-20

skipif mysql # not compatible
query I rowsort label-8262
SELECT ALL - 19 - COUNT ( * )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-8263
SELECT - ( + COUNT( * ) ) + - + 28
----
-29

skipif mysql # not compatible
query I rowsort label-8263
SELECT - ( + COUNT ( * ) ) + - + 28
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8264
SELECT ALL CAST( + ( COUNT( * ) ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-8264
SELECT ALL CAST ( + ( COUNT ( * ) ) AS INTEGER )
----
1

query I rowsort
SELECT ( + ( + 75 ) )
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8266
SELECT + SUM( + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8266
SELECT + SUM ( + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8267
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col2, 48
----
NULL
48

skipif mysql # not compatible
query II rowsort label-8267
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2, 48
----
NULL
48

query I rowsort
SELECT 67 * + 43
----
2881

query I rowsort
SELECT 21 - + - 35 col0
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8270
SELECT + CAST( + 27 AS SIGNED ) DIV - + MIN( DISTINCT + 59 )
----
0

skipif mysql # not compatible
query I rowsort label-8270
SELECT + CAST ( + 27 AS INTEGER ) / - + MIN ( DISTINCT + 59 )
----
0

query I rowsort
SELECT ALL + 39 + + - 71 + 70 AS col0
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8272
SELECT - COUNT( * ) + + + 97 AS col1, CAST( NULL AS SIGNED ) AS col2
----
96
NULL

skipif mysql # not compatible
query II rowsort label-8272
SELECT - COUNT ( * ) + + + 97 AS col1, CAST ( NULL AS INTEGER ) AS col2
----
96
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8273
SELECT ALL - 88 DIV + + 80
----
-1

skipif mysql # not compatible
query I rowsort label-8273
SELECT ALL - 88 / + + 80
----
-1

query I rowsort
SELECT ALL + 89 * 77 AS col1
----
6853

onlyif mysql # aggregate syntax: 
query I rowsort label-8275
SELECT DISTINCT + COUNT( * ) + - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8275
SELECT DISTINCT + COUNT ( * ) + - COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8276
SELECT DISTINCT + 74 * COUNT( * ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-8276
SELECT DISTINCT + 74 * COUNT ( * ) AS col0
----
74

query I rowsort
SELECT DISTINCT - - 55 * + 16 AS col2
----
880

onlyif mysql # aggregate syntax: 
query I rowsort label-8278
SELECT - - ( + MAX( + 8 ) ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-8278
SELECT - - ( + MAX ( + 8 ) ) AS col1
----
8

query II rowsort
SELECT ALL 72 + - 38, - 33 * + 31 AS col0
----
34
-1023

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8280
SELECT COUNT( * ) DIV + - MAX( - - 25 )
----
0

skipif mysql # not compatible
query I rowsort label-8280
SELECT COUNT ( * ) / + - MAX ( - - 25 )
----
0

query I rowsort
SELECT DISTINCT - 46 + 62 AS col2
----
16

query I rowsort
SELECT ( + 48 ) col2
----
48

query II rowsort
SELECT DISTINCT + 88 AS col0, 98
----
88
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8284
SELECT DISTINCT MIN( ALL 24 ) + SUM( DISTINCT 56 )
----
80

skipif mysql # not compatible
query I rowsort label-8284
SELECT DISTINCT MIN ( ALL 24 ) + SUM ( DISTINCT 56 )
----
80

query I rowsort
SELECT 34 * - 32 AS col0
----
-1088

query I rowsort
SELECT 72 * + 11
----
792

onlyif mysql # aggregate syntax: 
query I rowsort label-8287
SELECT ALL 88 * + COUNT( * ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-8287
SELECT ALL 88 * + COUNT ( * ) AS col2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8288
SELECT 2 * COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-8288
SELECT 2 * COUNT ( * ) AS col2
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8289
SELECT - 82, + MAX( 22 ) DIV + - 90 DIV - COUNT( * ) AS col1
----
-82
0

skipif mysql # not compatible
query II rowsort label-8289
SELECT - 82, + MAX ( 22 ) / + - 90 / - COUNT ( * ) AS col1
----
-82
0

query I rowsort
SELECT DISTINCT - 93 * - 84
----
7812

onlyif mysql # aggregate syntax: 
query I rowsort label-8291
SELECT DISTINCT MIN( 35 )
----
35

skipif mysql # not compatible
query I rowsort label-8291
SELECT DISTINCT MIN ( 35 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8292
SELECT ALL SUM( ALL + + ( + - 24 ) )
----
-24

skipif mysql # not compatible
query I rowsort label-8292
SELECT ALL SUM ( ALL + + ( + - 24 ) )
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8293
SELECT DISTINCT + + MIN( DISTINCT - + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8293
SELECT DISTINCT + + MIN ( DISTINCT - + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT ALL ( + + 63 ) col0
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8295
SELECT ALL CAST( NULL AS SIGNED ) / - 81 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8295
SELECT ALL CAST ( NULL AS INTEGER ) / - 81 AS col0
----
NULL

query I rowsort
SELECT ALL - 77 + + + 76 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8297
SELECT 81 + - - COUNT( * ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-8297
SELECT 81 + - - COUNT ( * ) AS col0
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8298
SELECT - - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8298
SELECT - - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) col0
----
NULL

query I rowsort
SELECT ALL - ( + 53 ) AS col1
----
-53

query I rowsort
SELECT 3 * + - 91
----
-273

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8301
SELECT ALL CAST( + AVG ( ALL + 73 ) AS SIGNED )
----
73

skipif mysql # not compatible
query I rowsort label-8301
SELECT ALL CAST ( + AVG ( ALL + 73 ) AS INTEGER )
----
73

query I rowsort
SELECT - 65 + + 47
----
-18

query I rowsort
SELECT ALL - 59 + 98
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8304
SELECT ALL - ( CAST( NULL AS SIGNED ) ) / - 2 * + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-8304
SELECT ALL - ( CAST ( NULL AS INTEGER ) ) / - 2 * + 28
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8305
SELECT ALL COUNT( * ) * + 14
----
14

skipif mysql # not compatible
query I rowsort label-8305
SELECT ALL COUNT ( * ) * + 14
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8306
SELECT DISTINCT - 53 * COUNT( * )
----
-53

skipif mysql # not compatible
query I rowsort label-8306
SELECT DISTINCT - 53 * COUNT ( * )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-8307
SELECT + - 57 * + COUNT( * ) AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-8307
SELECT + - 57 * + COUNT ( * ) AS col0
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8308
SELECT DISTINCT + 81 DIV + - COUNT( * ) + + COUNT( * ) + + ( - 8 ) AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-8308
SELECT DISTINCT + 81 / + - COUNT ( * ) + + COUNT ( * ) + + ( - 8 ) AS col1
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-8309
SELECT + COUNT( - 41 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8309
SELECT + COUNT ( - 41 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8310
SELECT - + CAST( - COUNT( * ) AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8310
SELECT - + CAST ( - COUNT ( * ) AS INTEGER ) AS col1
----
1

query I rowsort
SELECT ALL + 66 + - 66
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8312
SELECT DISTINCT - CAST( + 50 AS SIGNED )
----
-50

skipif mysql # not compatible
query I rowsort label-8312
SELECT DISTINCT - CAST ( + 50 AS INTEGER )
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-8313
SELECT DISTINCT 59 DIV - + 70 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8313
SELECT DISTINCT 59 / - + 70 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8314
SELECT - 30 + - 48 + + 32 + + COUNT( * )
----
-45

skipif mysql # not compatible
query I rowsort label-8314
SELECT - 30 + - 48 + + 32 + + COUNT ( * )
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8315
SELECT ( + + CAST( - 78 AS SIGNED ) )
----
-78

skipif mysql # not compatible
query I rowsort label-8315
SELECT ( + + CAST ( - 78 AS INTEGER ) )
----
-78

query I rowsort
SELECT + ( 72 ) AS col0
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-8317
SELECT ALL - + 48 DIV ( - 43 )
----
1

skipif mysql # not compatible
query I rowsort label-8317
SELECT ALL - + 48 / ( - 43 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8318
SELECT + + CAST( - 97 AS SIGNED ) * + - CAST( COUNT( * ) AS SIGNED ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-8318
SELECT + + CAST ( - 97 AS INTEGER ) * + - CAST ( COUNT ( * ) AS INTEGER ) AS col1
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8319
SELECT - CAST( + ( + COUNT( * ) ) AS SIGNED ) AS col0, COUNT( ALL - + 64 )
----
-1
1

skipif mysql # not compatible
query II rowsort label-8319
SELECT - CAST ( + ( + COUNT ( * ) ) AS INTEGER ) AS col0, COUNT ( ALL - + 64 )
----
-1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8320
SELECT DISTINCT NULLIF ( MIN( - - 47 ), + 94 )
----
47

skipif mysql # not compatible
query I rowsort label-8320
SELECT DISTINCT NULLIF ( MIN ( - - 47 ), + 94 )
----
47

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8321
SELECT DISTINCT - AVG ( ALL CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8321
SELECT DISTINCT - AVG ( ALL CAST ( NULL AS REAL ) ) AS col0
----
NULL

query I rowsort
SELECT ALL + 38 - + + 8 AS col0
----
30

query I rowsort
SELECT + ( 9 ) AS col2
----
9

query I rowsort
SELECT ALL + 69 + + 95
----
164

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8325
SELECT - 6 AS col1, 24 + + CAST( ( - + 79 ) AS SIGNED )
----
-6
-55

skipif mysql # not compatible
query II rowsort label-8325
SELECT - 6 AS col1, 24 + + CAST ( ( - + 79 ) AS INTEGER )
----
-6
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-8326
SELECT DISTINCT - + SUM( ALL - 55 ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-8326
SELECT DISTINCT - + SUM ( ALL - 55 ) AS col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8327
SELECT ALL - SUM( + 50 )
----
-50

skipif mysql # not compatible
query I rowsort label-8327
SELECT ALL - SUM ( + 50 )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-8328
SELECT ALL - - SUM( - 78 )
----
-78

skipif mysql # not compatible
query I rowsort label-8328
SELECT ALL - - SUM ( - 78 )
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8329
SELECT ALL COUNT( * ) + + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8329
SELECT ALL COUNT ( * ) + + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8330
SELECT MAX( ALL + 23 ) DIV - 34
----
0

skipif mysql # not compatible
query I rowsort label-8330
SELECT MAX ( ALL + 23 ) / - 34
----
0

query I rowsort
SELECT 93 * 25 AS col1
----
2325

onlyif mysql # aggregate syntax: 
query I rowsort label-8332
SELECT - MAX( DISTINCT 16 )
----
-16

skipif mysql # not compatible
query I rowsort label-8332
SELECT - MAX ( DISTINCT 16 )
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8333
SELECT ALL CAST( NULL AS SIGNED ) * - 50 + - 83 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8333
SELECT ALL CAST ( NULL AS INTEGER ) * - 50 + - 83 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + + 32
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8335
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-8335
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) + COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8336
SELECT + - 65 + + ( - COUNT( * ) )
----
-66

skipif mysql # not compatible
query I rowsort label-8336
SELECT + - 65 + + ( - COUNT ( * ) )
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-8337
SELECT - 4 + COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-8337
SELECT - 4 + COUNT ( * )
----
-3

query I rowsort
SELECT + ( - 20 )
----
-20

query I rowsort
SELECT DISTINCT - + 51 AS col0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8340
SELECT ALL - ( + COALESCE ( COUNT( * ), - 80 * + 68, 61 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8340
SELECT ALL - ( + COALESCE ( COUNT ( * ), - 80 * + 68, 61 ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8341
SELECT + COUNT( * ) * - - ( - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8341
SELECT + COUNT ( * ) * - - ( - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query II rowsort
SELECT + 78, - 51 AS col0
----
78
-51

query I rowsort
SELECT 22 + 37
----
59

query I rowsort
SELECT DISTINCT 76 + + - 13 AS col2
----
63

query II rowsort
SELECT - - 16 AS col0, 2 * - 3 AS col2
----
16
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8346
SELECT - + ( + - COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8346
SELECT - + ( + - COUNT ( * ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8347
SELECT 93 * - + COUNT( + 64 ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-8347
SELECT 93 * - + COUNT ( + 64 ) AS col0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-8348
SELECT DISTINCT + SUM( - 57 )
----
-57

skipif mysql # not compatible
query I rowsort label-8348
SELECT DISTINCT + SUM ( - 57 )
----
-57

query II rowsort
SELECT ALL + 10 AS col2, + 29 AS col1
----
10
29

onlyif mysql # aggregate syntax: 
query II rowsort label-8350
SELECT + COUNT( * ), - 23 AS col2
----
1
-23

skipif mysql # not compatible
query II rowsort label-8350
SELECT + COUNT ( * ), - 23 AS col2
----
1
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-8351
SELECT - - 76 DIV - 79
----
0

skipif mysql # not compatible
query I rowsort label-8351
SELECT - - 76 / - 79
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8352
SELECT + - 65 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8352
SELECT + - 65 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8353
SELECT - + COUNT( * ) DIV + - 96 - - + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-8353
SELECT - + COUNT ( * ) / + - 96 - - + COUNT ( * )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8354
SELECT - 0 DIV + - 21 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8354
SELECT - 0 / + - 21 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8355
SELECT + MIN( DISTINCT - - 67 ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-8355
SELECT + MIN ( DISTINCT - - 67 ) AS col1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8356
SELECT + MAX( - 34 )
----
-34

skipif mysql # not compatible
query I rowsort label-8356
SELECT + MAX ( - 34 )
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-8357
SELECT + ( 87 ) * + COUNT( * ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-8357
SELECT + ( 87 ) * + COUNT ( * ) AS col2
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8358
SELECT ALL ( - - COUNT( * ) ) * CAST( - 36 AS SIGNED ) col1
----
-36

skipif mysql # not compatible
query I rowsort label-8358
SELECT ALL ( - - COUNT ( * ) ) * CAST ( - 36 AS INTEGER ) col1
----
-36

query I rowsort
SELECT DISTINCT - ( - 22 )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8360
SELECT ALL - COUNT( DISTINCT + - 57 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8360
SELECT ALL - COUNT ( DISTINCT + - 57 ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8361
SELECT ALL - CAST( MAX( DISTINCT + - 37 ) AS SIGNED ) * + + COUNT( * ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-8361
SELECT ALL - CAST ( MAX ( DISTINCT + - 37 ) AS INTEGER ) * + + COUNT ( * ) AS col1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-8362
SELECT DISTINCT - COUNT( * ) * + - 23
----
23

skipif mysql # not compatible
query I rowsort label-8362
SELECT DISTINCT - COUNT ( * ) * + - 23
----
23

query I rowsort
SELECT - + ( 4 ) col2
----
-4

query I rowsort
SELECT ALL ( - + 66 ) AS col2
----
-66

query I rowsort
SELECT ALL - 30 * + + 88 AS col2
----
-2640

query I rowsort
SELECT - 35 + 84 AS col2
----
49

query I rowsort
SELECT ( - 14 ) AS col2
----
-14

query I rowsort
SELECT ALL 98 * - 21
----
-2058

onlyif mysql # aggregate syntax: 
query II rowsort label-8369
SELECT 87 AS col1, - COUNT( * )
----
87
-1

skipif mysql # not compatible
query II rowsort label-8369
SELECT 87 AS col1, - COUNT ( * )
----
87
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8370
SELECT DISTINCT COALESCE ( 30, SUM( DISTINCT + - 31 ) ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-8370
SELECT DISTINCT COALESCE ( 30, SUM ( DISTINCT + - 31 ) ) AS col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8371
SELECT ALL NULLIF ( + COUNT( * ), - + 24 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8371
SELECT ALL NULLIF ( + COUNT ( * ), - + 24 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8372
SELECT 96 col2, COUNT( * ) * 90 AS col1
----
96
90

skipif mysql # not compatible
query II rowsort label-8372
SELECT 96 col2, COUNT ( * ) * 90 AS col1
----
96
90

query I rowsort
SELECT 37 + - 74 AS col2
----
-37

query II rowsort
SELECT DISTINCT 5 * + - 31 AS col0, + 15 AS col1
----
-155
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8375
SELECT DISTINCT - 95 * + COUNT( * )
----
-95

skipif mysql # not compatible
query I rowsort label-8375
SELECT DISTINCT - 95 * + COUNT ( * )
----
-95

query I rowsort
SELECT DISTINCT + + 71 + + 98
----
169

query I rowsort
SELECT ALL - COALESCE ( 10, 4 )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8378
SELECT - CASE - + 78 WHEN + COUNT( * ) * - - 14 THEN - - ( COUNT( * ) ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8378
SELECT - CASE - + 78 WHEN + COUNT ( * ) * - - 14 THEN - - ( COUNT ( * ) ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - - 72 col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8380
SELECT - SUM( ALL - 0 )
----
0

skipif mysql # not compatible
query I rowsort label-8380
SELECT - SUM ( ALL - 0 )
----
0

query I rowsort
SELECT DISTINCT 43 * + 29 AS col0
----
1247

query I rowsort
SELECT + 84 + - 61 * - + ( - + ( - 57 ) )
----
3561

onlyif mysql # aggregate syntax: 
query I rowsort label-8383
SELECT ALL + SUM( + 27 ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-8383
SELECT ALL + SUM ( + 27 ) AS col1
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8384
SELECT DISTINCT - 22 DIV - 82 DIV + COUNT( * ) col2
----
0

skipif mysql # not compatible
query I rowsort label-8384
SELECT DISTINCT - 22 / - 82 / + COUNT ( * ) col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8385
SELECT DISTINCT ( - SUM( ALL + 19 ) )
----
-19

skipif mysql # not compatible
query I rowsort label-8385
SELECT DISTINCT ( - SUM ( ALL + 19 ) )
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-8386
SELECT - COUNT( ALL + 22 ) AS col0, - COUNT( * )
----
-1
-1

skipif mysql # not compatible
query II rowsort label-8386
SELECT - COUNT ( ALL + 22 ) AS col0, - COUNT ( * )
----
-1
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8387
SELECT DISTINCT 16 + + CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8387
SELECT DISTINCT 16 + + CAST ( NULL AS REAL ) col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8388
SELECT ALL + CAST( - - 9 AS SIGNED ) col1
----
9

skipif mysql # not compatible
query I rowsort label-8388
SELECT ALL + CAST ( - - 9 AS INTEGER ) col1
----
9

query I rowsort
SELECT ALL + + 84 AS col2
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8390
SELECT + 12 * - CAST( + + 67 AS SIGNED ) AS col0
----
-804

skipif mysql # not compatible
query I rowsort label-8390
SELECT + 12 * - CAST ( + + 67 AS INTEGER ) AS col0
----
-804

onlyif mysql # aggregate syntax: 
query II rowsort label-8391
SELECT COUNT( * ), - 83 AS col0
----
1
-83

skipif mysql # not compatible
query II rowsort label-8391
SELECT COUNT ( * ), - 83 AS col0
----
1
-83

query I rowsort
SELECT 6 - - 53 AS col2
----
59

query I rowsort
SELECT - ( + + 94 ) AS col1
----
-94

query I rowsort
SELECT DISTINCT - + 41 AS col2
----
-41

query I rowsort
SELECT DISTINCT - ( - 12 ) AS col1
----
12

query I rowsort
SELECT DISTINCT 41 * - 91 AS col0
----
-3731

query I rowsort
SELECT DISTINCT 99 + + - 29
----
70

query II rowsort
SELECT - 53 AS col0, + 96 + + 55 AS col2
----
-53
151

onlyif mysql # aggregate syntax: 
query I rowsort label-8399
SELECT + COUNT( * ) - + ( - 8 ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-8399
SELECT + COUNT ( * ) - + ( - 8 ) AS col1
----
9

query II rowsort
SELECT 37 AS col2, + 22
----
37
22

query I rowsort
SELECT DISTINCT ( - + 76 )
----
-76

query I rowsort
SELECT ( + ( - - ( 70 ) ) ) AS col0
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-8403
SELECT - - 13, SUM( DISTINCT - - 74 ) col1
----
13
74

skipif mysql # not compatible
query II rowsort label-8403
SELECT - - 13, SUM ( DISTINCT - - 74 ) col1
----
13
74

query I rowsort
SELECT 24 * - 80
----
-1920

onlyif mysql # aggregate syntax: 
query I rowsort label-8405
SELECT ALL MIN( ALL - 75 )
----
-75

skipif mysql # not compatible
query I rowsort label-8405
SELECT ALL MIN ( ALL - 75 )
----
-75

query I rowsort
SELECT ALL + ( 81 ) AS col1
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8407
SELECT + - CAST( NULLIF ( 7, CAST( NULL AS SIGNED ) ) AS SIGNED ) + COUNT( * )
----
-6

skipif mysql # not compatible
query I rowsort label-8407
SELECT + - CAST ( NULLIF ( 7, CAST ( NULL AS INTEGER ) ) AS INTEGER ) + COUNT ( * )
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-8408
SELECT ALL COUNT( * ), ( + + 4 ) col0
----
1
4

skipif mysql # not compatible
query II rowsort label-8408
SELECT ALL COUNT ( * ), ( + + 4 ) col0
----
1
4

onlyif mysql # aggregate syntax: 
query II rowsort label-8409
SELECT + 9 AS col2, COUNT( * ) AS col1
----
9
1

skipif mysql # not compatible
query II rowsort label-8409
SELECT + 9 AS col2, COUNT ( * ) AS col1
----
9
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8410
SELECT DISTINCT - 12 AS col2, COUNT( * )
----
-12
1

skipif mysql # not compatible
query II rowsort label-8410
SELECT DISTINCT - 12 AS col2, COUNT ( * )
----
-12
1

query I rowsort
SELECT ALL - - 99
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8412
SELECT ALL - 69 * COUNT( * ) + - 48
----
-117

skipif mysql # not compatible
query I rowsort label-8412
SELECT ALL - 69 * COUNT ( * ) + - 48
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-8413
SELECT + 25 * 73 + NULLIF ( - COUNT( * ), - + 72 * + 46 )
----
1824

skipif mysql # not compatible
query I rowsort label-8413
SELECT + 25 * 73 + NULLIF ( - COUNT ( * ), - + 72 * + 46 )
----
1824

onlyif mysql # aggregate syntax: 
query I rowsort label-8414
SELECT + 6 - - ( + COUNT( * ) ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-8414
SELECT + 6 - - ( + COUNT ( * ) ) AS col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8415
SELECT + MIN( - 6 )
----
-6

skipif mysql # not compatible
query I rowsort label-8415
SELECT + MIN ( - 6 )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8416
SELECT 10 + - ( COUNT( * ) )
----
9

skipif mysql # not compatible
query I rowsort label-8416
SELECT 10 + - ( COUNT ( * ) )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8417
SELECT DISTINCT COUNT( * ) * + 53
----
53

skipif mysql # not compatible
query I rowsort label-8417
SELECT DISTINCT COUNT ( * ) * + 53
----
53

query I rowsort
SELECT - 57 * + 8 AS col1
----
-456

query I rowsort
SELECT ALL ( + - 29 ) AS col1
----
-29

query I rowsort
SELECT - 17 + + 28 + + + ( 84 ) * + 92
----
7739

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8421
SELECT ALL + COUNT( 22 ) DIV + 3 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8421
SELECT ALL + COUNT ( 22 ) / + 3 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8422
SELECT + - 28, CAST( NULL AS SIGNED ) AS col2
----
-28
NULL

skipif mysql # not compatible
query II rowsort label-8422
SELECT + - 28, CAST ( NULL AS INTEGER ) AS col2
----
-28
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8423
SELECT ALL ( - - COUNT( * ) ), COUNT( * ) AS col0
----
1
1

skipif mysql # not compatible
query II rowsort label-8423
SELECT ALL ( - - COUNT ( * ) ), COUNT ( * ) AS col0
----
1
1

query I rowsort
SELECT DISTINCT ( + 8 )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8425
SELECT - SUM( - 7 ) + - 46 * 6 + ( - - 28 )
----
-241

skipif mysql # not compatible
query I rowsort label-8425
SELECT - SUM ( - 7 ) + - 46 * 6 + ( - - 28 )
----
-241

onlyif mysql # aggregate syntax: 
query I rowsort label-8426
SELECT ALL - COUNT( * ) * + - 27 AS col1
----
27

skipif mysql # not compatible
query I rowsort label-8426
SELECT ALL - COUNT ( * ) * + - 27 AS col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8427
SELECT + COUNT( - 49 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8427
SELECT + COUNT ( - 49 ) AS col2
----
1

query I rowsort
SELECT ALL - - 9 AS col0
----
9

query I rowsort
SELECT ALL - 42 + 68
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8430
SELECT COUNT( * ) * + 23 + + + 49 col1
----
72

skipif mysql # not compatible
query I rowsort label-8430
SELECT COUNT ( * ) * + 23 + + + 49 col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8431
SELECT 34 + COUNT( * ) col2
----
35

skipif mysql # not compatible
query I rowsort label-8431
SELECT 34 + COUNT ( * ) col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8432
SELECT - 81 + - COUNT( * )
----
-82

skipif mysql # not compatible
query I rowsort label-8432
SELECT - 81 + - COUNT ( * )
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-8433
SELECT + + 42 + - MIN( ALL + 88 )
----
-46

skipif mysql # not compatible
query I rowsort label-8433
SELECT + + 42 + - MIN ( ALL + 88 )
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8434
SELECT DISTINCT + CAST( - - CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8434
SELECT DISTINCT + CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

query I rowsort
SELECT - - 26 + - 25 + + + 69 AS col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8436
SELECT + COUNT( ALL + 85 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8436
SELECT + COUNT ( ALL + 85 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8437
SELECT + COUNT( * ) * 84 AS col1
----
84

skipif mysql # not compatible
query I rowsort label-8437
SELECT + COUNT ( * ) * 84 AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8438
SELECT - MIN( + 43 )
----
-43

skipif mysql # not compatible
query I rowsort label-8438
SELECT - MIN ( + 43 )
----
-43

query I rowsort
SELECT + ( - 15 ) * - 8
----
120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8440
SELECT + ( CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8440
SELECT + ( CAST ( NULL AS INTEGER ) ) col0
----
NULL

query I rowsort
SELECT ( 99 ) AS col0
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-8442
SELECT ALL 99 DIV 75 + + 95 AS col0
----
96

skipif mysql # not compatible
query I rowsort label-8442
SELECT ALL 99 / 75 + + 95 AS col0
----
96

query I rowsort
SELECT - 24 * 97 AS col2
----
-2328

query I rowsort
SELECT + 81 + + 56
----
137

query I rowsort
SELECT 27 + - 18
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8446
SELECT - - ( ( COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-8446
SELECT - - ( ( COUNT ( * ) ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8447
SELECT - 45 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8447
SELECT - 45 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8448
SELECT CAST( + 82 AS SIGNED )
----
82

skipif mysql # not compatible
query I rowsort label-8448
SELECT CAST ( + 82 AS INTEGER )
----
82

query I rowsort
SELECT DISTINCT 0 * + 72
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8450
SELECT CAST( + + 81 AS SIGNED ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-8450
SELECT CAST ( + + 81 AS INTEGER ) AS col2
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8451
SELECT DISTINCT - + 6 + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8451
SELECT DISTINCT - + 6 + CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT DISTINCT - ( + - 55 ) col1
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-8453
SELECT ALL + COUNT( * ) AS col1, - 95 AS col1
----
1
-95

skipif mysql # not compatible
query II rowsort label-8453
SELECT ALL + COUNT ( * ) AS col1, - 95 AS col1
----
1
-95

query I rowsort
SELECT - ( 64 )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-8455
SELECT ALL COUNT( * ) * + 26 AS col0
----
26

skipif mysql # not compatible
query I rowsort label-8455
SELECT ALL COUNT ( * ) * + 26 AS col0
----
26

query I rowsort
SELECT ( + + 48 ) AS col0
----
48

query I rowsort
SELECT DISTINCT + ( ( + 31 ) )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8458
SELECT - 21 * + + ( - COUNT( * ) )
----
21

skipif mysql # not compatible
query I rowsort label-8458
SELECT - 21 * + + ( - COUNT ( * ) )
----
21

query II rowsort
SELECT DISTINCT 24 * + 46 AS col2, + ( - 43 ) * - 33
----
1104
1419

query I rowsort
SELECT ALL - 58 - + 53
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-8461
SELECT + - 53 - + COUNT( * )
----
-54

skipif mysql # not compatible
query I rowsort label-8461
SELECT + - 53 - + COUNT ( * )
----
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-8462
SELECT MAX( DISTINCT + 46 ), ( + 35 ) AS col0
----
46
35

skipif mysql # not compatible
query II rowsort label-8462
SELECT MAX ( DISTINCT + 46 ), ( + 35 ) AS col0
----
46
35

query I rowsort
SELECT ALL + 90 + + 83
----
173

onlyif mysql # DIV for integer division: 
query I rowsort label-8464
SELECT 79 DIV 81 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8464
SELECT 79 / 81 AS col2
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8465
SELECT ALL + ( - - CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8465
SELECT ALL + ( - - CAST ( NULL AS REAL ) ) AS col1
----
NULL

query I rowsort
SELECT ( + 53 ) * 31
----
1643

query I rowsort
SELECT 11 * 62
----
682

onlyif mysql # aggregate syntax: 
query I rowsort label-8468
SELECT - SUM( 70 ) col2
----
-70

skipif mysql # not compatible
query I rowsort label-8468
SELECT - SUM ( 70 ) col2
----
-70

query I rowsort
SELECT - 99 * 38
----
-3762

query I rowsort
SELECT - 16 - - 27
----
11

query I rowsort
SELECT COALESCE ( + 19, - 51 )
----
19

query I rowsort
SELECT ALL + - 75 col0
----
-75

query II rowsort
SELECT 35 AS col2, - 88
----
35
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8474
SELECT - CAST( NULL AS SIGNED ) - - - 57
----
NULL

skipif mysql # not compatible
query I rowsort label-8474
SELECT - CAST ( NULL AS INTEGER ) - - - 57
----
NULL

query I rowsort
SELECT ALL ( 15 ) col0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8476
SELECT ALL CAST( + + 5 AS SIGNED )
----
5

skipif mysql # not compatible
query I rowsort label-8476
SELECT ALL CAST ( + + 5 AS INTEGER )
----
5

query I rowsort
SELECT DISTINCT ( + + 56 )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8478
SELECT DISTINCT + 24 * COUNT( * ) col0
----
24

skipif mysql # not compatible
query I rowsort label-8478
SELECT DISTINCT + 24 * COUNT ( * ) col0
----
24

query II rowsort
SELECT + + 49 AS col2, 12 + 21 + - 51
----
49
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-8480
SELECT DISTINCT 69 DIV 95
----
0

skipif mysql # not compatible
query I rowsort label-8480
SELECT DISTINCT 69 / 95
----
0

query I rowsort
SELECT 35 + + 40 AS col0
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8482
SELECT 53 * - - COUNT( * ) DIV COUNT( * ) DIV - COUNT( * ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-8482
SELECT 53 * - - COUNT ( * ) / COUNT ( * ) / - COUNT ( * ) AS col2
----
-53

query II rowsort
SELECT ALL + 49 AS col2, - 53 * + 97
----
49
-5141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8484
SELECT DISTINCT ( - CAST( - COUNT( * ) AS SIGNED ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8484
SELECT DISTINCT ( - CAST ( - COUNT ( * ) AS INTEGER ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8485
SELECT - ( COUNT( * ) ) + + + 13 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-8485
SELECT - ( COUNT ( * ) ) + + + 13 AS col0
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8486
SELECT + 28 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8486
SELECT + 28 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL ( + COALESCE ( + 73, + - 63 ) )
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8488
SELECT - CAST( + ( - + 65 ) AS SIGNED ) * - 17
----
-1105

skipif mysql # not compatible
query I rowsort label-8488
SELECT - CAST ( + ( - + 65 ) AS INTEGER ) * - 17
----
-1105

onlyif mysql # aggregate syntax: 
query I rowsort label-8489
SELECT COUNT( * ) * - - 58
----
58

skipif mysql # not compatible
query I rowsort label-8489
SELECT COUNT ( * ) * - - 58
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8490
SELECT ALL COUNT( * ) * - + 38
----
-38

skipif mysql # not compatible
query I rowsort label-8490
SELECT ALL COUNT ( * ) * - + 38
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8491
SELECT 87 - + + COUNT( * ) DIV - 66
----
87

skipif mysql # not compatible
query I rowsort label-8491
SELECT 87 - + + COUNT ( * ) / - 66
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8492
SELECT ALL COUNT( * ) + + + 93
----
94

skipif mysql # not compatible
query I rowsort label-8492
SELECT ALL COUNT ( * ) + + + 93
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8493
SELECT ALL + COUNT( * ) - CAST( NULL AS SIGNED ) + - - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8493
SELECT ALL + COUNT ( * ) - CAST ( NULL AS INTEGER ) + - - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8494
SELECT 48 * COUNT( * ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-8494
SELECT 48 * COUNT ( * ) AS col1
----
48

query I rowsort
SELECT DISTINCT - 75 * - - 42 AS col0
----
-3150

query I rowsort
SELECT + 82 * 14 + - + 12 AS col2
----
1136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8497
SELECT + MAX( + CAST( - 59 AS SIGNED ) ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-8497
SELECT + MAX ( + CAST ( - 59 AS INTEGER ) ) AS col2
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-8498
SELECT ALL + COUNT( + 68 )
----
1

skipif mysql # not compatible
query I rowsort label-8498
SELECT ALL + COUNT ( + 68 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8499
SELECT - ( - 9 ) + - - COUNT( * )
----
10

skipif mysql # not compatible
query I rowsort label-8499
SELECT - ( - 9 ) + - - COUNT ( * )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8500
SELECT - + COUNT( * ) * COUNT( * ) * + 15 AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-8500
SELECT - + COUNT ( * ) * COUNT ( * ) * + 15 AS col1
----
-15

query I rowsort
SELECT ( - 35 ) AS col1
----
-35

query I rowsort
SELECT DISTINCT + 98 col1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8503
SELECT + - COUNT( * ) * - - NULLIF ( - - 33, + 43 ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-8503
SELECT + - COUNT ( * ) * - - NULLIF ( - - 33, + 43 ) AS col0
----
-33

query I rowsort
SELECT DISTINCT 81 * - 87
----
-7047

query I rowsort
SELECT ALL 55 + + 42 AS col0
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8506
SELECT - + COUNT( * ) DIV - + 75
----
0

skipif mysql # not compatible
query I rowsort label-8506
SELECT - + COUNT ( * ) / - + 75
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8507
SELECT DISTINCT - MIN( DISTINCT 44 )
----
-44

skipif mysql # not compatible
query I rowsort label-8507
SELECT DISTINCT - MIN ( DISTINCT 44 )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-8508
SELECT ALL - - COUNT( * ) * + - 54
----
-54

skipif mysql # not compatible
query I rowsort label-8508
SELECT ALL - - COUNT ( * ) * + - 54
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-8509
SELECT COUNT( * ) + 64 AS col1
----
65

skipif mysql # not compatible
query I rowsort label-8509
SELECT COUNT ( * ) + 64 AS col1
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-8510
SELECT ALL - 92 * 78 DIV - 90 AS col0
----
79

skipif mysql # not compatible
query I rowsort label-8510
SELECT ALL - 92 * 78 / - 90 AS col0
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-8511
SELECT ALL 68 DIV + ( 55 )
----
1

skipif mysql # not compatible
query I rowsort label-8511
SELECT ALL 68 / + ( 55 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8512
SELECT + ( - COUNT( * ) ), - COUNT( * ) AS col0
----
-1
-1

skipif mysql # not compatible
query II rowsort label-8512
SELECT + ( - COUNT ( * ) ), - COUNT ( * ) AS col0
----
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8513
SELECT + - 49 * ( COUNT( * ) ) + - 89
----
-138

skipif mysql # not compatible
query I rowsort label-8513
SELECT + - 49 * ( COUNT ( * ) ) + - 89
----
-138

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8514
SELECT ALL + - 51 + COUNT( * ) DIV - COUNT( * ) AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-8514
SELECT ALL + - 51 + COUNT ( * ) / - COUNT ( * ) AS col2
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-8515
SELECT DISTINCT + 51 + COUNT( 96 )
----
52

skipif mysql # not compatible
query I rowsort label-8515
SELECT DISTINCT + 51 + COUNT ( 96 )
----
52

query II rowsort
SELECT - ( - 25 ), - 9 AS col2
----
25
-9

query I rowsort
SELECT ALL - + 4 * + 49 AS col2
----
-196

onlyif mysql # aggregate syntax: 
query I rowsort label-8518
SELECT ALL SUM( ALL - 98 )
----
-98

skipif mysql # not compatible
query I rowsort label-8518
SELECT ALL SUM ( ALL - 98 )
----
-98

query I rowsort
SELECT - 75 + + 93
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8520
SELECT + COUNT( * ) + + 98 AS col1
----
99

skipif mysql # not compatible
query I rowsort label-8520
SELECT + COUNT ( * ) + + 98 AS col1
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8521
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - + 35 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8521
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - + 35 col1
----
NULL

query I rowsort
SELECT - 87 + 43
----
-44

query I rowsort
SELECT - 51 * + - 73
----
3723

onlyif mysql # aggregate syntax: 
query I rowsort label-8524
SELECT + NULLIF ( COUNT( * ), - - COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8524
SELECT + NULLIF ( COUNT ( * ), - - COUNT ( * ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8525
SELECT ALL 10 + + COUNT( * ) + - CAST( NULL AS SIGNED ) + - + 78 * - 91 AS col2, - COUNT( ALL - 65 )
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-8525
SELECT ALL 10 + + COUNT ( * ) + - CAST ( NULL AS INTEGER ) + - + 78 * - 91 AS col2, - COUNT ( ALL - 65 )
----
NULL
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8526
SELECT COUNT( * ) + - COUNT( * ) DIV 96 col0
----
1

skipif mysql # not compatible
query I rowsort label-8526
SELECT COUNT ( * ) + - COUNT ( * ) / 96 col0
----
1

query I rowsort
SELECT ALL - - 70 col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8528
SELECT ALL + + SUM( DISTINCT + + 22 ) * 33 AS col0
----
726

skipif mysql # not compatible
query I rowsort label-8528
SELECT ALL + + SUM ( DISTINCT + + 22 ) * 33 AS col0
----
726

onlyif mysql # aggregate syntax: 
query I rowsort label-8529
SELECT COUNT( * ) + + COUNT( * ) + + 98
----
100

skipif mysql # not compatible
query I rowsort label-8529
SELECT COUNT ( * ) + + COUNT ( * ) + + 98
----
100

query I rowsort
SELECT 67 + - 0
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8531
SELECT - SUM( ALL - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8531
SELECT - SUM ( ALL - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8532
SELECT DISTINCT - + COUNT( * ) DIV + + 81 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8532
SELECT DISTINCT - + COUNT ( * ) / + + 81 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8533
SELECT + COUNT( * ) AS col1, + 56
----
1
56

skipif mysql # not compatible
query II rowsort label-8533
SELECT + COUNT ( * ) AS col1, + 56
----
1
56

query I rowsort
SELECT DISTINCT ( + 77 ) AS col1
----
77

query I rowsort
SELECT + 88 * - 17
----
-1496

query I rowsort
SELECT DISTINCT + + 50 col2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8537
SELECT + 42 * + - COUNT( * )
----
-42

skipif mysql # not compatible
query I rowsort label-8537
SELECT + 42 * + - COUNT ( * )
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-8538
SELECT ALL + MAX( 3 )
----
3

skipif mysql # not compatible
query I rowsort label-8538
SELECT ALL + MAX ( 3 )
----
3

query I rowsort
SELECT - - ( 78 )
----
78

query I rowsort
SELECT ALL - 97 + - - 43
----
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8541
SELECT SUM( + 99 ) - COUNT( * ) DIV - 39
----
99

skipif mysql # not compatible
query I rowsort label-8541
SELECT SUM ( + 99 ) - COUNT ( * ) / - 39
----
99

query I rowsort
SELECT 31 * - + 16
----
-496

onlyif mysql # aggregate syntax: 
query I rowsort label-8543
SELECT SUM( ALL + - 23 ) AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-8543
SELECT SUM ( ALL + - 23 ) AS col0
----
-23

query I rowsort
SELECT 82 - - + 38 col2
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-8545
SELECT MAX( DISTINCT 29 ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-8545
SELECT MAX ( DISTINCT 29 ) AS col0
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8546
SELECT ALL CAST( NULL AS SIGNED ) + + + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-8546
SELECT ALL CAST ( NULL AS INTEGER ) + + + 66
----
NULL

query I rowsort
SELECT ( + + 46 ) AS col1
----
46

query I rowsort
SELECT ALL + + 60 col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8549
SELECT ALL - COUNT( * ) - 16
----
-17

skipif mysql # not compatible
query I rowsort label-8549
SELECT ALL - COUNT ( * ) - 16
----
-17

query I rowsort
SELECT DISTINCT - + 38 col2
----
-38

query I rowsort
SELECT 38 + + ( - 41 )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8552
SELECT SUM( + 33 )
----
33

skipif mysql # not compatible
query I rowsort label-8552
SELECT SUM ( + 33 )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-8553
SELECT - - ( - MIN( + - 5 ) )
----
5

skipif mysql # not compatible
query I rowsort label-8553
SELECT - - ( - MIN ( + - 5 ) )
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8554
SELECT ALL COUNT( * ) DIV - 96
----
0

skipif mysql # not compatible
query I rowsort label-8554
SELECT ALL COUNT ( * ) / - 96
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8555
SELECT + CAST( - 35 AS SIGNED )
----
-35

skipif mysql # not compatible
query I rowsort label-8555
SELECT + CAST ( - 35 AS INTEGER )
----
-35

query I rowsort
SELECT ALL - - 16 * - 66 AS col1
----
-1056

query I rowsort
SELECT ALL - - 31 AS col2
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8558
SELECT + COUNT( * ) DIV - 71 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8558
SELECT + COUNT ( * ) / - 71 AS col2
----
0

query I rowsort
SELECT + + ( 19 ) AS col2
----
19

query I rowsort
SELECT - 64 + 21 AS col1
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8561
SELECT ALL + + 32 DIV - + COUNT( * ) AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-8561
SELECT ALL + + 32 / - + COUNT ( * ) AS col0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-8562
SELECT DISTINCT - + COUNT( * ) * + 95
----
-95

skipif mysql # not compatible
query I rowsort label-8562
SELECT DISTINCT - + COUNT ( * ) * + 95
----
-95

query I rowsort
SELECT DISTINCT + + 71 AS col2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8564
SELECT DISTINCT + - ( + ( - COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-8564
SELECT DISTINCT + - ( + ( - COUNT ( * ) ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8565
SELECT DISTINCT MAX( ALL + 56 ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-8565
SELECT DISTINCT MAX ( ALL + 56 ) AS col2
----
56

query I rowsort
SELECT - 74 + - 15 + + 60
----
-29

query I rowsort
SELECT ALL ( - + 92 ) col0
----
-92

query I rowsort
SELECT + 56 * + 93
----
5208

onlyif mysql # aggregate syntax: 
query I rowsort label-8569
SELECT ALL - COUNT( * ) - + 40 AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-8569
SELECT ALL - COUNT ( * ) - + 40 AS col2
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8570
SELECT ALL NULLIF ( - 32, - CAST( - 34 AS SIGNED ) )
----
-32

skipif mysql # not compatible
query I rowsort label-8570
SELECT ALL NULLIF ( - 32, - CAST ( - 34 AS INTEGER ) )
----
-32

query I rowsort
SELECT - 20 - 78 col1
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-8572
SELECT DISTINCT 22 * + COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-8572
SELECT DISTINCT 22 * + COUNT ( * )
----
22

query I rowsort
SELECT ALL 43 * 33 col2
----
1419

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8574
SELECT ALL - ( + MIN( ( - 15 ) ) ) * - CAST( NULL AS SIGNED ) - - ( 63 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8574
SELECT ALL - ( + MIN ( ( - 15 ) ) ) * - CAST ( NULL AS INTEGER ) - - ( 63 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8575
SELECT - COUNT( * ) + - + CAST( + 11 AS SIGNED ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-8575
SELECT - COUNT ( * ) + - + CAST ( + 11 AS INTEGER ) AS col1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-8576
SELECT DISTINCT + ( + ( COUNT( * ) ) ) + 92
----
93

skipif mysql # not compatible
query I rowsort label-8576
SELECT DISTINCT + ( + ( COUNT ( * ) ) ) + 92
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-8577
SELECT 85 DIV - 97 * + + 87
----
0

skipif mysql # not compatible
query I rowsort label-8577
SELECT 85 / - 97 * + + 87
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8578
SELECT ALL 10 DIV COUNT( * ), + ( - - 74 ) AS col2
----
10
74

skipif mysql # not compatible
query II rowsort label-8578
SELECT ALL 10 / COUNT ( * ), + ( - - 74 ) AS col2
----
10
74

query I rowsort
SELECT ALL 2 * 90 AS col1
----
180

query I rowsort
SELECT ALL + + 90 + + - 90 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8581
SELECT + 33 * COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-8581
SELECT + 33 * COUNT ( * )
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8582
SELECT + - 66 * + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8582
SELECT + - 66 * + CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8583
SELECT - - COUNT( * ) + - ( + 76 ) AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-8583
SELECT - - COUNT ( * ) + - ( + 76 ) AS col1
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8584
SELECT DISTINCT - COUNT( * ) + + ( - - 77 ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-8584
SELECT DISTINCT - COUNT ( * ) + + ( - - 77 ) AS col2
----
76

query I rowsort
SELECT ALL + ( - - 70 ) AS col1
----
70

query I rowsort
SELECT - - 17 + + + 57 AS col2
----
74

query I rowsort
SELECT DISTINCT - 29 - 6 AS col0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-8588
SELECT ALL - MIN( - - 28 ) col0
----
-28

skipif mysql # not compatible
query I rowsort label-8588
SELECT ALL - MIN ( - - 28 ) col0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-8589
SELECT DISTINCT - COUNT( DISTINCT + 30 )
----
-1

skipif mysql # not compatible
query I rowsort label-8589
SELECT DISTINCT - COUNT ( DISTINCT + 30 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8590
SELECT COUNT( * ) - + 44
----
-43

skipif mysql # not compatible
query I rowsort label-8590
SELECT COUNT ( * ) - + 44
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8591
SELECT ALL - CAST( + 75 AS SIGNED )
----
-75

skipif mysql # not compatible
query I rowsort label-8591
SELECT ALL - CAST ( + 75 AS INTEGER )
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8592
SELECT 31 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8592
SELECT 31 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 45 * 63 * + + 8
----
22680

onlyif mysql # aggregate syntax: 
query I rowsort label-8594
SELECT + SUM( - ( - - 30 ) )
----
-30

skipif mysql # not compatible
query I rowsort label-8594
SELECT + SUM ( - ( - - 30 ) )
----
-30

query II rowsort
SELECT ALL - - 39 col1, 37 + 62
----
39
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8596
SELECT - - NULLIF ( + 1, COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8596
SELECT - - NULLIF ( + 1, COUNT ( * ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8597
SELECT + 31 * + - 86 + - 26 + ( + COUNT( * ) )
----
-2691

skipif mysql # not compatible
query I rowsort label-8597
SELECT + 31 * + - 86 + - 26 + ( + COUNT ( * ) )
----
-2691

query I rowsort
SELECT - 83 * 12 AS col2
----
-996

query I rowsort
SELECT - 50 * - 96 AS col1
----
4800

onlyif mysql # aggregate syntax: 
query I rowsort label-8600
SELECT + + COUNT( * ) - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8600
SELECT + + COUNT ( * ) - COUNT ( * )
----
0

query I rowsort
SELECT ALL COALESCE ( - + 52, - + 31 ) AS col0
----
-52

query II rowsort
SELECT DISTINCT + 71 AS col1, 71 - - - 34 AS col0
----
71
37

query II rowsort
SELECT ALL + 35 AS col0, - 66
----
35
-66

query I rowsort
SELECT - 66 * 37 col1
----
-2442

onlyif mysql # aggregate syntax: 
query I rowsort label-8605
SELECT + + SUM( ALL - 51 ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-8605
SELECT + + SUM ( ALL - 51 ) AS col1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8606
SELECT DISTINCT COUNT( * ) + + 8
----
9

skipif mysql # not compatible
query I rowsort label-8606
SELECT DISTINCT COUNT ( * ) + + 8
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8607
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-8607
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 15
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8608
SELECT DISTINCT COUNT( ALL - - 89 )
----
1

skipif mysql # not compatible
query I rowsort label-8608
SELECT DISTINCT COUNT ( ALL - - 89 )
----
1

query I rowsort
SELECT ALL 20 * 27 AS col0
----
540

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8610
SELECT ALL ( + + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8610
SELECT ALL ( + + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8611
SELECT - 97 * + + COUNT( - + 67 ) AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-8611
SELECT - 97 * + + COUNT ( - + 67 ) AS col1
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-8612
SELECT 55 col2, + COUNT( * ) AS col1
----
55
1

skipif mysql # not compatible
query II rowsort label-8612
SELECT 55 col2, + COUNT ( * ) AS col1
----
55
1

query I rowsort
SELECT + 32 * + 76 AS col2
----
2432

onlyif mysql # aggregate syntax: 
query II rowsort label-8614
SELECT ALL 7 + - + 3, COUNT( * ) AS col0
----
4
1

skipif mysql # not compatible
query II rowsort label-8614
SELECT ALL 7 + - + 3, COUNT ( * ) AS col0
----
4
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8615
SELECT - - COUNT( * ) + + + COUNT( * ) col1
----
2

skipif mysql # not compatible
query I rowsort label-8615
SELECT - - COUNT ( * ) + + + COUNT ( * ) col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8616
SELECT + - 39 * + COUNT( ALL + - 7 ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-8616
SELECT + - 39 * + COUNT ( ALL + - 7 ) AS col2
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8617
SELECT + COUNT( * ) * - MIN( ALL CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8617
SELECT + COUNT ( * ) * - MIN ( ALL CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT + 87 col1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8619
SELECT ALL COUNT( DISTINCT - 2 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8619
SELECT ALL COUNT ( DISTINCT - 2 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8620
SELECT + - MAX( ALL - + 61 ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-8620
SELECT + - MAX ( ALL - + 61 ) AS col1
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8621
SELECT CAST( NULL AS SIGNED ) * + 21 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8621
SELECT CAST ( NULL AS INTEGER ) * + 21 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8622
SELECT + 98 + + + SUM( - - 27 )
----
125

skipif mysql # not compatible
query I rowsort label-8622
SELECT + 98 + + + SUM ( - - 27 )
----
125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8623
SELECT - CAST( NULL AS SIGNED ) + + AVG ( ALL + 27 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8623
SELECT - CAST ( NULL AS INTEGER ) + + AVG ( ALL + 27 ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT ( 64 )
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8625
SELECT ( MAX( ALL CAST( NULL AS SIGNED ) ) ) * ( + 8 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8625
SELECT ( MAX ( ALL CAST ( NULL AS INTEGER ) ) ) * ( + 8 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8626
SELECT ALL + 90, COUNT( COALESCE ( ( + CAST( NULL AS DECIMAL ) ), + 78 / 96 ) ) AS col2
----
90
1

skipif mysql # not compatible
query II rowsort label-8626
SELECT ALL + 90, COUNT ( COALESCE ( ( + CAST ( NULL AS REAL ) ), + 78 / 96 ) ) AS col2
----
90
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8627
SELECT DISTINCT 80 * - COUNT( * ) * + - 57
----
4560

skipif mysql # not compatible
query I rowsort label-8627
SELECT DISTINCT 80 * - COUNT ( * ) * + - 57
----
4560

onlyif mysql # aggregate syntax: 
query I rowsort label-8628
SELECT ALL COUNT( * ) - - 23
----
24

skipif mysql # not compatible
query I rowsort label-8628
SELECT ALL COUNT ( * ) - - 23
----
24

query I rowsort
SELECT DISTINCT + 64 * + 63 * + 28
----
112896

onlyif mysql # aggregate syntax: 
query II rowsort label-8630
SELECT ALL 82 + - 40, NULLIF ( + - COUNT( - 44 ), + - 32 ) col1
----
42
-1

skipif mysql # not compatible
query II rowsort label-8630
SELECT ALL 82 + - 40, NULLIF ( + - COUNT ( - 44 ), + - 32 ) col1
----
42
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8631
SELECT - 35 - COUNT( DISTINCT 28 ) col0
----
-36

skipif mysql # not compatible
query I rowsort label-8631
SELECT - 35 - COUNT ( DISTINCT 28 ) col0
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-8632
SELECT ALL + - COUNT( * ) - + 6, - COUNT( * ) AS col1
----
-7
-1

skipif mysql # not compatible
query II rowsort label-8632
SELECT ALL + - COUNT ( * ) - + 6, - COUNT ( * ) AS col1
----
-7
-1

query II rowsort
SELECT DISTINCT + COALESCE ( + + 52, + + 28 ) AS col0, 99
----
52
99

query I rowsort
SELECT + 84 * 20
----
1680

query I rowsort
SELECT + 13 + + 43
----
56

query I rowsort
SELECT ALL + ( - - 43 ) col1
----
43

query I rowsort
SELECT DISTINCT + + 94 AS col0
----
94

query I rowsort
SELECT ALL 14 - - 6
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8639
SELECT DISTINCT - ( + + COUNT( * ) ) - - 84
----
83

skipif mysql # not compatible
query I rowsort label-8639
SELECT DISTINCT - ( + + COUNT ( * ) ) - - 84
----
83

query I rowsort
SELECT DISTINCT COALESCE ( + + 89, 98 ) AS col1
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-8641
SELECT 92 DIV - + 73
----
-1

skipif mysql # not compatible
query I rowsort label-8641
SELECT 92 / - + 73
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8642
SELECT DISTINCT 21 * - + COUNT( * ) AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-8642
SELECT DISTINCT 21 * - + COUNT ( * ) AS col0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-8643
SELECT DISTINCT 1 * COUNT( * ) col1
----
1

skipif mysql # not compatible
query I rowsort label-8643
SELECT DISTINCT 1 * COUNT ( * ) col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8644
SELECT DISTINCT + 37 + + 24 / CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8644
SELECT DISTINCT + 37 + + 24 / CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT 98 * - 26
----
-2548

onlyif mysql # aggregate syntax: 
query I rowsort label-8646
SELECT COUNT( * ) + + 66 * + 45 AS col1
----
2971

skipif mysql # not compatible
query I rowsort label-8646
SELECT COUNT ( * ) + + 66 * + 45 AS col1
----
2971

onlyif mysql # DIV for integer division: 
query I rowsort label-8647
SELECT DISTINCT + 47 DIV + 79
----
0

skipif mysql # not compatible
query I rowsort label-8647
SELECT DISTINCT + 47 / + 79
----
0

query I rowsort
SELECT 23 * - 74
----
-1702

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8649
SELECT ALL ( - + COUNT( + CAST( + 42 AS SIGNED ) ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8649
SELECT ALL ( - + COUNT ( + CAST ( + 42 AS INTEGER ) ) ) AS col2
----
-1

query I rowsort
SELECT ALL - 88 - + 18 AS col0
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-8651
SELECT - - COUNT( * ) * 65
----
65

skipif mysql # not compatible
query I rowsort label-8651
SELECT - - COUNT ( * ) * 65
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8652
SELECT ALL + COUNT( + - 80 )
----
1

skipif mysql # not compatible
query I rowsort label-8652
SELECT ALL + COUNT ( + - 80 )
----
1

query I rowsort
SELECT DISTINCT 51 * 50
----
2550

query I rowsort
SELECT DISTINCT 17 * 21 + 20
----
377

onlyif mysql # aggregate syntax: 
query I rowsort label-8655
SELECT - COUNT( * ) * - 26
----
26

skipif mysql # not compatible
query I rowsort label-8655
SELECT - COUNT ( * ) * - 26
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8656
SELECT ALL COUNT( * ) AS col2, - CAST( NULL AS SIGNED )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-8656
SELECT ALL COUNT ( * ) AS col2, - CAST ( NULL AS INTEGER )
----
1
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8657
SELECT ALL - COUNT( * ) DIV + 54
----
0

skipif mysql # not compatible
query I rowsort label-8657
SELECT ALL - COUNT ( * ) / + 54
----
0

query I rowsort
SELECT 51 * - 22
----
-1122

onlyif mysql # aggregate syntax: 
query I rowsort label-8659
SELECT ALL - SUM( ALL + 79 ) col0
----
-79

skipif mysql # not compatible
query I rowsort label-8659
SELECT ALL - SUM ( ALL + 79 ) col0
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-8660
SELECT DISTINCT COUNT( * ) * + - 99 AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-8660
SELECT DISTINCT COUNT ( * ) * + - 99 AS col2
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8661
SELECT 36 / - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8661
SELECT 36 / - - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT 87 col2, - 19 + + 65
----
87
46

query I rowsort
SELECT DISTINCT 42 + - + 31 + - 57
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8664
SELECT + - MIN( DISTINCT + 92 ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8664
SELECT + - MIN ( DISTINCT + 92 ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8665
SELECT DISTINCT + 62 + COUNT( * ) + - 26 AS col0
----
37

skipif mysql # not compatible
query I rowsort label-8665
SELECT DISTINCT + 62 + COUNT ( * ) + - 26 AS col0
----
37

query I rowsort
SELECT ALL + - 88 col0
----
-88

query I rowsort
SELECT - 20 * 67 AS col0
----
-1340

onlyif mysql # aggregate syntax: 
query II rowsort label-8668
SELECT DISTINCT + 1, - COUNT( * ) + 62 + COUNT( * ) + + 43 * - COUNT( * ) * 19 - 14 AS col2
----
1
-769

skipif mysql # not compatible
query II rowsort label-8668
SELECT DISTINCT + 1, - COUNT ( * ) + 62 + COUNT ( * ) + + 43 * - COUNT ( * ) * 19 - 14 AS col2
----
1
-769

onlyif mysql # aggregate syntax: 
query I rowsort label-8669
SELECT + COUNT( * ) + - 15 + NULLIF ( - MIN( - + 18 ), - COUNT( * ) ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-8669
SELECT + COUNT ( * ) + - 15 + NULLIF ( - MIN ( - + 18 ), - COUNT ( * ) ) AS col1
----
4

query I rowsort
SELECT DISTINCT 39 col2
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8671
SELECT ALL CAST( NULL AS SIGNED ) + - + 39 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8671
SELECT ALL CAST ( NULL AS INTEGER ) + - + 39 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8672
SELECT - + COUNT( DISTINCT + - ( - + 84 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8672
SELECT - + COUNT ( DISTINCT + - ( - + 84 ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8673
SELECT + MAX( DISTINCT + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8673
SELECT + MAX ( DISTINCT + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8674
SELECT + ( - COUNT( * ) ) - + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8674
SELECT + ( - COUNT ( * ) ) - + - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8675
SELECT COALESCE ( COUNT( * ), + 43 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8675
SELECT COALESCE ( COUNT ( * ), + 43 ) AS col2
----
1

query I rowsort
SELECT ALL + - COALESCE ( - 81, - - 28 + + 81 ) col1
----
81

query I rowsort
SELECT ALL + - 80 AS col2
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8678
SELECT - CAST( + 54 AS SIGNED )
----
-54

skipif mysql # not compatible
query I rowsort label-8678
SELECT - CAST ( + 54 AS INTEGER )
----
-54

query I rowsort
SELECT DISTINCT + ( - 28 )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-8680
SELECT ALL + MIN( ALL 10 )
----
10

skipif mysql # not compatible
query I rowsort label-8680
SELECT ALL + MIN ( ALL 10 )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8681
SELECT COUNT( ALL + 26 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8681
SELECT COUNT ( ALL + 26 ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8682
SELECT + 19 DIV - COUNT( * )
----
-19

skipif mysql # not compatible
query I rowsort label-8682
SELECT + 19 / - COUNT ( * )
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-8683
SELECT DISTINCT - COUNT( * ) AS col0, + MAX( + 27 )
----
-1
27

skipif mysql # not compatible
query II rowsort label-8683
SELECT DISTINCT - COUNT ( * ) AS col0, + MAX ( + 27 )
----
-1
27

query I rowsort
SELECT DISTINCT - ( - 20 ) col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8685
SELECT ALL - + MIN( ALL + 10 ) * - + 44 AS col2
----
440

skipif mysql # not compatible
query I rowsort label-8685
SELECT ALL - + MIN ( ALL + 10 ) * - + 44 AS col2
----
440

query I rowsort
SELECT ALL - 33 + - - 68 AS col0
----
35

query I rowsort
SELECT ALL - 44 col1
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-8688
SELECT DISTINCT - + MIN( 16 )
----
-16

skipif mysql # not compatible
query I rowsort label-8688
SELECT DISTINCT - + MIN ( 16 )
----
-16

query I rowsort
SELECT + + 23 AS col1
----
23

query I rowsort
SELECT ALL NULLIF ( - 87, - + 38 ) AS col1
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-8691
SELECT ALL - 86 * - COUNT( * ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-8691
SELECT ALL - 86 * - COUNT ( * ) AS col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8692
SELECT + 89 + + COUNT( * ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-8692
SELECT + 89 + + COUNT ( * ) AS col1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8693
SELECT + - 38 * COUNT( * ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-8693
SELECT + - 38 * COUNT ( * ) AS col2
----
-38

query I rowsort
SELECT DISTINCT + - 24 AS col1
----
-24

query I rowsort
SELECT DISTINCT 90 * 91
----
8190

onlyif mysql # aggregate syntax: 
query I rowsort label-8696
SELECT ALL - COUNT( * ) * + 79 * 26 AS col2
----
-2054

skipif mysql # not compatible
query I rowsort label-8696
SELECT ALL - COUNT ( * ) * + 79 * 26 AS col2
----
-2054

onlyif mysql # aggregate syntax: 
query I rowsort label-8697
SELECT 80 * - - COUNT( * ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-8697
SELECT 80 * - - COUNT ( * ) AS col2
----
80

query I rowsort
SELECT DISTINCT 42 * 31
----
1302

onlyif mysql # aggregate syntax: 
query I rowsort label-8699
SELECT + ( + COUNT( * ) ) + 25
----
26

skipif mysql # not compatible
query I rowsort label-8699
SELECT + ( + COUNT ( * ) ) + 25
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8700
SELECT + 30 AS col2, + CAST( NULL AS SIGNED )
----
30
NULL

skipif mysql # not compatible
query II rowsort label-8700
SELECT + 30 AS col2, + CAST ( NULL AS INTEGER )
----
30
NULL

query II rowsort
SELECT + 44 AS col1, + 95
----
44
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8702
SELECT ALL MAX( DISTINCT 36 ) + 32 AS col0
----
68

skipif mysql # not compatible
query I rowsort label-8702
SELECT ALL MAX ( DISTINCT 36 ) + 32 AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8703
SELECT - MAX( - - 31 )
----
-31

skipif mysql # not compatible
query I rowsort label-8703
SELECT - MAX ( - - 31 )
----
-31

query II rowsort
SELECT + 45 AS col1, 3
----
45
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8705
SELECT - COUNT( * ) + + - 76 AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-8705
SELECT - COUNT ( * ) + + - 76 AS col0
----
-77

query I rowsort
SELECT - + 53 + + 71 AS col2
----
18

query I rowsort
SELECT DISTINCT ( - 19 )
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-8708
SELECT DISTINCT 19 - - COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-8708
SELECT DISTINCT 19 - - COUNT ( * )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8709
SELECT - + COUNT( ALL + 7 )
----
-1

skipif mysql # not compatible
query I rowsort label-8709
SELECT - + COUNT ( ALL + 7 )
----
-1

query I rowsort
SELECT - + ( - + 97 )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8711
SELECT ( ( + - 79 ) ) * - COUNT( * ) + - SUM( ALL - 62 )
----
141

skipif mysql # not compatible
query I rowsort label-8711
SELECT ( ( + - 79 ) ) * - COUNT ( * ) + - SUM ( ALL - 62 )
----
141

query I rowsort
SELECT + 65 * 74
----
4810

query I rowsort
SELECT + 83 + 92
----
175

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8714
SELECT + 96 DIV + COUNT( * ) + - COUNT( * ) + - 76
----
19

skipif mysql # not compatible
query I rowsort label-8714
SELECT + 96 / + COUNT ( * ) + - COUNT ( * ) + - 76
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8715
SELECT ALL + + ( COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8715
SELECT ALL + + ( COUNT ( * ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8716
SELECT ALL 82 - + COUNT( * )
----
81

skipif mysql # not compatible
query I rowsort label-8716
SELECT ALL 82 - + COUNT ( * )
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8717
SELECT + + COUNT( * ) * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8717
SELECT + + COUNT ( * ) * - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ( - 1 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8719
SELECT ( - COUNT( DISTINCT + 49 ) ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-8719
SELECT ( - COUNT ( DISTINCT + 49 ) ) col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8720
SELECT ALL - 52 / - + CAST( NULL AS SIGNED ) + - 24 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8720
SELECT ALL - 52 / - + CAST ( NULL AS INTEGER ) + - 24 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8721
SELECT CAST( NULL AS SIGNED ) AS col2, - 22
----
NULL
-22

skipif mysql # not compatible
query II rowsort label-8721
SELECT CAST ( NULL AS INTEGER ) AS col2, - 22
----
NULL
-22

query I rowsort
SELECT DISTINCT + - ( - + 83 ) AS col0
----
83

query I rowsort
SELECT DISTINCT + - ( + 58 ) AS col0
----
-58

query I rowsort
SELECT DISTINCT + + 9 AS col2
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8725
SELECT CAST( NULL AS SIGNED ) * + - 70 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8725
SELECT CAST ( NULL AS INTEGER ) * + - 70 AS col1
----
NULL

query I rowsort
SELECT + 9 * 34 AS col2
----
306

onlyif mysql # aggregate syntax: 
query I rowsort label-8727
SELECT ALL + COUNT( * ) - + + COUNT( * ) + 54 * - 78 + - - COUNT( * ) col0
----
-4211

skipif mysql # not compatible
query I rowsort label-8727
SELECT ALL + COUNT ( * ) - + + COUNT ( * ) + 54 * - 78 + - - COUNT ( * ) col0
----
-4211

query I rowsort
SELECT ALL - - 75 AS col2
----
75

query I rowsort
SELECT DISTINCT + + 59 * 77
----
4543

onlyif mysql # DIV for integer division: 
query II rowsort label-8730
SELECT 1 DIV - 53 AS col1, 70
----
0
70

skipif mysql # not compatible
query II rowsort label-8730
SELECT 1 / - 53 AS col1, 70
----
0
70

query I rowsort
SELECT DISTINCT - - 21 col1
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8732
SELECT ALL - + 81 * CAST( - COUNT( * ) AS SIGNED ) col0
----
81

skipif mysql # not compatible
query I rowsort label-8732
SELECT ALL - + 81 * CAST ( - COUNT ( * ) AS INTEGER ) col0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8733
SELECT ALL - 20 * COUNT( * )
----
-20

skipif mysql # not compatible
query I rowsort label-8733
SELECT ALL - 20 * COUNT ( * )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-8734
SELECT - COUNT( * ) + - 62 * 67
----
-4155

skipif mysql # not compatible
query I rowsort label-8734
SELECT - COUNT ( * ) + - 62 * 67
----
-4155

onlyif mysql # DIV for integer division: 
query I rowsort label-8735
SELECT ALL 47 DIV + 39 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8735
SELECT ALL 47 / + 39 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8736
SELECT - COUNT( ALL - 41 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8736
SELECT - COUNT ( ALL - 41 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8737
SELECT - SUM( DISTINCT + + CAST( NULL AS SIGNED ) ) - 61
----
NULL

skipif mysql # not compatible
query I rowsort label-8737
SELECT - SUM ( DISTINCT + + CAST ( NULL AS INTEGER ) ) - 61
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8738
SELECT - MIN( ALL - - 88 ) AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-8738
SELECT - MIN ( ALL - - 88 ) AS col2
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-8739
SELECT NULLIF ( - - 11, - + COUNT( DISTINCT 75 ) ) * + COUNT( * ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-8739
SELECT NULLIF ( - - 11, - + COUNT ( DISTINCT 75 ) ) * + COUNT ( * ) AS col2
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8740
SELECT ALL - 13 AS col2, - MIN( + - 92 ) DIV + MAX( ALL + 21 ) AS col0
----
-13
4

skipif mysql # not compatible
query II rowsort label-8740
SELECT ALL - 13 AS col2, - MIN ( + - 92 ) / + MAX ( ALL + 21 ) AS col0
----
-13
4

query I rowsort
SELECT ALL + 57 * + ( - 48 )
----
-2736

onlyif mysql # aggregate syntax: 
query I rowsort label-8742
SELECT 32 + + COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-8742
SELECT 32 + + COUNT ( * )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-8743
SELECT - 84 + - MAX( - 39 ) AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-8743
SELECT - 84 + - MAX ( - 39 ) AS col2
----
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-8744
SELECT DISTINCT + 99 AS col0, COUNT( * )
----
99
1

skipif mysql # not compatible
query II rowsort label-8744
SELECT DISTINCT + 99 AS col0, COUNT ( * )
----
99
1

query I rowsort
SELECT - ( - 15 ) AS col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8746
SELECT DISTINCT + SUM( 72 ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-8746
SELECT DISTINCT + SUM ( 72 ) AS col2
----
72

query I rowsort
SELECT - ( + 33 )
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-8748
SELECT ALL COUNT( * ) * 79 AS col1
----
79

skipif mysql # not compatible
query I rowsort label-8748
SELECT ALL COUNT ( * ) * 79 AS col1
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8749
SELECT DISTINCT COUNT( DISTINCT + 58 ) DIV - 33, 93 col0
----
0
93

skipif mysql # not compatible
query II rowsort label-8749
SELECT DISTINCT COUNT ( DISTINCT + 58 ) / - 33, 93 col0
----
0
93

onlyif mysql # aggregate syntax: 
query II rowsort label-8750
SELECT ALL - COUNT( * ) + COUNT( * ), 12 col1
----
0
12

skipif mysql # not compatible
query II rowsort label-8750
SELECT ALL - COUNT ( * ) + COUNT ( * ), 12 col1
----
0
12

query I rowsort
SELECT DISTINCT - ( + 95 ) AS col0
----
-95

query I rowsort
SELECT ALL + 8 + 95 * - + 40 + 79 * 60 + 5
----
953

onlyif mysql # aggregate syntax: 
query I rowsort label-8753
SELECT ALL 53 + + - COUNT( * ) + COALESCE ( - ( 92 ), - + 87 ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-8753
SELECT ALL 53 + + - COUNT ( * ) + COALESCE ( - ( 92 ), - + 87 ) AS col1
----
-40

query I rowsort
SELECT ALL + + 1 + + 70
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8755
SELECT DISTINCT + 53 - COUNT( * ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-8755
SELECT DISTINCT + 53 - COUNT ( * ) AS col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8756
SELECT ALL - COUNT( - - 53 ) * - - 76
----
-76

skipif mysql # not compatible
query I rowsort label-8756
SELECT ALL - COUNT ( - - 53 ) * - - 76
----
-76

query II rowsort
SELECT ALL 70 AS col0, - 45 AS col1
----
70
-45

query II rowsort
SELECT 83, 83
----
83
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8759
SELECT DISTINCT + + COUNT( * ) - 88
----
-87

skipif mysql # not compatible
query I rowsort label-8759
SELECT DISTINCT + + COUNT ( * ) - 88
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8760
SELECT SUM( CAST( NULL AS SIGNED ) ) / - COUNT( * ) + 78 - 38 + - 97 * - 76 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8760
SELECT SUM ( CAST ( NULL AS INTEGER ) ) / - COUNT ( * ) + 78 - 38 + - 97 * - 76 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8761
SELECT - - CAST( ( - + COUNT( * ) ) AS SIGNED ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-8761
SELECT - - CAST ( ( - + COUNT ( * ) ) AS INTEGER ) col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8762
SELECT - CAST( - 26 AS SIGNED ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-8762
SELECT - CAST ( - 26 AS INTEGER ) AS col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8763
SELECT ALL 32 * COUNT( * ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-8763
SELECT ALL 32 * COUNT ( * ) AS col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8764
SELECT 58 * COUNT( DISTINCT - 57 )
----
58

skipif mysql # not compatible
query I rowsort label-8764
SELECT 58 * COUNT ( DISTINCT - 57 )
----
58

query I rowsort
SELECT NULLIF ( 95, - - 68 )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8766
SELECT + COUNT( * ) - - 39
----
40

skipif mysql # not compatible
query I rowsort label-8766
SELECT + COUNT ( * ) - - 39
----
40

query I rowsort
SELECT ALL + + COALESCE ( + - 19, 35 )
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-8768
SELECT ALL - MIN( ALL + + 75 ) AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-8768
SELECT ALL - MIN ( ALL + + 75 ) AS col2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8769
SELECT DISTINCT + COUNT( * ) * + + 40
----
40

skipif mysql # not compatible
query I rowsort label-8769
SELECT DISTINCT + COUNT ( * ) * + + 40
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8770
SELECT + - 36 DIV - 49 * - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8770
SELECT + - 36 / - 49 * - COUNT ( * )
----
0

query I rowsort
SELECT + + 3 + - 91
----
-88

query I rowsort
SELECT ALL - 92 * - 95
----
8740

onlyif mysql # aggregate syntax: 
query I rowsort label-8773
SELECT SUM( DISTINCT + 67 ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-8773
SELECT SUM ( DISTINCT + 67 ) AS col2
----
67

query I rowsort
SELECT 97 * + 58
----
5626

query I rowsort
SELECT ALL - 81 * + 70
----
-5670

query I rowsort
SELECT + + 94 col2
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8777
SELECT + COUNT( * ) DIV 73 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8777
SELECT + COUNT ( * ) / 73 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8778
SELECT + 35 * + - 79 - COUNT( * ) * 89 * - 94 col1
----
5601

skipif mysql # not compatible
query I rowsort label-8778
SELECT + 35 * + - 79 - COUNT ( * ) * 89 * - 94 col1
----
5601

query I rowsort
SELECT ALL 90 * + + 90
----
8100

onlyif mysql # aggregate syntax: 
query I rowsort label-8780
SELECT COUNT( * ) * - - 57
----
57

skipif mysql # not compatible
query I rowsort label-8780
SELECT COUNT ( * ) * - - 57
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8781
SELECT COUNT( * ) + ( - 69 )
----
-68

skipif mysql # not compatible
query I rowsort label-8781
SELECT COUNT ( * ) + ( - 69 )
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-8782
SELECT - SUM( 94 ) AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-8782
SELECT - SUM ( 94 ) AS col0
----
-94

query I rowsort
SELECT + - 11 col0
----
-11

query I rowsort
SELECT ALL + + ( 17 )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8785
SELECT + - ( - MIN( + 44 ) ) col0
----
44

skipif mysql # not compatible
query I rowsort label-8785
SELECT + - ( - MIN ( + 44 ) ) col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8786
SELECT ALL + 90 - + ( COUNT( * ) )
----
89

skipif mysql # not compatible
query I rowsort label-8786
SELECT ALL + 90 - + ( COUNT ( * ) )
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-8787
SELECT + 72 + - - 27 DIV + 50 AS col0
----
72

skipif mysql # not compatible
query I rowsort label-8787
SELECT + 72 + - - 27 / + 50 AS col0
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8788
SELECT DISTINCT ( + COUNT( * ) ), ( - CAST( NULL AS SIGNED ) ) AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-8788
SELECT DISTINCT ( + COUNT ( * ) ), ( - CAST ( NULL AS INTEGER ) ) AS col1
----
1
NULL

query I rowsort
SELECT - 36 * + 62
----
-2232

query II rowsort
SELECT 39, - 3 AS col1
----
39
-3

query II rowsort
SELECT - 92, 2 col0
----
-92
2

query I rowsort
SELECT ALL 78 + + + 66
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-8793
SELECT ALL - SUM( ALL 83 )
----
-83

skipif mysql # not compatible
query I rowsort label-8793
SELECT ALL - SUM ( ALL 83 )
----
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-8794
SELECT ALL - 57 AS col1, COUNT( * ) AS col2
----
-57
1

skipif mysql # not compatible
query II rowsort label-8794
SELECT ALL - 57 AS col1, COUNT ( * ) AS col2
----
-57
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8795
SELECT DISTINCT + 87 + + COUNT( * )
----
88

skipif mysql # not compatible
query I rowsort label-8795
SELECT DISTINCT + 87 + + COUNT ( * )
----
88

query I rowsort
SELECT - 75 + + - 30
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-8797
SELECT ALL ( - ( COUNT( * ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8797
SELECT ALL ( - ( COUNT ( * ) ) )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8798
SELECT ALL + CAST( 33 AS SIGNED ) col2
----
33

skipif mysql # not compatible
query I rowsort label-8798
SELECT ALL + CAST ( 33 AS INTEGER ) col2
----
33

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8799
SELECT + - CAST( NULL AS DECIMAL ) + 99 + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8799
SELECT + - CAST ( NULL AS REAL ) + 99 + + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8800
SELECT + SUM( DISTINCT - + CAST( + + ( - 74 ) AS SIGNED ) ) + ( - 58 ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-8800
SELECT + SUM ( DISTINCT - + CAST ( + + ( - 74 ) AS INTEGER ) ) + ( - 58 ) AS col1
----
16

query I rowsort
SELECT + + 68 * + 71 AS col2
----
4828

onlyif mysql # aggregate syntax: 
query I rowsort label-8802
SELECT DISTINCT + SUM( - 23 ) col0
----
-23

skipif mysql # not compatible
query I rowsort label-8802
SELECT DISTINCT + SUM ( - 23 ) col0
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8803
SELECT ALL ( + 39 ) / + CAST( NULL AS SIGNED ) / - ( + - 62 ) - COUNT( DISTINCT 14 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8803
SELECT ALL ( + 39 ) / + CAST ( NULL AS INTEGER ) / - ( + - 62 ) - COUNT ( DISTINCT 14 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8804
SELECT CAST( 10 AS SIGNED ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-8804
SELECT CAST ( 10 AS INTEGER ) AS col2
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8805
SELECT 32 AS col0, + CAST( NULL AS SIGNED ) AS col0
----
32
NULL

skipif mysql # not compatible
query II rowsort label-8805
SELECT 32 AS col0, + CAST ( NULL AS INTEGER ) AS col0
----
32
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8806
SELECT DISTINCT - COUNT( ALL - - CAST( NULL AS DECIMAL ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8806
SELECT DISTINCT - COUNT ( ALL - - CAST ( NULL AS REAL ) ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8807
SELECT CAST( - 73 AS SIGNED ) + 74
----
1

skipif mysql # not compatible
query I rowsort label-8807
SELECT CAST ( - 73 AS INTEGER ) + 74
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8808
SELECT 74 DIV + COUNT( * ) + COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-8808
SELECT 74 / + COUNT ( * ) + COUNT ( * )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8809
SELECT ALL SUM( ALL - 92 )
----
-92

skipif mysql # not compatible
query I rowsort label-8809
SELECT ALL SUM ( ALL - 92 )
----
-92

query I rowsort
SELECT ALL 94 * + 30 AS col2
----
2820

onlyif mysql # aggregate syntax: 
query I rowsort label-8811
SELECT DISTINCT + + MIN( + - 12 ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-8811
SELECT DISTINCT + + MIN ( + - 12 ) AS col0
----
-12

query I rowsort
SELECT DISTINCT ( - - 28 )
----
28

query I rowsort
SELECT DISTINCT + + 78 AS col2
----
78

query I rowsort
SELECT ALL + 85 + 51
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-8815
SELECT NULLIF ( - COUNT( * ), - - COUNT( * ) ) + + 91 AS col0
----
90

skipif mysql # not compatible
query I rowsort label-8815
SELECT NULLIF ( - COUNT ( * ), - - COUNT ( * ) ) + + 91 AS col0
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8816
SELECT COUNT( * ) * COUNT( * ), 38 DIV 21 col2
----
1
1

skipif mysql # not compatible
query II rowsort label-8816
SELECT COUNT ( * ) * COUNT ( * ), 38 / 21 col2
----
1
1

query I rowsort
SELECT 81 - 36 AS col0
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-8818
SELECT DISTINCT 41 DIV 23 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8818
SELECT DISTINCT 41 / 23 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8819
SELECT ALL - + 28 * - + COUNT( * ) * + 31 - + + COALESCE ( COUNT( * ), 0 )
----
867

skipif mysql # not compatible
query I rowsort label-8819
SELECT ALL - + 28 * - + COUNT ( * ) * + 31 - + + COALESCE ( COUNT ( * ), 0 )
----
867

query I rowsort
SELECT ALL - - ( 3 )
----
3

query I rowsort
SELECT + 68 col0
----
68

query I rowsort
SELECT + 36 * - 16 AS col2
----
-576

query II rowsort
SELECT 59 col1, + 72
----
59
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8824
SELECT DISTINCT - 76 * + 7 * - COUNT( * ) * 51 AS col0
----
27132

skipif mysql # not compatible
query I rowsort label-8824
SELECT DISTINCT - 76 * + 7 * - COUNT ( * ) * 51 AS col0
----
27132

onlyif mysql # aggregate syntax: 
query I rowsort label-8825
SELECT ALL + COUNT( * ) - - - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8825
SELECT ALL + COUNT ( * ) - - - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8826
SELECT 97 * + + 10 DIV COUNT( * ) AS col1
----
970

skipif mysql # not compatible
query I rowsort label-8826
SELECT 97 * + + 10 / COUNT ( * ) AS col1
----
970

query I rowsort
SELECT ALL - 51 + + 96 AS col2
----
45

query I rowsort
SELECT 53 - 62 AS col2
----
-9

query I rowsort
SELECT 49 + - 5 AS col1
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8830
SELECT ALL COUNT( * ) DIV + 29
----
0

skipif mysql # not compatible
query I rowsort label-8830
SELECT ALL COUNT ( * ) / + 29
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8831
SELECT - 59 - + - 32 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8831
SELECT - 59 - + - 32 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 28 * + 98 + 68
----
2812

onlyif mysql # aggregate syntax: 
query I rowsort label-8833
SELECT + SUM( ALL + 54 ) * 53
----
2862

skipif mysql # not compatible
query I rowsort label-8833
SELECT + SUM ( ALL + 54 ) * 53
----
2862

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8834
SELECT + SUM( 1 ) - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8834
SELECT + SUM ( 1 ) - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8835
SELECT + COUNT( * ) - 42 * 92
----
-3863

skipif mysql # not compatible
query I rowsort label-8835
SELECT + COUNT ( * ) - 42 * 92
----
-3863

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8836
SELECT COUNT( * ) DIV 19 + 63 AS col0
----
63

skipif mysql # not compatible
query I rowsort label-8836
SELECT COUNT ( * ) / 19 + 63 AS col0
----
63

query I rowsort
SELECT + 59 * + ( 60 )
----
3540

onlyif mysql # aggregate syntax: 
query I rowsort label-8838
SELECT ALL + SUM( ALL + 63 ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-8838
SELECT ALL + SUM ( ALL + 63 ) AS col2
----
63

query I rowsort
SELECT 39 + + 91
----
130

query I rowsort
SELECT 31 * 67 AS col1
----
2077

onlyif mysql # aggregate syntax: 
query I rowsort label-8841
SELECT + SUM( + 74 ) + ( + 96 ) col1
----
170

skipif mysql # not compatible
query I rowsort label-8841
SELECT + SUM ( + 74 ) + ( + 96 ) col1
----
170

onlyif mysql # aggregate syntax: 
query I rowsort label-8842
SELECT 19 + - - COUNT( * ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-8842
SELECT 19 + - - COUNT ( * ) AS col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8843
SELECT DISTINCT 12 + COUNT( * )
----
13

skipif mysql # not compatible
query I rowsort label-8843
SELECT DISTINCT 12 + COUNT ( * )
----
13

query I rowsort
SELECT ALL 47 + - ( + 3 )
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8845
SELECT DISTINCT + 30 DIV + COUNT( * )
----
30

skipif mysql # not compatible
query I rowsort label-8845
SELECT DISTINCT + 30 / + COUNT ( * )
----
30

query I rowsort
SELECT 84 + + + 9 AS col2
----
93

query I rowsort
SELECT + 99 * 84
----
8316

onlyif mysql # aggregate syntax: 
query II rowsort label-8848
SELECT + - 60 col1, - 68 * + COUNT( * )
----
-60
-68

skipif mysql # not compatible
query II rowsort label-8848
SELECT + - 60 col1, - 68 * + COUNT ( * )
----
-60
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8849
SELECT ALL - COUNT( * ) DIV + COUNT( - - 72 )
----
-1

skipif mysql # not compatible
query I rowsort label-8849
SELECT ALL - COUNT ( * ) / + COUNT ( - - 72 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8850
SELECT DISTINCT COUNT( ALL - 91 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8850
SELECT DISTINCT COUNT ( ALL - 91 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8851
SELECT ALL 53 + COUNT( * )
----
54

skipif mysql # not compatible
query I rowsort label-8851
SELECT ALL 53 + COUNT ( * )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8852
SELECT DISTINCT + - COUNT( - + 46 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8852
SELECT DISTINCT + - COUNT ( - + 46 ) AS col1
----
-1

query I rowsort
SELECT DISTINCT 2 * + 5 AS col1
----
10

query I rowsort
SELECT + + 36 * - - 12 - - 8
----
440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8855
SELECT CAST( NULL AS SIGNED ) + + 4 + COUNT( * ) * + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-8855
SELECT CAST ( NULL AS INTEGER ) + + 4 + COUNT ( * ) * + 98
----
NULL

query I rowsort
SELECT 44 - + - 39 AS col1
----
83

query I rowsort
SELECT ALL - - 77 * + 80 AS col1
----
6160

query I rowsort
SELECT - 87 * + 33 * - ( - + 25 ) AS col1
----
-71775

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8859
SELECT 51 - + + CAST( - - 72 AS SIGNED )
----
-21

skipif mysql # not compatible
query I rowsort label-8859
SELECT 51 - + + CAST ( - - 72 AS INTEGER )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-8860
SELECT ALL COUNT( ALL + 23 ) + - COALESCE ( - 12, + 50, - 81 ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-8860
SELECT ALL COUNT ( ALL + 23 ) + - COALESCE ( - 12, + 50, - 81 ) AS col0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8861
SELECT 12 + + SUM( 42 )
----
54

skipif mysql # not compatible
query I rowsort label-8861
SELECT 12 + + SUM ( 42 )
----
54

query II rowsort
SELECT + 70 * + + 88 col0, + 75 col2
----
6160
75

onlyif mysql # DIV for integer division: 
query I rowsort label-8863
SELECT + 34 DIV - + 19
----
-1

skipif mysql # not compatible
query I rowsort label-8863
SELECT + 34 / - + 19
----
-1

query I rowsort
SELECT DISTINCT + ( - 70 )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-8865
SELECT ALL + ( - 9 ) * - - COUNT( * )
----
-9

skipif mysql # not compatible
query I rowsort label-8865
SELECT ALL + ( - 9 ) * - - COUNT ( * )
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8866
SELECT DISTINCT + COUNT( * ) * - CAST( + - 4 AS SIGNED ) * - 73 * + 49 AS col1
----
-14308

skipif mysql # not compatible
query I rowsort label-8866
SELECT DISTINCT + COUNT ( * ) * - CAST ( + - 4 AS INTEGER ) * - 73 * + 49 AS col1
----
-14308

query I rowsort
SELECT ALL + + ( - 34 ) AS col0
----
-34

query I rowsort
SELECT - 83 * - 14
----
1162

query I rowsort
SELECT - 93 * - + ( + - 74 )
----
-6882

query I rowsort
SELECT - ( 24 ) AS col1
----
-24

query I rowsort
SELECT + 54 * + + 85
----
4590

query I rowsort
SELECT DISTINCT - 73 - + + 12
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8873
SELECT ALL CAST( NULL AS SIGNED ) * 77 / - 31 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8873
SELECT ALL CAST ( NULL AS INTEGER ) * 77 / - 31 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - + 68 * - 78 * + 55 AS col1
----
291720

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8875
SELECT CAST( NULL AS SIGNED ) * COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8875
SELECT CAST ( NULL AS INTEGER ) * COUNT ( * ) col2
----
NULL

query I rowsort
SELECT ALL ( 33 ) AS col2
----
33

query I rowsort
SELECT 53 + + - 65
----
-12

query I rowsort
SELECT - + 43 col1
----
-43

query I rowsort
SELECT DISTINCT ( + + 2 ) AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8880
SELECT SUM( + 95 ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-8880
SELECT SUM ( + 95 ) AS col0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8881
SELECT + COUNT( * ) * - 63 + - COUNT( * )
----
-64

skipif mysql # not compatible
query I rowsort label-8881
SELECT + COUNT ( * ) * - 63 + - COUNT ( * )
----
-64

query I rowsort
SELECT ALL 29 * - 16 + 91
----
-373

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8883
SELECT DISTINCT CAST( CAST( NULL AS DECIMAL ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8883
SELECT DISTINCT CAST ( CAST ( NULL AS REAL ) AS REAL )
----
NULL

query I rowsort
SELECT - 36 + - 10
----
-46

query I rowsort
SELECT + 18 + - + 81 AS col1
----
-63

query I rowsort
SELECT - 47 * - 92
----
4324

onlyif mysql # aggregate syntax: 
query I rowsort label-8887
SELECT COUNT( * ) - + 66 AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-8887
SELECT COUNT ( * ) - + 66 AS col2
----
-65

query I rowsort
SELECT DISTINCT 88 * + 43
----
3784

onlyif mysql # aggregate syntax: 
query I rowsort label-8889
SELECT ALL - MAX( + 99 )
----
-99

skipif mysql # not compatible
query I rowsort label-8889
SELECT ALL - MAX ( + 99 )
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8890
SELECT DISTINCT MIN( ALL 77 )
----
77

skipif mysql # not compatible
query I rowsort label-8890
SELECT DISTINCT MIN ( ALL 77 )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8891
SELECT ( + + 2 ) * COUNT( + + 22 )
----
2

skipif mysql # not compatible
query I rowsort label-8891
SELECT ( + + 2 ) * COUNT ( + + 22 )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8892
SELECT ( - + CAST( + 41 AS SIGNED ) )
----
-41

skipif mysql # not compatible
query I rowsort label-8892
SELECT ( - + CAST ( + 41 AS INTEGER ) )
----
-41

query I rowsort
SELECT ALL + 43 - - + 23 AS col1
----
66

query I rowsort
SELECT DISTINCT ( - + 27 ) AS col1
----
-27

query I rowsort
SELECT ( - - 16 )
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8896
SELECT ALL + MIN( - - ( + 51 ) ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-8896
SELECT ALL + MIN ( - - ( + 51 ) ) AS col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8897
SELECT ALL + COUNT( * ) + SUM( DISTINCT + - 36 )
----
-35

skipif mysql # not compatible
query I rowsort label-8897
SELECT ALL + COUNT ( * ) + SUM ( DISTINCT + - 36 )
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-8898
SELECT ALL - ( - COUNT( * ) ), COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-8898
SELECT ALL - ( - COUNT ( * ) ), COUNT ( * )
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8899
SELECT COUNT( * ) * 53
----
53

skipif mysql # not compatible
query I rowsort label-8899
SELECT COUNT ( * ) * 53
----
53

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8900
SELECT + 58 DIV + + CAST( - - 94 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-8900
SELECT + 58 / + + CAST ( - - 94 AS INTEGER )
----
0

query I rowsort
SELECT ALL - - 32 AS col1
----
32

query I rowsort
SELECT 88 * + 79 AS col1
----
6952

onlyif mysql # aggregate syntax: 
query I rowsort label-8903
SELECT ALL + COUNT( * ) + 51 AS col1
----
52

skipif mysql # not compatible
query I rowsort label-8903
SELECT ALL + COUNT ( * ) + 51 AS col1
----
52

query I rowsort
SELECT DISTINCT ( - 66 ) * 0 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8905
SELECT + 57 - - COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-8905
SELECT + 57 - - COUNT ( * )
----
58

query I rowsort
SELECT + 77 * 12
----
924

query I rowsort
SELECT ALL + - 82 AS col1
----
-82

query I rowsort
SELECT DISTINCT 91 * 3
----
273

onlyif mysql # aggregate syntax: 
query I rowsort label-8909
SELECT SUM( 35 )
----
35

skipif mysql # not compatible
query I rowsort label-8909
SELECT SUM ( 35 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8910
SELECT + - 16 - COUNT( * )
----
-17

skipif mysql # not compatible
query I rowsort label-8910
SELECT + - 16 - COUNT ( * )
----
-17

query I rowsort
SELECT - 71 * - 37 AS col0
----
2627

onlyif mysql # aggregate syntax: 
query I rowsort label-8912
SELECT ALL COUNT( * ) - + + 2 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8912
SELECT ALL COUNT ( * ) - + + 2 AS col1
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8913
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * + + 88 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8913
SELECT DISTINCT - CAST ( NULL AS REAL ) * + + 88 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8914
SELECT - COUNT( * ) * + + 69
----
-69

skipif mysql # not compatible
query I rowsort label-8914
SELECT - COUNT ( * ) * + + 69
----
-69

query I rowsort
SELECT + 8 + - 30
----
-22

query I rowsort
SELECT 90 * + 44 AS col0
----
3960

onlyif mysql # aggregate syntax: 
query II rowsort label-8917
SELECT + 12, + COUNT( * ) - + - 89 AS col0
----
12
90

skipif mysql # not compatible
query II rowsort label-8917
SELECT + 12, + COUNT ( * ) - + - 89 AS col0
----
12
90

query II rowsort
SELECT ALL 52 * + 82, 15 AS col2
----
4264
15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8919
SELECT DISTINCT - 83, CAST( NULL AS SIGNED ) AS col2
----
-83
NULL

skipif mysql # not compatible
query II rowsort label-8919
SELECT DISTINCT - 83, CAST ( NULL AS INTEGER ) AS col2
----
-83
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8920
SELECT DISTINCT + CAST( - 13 AS SIGNED ) + + COUNT( * )
----
-12

skipif mysql # not compatible
query I rowsort label-8920
SELECT DISTINCT + CAST ( - 13 AS INTEGER ) + + COUNT ( * )
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-8921
SELECT ALL - 71 DIV - 70 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8921
SELECT ALL - 71 / - 70 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8922
SELECT COALESCE ( + - COUNT( * ), + 50 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8922
SELECT COALESCE ( + - COUNT ( * ), + 50 ) AS col0
----
-1

query I rowsort
SELECT ALL + 32 * - 18 AS col1
----
-576

query I rowsort
SELECT DISTINCT + ( - + 12 )
----
-12

query I rowsort
SELECT + 4 * + - 85
----
-340

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8926
SELECT + ( - + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8926
SELECT + ( - + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8927
SELECT - 12 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8927
SELECT - 12 * + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8928
SELECT ALL 85 * + COUNT( * ) + + 29
----
114

skipif mysql # not compatible
query I rowsort label-8928
SELECT ALL 85 * + COUNT ( * ) + + 29
----
114

query I rowsort
SELECT + - 85 * 52 AS col1
----
-4420

onlyif mysql # aggregate syntax: 
query I rowsort label-8930
SELECT DISTINCT + 11 - + + SUM( DISTINCT - 53 )
----
64

skipif mysql # not compatible
query I rowsort label-8930
SELECT DISTINCT + 11 - + + SUM ( DISTINCT - 53 )
----
64

query I rowsort
SELECT ALL - 11 col1
----
-11

query I rowsort
SELECT ALL - - 65 * - 94 col2
----
-6110

onlyif mysql # DIV for integer division: 
query I rowsort label-8933
SELECT - ( 30 ) DIV + 72
----
0

skipif mysql # not compatible
query I rowsort label-8933
SELECT - ( 30 ) / + 72
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8934
SELECT 26 DIV - 91 + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-8934
SELECT 26 / - 91 + - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8935
SELECT COUNT( * ) + + 14
----
15

skipif mysql # not compatible
query I rowsort label-8935
SELECT COUNT ( * ) + + 14
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8936
SELECT DISTINCT CAST( NULL AS SIGNED ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8936
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8937
SELECT ALL SUM( - 8 )
----
-8

skipif mysql # not compatible
query I rowsort label-8937
SELECT ALL SUM ( - 8 )
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8938
SELECT ALL ( - 92 ) + + COUNT( ALL - - 63 ) AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-8938
SELECT ALL ( - 92 ) + + COUNT ( ALL - - 63 ) AS col0
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-8939
SELECT 56 DIV - 38 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8939
SELECT 56 / - 38 AS col1
----
-1

query I rowsort
SELECT DISTINCT + - 58 AS col1
----
-58

query I rowsort
SELECT + - 94 AS col0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-8942
SELECT - 47 + + 45 - + + COUNT( * ) * 90 AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-8942
SELECT - 47 + + 45 - + + COUNT ( * ) * 90 AS col2
----
-92

query I rowsort
SELECT - 82 * + 12
----
-984

query I rowsort
SELECT - + ( + 7 ) - 73 AS col0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-8945
SELECT ALL + COALESCE ( + 57, 45 + - COUNT( * ) )
----
57

skipif mysql # not compatible
query I rowsort label-8945
SELECT ALL + COALESCE ( + 57, 45 + - COUNT ( * ) )
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8946
SELECT - CAST( 59 AS SIGNED ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-8946
SELECT - CAST ( 59 AS INTEGER ) AS col0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-8947
SELECT - COUNT( * ) * - 56 AS col2
----
56

skipif mysql # not compatible
query I rowsort label-8947
SELECT - COUNT ( * ) * - 56 AS col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8948
SELECT DISTINCT + ( + ( - - MIN( + 24 ) ) )
----
24

skipif mysql # not compatible
query I rowsort label-8948
SELECT DISTINCT + ( + ( - - MIN ( + 24 ) ) )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8949
SELECT COUNT( * ) * - COUNT( * ) - + COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-8949
SELECT COUNT ( * ) * - COUNT ( * ) - + COUNT ( * )
----
-2

query I rowsort
SELECT 5 * 51 AS col1
----
255

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8951
SELECT ALL + COUNT( * ) * + 48 * - COUNT( * ) * + + CAST( + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8951
SELECT ALL + COUNT ( * ) * + 48 * - COUNT ( * ) * + + CAST ( + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8952
SELECT + MAX( + 23 ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-8952
SELECT + MAX ( + 23 ) AS col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8953
SELECT ALL - ( + + COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8953
SELECT ALL - ( + + COUNT ( * ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8954
SELECT + SUM( + 54 ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-8954
SELECT + SUM ( + 54 ) AS col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8955
SELECT ALL + COALESCE ( - 31, - - 22 * - 2 * SUM( - 35 ) - ( - 1 ) ) AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-8955
SELECT ALL + COALESCE ( - 31, - - 22 * - 2 * SUM ( - 35 ) - ( - 1 ) ) AS col0
----
-31

query I rowsort
SELECT DISTINCT + ( + 9 )
----
9

query I rowsort
SELECT + + 21 + + - 0 AS col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8958
SELECT ALL COUNT( * ) + + + 63 AS col2
----
64

skipif mysql # not compatible
query I rowsort label-8958
SELECT ALL COUNT ( * ) + + + 63 AS col2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8959
SELECT + - MIN( 26 )
----
-26

skipif mysql # not compatible
query I rowsort label-8959
SELECT + - MIN ( 26 )
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8960
SELECT CAST( NULL AS SIGNED ) col2, 99
----
NULL
99

skipif mysql # not compatible
query II rowsort label-8960
SELECT CAST ( NULL AS INTEGER ) col2, 99
----
NULL
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8961
SELECT - CAST( + + 65 AS SIGNED )
----
-65

skipif mysql # not compatible
query I rowsort label-8961
SELECT - CAST ( + + 65 AS INTEGER )
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8962
SELECT ALL 10 DIV + - COUNT( * ) AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-8962
SELECT ALL 10 / + - COUNT ( * ) AS col0
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-8963
SELECT ( 58 ) DIV - 18 + - 81 AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-8963
SELECT ( 58 ) / - 18 + - 81 AS col2
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8964
SELECT ALL + + CAST( 85 AS SIGNED ) * - ( - + 21 )
----
1785

skipif mysql # not compatible
query I rowsort label-8964
SELECT ALL + + CAST ( 85 AS INTEGER ) * - ( - + 21 )
----
1785

onlyif mysql # aggregate syntax: 
query II rowsort label-8965
SELECT + 20 col0, COUNT( * )
----
20
1

skipif mysql # not compatible
query II rowsort label-8965
SELECT + 20 col0, COUNT ( * )
----
20
1

query I rowsort
SELECT - ( + - ( + 82 ) )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8967
SELECT DISTINCT - COUNT( * ) + - + 26
----
-27

skipif mysql # not compatible
query I rowsort label-8967
SELECT DISTINCT - COUNT ( * ) + - + 26
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8968
SELECT ALL - COUNT( * ) DIV + 73
----
0

skipif mysql # not compatible
query I rowsort label-8968
SELECT ALL - COUNT ( * ) / + 73
----
0

query I rowsort
SELECT ALL + + 44 AS col0
----
44

query II rowsort
SELECT + - 92 * - 64 AS col1, 36 + 26 AS col2
----
5888
62

query I rowsort
SELECT - 84 * + - 95 AS col1
----
7980

query I rowsort
SELECT DISTINCT - + 77 AS col2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8973
SELECT - 84 - COUNT( * ) + - COUNT( * ) * + 80 AS col1
----
-165

skipif mysql # not compatible
query I rowsort label-8973
SELECT - 84 - COUNT ( * ) + - COUNT ( * ) * + 80 AS col1
----
-165

onlyif mysql # DIV for integer division: 
query I rowsort label-8974
SELECT 85 DIV + - 52
----
-1

skipif mysql # not compatible
query I rowsort label-8974
SELECT 85 / + - 52
----
-1

query I rowsort
SELECT 20 * + 11 AS col1
----
220

query II rowsort
SELECT + - 72 col0, - 97 AS col1
----
-72
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8977
SELECT ALL + + NULLIF ( - + COUNT( * ), 25 )
----
-1

skipif mysql # not compatible
query I rowsort label-8977
SELECT ALL + + NULLIF ( - + COUNT ( * ), 25 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8978
SELECT ALL + COALESCE ( MIN( DISTINCT - 28 ), 90 ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-8978
SELECT ALL + COALESCE ( MIN ( DISTINCT - 28 ), 90 ) AS col0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-8979
SELECT - MAX( - 54 ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-8979
SELECT - MAX ( - 54 ) AS col1
----
54

query I rowsort
SELECT ALL 71 * ( - 60 )
----
-4260

query I rowsort
SELECT - 92 + - - 64
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-8982
SELECT DISTINCT + ( + COUNT( DISTINCT ( - 7 ) ) ) * 8
----
8

skipif mysql # not compatible
query I rowsort label-8982
SELECT DISTINCT + ( + COUNT ( DISTINCT ( - 7 ) ) ) * 8
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8983
SELECT 88 DIV - COUNT( * ) AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-8983
SELECT 88 / - COUNT ( * ) AS col1
----
-88

query I rowsort
SELECT 94 * - 10 AS col0
----
-940

query I rowsort
SELECT - 19 + + 21
----
2

query I rowsort
SELECT DISTINCT + + 42 - + - 31 AS col0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8987
SELECT ALL 17 * - COUNT( * )
----
-17

skipif mysql # not compatible
query I rowsort label-8987
SELECT ALL 17 * - COUNT ( * )
----
-17

query I rowsort
SELECT 4 * + 34 AS col1
----
136

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8989
SELECT ALL CAST( NULL AS SIGNED ) + 28 - 24 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8989
SELECT ALL CAST ( NULL AS INTEGER ) + 28 - 24 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8990
SELECT 84 AS col2, + COUNT( * ) AS col0
----
84
1

skipif mysql # not compatible
query II rowsort label-8990
SELECT 84 AS col2, + COUNT ( * ) AS col0
----
84
1

query I rowsort
SELECT 54 + + 78 AS col1
----
132

query I rowsort
SELECT ALL 9 * + 7
----
63

query I rowsort
SELECT ALL + 37 - - 91 AS col0
----
128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8994
SELECT - - CAST( NULL AS SIGNED ) + - 3 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8994
SELECT - - CAST ( NULL AS INTEGER ) + - 3 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8995
SELECT + COUNT( * ) * + + 68 AS col1
----
68

skipif mysql # not compatible
query I rowsort label-8995
SELECT + COUNT ( * ) * + + 68 AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8996
SELECT + + 70 - COUNT( * ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-8996
SELECT + + 70 - COUNT ( * ) AS col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8997
SELECT ALL COUNT( DISTINCT 58 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-8997
SELECT ALL COUNT ( DISTINCT 58 ) col0
----
1

query I rowsort
SELECT DISTINCT + 35 * - 57
----
-1995

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8999
SELECT ALL + ( - COUNT( * ) ), ( 98 ) * + 20 * + 29 + - CAST( - 37 AS SIGNED ) AS col0
----
-1
56877

skipif mysql # not compatible
query II rowsort label-8999
SELECT ALL + ( - COUNT ( * ) ), ( 98 ) * + 20 * + 29 + - CAST ( - 37 AS INTEGER ) AS col0
----
-1
56877

query I rowsort
SELECT 58 * + + 98 AS col1
----
5684

query I rowsort
SELECT DISTINCT - 15 col1
----
-15

query I rowsort
SELECT ALL - 13 col0
----
-13

query I rowsort
SELECT ALL 89 + + 32
----
121

query I rowsort
SELECT - - ( + 68 )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9005
SELECT DISTINCT SUM( DISTINCT + 20 )
----
20

skipif mysql # not compatible
query I rowsort label-9005
SELECT DISTINCT SUM ( DISTINCT + 20 )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-9006
SELECT + SUM( ALL + - 99 ) AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-9006
SELECT + SUM ( ALL + - 99 ) AS col1
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9007
SELECT DISTINCT - 0 * - SUM( DISTINCT + - 49 )
----
0

skipif mysql # not compatible
query I rowsort label-9007
SELECT DISTINCT - 0 * - SUM ( DISTINCT + - 49 )
----
0

query I rowsort
SELECT ALL ( - 17 ) AS col1
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-9009
SELECT - 51 DIV + + ( - + 94 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9009
SELECT - 51 / + + ( - + 94 ) AS col2
----
0

query I rowsort
SELECT ALL ( + - 98 ) AS col0
----
-98

query I rowsort
SELECT DISTINCT + + 83 AS col1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9012
SELECT MAX( ALL + 49 )
----
49

skipif mysql # not compatible
query I rowsort label-9012
SELECT MAX ( ALL + 49 )
----
49

query I rowsort
SELECT DISTINCT 35 * 79 AS col1
----
2765

onlyif mysql # aggregate syntax: 
query I rowsort label-9014
SELECT ( MIN( - - 99 ) ) + + 31
----
130

skipif mysql # not compatible
query I rowsort label-9014
SELECT ( MIN ( - - 99 ) ) + + 31
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-9015
SELECT ALL + 57 + COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-9015
SELECT ALL + 57 + COUNT ( * )
----
58

query I rowsort
SELECT ALL - + COALESCE ( 26, + 94 ) AS col2
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9017
SELECT ALL - 75 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9017
SELECT ALL - 75 - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 88 + - 91 col2
----
-3

query I rowsort
SELECT + 47 * 49
----
2303

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9020
SELECT ALL + - CAST( + 16 AS SIGNED ) * - + SUM( 26 )
----
416

skipif mysql # not compatible
query I rowsort label-9020
SELECT ALL + - CAST ( + 16 AS INTEGER ) * - + SUM ( 26 )
----
416

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9021
SELECT COUNT( * ) * + - 29 DIV 2
----
-14

skipif mysql # not compatible
query I rowsort label-9021
SELECT COUNT ( * ) * + - 29 / 2
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9022
SELECT CAST( + - COUNT( * ) AS SIGNED ) + + - 82
----
-83

skipif mysql # not compatible
query I rowsort label-9022
SELECT CAST ( + - COUNT ( * ) AS INTEGER ) + + - 82
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-9023
SELECT DISTINCT - SUM( ALL - 49 )
----
49

skipif mysql # not compatible
query I rowsort label-9023
SELECT DISTINCT - SUM ( ALL - 49 )
----
49

query I rowsort
SELECT COALESCE ( 64, - 6 ) AS col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9025
SELECT - 53 * - 44 * + + COUNT( * )
----
2332

skipif mysql # not compatible
query I rowsort label-9025
SELECT - 53 * - 44 * + + COUNT ( * )
----
2332

query I rowsort
SELECT ALL NULLIF ( - 81, + 7 * + ( 16 ) ) AS col0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9027
SELECT - COUNT( + 50 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-9027
SELECT - COUNT ( + 50 ) col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9028
SELECT + - COUNT( DISTINCT + COALESCE ( - + 61, + 57, 16 ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-9028
SELECT + - COUNT ( DISTINCT + COALESCE ( - + 61, + 57, 16 ) ) col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9029
SELECT ALL ( + ( + MIN( + 39 ) ) )
----
39

skipif mysql # not compatible
query I rowsort label-9029
SELECT ALL ( + ( + MIN ( + 39 ) ) )
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9030
SELECT + MAX( - CAST( NULL AS SIGNED ) ) + - - COUNT( * ) + + 98 * + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9030
SELECT + MAX ( - CAST ( NULL AS INTEGER ) ) + - - COUNT ( * ) + + 98 * + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9031
SELECT DISTINCT + COUNT( * ) DIV - 96 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9031
SELECT DISTINCT + COUNT ( * ) / - 96 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9032
SELECT ALL - COUNT( * ) + - 40
----
-41

skipif mysql # not compatible
query I rowsort label-9032
SELECT ALL - COUNT ( * ) + - 40
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9033
SELECT ALL - 12 AS col1, - 3 * + CAST( NULL AS SIGNED )
----
-12
NULL

skipif mysql # not compatible
query II rowsort label-9033
SELECT ALL - 12 AS col1, - 3 * + CAST ( NULL AS INTEGER )
----
-12
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9034
SELECT SUM( + - CAST( NULL AS SIGNED ) ) * + + 6 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9034
SELECT SUM ( + - CAST ( NULL AS INTEGER ) ) * + + 6 AS col1
----
NULL

query I rowsort
SELECT ( + 41 ) + + 23
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9036
SELECT ALL + ( + 20 ) DIV COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-9036
SELECT ALL + ( + 20 ) / COUNT ( * )
----
20

query I rowsort
SELECT ALL 76 * 11
----
836

query I rowsort
SELECT ALL 70 - 58
----
12

query I rowsort
SELECT 19 * - 44
----
-836

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9040
SELECT ALL - 5 + - CAST( NULL AS SIGNED ) * 30 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9040
SELECT ALL - 5 + - CAST ( NULL AS INTEGER ) * 30 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9041
SELECT ALL COUNT( ALL + 95 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9041
SELECT ALL COUNT ( ALL + 95 ) AS col2
----
1

query I rowsort
SELECT + - 66 * 71
----
-4686

onlyif mysql # aggregate syntax: 
query I rowsort label-9043
SELECT ALL - + 93 * + COUNT( * )
----
-93

skipif mysql # not compatible
query I rowsort label-9043
SELECT ALL - + 93 * + COUNT ( * )
----
-93

query I rowsort
SELECT ALL ( 45 ) * - 39
----
-1755

onlyif mysql # aggregate syntax: 
query I rowsort label-9045
SELECT SUM( ( 9 ) )
----
9

skipif mysql # not compatible
query I rowsort label-9045
SELECT SUM ( ( 9 ) )
----
9

query I rowsort
SELECT DISTINCT 41 col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9047
SELECT DISTINCT + 93 + + + COUNT( * )
----
94

skipif mysql # not compatible
query I rowsort label-9047
SELECT DISTINCT + 93 + + + COUNT ( * )
----
94

query I rowsort
SELECT - 11 + 5
----
-6

query I rowsort
SELECT + 23 * + - 65
----
-1495

onlyif mysql # aggregate syntax: 
query I rowsort label-9050
SELECT + 40 + - COUNT( * )
----
39

skipif mysql # not compatible
query I rowsort label-9050
SELECT + 40 + - COUNT ( * )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9051
SELECT + ( + 60 ) * - 88 + COUNT( * )
----
-5279

skipif mysql # not compatible
query I rowsort label-9051
SELECT + ( + 60 ) * - 88 + COUNT ( * )
----
-5279

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9052
SELECT CAST( NULL AS SIGNED ), + CAST( NULL AS SIGNED ) * - MIN( - 84 ) col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9052
SELECT CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) * - MIN ( - 84 ) col0
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9053
SELECT ALL + ( - COUNT( * ) ) + COUNT( * ) + 18 AS col1
----
18

skipif mysql # not compatible
query I rowsort label-9053
SELECT ALL + ( - COUNT ( * ) ) + COUNT ( * ) + 18 AS col1
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9054
SELECT ALL + 39 + - NULLIF ( COUNT( * ), - CAST( NULL AS SIGNED ) ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-9054
SELECT ALL + 39 + - NULLIF ( COUNT ( * ), - CAST ( NULL AS INTEGER ) ) AS col1
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9055
SELECT - 74 * - + 87 DIV COUNT( * ) AS col2
----
6438

skipif mysql # not compatible
query I rowsort label-9055
SELECT - 74 * - + 87 / COUNT ( * ) AS col2
----
6438

query I rowsort
SELECT ALL + 3 - 91
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-9057
SELECT DISTINCT - NULLIF ( - COUNT( * ), + + 35 - 85 )
----
1

skipif mysql # not compatible
query I rowsort label-9057
SELECT DISTINCT - NULLIF ( - COUNT ( * ), + + 35 - 85 )
----
1

query I rowsort
SELECT 76 * + 72
----
5472

onlyif mysql # aggregate syntax: 
query I rowsort label-9059
SELECT COUNT( * ) * - + 50
----
-50

skipif mysql # not compatible
query I rowsort label-9059
SELECT COUNT ( * ) * - + 50
----
-50

query I rowsort
SELECT ALL - ( + 82 ) + - 1 + 88
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9061
SELECT + 8 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9061
SELECT + 8 * + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9062
SELECT - - COUNT( * ) * + 56 AS col2
----
56

skipif mysql # not compatible
query I rowsort label-9062
SELECT - - COUNT ( * ) * + 56 AS col2
----
56

query I rowsort
SELECT ALL - + 67 + 48 + + 44 * - 80
----
-3539

query I rowsort
SELECT DISTINCT ( - 86 ) AS col0
----
-86

query I rowsort
SELECT - 63 + 10 * - 98
----
-1043

query I rowsort
SELECT - 98 - 38
----
-136

query I rowsort
SELECT DISTINCT + - 80 col1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-9068
SELECT ALL + COUNT( * ) * 96
----
96

skipif mysql # not compatible
query I rowsort label-9068
SELECT ALL + COUNT ( * ) * 96
----
96

query I rowsort
SELECT - ( - + 7 ) AS col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9070
SELECT SUM( ALL + + 66 ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-9070
SELECT SUM ( ALL + + 66 ) AS col0
----
66

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9071
SELECT CAST( NULL AS DECIMAL ) * + COUNT( - + 78 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9071
SELECT CAST ( NULL AS REAL ) * + COUNT ( - + 78 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9072
SELECT DISTINCT + 72 - - COUNT( * ) col1
----
73

skipif mysql # not compatible
query I rowsort label-9072
SELECT DISTINCT + 72 - - COUNT ( * ) col1
----
73

query I rowsort
SELECT ALL - + 91 AS col2
----
-91

query I rowsort
SELECT + + ( 58 )
----
58

query I rowsort
SELECT ALL 81 - - 99
----
180

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9076
SELECT DISTINCT 27 / CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9076
SELECT DISTINCT 27 / CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT DISTINCT 40 * 82
----
3280

query I rowsort
SELECT ALL COALESCE ( - 66, - 65 )
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-9079
SELECT - 97 DIV - 49
----
1

skipif mysql # not compatible
query I rowsort label-9079
SELECT - 97 / - 49
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9080
SELECT + + COUNT( * ) * + COUNT( * ) * + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9080
SELECT + + COUNT ( * ) * + COUNT ( * ) * + COUNT ( * ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9081
SELECT + ( - COUNT( * ) ) * + - 27
----
27

skipif mysql # not compatible
query I rowsort label-9081
SELECT + ( - COUNT ( * ) ) * + - 27
----
27

query I rowsort
SELECT ALL - 79 * - 59 + 72 + - 41 AS col2
----
4692

query II rowsort
SELECT + + 46 + + 35 AS col0, 80
----
81
80

query I rowsort
SELECT DISTINCT + + 65 AS col1
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9085
SELECT ALL - - 70 * + CAST( NULL AS SIGNED ) * + 49 - - COUNT( * ) AS col1, - 86 col2
----
NULL
-86

skipif mysql # not compatible
query II rowsort label-9085
SELECT ALL - - 70 * + CAST ( NULL AS INTEGER ) * + 49 - - COUNT ( * ) AS col1, - 86 col2
----
NULL
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-9086
SELECT - 91 * + COUNT( * ) * - + 90 AS col0
----
8190

skipif mysql # not compatible
query I rowsort label-9086
SELECT - 91 * + COUNT ( * ) * - + 90 AS col0
----
8190

query I rowsort
SELECT ALL 55 + + 32
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9088
SELECT - CAST( - - ( + + 27 ) AS SIGNED )
----
-27

skipif mysql # not compatible
query I rowsort label-9088
SELECT - CAST ( - - ( + + 27 ) AS INTEGER )
----
-27

query I rowsort
SELECT 82 * + 85 * + + 16 + + 2 AS col2
----
111522

query I rowsort
SELECT ALL + 37 + - 65
----
-28

query I rowsort
SELECT - ( - - 31 )
----
-31

query I rowsort
SELECT 68 * 4 AS col1
----
272

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9093
SELECT ALL CAST( COUNT( * ) AS SIGNED ) + - + 37 AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-9093
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) + - + 37 AS col0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-9094
SELECT DISTINCT - COUNT( * ) * + 13 col2
----
-13

skipif mysql # not compatible
query I rowsort label-9094
SELECT DISTINCT - COUNT ( * ) * + 13 col2
----
-13

query I rowsort
SELECT DISTINCT 68 * + + ( - - 91 )
----
6188

query I rowsort
SELECT ALL + ( + 60 ) AS col0
----
60

query I rowsort
SELECT DISTINCT 97 * + 10
----
970

onlyif mysql # aggregate syntax: 
query I rowsort label-9098
SELECT + SUM( ALL + 51 ) col2
----
51

skipif mysql # not compatible
query I rowsort label-9098
SELECT + SUM ( ALL + 51 ) col2
----
51

query I rowsort
SELECT + 28 + - - 92 AS col0
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-9100
SELECT ALL ( + ( + + COUNT( * ) ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9100
SELECT ALL ( + ( + + COUNT ( * ) ) ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9101
SELECT ( + CAST( - 0 AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-9101
SELECT ( + CAST ( - 0 AS INTEGER ) )
----
0

query I rowsort
SELECT DISTINCT - 63 + 13
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-9103
SELECT COUNT( ALL 71 ) * + 84 AS col0
----
84

skipif mysql # not compatible
query I rowsort label-9103
SELECT COUNT ( ALL 71 ) * + 84 AS col0
----
84

query I rowsort
SELECT ALL 19 * 44
----
836

onlyif mysql # aggregate syntax: 
query II rowsort label-9105
SELECT DISTINCT COUNT( * ), - COUNT( * ) AS col1
----
1
-1

skipif mysql # not compatible
query II rowsort label-9105
SELECT DISTINCT COUNT ( * ), - COUNT ( * ) AS col1
----
1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9106
SELECT ALL COALESCE ( 19, + COUNT( * ) ) * + COUNT( * ) * + + 27 * SUM( DISTINCT - + 25 ) AS col0
----
-12825

skipif mysql # not compatible
query I rowsort label-9106
SELECT ALL COALESCE ( 19, + COUNT ( * ) ) * + COUNT ( * ) * + + 27 * SUM ( DISTINCT - + 25 ) AS col0
----
-12825

onlyif mysql # aggregate syntax: 
query I rowsort label-9107
SELECT MIN( + + 74 ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-9107
SELECT MIN ( + + 74 ) AS col1
----
74

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9108
SELECT + NULLIF ( ( 82 ), - CAST( NULL AS DECIMAL ) )
----
82

skipif mysql # not compatible
query I rowsort label-9108
SELECT + NULLIF ( ( 82 ), - CAST ( NULL AS REAL ) )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9109
SELECT + COUNT( * ) * - + COUNT( * ) * - 93 AS col2
----
93

skipif mysql # not compatible
query I rowsort label-9109
SELECT + COUNT ( * ) * - + COUNT ( * ) * - 93 AS col2
----
93

query I rowsort
SELECT - 4 * 75 AS col1
----
-300

query I rowsort
SELECT ALL ( 0 ) AS col0
----
0

query I rowsort
SELECT ALL + - 64 col1
----
-64

query I rowsort
SELECT ALL + 39 col2
----
39

query I rowsort
SELECT - 62 + + 65
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9115
SELECT ALL CAST( 18 AS SIGNED )
----
18

skipif mysql # not compatible
query I rowsort label-9115
SELECT ALL CAST ( 18 AS INTEGER )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9116
SELECT 9 * - - COUNT( * )
----
9

skipif mysql # not compatible
query I rowsort label-9116
SELECT 9 * - - COUNT ( * )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9117
SELECT DISTINCT - ( - 57 ) * + - 97 * - COUNT( * )
----
5529

skipif mysql # not compatible
query I rowsort label-9117
SELECT DISTINCT - ( - 57 ) * + - 97 * - COUNT ( * )
----
5529

query I rowsort
SELECT + 29 * 12 col2
----
348

query I rowsort
SELECT ALL + 2 - + 44 col0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9120
SELECT ALL MAX( + 2 ) + + - COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9120
SELECT ALL MAX ( + 2 ) + + - COUNT ( * ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9121
SELECT 83 + + + 15 + COUNT( * ) + COUNT( DISTINCT - + 81 ) * - - CAST( NULL AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9121
SELECT 83 + + + 15 + COUNT ( * ) + COUNT ( DISTINCT - + 81 ) * - - CAST ( NULL AS REAL ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9122
SELECT ( - COUNT( * ) ) * - 9
----
9

skipif mysql # not compatible
query I rowsort label-9122
SELECT ( - COUNT ( * ) ) * - 9
----
9

query I rowsort
SELECT 64 * - 23 AS col0
----
-1472

query II rowsort
SELECT 45, - 73 col1
----
45
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-9125
SELECT 51, COUNT( * ) col1
----
51
1

skipif mysql # not compatible
query II rowsort label-9125
SELECT 51, COUNT ( * ) col1
----
51
1

query I rowsort
SELECT + + 70 - - 15 AS col0
----
85

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9127
SELECT + 86 + + + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9127
SELECT + 86 + + + CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( + 63, - - 2 )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9129
SELECT + - 9 - COUNT( * )
----
-10

skipif mysql # not compatible
query I rowsort label-9129
SELECT + - 9 - COUNT ( * )
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-9130
SELECT ALL 22 DIV - 86
----
0

skipif mysql # not compatible
query I rowsort label-9130
SELECT ALL 22 / - 86
----
0

query II rowsort
SELECT 53 col1, + 24 * ( - + 2 ) AS col1
----
53
-48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9132
SELECT DISTINCT - CAST( NULL AS SIGNED ) col2, 24 col1
----
NULL
24

skipif mysql # not compatible
query II rowsort label-9132
SELECT DISTINCT - CAST ( NULL AS INTEGER ) col2, 24 col1
----
NULL
24

query I rowsort
SELECT ALL 15 * ( - 98 ) AS col1
----
-1470

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9134
SELECT ALL + COUNT( * ) * + + 65 / - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9134
SELECT ALL + COUNT ( * ) * + + 65 / - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9135
SELECT ALL COUNT( * ) / + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9135
SELECT ALL COUNT ( * ) / + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9136
SELECT COUNT( * ) - - - 23
----
-22

skipif mysql # not compatible
query I rowsort label-9136
SELECT COUNT ( * ) - - - 23
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-9137
SELECT - MAX( ALL + 23 )
----
-23

skipif mysql # not compatible
query I rowsort label-9137
SELECT - MAX ( ALL + 23 )
----
-23

query I rowsort
SELECT - - ( - 39 ) AS col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-9139
SELECT - ( - 68 ) + + + COUNT( * ) * + ( + - 99 ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-9139
SELECT - ( - 68 ) + + + COUNT ( * ) * + ( + - 99 ) AS col2
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-9140
SELECT - 3 * + COUNT( * ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-9140
SELECT - 3 * + COUNT ( * ) AS col2
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9141
SELECT - 67 DIV COUNT( * ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-9141
SELECT - 67 / COUNT ( * ) AS col1
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-9142
SELECT - 96 - COUNT( * ) AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-9142
SELECT - 96 - COUNT ( * ) AS col0
----
-97

query I rowsort
SELECT ( - 93 ) AS col0
----
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-9144
SELECT ALL COALESCE ( + ( + - 84 ), + + 67 * COUNT( * ) ) AS col0, 84 AS col0
----
-84
84

skipif mysql # not compatible
query II rowsort label-9144
SELECT ALL COALESCE ( + ( + - 84 ), + + 67 * COUNT ( * ) ) AS col0, 84 AS col0
----
-84
84

query I rowsort
SELECT ALL + ( + + 64 ) AS col2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9146
SELECT - - MAX( 33 ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-9146
SELECT - - MAX ( 33 ) AS col0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9147
SELECT ALL 84 - - - COUNT( * ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-9147
SELECT ALL 84 - - - COUNT ( * ) AS col0
----
83

query I rowsort
SELECT ALL + 45 + 77 AS col2
----
122

query I rowsort
SELECT ALL - - 43 AS col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9150
SELECT DISTINCT - - SUM( DISTINCT + - 44 ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-9150
SELECT DISTINCT - - SUM ( DISTINCT + - 44 ) AS col2
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9151
SELECT DISTINCT 21 DIV COUNT( * ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-9151
SELECT DISTINCT 21 / COUNT ( * ) AS col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9152
SELECT ALL COUNT( * ) + + 72
----
73

skipif mysql # not compatible
query I rowsort label-9152
SELECT ALL COUNT ( * ) + + 72
----
73

query I rowsort
SELECT + 90 * + 99
----
8910

query I rowsort
SELECT - - 19 col2
----
19

query I rowsort
SELECT + 91 * + + 89
----
8099

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9156
SELECT 64 DIV + ( + - ( - 42 ) ) + - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9156
SELECT 64 / + ( + - ( - 42 ) ) + - COUNT ( * ) AS col0
----
0

query I rowsort
SELECT ( 77 )
----
77

query II rowsort
SELECT ALL + 6 AS col0, 29
----
6
29

query I rowsort
SELECT 10 + - ( - 95 ) * + 39 AS col2
----
3715

onlyif mysql # aggregate syntax: 
query I rowsort label-9160
SELECT + MAX( - + 39 ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-9160
SELECT + MAX ( - + 39 ) AS col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-9161
SELECT - 54 * 73 - - COUNT( * )
----
-3941

skipif mysql # not compatible
query I rowsort label-9161
SELECT - 54 * 73 - - COUNT ( * )
----
-3941

onlyif mysql # aggregate syntax: 
query I rowsort label-9162
SELECT ( + COUNT( ALL - 80 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9162
SELECT ( + COUNT ( ALL - 80 ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9163
SELECT COUNT( * ) + + - 76
----
-75

skipif mysql # not compatible
query I rowsort label-9163
SELECT COUNT ( * ) + + - 76
----
-75

query I rowsort
SELECT + ( 25 ) AS col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9165
SELECT + 14 * - COUNT( * ) AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-9165
SELECT + 14 * - COUNT ( * ) AS col1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9166
SELECT - SUM( - - 72 )
----
-72

skipif mysql # not compatible
query I rowsort label-9166
SELECT - SUM ( - - 72 )
----
-72

query I rowsort
SELECT - 27 * 49 * - + 2 AS col0
----
2646

onlyif mysql # aggregate syntax: 
query I rowsort label-9168
SELECT ALL + COUNT( ALL - - 16 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9168
SELECT ALL + COUNT ( ALL - - 16 ) AS col2
----
1

query I rowsort
SELECT - NULLIF ( - 44, - + 53 )
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9170
SELECT ALL - 88 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9170
SELECT ALL - 88 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 91 * - 42
----
-3822

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9172
SELECT + CAST( NULL AS SIGNED ) - + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-9172
SELECT + CAST ( NULL AS INTEGER ) - + 38
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9173
SELECT DISTINCT + COUNT( ALL - + 12 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9173
SELECT DISTINCT + COUNT ( ALL - + 12 ) AS col1
----
1

query II rowsort
SELECT - - 79 AS col0, + 77
----
79
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9175
SELECT 25 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9175
SELECT 25 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9176
SELECT - COUNT( * ) + + 72 AS col1
----
71

skipif mysql # not compatible
query I rowsort label-9176
SELECT - COUNT ( * ) + + 72 AS col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9177
SELECT DISTINCT + SUM( ALL 6 ) col1
----
6

skipif mysql # not compatible
query I rowsort label-9177
SELECT DISTINCT + SUM ( ALL 6 ) col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9178
SELECT + COUNT( ALL 95 )
----
1

skipif mysql # not compatible
query I rowsort label-9178
SELECT + COUNT ( ALL 95 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9179
SELECT DISTINCT COUNT( * ) AS col1, - 93 + CAST( + 33 AS SIGNED ) AS col2
----
1
-60

skipif mysql # not compatible
query II rowsort label-9179
SELECT DISTINCT COUNT ( * ) AS col1, - 93 + CAST ( + 33 AS INTEGER ) AS col2
----
1
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-9180
SELECT - + MAX( ALL - + 7 ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-9180
SELECT - + MAX ( ALL - + 7 ) AS col2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9181
SELECT ALL + COUNT( * ) + - 49
----
-48

skipif mysql # not compatible
query I rowsort label-9181
SELECT ALL + COUNT ( * ) + - 49
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-9182
SELECT DISTINCT + COUNT( - + 5 ) + + + MIN( ( - 64 ) )
----
-63

skipif mysql # not compatible
query I rowsort label-9182
SELECT DISTINCT + COUNT ( - + 5 ) + + + MIN ( ( - 64 ) )
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9183
SELECT ALL - 10 DIV - COUNT( * ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-9183
SELECT ALL - 10 / - COUNT ( * ) AS col1
----
10

query I rowsort
SELECT DISTINCT - 93 * - 7 * - 22 AS col0
----
-14322

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9185
SELECT ( + CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9185
SELECT ( + CAST ( NULL AS REAL ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9186
SELECT DISTINCT + + MAX( ALL - 65 )
----
-65

skipif mysql # not compatible
query I rowsort label-9186
SELECT DISTINCT + + MAX ( ALL - 65 )
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-9187
SELECT + COUNT( * ) - - 70
----
71

skipif mysql # not compatible
query I rowsort label-9187
SELECT + COUNT ( * ) - - 70
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9188
SELECT ( 55 ) - COUNT( * ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-9188
SELECT ( 55 ) - COUNT ( * ) AS col2
----
54

query I rowsort
SELECT + 21 + 85 AS col2
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-9190
SELECT DISTINCT - COUNT( * ) - - 27 - + - 55
----
81

skipif mysql # not compatible
query I rowsort label-9190
SELECT DISTINCT - COUNT ( * ) - - 27 - + - 55
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9191
SELECT MAX( 78 )
----
78

skipif mysql # not compatible
query I rowsort label-9191
SELECT MAX ( 78 )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9192
SELECT + COUNT( * ) + + + COUNT( + + 50 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-9192
SELECT + COUNT ( * ) + + + COUNT ( + + 50 ) AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9193
SELECT COUNT( DISTINCT 87 )
----
1

skipif mysql # not compatible
query I rowsort label-9193
SELECT COUNT ( DISTINCT 87 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9194
SELECT DISTINCT SUM( ALL + 16 ) * - COUNT( * ) AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-9194
SELECT DISTINCT SUM ( ALL + 16 ) * - COUNT ( * ) AS col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-9195
SELECT ALL COUNT( * ) * - 9
----
-9

skipif mysql # not compatible
query I rowsort label-9195
SELECT ALL COUNT ( * ) * - 9
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9196
SELECT COUNT( * ) * + 25 AS col1
----
25

skipif mysql # not compatible
query I rowsort label-9196
SELECT COUNT ( * ) * + 25 AS col1
----
25

query II rowsort
SELECT ALL - 89 col2, 3
----
-89
3

query I rowsort
SELECT - 92 + - - 42 AS col1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-9199
SELECT ALL NULLIF ( 36, - - COUNT( * ) )
----
36

skipif mysql # not compatible
query I rowsort label-9199
SELECT ALL NULLIF ( 36, - - COUNT ( * ) )
----
36

query I rowsort
SELECT DISTINCT 32 - 22
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9201
SELECT ALL ( MIN( - + 60 ) ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-9201
SELECT ALL ( MIN ( - + 60 ) ) AS col0
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-9202
SELECT + 13 DIV + + 48
----
0

skipif mysql # not compatible
query I rowsort label-9202
SELECT + 13 / + + 48
----
0

query I rowsort
SELECT ( - - 59 ) AS col2
----
59

query I rowsort
SELECT + - 86 + - ( - + 32 )
----
-54

query I rowsort
SELECT + 66 * + + 44 + 53 AS col1
----
2957

onlyif mysql # aggregate syntax: 
query I rowsort label-9206
SELECT DISTINCT + COUNT( + + 56 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-9206
SELECT DISTINCT + COUNT ( + + 56 ) col2
----
1

query I rowsort
SELECT ALL + - 7 col1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-9208
SELECT - + 79 * + + COUNT( * ) * - 51 AS col0
----
4029

skipif mysql # not compatible
query I rowsort label-9208
SELECT - + 79 * + + COUNT ( * ) * - 51 AS col0
----
4029

query I rowsort
SELECT DISTINCT + 2 * - 72
----
-144

query I rowsort
SELECT ALL ( - 2 ) AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9211
SELECT - MAX( DISTINCT + 83 )
----
-83

skipif mysql # not compatible
query I rowsort label-9211
SELECT - MAX ( DISTINCT + 83 )
----
-83

query I rowsort
SELECT DISTINCT - ( 71 )
----
-71

query I rowsort
SELECT - 38 + - 11
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9214
SELECT ALL - COUNT( DISTINCT - CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-9214
SELECT ALL - COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) )
----
0

query I rowsort
SELECT DISTINCT 13 + + + 70 AS col0
----
83

query I rowsort
SELECT ALL - 5 - - 27 AS col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9217
SELECT DISTINCT 55 * 29 * + SUM( - - 54 ) * - - COUNT( * ) AS col0
----
86130

skipif mysql # not compatible
query I rowsort label-9217
SELECT DISTINCT 55 * 29 * + SUM ( - - 54 ) * - - COUNT ( * ) AS col0
----
86130

query II rowsort
SELECT ALL 72 * 7 AS col0, 14
----
504
14

query I rowsort
SELECT - 7 + - 82 AS col1
----
-89

query I rowsort
SELECT ALL 95 - + 35 AS col2
----
60

query II rowsort
SELECT + 99, - 2 AS col2
----
99
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-9222
SELECT - - 1 col2, COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-9222
SELECT - - 1 col2, COUNT ( * )
----
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9223
SELECT DISTINCT + CAST( + COUNT( * ) AS SIGNED ) - + + 96
----
-95

skipif mysql # not compatible
query I rowsort label-9223
SELECT DISTINCT + CAST ( + COUNT ( * ) AS INTEGER ) - + + 96
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-9224
SELECT 20 + + ( - COUNT( * ) ) col0
----
19

skipif mysql # not compatible
query I rowsort label-9224
SELECT 20 + + ( - COUNT ( * ) ) col0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9225
SELECT ALL + + 88 + - SUM( 84 ) * 60
----
-4952

skipif mysql # not compatible
query I rowsort label-9225
SELECT ALL + + 88 + - SUM ( 84 ) * 60
----
-4952

onlyif mysql # aggregate syntax: 
query I rowsort label-9226
SELECT COUNT( * ) * + + ( COUNT( * ) ) + + ( 22 ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-9226
SELECT COUNT ( * ) * + + ( COUNT ( * ) ) + + ( 22 ) AS col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9227
SELECT COUNT( * ) + 95 + COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-9227
SELECT COUNT ( * ) + 95 + COUNT ( * )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9228
SELECT ALL - SUM( ALL - 69 ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-9228
SELECT ALL - SUM ( ALL - 69 ) AS col2
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-9229
SELECT + 48 * - + ( + ( 30 ) ) + 93 DIV 44
----
-1438

skipif mysql # not compatible
query I rowsort label-9229
SELECT + 48 * - + ( + ( 30 ) ) + 93 / 44
----
-1438

onlyif mysql # aggregate syntax: 
query I rowsort label-9230
SELECT DISTINCT - MIN( ALL - 30 ) * + 21
----
630

skipif mysql # not compatible
query I rowsort label-9230
SELECT DISTINCT - MIN ( ALL - 30 ) * + 21
----
630

query I rowsort
SELECT ALL - + 33 * + 45 AS col1
----
-1485

query I rowsort
SELECT DISTINCT - - ( 85 ) * + 7
----
595

query I rowsort
SELECT 44 * - - 67
----
2948

query II rowsort
SELECT DISTINCT 1, + 75 AS col1
----
1
75

query II rowsort
SELECT ALL 3 AS col0, ( - + 48 )
----
3
-48

query I rowsort
SELECT 34 * - + 29 * + 74 AS col2
----
-72964

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9237
SELECT SUM( DISTINCT + 16 ) * COALESCE ( 30, COUNT( * ), CAST( - CAST( 79 AS SIGNED ) AS SIGNED ) * 56 + - CAST( + 91 AS SIGNED ) ) - 55 * - 30
----
2130

skipif mysql # not compatible
query I rowsort label-9237
SELECT SUM ( DISTINCT + 16 ) * COALESCE ( 30, COUNT ( * ), CAST ( - CAST ( 79 AS INTEGER ) AS INTEGER ) * 56 + - CAST ( + 91 AS INTEGER ) ) - 55 * - 30
----
2130

query I rowsort
SELECT 40 - - 33
----
73

query II rowsort
SELECT 75 col2, + 60 AS col2
----
75
60

query II rowsort
SELECT - 14 AS col1, - 99 * 35 AS col1
----
-14
-3465

query I rowsort
SELECT 50 - + 74 + 42 * + 28
----
1152

onlyif mysql # aggregate syntax: 
query II rowsort label-9242
SELECT ALL 17, - COUNT( - 74 ) AS col1
----
17
-1

skipif mysql # not compatible
query II rowsort label-9242
SELECT ALL 17, - COUNT ( - 74 ) AS col1
----
17
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9243
SELECT ALL 19 + - COUNT( * ) AS col1
----
18

skipif mysql # not compatible
query I rowsort label-9243
SELECT ALL 19 + - COUNT ( * ) AS col1
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9244
SELECT MAX( DISTINCT 76 ) * + - MAX( - 8 ) - + 7 DIV ( 46 ) AS col2
----
608

skipif mysql # not compatible
query I rowsort label-9244
SELECT MAX ( DISTINCT 76 ) * + - MAX ( - 8 ) - + 7 / ( 46 ) AS col2
----
608

onlyif mysql # aggregate syntax: 
query I rowsort label-9245
SELECT SUM( ALL - 99 ) AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-9245
SELECT SUM ( ALL - 99 ) AS col0
----
-99

query I rowsort
SELECT 69 * + 89 * - + 52 AS col2
----
-319332

onlyif mysql # aggregate syntax: 
query I rowsort label-9247
SELECT ALL 13 + - MIN( DISTINCT - 89 )
----
102

skipif mysql # not compatible
query I rowsort label-9247
SELECT ALL 13 + - MIN ( DISTINCT - 89 )
----
102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9248
SELECT + COALESCE ( - - 82, - 33 + 73 DIV 96 ) DIV + COUNT( * ) - 52
----
30

skipif mysql # not compatible
query I rowsort label-9248
SELECT + COALESCE ( - - 82, - 33 + 73 / 96 ) / + COUNT ( * ) - 52
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-9249
SELECT COUNT( * ) AS col2, - 97
----
1
-97

skipif mysql # not compatible
query II rowsort label-9249
SELECT COUNT ( * ) AS col2, - 97
----
1
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9250
SELECT COUNT( * ) * + 19 + + - 13 + + 9 DIV - COALESCE ( + 58 + COUNT( * ), 8 )
----
6

skipif mysql # not compatible
query I rowsort label-9250
SELECT COUNT ( * ) * + 19 + + - 13 + + 9 / - COALESCE ( + 58 + COUNT ( * ), 8 )
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9251
SELECT ALL COUNT( DISTINCT - 6 ) + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9251
SELECT ALL COUNT ( DISTINCT - 6 ) + - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 12 * 60 * + 70
----
50400

query I rowsort
SELECT + 21 + + ( 44 ) * 47
----
2089

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9254
SELECT CAST( NULL AS SIGNED ) + + + 77 * + 81
----
NULL

skipif mysql # not compatible
query I rowsort label-9254
SELECT CAST ( NULL AS INTEGER ) + + + 77 * + 81
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9255
SELECT ALL COALESCE ( + 89, - CAST( NULL AS SIGNED ) ) + MIN( ALL + 78 ) * - 72
----
-5527

skipif mysql # not compatible
query I rowsort label-9255
SELECT ALL COALESCE ( + 89, - CAST ( NULL AS INTEGER ) ) + MIN ( ALL + 78 ) * - 72
----
-5527

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9256
SELECT ALL - 48 - ( + ( - CAST( + 22 AS SIGNED ) ) ) * - 4
----
-136

skipif mysql # not compatible
query I rowsort label-9256
SELECT ALL - 48 - ( + ( - CAST ( + 22 AS INTEGER ) ) ) * - 4
----
-136

onlyif mysql # aggregate syntax: 
query I rowsort label-9257
SELECT - ( - - SUM( ALL 5 ) ) * + COUNT( * ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-9257
SELECT - ( - - SUM ( ALL 5 ) ) * + COUNT ( * ) AS col0
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9258
SELECT ALL - COUNT( * ), MIN( ALL - 32 ) DIV 27 + CAST( - MAX( DISTINCT NULLIF ( - 71, + 54 - 68 ) ) AS SIGNED ) AS col1
----
-1
70

skipif mysql # not compatible
query II rowsort label-9258
SELECT ALL - COUNT ( * ), MIN ( ALL - 32 ) / 27 + CAST ( - MAX ( DISTINCT NULLIF ( - 71, + 54 - 68 ) ) AS INTEGER ) AS col1
----
-1
70

onlyif mysql # DIV for integer division: 
query I rowsort label-9259
SELECT 11 DIV + 43
----
0

skipif mysql # not compatible
query I rowsort label-9259
SELECT 11 / + 43
----
0

query II rowsort
SELECT + + 27 AS col2, + 27 AS col1
----
27
27

query I rowsort
SELECT ALL - ( 33 ) col2
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9262
SELECT + ( + COUNT( * ) ) * - + 59 + CAST( + MAX( DISTINCT + 0 ) - - 43 AS SIGNED ) AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-9262
SELECT + ( + COUNT ( * ) ) * - + 59 + CAST ( + MAX ( DISTINCT + 0 ) - - 43 AS INTEGER ) AS col0
----
-16

query I rowsort
SELECT 91 - + 78
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9264
SELECT - COUNT( * ) - + - CASE CAST( 19 AS SIGNED ) WHEN ( + CAST( 84 AS SIGNED ) ) THEN 76 WHEN 65 - 60 * + 26 THEN 72 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9264
SELECT - COUNT ( * ) - + - CASE CAST ( 19 AS INTEGER ) WHEN ( + CAST ( 84 AS INTEGER ) ) THEN 76 WHEN 65 - 60 * + 26 THEN 72 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9265
SELECT CAST( 93 AS SIGNED ) DIV - 74 + - 98 DIV MIN( 58 ) col1
----
-2

skipif mysql # not compatible
query I rowsort label-9265
SELECT CAST ( 93 AS INTEGER ) / - 74 + - 98 / MIN ( 58 ) col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9266
SELECT 83 * + - SUM( + 12 ) - 70 * 52 AS col2
----
-4636

skipif mysql # not compatible
query I rowsort label-9266
SELECT 83 * + - SUM ( + 12 ) - 70 * 52 AS col2
----
-4636

query I rowsort
SELECT ALL 29 * + 7 AS col1
----
203

onlyif mysql # aggregate syntax: 
query II rowsort label-9268
SELECT 27 AS col2, - COUNT( * )
----
27
-1

skipif mysql # not compatible
query II rowsort label-9268
SELECT 27 AS col2, - COUNT ( * )
----
27
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9269
SELECT ALL NULLIF ( + - COUNT( * ), 7 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9269
SELECT ALL NULLIF ( + - COUNT ( * ), 7 ) AS col0
----
-1

query I rowsort
SELECT 60 - - 41 * - 18 * + 69 AS col1
----
-50862

query I rowsort
SELECT DISTINCT - 61 * - + 88 AS col2
----
5368

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9272
SELECT - + 92 - - - COUNT( * ) DIV - - COUNT( * ) AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-9272
SELECT - + 92 - - - COUNT ( * ) / - - COUNT ( * ) AS col1
----
-93

query I rowsort
SELECT - 73 + + 34 AS col0
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9274
SELECT DISTINCT NULLIF ( MIN( + 18 ), - 28 * + ( - CAST( NULL AS SIGNED ) / + 27 + 92 ) )
----
18

skipif mysql # not compatible
query I rowsort label-9274
SELECT DISTINCT NULLIF ( MIN ( + 18 ), - 28 * + ( - CAST ( NULL AS INTEGER ) / + 27 + 92 ) )
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-9275
SELECT - COUNT( * ) + - 86, - 9 AS col2
----
-87
-9

skipif mysql # not compatible
query II rowsort label-9275
SELECT - COUNT ( * ) + - 86, - 9 AS col2
----
-87
-9

query I rowsort
SELECT ALL - 92 + - 51 AS col0
----
-143

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9277
SELECT - 25 + + - 75 - - 98 + - 32 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9277
SELECT - 25 + + - 75 - - 98 + - 32 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9278
SELECT ALL - COUNT( * ) + COUNT( * ) + + ( 6 ) DIV + 16 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9278
SELECT ALL - COUNT ( * ) + COUNT ( * ) + + ( 6 ) / + 16 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9279
SELECT DISTINCT COUNT( DISTINCT + 90 ) col2, COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-9279
SELECT DISTINCT COUNT ( DISTINCT + 90 ) col2, COUNT ( * )
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9280
SELECT - COALESCE ( + COUNT( * ), - 41 * - 95 + - 12 * + 44, - 7, + 86 ) + 8 * + 55
----
439

skipif mysql # not compatible
query I rowsort label-9280
SELECT - COALESCE ( + COUNT ( * ), - 41 * - 95 + - 12 * + 44, - 7, + 86 ) + 8 * + 55
----
439

query I rowsort
SELECT ALL - 93 + - 58 * - + 74 + + 28 * - 36 AS col2
----
3191

query I rowsort
SELECT - 95 + - 45
----
-140

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9283
SELECT + 47 + + COALESCE ( 46, + + 18 ) DIV MAX( DISTINCT 1 + 33 * 46 ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-9283
SELECT + 47 + + COALESCE ( 46, + + 18 ) / MAX ( DISTINCT 1 + 33 * 46 ) AS col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9284
SELECT ( COUNT( ALL - + 76 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9284
SELECT ( COUNT ( ALL - + 76 ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9285
SELECT - CAST( NULL AS SIGNED ) / - + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-9285
SELECT - CAST ( NULL AS INTEGER ) / - + 89
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9286
SELECT - COUNT( * ) * + ( - 70 ) * 72 * - 0 col0
----
0

skipif mysql # not compatible
query I rowsort label-9286
SELECT - COUNT ( * ) * + ( - 70 ) * 72 * - 0 col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9287
SELECT + CASE + CAST( NULL AS SIGNED ) WHEN - CASE + NULLIF ( + COUNT( * ), 27 ) WHEN CAST( 50 AS SIGNED ) + MIN( + 42 - 84 ) THEN - CAST( NULL AS DECIMAL ) END * NULLIF ( 33, + 8 ) THEN CAST( - 50 AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9287
SELECT + CASE + CAST ( NULL AS INTEGER ) WHEN - CASE + NULLIF ( + COUNT ( * ), 27 ) WHEN CAST ( 50 AS INTEGER ) + MIN ( + 42 - 84 ) THEN - CAST ( NULL AS REAL ) END * NULLIF ( 33, + 8 ) THEN CAST ( - 50 AS INTEGER ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9288
SELECT DISTINCT + CAST( - COUNT( * ) AS SIGNED ) AS col0, COUNT( * ) * - - 13 * 13 AS col0
----
-1
169

skipif mysql # not compatible
query II rowsort label-9288
SELECT DISTINCT + CAST ( - COUNT ( * ) AS INTEGER ) AS col0, COUNT ( * ) * - - 13 * 13 AS col0
----
-1
169

query I rowsort
SELECT + - 14 * 98 AS col2
----
-1372

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9290
SELECT + + COALESCE ( + + 98, + 60 * + 5 ) * CASE - NULLIF ( - CAST( NULL AS SIGNED ), 22 ) - CAST( NULL AS SIGNED ) WHEN - 60 * 42 + 45 THEN NULL WHEN 95 THEN 37 * 50 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9290
SELECT + + COALESCE ( + + 98, + 60 * + 5 ) * CASE - NULLIF ( - CAST ( NULL AS INTEGER ), 22 ) - CAST ( NULL AS INTEGER ) WHEN - 60 * 42 + 45 THEN NULL WHEN 95 THEN 37 * 50 END
----
NULL

query I rowsort
SELECT + 64 + - - 65 AS col2
----
129

query I rowsort
SELECT DISTINCT 33 * 85 AS col0
----
2805

query I rowsort
SELECT ALL 60 * - + 21
----
-1260

query I rowsort
SELECT - 70 * + 46 - 35 AS col2
----
-3255

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9295
SELECT + COALESCE ( CAST( NULL AS SIGNED ), - - 66, 55 + - CASE - 91 WHEN CAST( NULL AS SIGNED ) THEN + CASE 87 WHEN + 28 THEN 45 END DIV + 31 ELSE 20 + + 44 END ) + 75 DIV + ( - ( 68 ) * - 33 )
----
66

skipif mysql # not compatible
query I rowsort label-9295
SELECT + COALESCE ( CAST ( NULL AS INTEGER ), - - 66, 55 + - CASE - 91 WHEN CAST ( NULL AS INTEGER ) THEN + CASE 87 WHEN + 28 THEN 45 END / + 31 ELSE 20 + + 44 END ) + 75 / + ( - ( 68 ) * - 33 )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9296
SELECT + - COALESCE ( - + 41, - + 54 ) * + 48 * - 18 + COUNT( * ) * ( 91 ) AS col0
----
-35333

skipif mysql # not compatible
query I rowsort label-9296
SELECT + - COALESCE ( - + 41, - + 54 ) * + 48 * - 18 + COUNT ( * ) * ( 91 ) AS col0
----
-35333

onlyif mysql # aggregate syntax: 
query I rowsort label-9297
SELECT CASE + 47 WHEN + + 0 + - - COUNT( * ) THEN NULL WHEN 68 * + 59 THEN - 54 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9297
SELECT CASE + 47 WHEN + + 0 + - - COUNT ( * ) THEN NULL WHEN 68 * + 59 THEN - 54 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - ( 51 ) AS col2
----
-51

query I rowsort
SELECT + - ( - ( - 83 ) ) + 40
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-9300
SELECT + + 51 * + 31 + 93 * 93 DIV 98 col1
----
1669

skipif mysql # not compatible
query I rowsort label-9300
SELECT + + 51 * + 31 + 93 * 93 / 98 col1
----
1669

onlyif mysql # aggregate syntax: 
query II rowsort label-9301
SELECT ALL COUNT( * ) AS col2, - CASE 56 WHEN 68 THEN - NULLIF ( - 93, - 15 * ( + 58 * - 64 ) + 26 / - 54 ) * 10 ELSE NULL END AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-9301
SELECT ALL COUNT ( * ) AS col2, - CASE 56 WHEN 68 THEN - NULLIF ( - 93, - 15 * ( + 58 * - 64 ) + 26 / - 54 ) * 10 ELSE NULL END AS col1
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9302
SELECT MIN( - 77 ) AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-9302
SELECT MIN ( - 77 ) AS col1
----
-77

query I rowsort
SELECT - ( NULLIF ( - 88, + 10 ) ) col2
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-9304
SELECT - 49 AS col1, MIN( + + 21 )
----
-49
21

skipif mysql # not compatible
query II rowsort label-9304
SELECT - 49 AS col1, MIN ( + + 21 )
----
-49
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9305
SELECT ALL - 24 + + - 49 - SUM( DISTINCT - - ( + 12 ) ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-9305
SELECT ALL - 24 + + - 49 - SUM ( DISTINCT - - ( + 12 ) ) AS col0
----
-85

query I rowsort
SELECT ALL 55 + 29 AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9307
SELECT ALL + 51 + + 92 + NULLIF ( 74, - SUM( ALL - 89 ) ) * 79
----
5989

skipif mysql # not compatible
query I rowsort label-9307
SELECT ALL + 51 + + 92 + NULLIF ( 74, - SUM ( ALL - 89 ) ) * 79
----
5989

query II rowsort
SELECT 0 AS col0, 77 * + - 22 + + 24 AS col0
----
0
-1670

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9309
SELECT ALL - 88 + - SUM( CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9309
SELECT ALL - 88 + - SUM ( CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9310
SELECT - 19 * + - COUNT( 0 ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-9310
SELECT - 19 * + - COUNT ( 0 ) AS col0
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-9311
SELECT DISTINCT - 79 DIV 18
----
-4

skipif mysql # not compatible
query I rowsort label-9311
SELECT DISTINCT - 79 / 18
----
-4

query I rowsort
SELECT DISTINCT 42 + + + 16 - - NULLIF ( - 56, - 50 ) + 62 AS col1
----
64

query II rowsort
SELECT 97 AS col2, CASE - 12 WHEN - 24 * + + 98 - 48 * 5 THEN 75 / - 71 WHEN 44 * + 75 THEN - 56 * 78 ELSE NULL END AS col0
----
97
NULL

query I rowsort
SELECT - ( + + 27 ) - + 93
----
-120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9315
SELECT ALL 41 - - - 28 * CAST( + 21 AS SIGNED ) + 72 + COUNT( * ) * - 74
----
-549

skipif mysql # not compatible
query I rowsort label-9315
SELECT ALL 41 - - - 28 * CAST ( + 21 AS INTEGER ) + 72 + COUNT ( * ) * - 74
----
-549

onlyif mysql # aggregate syntax: 
query I rowsort label-9316
SELECT DISTINCT + SUM( + - 85 )
----
-85

skipif mysql # not compatible
query I rowsort label-9316
SELECT DISTINCT + SUM ( + - 85 )
----
-85

query I rowsort
SELECT ALL + 89 * - - 60
----
5340

onlyif mysql # aggregate syntax: 
query I rowsort label-9318
SELECT - 29 * + + COUNT( * ) AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-9318
SELECT - 29 * + + COUNT ( * ) AS col1
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9319
SELECT ALL - - 1 DIV + ( 80 ) - + ( + COUNT( * ) ) + 57 * 4 AS col1
----
227

skipif mysql # not compatible
query I rowsort label-9319
SELECT ALL - - 1 / + ( 80 ) - + ( + COUNT ( * ) ) + 57 * 4 AS col1
----
227

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9320
SELECT + CAST( - NULLIF ( COUNT( * ), 50 ) AS SIGNED ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9320
SELECT + CAST ( - NULLIF ( COUNT ( * ), 50 ) AS INTEGER ) AS col0
----
-1

query II rowsort
SELECT ALL + 5 AS col2, - 68
----
5
-68

query I rowsort
SELECT - - 68 - - 29 AS col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9323
SELECT + + COUNT( * ) * + COUNT( * ) * 37 + + - ( - 15 ) + 40
----
92

skipif mysql # not compatible
query I rowsort label-9323
SELECT + + COUNT ( * ) * + COUNT ( * ) * 37 + + - ( - 15 ) + 40
----
92

query I rowsort
SELECT - 52 - + 84 + + - 91 + + 66 + 89 * - 40 * 88
----
-313441

query II rowsort
SELECT + + 97 AS col1, 47 AS col0
----
97
47

query II rowsort
SELECT + 34 AS col1, 12 * + 36
----
34
432

onlyif mysql # DIV for integer division: 
query I rowsort label-9327
SELECT - 5 DIV 54 * + 24 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9327
SELECT - 5 / 54 * + 24 AS col0
----
0

query II rowsort
SELECT + ( + + 3 ) * 40, 28 AS col2
----
120
28

query I rowsort
SELECT - + 91 * + - 12 + - 43 * 59 AS col1
----
-1445

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9330
SELECT - 43 * - CASE + COALESCE ( 16, + - 8 + - COUNT( * ), 24 ) WHEN - 0 THEN ( + CAST( NULL AS SIGNED ) ) / - 72 WHEN 79 THEN NULL ELSE COUNT( * ) END - CAST( NULL AS SIGNED ) * 46 + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-9330
SELECT - 43 * - CASE + COALESCE ( 16, + - 8 + - COUNT ( * ), 24 ) WHEN - 0 THEN ( + CAST ( NULL AS INTEGER ) ) / - 72 WHEN 79 THEN NULL ELSE COUNT ( * ) END - CAST ( NULL AS INTEGER ) * 46 + 16
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9331
SELECT ALL + 47 DIV - 73
----
0

skipif mysql # not compatible
query I rowsort label-9331
SELECT ALL + 47 / - 73
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9332
SELECT - + 41 DIV 19 DIV + 6 * 97 * - + 36
----
0

skipif mysql # not compatible
query I rowsort label-9332
SELECT - + 41 / 19 / + 6 * 97 * - + 36
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9333
SELECT ALL - 6 DIV 4 + 48 DIV + 4 AS col2
----
11

skipif mysql # not compatible
query I rowsort label-9333
SELECT ALL - 6 / 4 + 48 / + 4 AS col2
----
11

query I rowsort
SELECT ALL 94 + - 71 col2
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9335
SELECT DISTINCT - - CAST( NULL AS SIGNED ), CASE 2 WHEN - - 11 THEN + - 26 ELSE NULL END + - CASE - 39 WHEN 42 THEN - 29 * - 75 WHEN 43 * 60 THEN NULL ELSE - 13 + 92 END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9335
SELECT DISTINCT - - CAST ( NULL AS INTEGER ), CASE 2 WHEN - - 11 THEN + - 26 ELSE NULL END + - CASE - 39 WHEN 42 THEN - 29 * - 75 WHEN 43 * 60 THEN NULL ELSE - 13 + 92 END
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9336
SELECT - 8 DIV - - 21 col0
----
0

skipif mysql # not compatible
query I rowsort label-9336
SELECT - 8 / - - 21 col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9337
SELECT - 77 DIV - + 50
----
1

skipif mysql # not compatible
query I rowsort label-9337
SELECT - 77 / - + 50
----
1

query I rowsort
SELECT ALL 52 * 73 + + ( - - 70 ) + 99
----
3965

onlyif mysql # aggregate syntax: 
query I rowsort label-9339
SELECT DISTINCT + COUNT( - + 0 ) + + 83 + + 36
----
120

skipif mysql # not compatible
query I rowsort label-9339
SELECT DISTINCT + COUNT ( - + 0 ) + + 83 + + 36
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-9340
SELECT ( - + SUM( + 93 ) ) - 20
----
-113

skipif mysql # not compatible
query I rowsort label-9340
SELECT ( - + SUM ( + 93 ) ) - 20
----
-113

query I rowsort
SELECT ALL 44 + - + 36 * - 36 * + 90 * 30 - - 68 AS col1
----
3499312

onlyif mysql # aggregate syntax: 
query I rowsort label-9342
SELECT ALL - COALESCE ( + + ( - - 7 ), + + ( - NULLIF ( ( MAX( ALL 23 ) ), ( - CASE ( + ( - 66 ) ) WHEN 15 THEN - 27 WHEN 55 + 43 THEN + COUNT( * ) / COUNT( * ) END ) * + ( 26 - - 58 ) ) ) * 65 ) + + 99 AS col1
----
92

skipif mysql # not compatible
query I rowsort label-9342
SELECT ALL - COALESCE ( + + ( - - 7 ), + + ( - NULLIF ( ( MAX ( ALL 23 ) ), ( - CASE ( + ( - 66 ) ) WHEN 15 THEN - 27 WHEN 55 + 43 THEN + COUNT ( * ) / COUNT ( * ) END ) * + ( 26 - - 58 ) ) ) * 65 ) + + 99 AS col1
----
92

query I rowsort
SELECT ALL + 65 * + - 43
----
-2795

query I rowsort
SELECT 59 * - 92 AS col1
----
-5428

query I rowsort
SELECT ALL 37 + ( - 35 )
----
2

query II rowsort
SELECT 72 AS col0, + 88
----
72
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9347
SELECT CASE + COALESCE ( - 10, - - 52 ) WHEN + SUM( - 24 ) THEN NULL WHEN 97 THEN NULL ELSE + NULLIF ( NULLIF ( - 11, + ( 13 ) * 46 + - 66 ), COUNT( * ) + + 63 * + 11 ) DIV + COALESCE ( 58 * COALESCE ( 87 * + 40, COUNT( * ), - 62 ), 98, 2 + 2 ) END - 45 AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-9347
SELECT CASE + COALESCE ( - 10, - - 52 ) WHEN + SUM ( - 24 ) THEN NULL WHEN 97 THEN NULL ELSE + NULLIF ( NULLIF ( - 11, + ( 13 ) * 46 + - 66 ), COUNT ( * ) + + 63 * + 11 ) / + COALESCE ( 58 * COALESCE ( 87 * + 40, COUNT ( * ), - 62 ), 98, 2 + 2 ) END - 45 AS col2
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-9348
SELECT ALL - CASE + ( - 11 ) WHEN - 78 THEN NULL WHEN - NULLIF ( 46, - COUNT( * ) ) THEN + 32 - 17 END + COALESCE ( 41 + 13, 65 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9348
SELECT ALL - CASE + ( - 11 ) WHEN - 78 THEN NULL WHEN - NULLIF ( 46, - COUNT ( * ) ) THEN + 32 - 17 END + COALESCE ( 41 + 13, 65 ) AS col0
----
NULL

query I rowsort
SELECT ( - - 81 ) + - 12 AS col2
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-9350
SELECT DISTINCT 36 DIV + 55 * + 36 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9350
SELECT DISTINCT 36 / + 55 * + 36 AS col2
----
0

query I rowsort
SELECT 10 * - 31 col0
----
-310

query I rowsort
SELECT ( + 17 ) + + 6
----
23

query I rowsort
SELECT ALL 42 - + 74 * - - 1 AS col1
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-9354
SELECT DISTINCT 0 DIV + 80 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9354
SELECT DISTINCT 0 / + 80 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9355
SELECT ALL - 57 - + - COUNT( * ) DIV 89 + - COUNT( * ) * - + 13 + - ( + NULLIF ( COALESCE ( - 36, - 73 DIV MIN( + 30 ), - 40 + 84 ), 9 ) )
----
-8

skipif mysql # not compatible
query I rowsort label-9355
SELECT ALL - 57 - + - COUNT ( * ) / 89 + - COUNT ( * ) * - + 13 + - ( + NULLIF ( COALESCE ( - 36, - 73 / MIN ( + 30 ), - 40 + 84 ), 9 ) )
----
-8

query II rowsort
SELECT DISTINCT 35 * - 85 AS col0, - 9 * - 23 col1
----
-2975
207

query I rowsort
SELECT 10 * - 12 * 72
----
-8640

onlyif mysql # aggregate syntax: 
query II rowsort label-9358
SELECT DISTINCT 92 AS col1, + 86 * + COUNT( * )
----
92
86

skipif mysql # not compatible
query II rowsort label-9358
SELECT DISTINCT 92 AS col1, + 86 * + COUNT ( * )
----
92
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9359
SELECT - - 17 DIV - 69 + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9359
SELECT - - 17 / - 69 + COUNT ( * ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9360
SELECT MAX( DISTINCT + 39 )
----
39

skipif mysql # not compatible
query I rowsort label-9360
SELECT MAX ( DISTINCT + 39 )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9361
SELECT + 98 + - NULLIF ( ( - COUNT( * ) ), + AVG ( - 17 ) * - COUNT( * ) ) + - 41 AS col0
----
58

skipif mysql # not compatible
query I rowsort label-9361
SELECT + 98 + - NULLIF ( ( - COUNT ( * ) ), + AVG ( - 17 ) * - COUNT ( * ) ) + - 41 AS col0
----
58

query II rowsort
SELECT + 62 AS col2, 1
----
62
1

query I rowsort
SELECT DISTINCT - COALESCE ( 72, + 20 + + 71 ) AS col1
----
-72

query II rowsort
SELECT ALL - + 7 + 66 AS col1, 30
----
59
30

query I rowsort
SELECT + 48 + + + 89 * + - 10
----
-842

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9366
SELECT DISTINCT - 73 + - - 80 * + 76 + + 67 + - - CAST( NULL AS SIGNED ) * - 29 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9366
SELECT DISTINCT - 73 + - - 80 * + 76 + + 67 + - - CAST ( NULL AS INTEGER ) * - 29 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9367
SELECT ALL - - COUNT( * ), + CAST( NULL AS SIGNED ) * - - MAX( DISTINCT - 17 ) * + 75 - ( 45 ) - COUNT( * ) AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-9367
SELECT ALL - - COUNT ( * ), + CAST ( NULL AS INTEGER ) * - - MAX ( DISTINCT - 17 ) * + 75 - ( 45 ) - COUNT ( * ) AS col1
----
1
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9368
SELECT - CAST( 74 AS SIGNED ) * - - 84
----
-6216

skipif mysql # not compatible
query I rowsort label-9368
SELECT - CAST ( 74 AS INTEGER ) * - - 84
----
-6216

query II rowsort
SELECT + + 4 AS col0, + 80
----
4
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9370
SELECT ALL - 24 + - 5 + + 96 * + + 16 + COUNT( * ) + - 6 * 61
----
1142

skipif mysql # not compatible
query I rowsort label-9370
SELECT ALL - 24 + - 5 + + 96 * + + 16 + COUNT ( * ) + - 6 * 61
----
1142

query I rowsort
SELECT 38 + + 61
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9372
SELECT DISTINCT 55 * + + 8 * CAST( 28 AS SIGNED )
----
12320

skipif mysql # not compatible
query I rowsort label-9372
SELECT DISTINCT 55 * + + 8 * CAST ( 28 AS INTEGER )
----
12320

onlyif mysql # aggregate syntax: 
query II rowsort label-9373
SELECT DISTINCT + 6 + - COUNT( * ) AS col2, + COUNT( * ) AS col1
----
5
1

skipif mysql # not compatible
query II rowsort label-9373
SELECT DISTINCT + 6 + - COUNT ( * ) AS col2, + COUNT ( * ) AS col1
----
5
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9374
SELECT 78 * - - 52 * - + COUNT( * )
----
-4056

skipif mysql # not compatible
query I rowsort label-9374
SELECT 78 * - - 52 * - + COUNT ( * )
----
-4056

onlyif mysql # aggregate syntax: 
query I rowsort label-9375
SELECT COUNT( - ( - + 82 ) ) + - + 61 * + + 78 AS col0
----
-4757

skipif mysql # not compatible
query I rowsort label-9375
SELECT COUNT ( - ( - + 82 ) ) + - + 61 * + + 78 AS col0
----
-4757

query I rowsort
SELECT ALL + 88 - + + 18 * - + 80
----
1528

onlyif mysql # aggregate syntax: 
query I rowsort label-9377
SELECT ALL MAX( + 17 )
----
17

skipif mysql # not compatible
query I rowsort label-9377
SELECT ALL MAX ( + 17 )
----
17

query I rowsort
SELECT DISTINCT - 16 * - 62
----
992

query I rowsort
SELECT 3 * - 68 AS col0
----
-204

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9380
SELECT ALL 94 * - CASE - COUNT( * ) WHEN + + 98 THEN NULL WHEN + 24 THEN NULL ELSE + CAST( NULL AS SIGNED ) + COUNT( * ) - - 17 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9380
SELECT ALL 94 * - CASE - COUNT ( * ) WHEN + + 98 THEN NULL WHEN + 24 THEN NULL ELSE + CAST ( NULL AS INTEGER ) + COUNT ( * ) - - 17 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9381
SELECT 10 * 0 * CASE + - COUNT( * ) WHEN + + 72 THEN NULL WHEN 74 * + 0 + - NULLIF ( + 57 + + 19, - 99 ) / - COUNT( * ) THEN + MIN( 13 ) * 17 WHEN 35 * + 19 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9381
SELECT 10 * 0 * CASE + - COUNT ( * ) WHEN + + 72 THEN NULL WHEN 74 * + 0 + - NULLIF ( + 57 + + 19, - 99 ) / - COUNT ( * ) THEN + MIN ( 13 ) * 17 WHEN 35 * + 19 THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9382
SELECT SUM( ALL 89 ) + 83 + + 43 AS col2
----
215

skipif mysql # not compatible
query I rowsort label-9382
SELECT SUM ( ALL 89 ) + 83 + + 43 AS col2
----
215

query I rowsort
SELECT 93 * - + 40
----
-3720

onlyif mysql # aggregate syntax: 
query I rowsort label-9384
SELECT + 30 * - COUNT( * ) col1
----
-30

skipif mysql # not compatible
query I rowsort label-9384
SELECT + 30 * - COUNT ( * ) col1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-9385
SELECT + 87 - - 27 * - CASE 82 WHEN + 5 / COUNT( * ) THEN + 52 * 9 WHEN MAX( - 10 ) THEN NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9385
SELECT + 87 - - 27 * - CASE 82 WHEN + 5 / COUNT ( * ) THEN + 52 * 9 WHEN MAX ( - 10 ) THEN NULL END col1
----
NULL

query I rowsort
SELECT ALL 27 * - ( - 67 ) * + 36 AS col1
----
65124

onlyif mysql # aggregate syntax: 
query I rowsort label-9387
SELECT DISTINCT - + 43 * 54 - + COUNT( * ) + 53
----
-2270

skipif mysql # not compatible
query I rowsort label-9387
SELECT DISTINCT - + 43 * 54 - + COUNT ( * ) + 53
----
-2270

onlyif mysql # DIV for integer division: 
query I rowsort label-9388
SELECT + + 14 DIV 14
----
1

skipif mysql # not compatible
query I rowsort label-9388
SELECT + + 14 / 14
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9389
SELECT + COUNT( 88 ) * + 38 + - + NULLIF ( + NULLIF ( - 83, - 40 ), - 70 * - 3 ) + MIN( DISTINCT 47 )
----
168

skipif mysql # not compatible
query I rowsort label-9389
SELECT + COUNT ( 88 ) * + 38 + - + NULLIF ( + NULLIF ( - 83, - 40 ), - 70 * - 3 ) + MIN ( DISTINCT 47 )
----
168

query I rowsort
SELECT - 37 - - 13 + - 26
----
-50

query I rowsort
SELECT - - 33 * 9 + 14 * - 82 AS col0
----
-851

onlyif mysql # aggregate syntax: 
query I rowsort label-9392
SELECT + MAX( DISTINCT 76 ) * + COUNT( * ) + - 73 - 43 * - 41 * 59 AS col0
----
104020

skipif mysql # not compatible
query I rowsort label-9392
SELECT + MAX ( DISTINCT 76 ) * + COUNT ( * ) + - 73 - 43 * - 41 * 59 AS col0
----
104020

onlyif mysql # aggregate syntax: 
query II rowsort label-9393
SELECT + + ( - + 16 ) AS col2, COUNT( ALL 33 ) AS col2
----
-16
1

skipif mysql # not compatible
query II rowsort label-9393
SELECT + + ( - + 16 ) AS col2, COUNT ( ALL 33 ) AS col2
----
-16
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9394
SELECT ALL SUM( ALL - CAST( NULL AS SIGNED ) ) * - COUNT( * ) + + - 14 + + 95 * - - 56 / + - 47 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9394
SELECT ALL SUM ( ALL - CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) + + - 14 + + 95 * - - 56 / + - 47 AS col1
----
NULL

query I rowsort
SELECT + 12 * - + 52
----
-624

onlyif mysql # aggregate syntax: 
query I rowsort label-9396
SELECT ALL - + COUNT( * ) * + - 56 + - - 98 + 40 * - 87 AS col0
----
-3326

skipif mysql # not compatible
query I rowsort label-9396
SELECT ALL - + COUNT ( * ) * + - 56 + - - 98 + 40 * - 87 AS col0
----
-3326

query I rowsort
SELECT ALL - 92 * + 1
----
-92

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9398
SELECT DISTINCT - 20 * - + COALESCE ( 83, 80 * - 94 * CASE - - 17 WHEN - + SUM( DISTINCT + 66 ) * - NULLIF ( - 14, - CAST( + 94 AS DECIMAL ) ) THEN - ( 76 ) ELSE NULL END + 34 ) AS col0
----
1660

skipif mysql # not compatible
query I rowsort label-9398
SELECT DISTINCT - 20 * - + COALESCE ( 83, 80 * - 94 * CASE - - 17 WHEN - + SUM ( DISTINCT + 66 ) * - NULLIF ( - 14, - CAST ( + 94 AS REAL ) ) THEN - ( 76 ) ELSE NULL END + 34 ) AS col0
----
1660

onlyif mysql # aggregate syntax: 
query II rowsort label-9399
SELECT + 0 col2, NULLIF ( - COUNT( * ), 25 ) AS col2
----
0
-1

skipif mysql # not compatible
query II rowsort label-9399
SELECT + 0 col2, NULLIF ( - COUNT ( * ), 25 ) AS col2
----
0
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9400
SELECT - CASE - MIN( DISTINCT + 65 ) WHEN - CASE 56 WHEN ( + 35 ) / AVG ( ALL ( + 53 ) ) + 82 * 58 + COUNT( * ) THEN NULL ELSE 30 END THEN NULL WHEN 6 / + MAX( DISTINCT - 94 * - 92 ) + 24 / 47 THEN CAST( NULL AS SIGNED ) ELSE 35 END * - 16
----
560

skipif mysql # not compatible
query I rowsort label-9400
SELECT - CASE - MIN ( DISTINCT + 65 ) WHEN - CASE 56 WHEN ( + 35 ) / AVG ( ALL ( + 53 ) ) + 82 * 58 + COUNT ( * ) THEN NULL ELSE 30 END THEN NULL WHEN 6 / + MAX ( DISTINCT - 94 * - 92 ) + 24 / 47 THEN CAST ( NULL AS INTEGER ) ELSE 35 END * - 16
----
560

query I rowsort
SELECT ALL + 2 * + - 48 * - 38 * - ( - - 69 ) AS col1
----
-251712

onlyif mysql # aggregate syntax: 
query I rowsort label-9402
SELECT MIN( DISTINCT + 82 )
----
82

skipif mysql # not compatible
query I rowsort label-9402
SELECT MIN ( DISTINCT + 82 )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9403
SELECT - NULLIF ( COALESCE ( - - 89, + MAX( + + 60 ) ), - + 19 ) * + 59
----
-5251

skipif mysql # not compatible
query I rowsort label-9403
SELECT - NULLIF ( COALESCE ( - - 89, + MAX ( + + 60 ) ), - + 19 ) * + 59
----
-5251

query I rowsort
SELECT - 25 * 10
----
-250

query I rowsort
SELECT ALL ( + 17 ) AS col1
----
17

query I rowsort
SELECT ALL ( - 67 ) AS col0
----
-67

query I rowsort
SELECT - 13 + - + 19
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-9408
SELECT - 89 * + 21 * + + CASE - AVG ( DISTINCT 17 ) WHEN + 43 / - - 26 THEN - COUNT( * ) WHEN - SUM( DISTINCT - 76 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9408
SELECT - 89 * + 21 * + + CASE - AVG ( DISTINCT 17 ) WHEN + 43 / - - 26 THEN - COUNT ( * ) WHEN - SUM ( DISTINCT - 76 ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9409
SELECT ALL ( 15 ) * + COUNT( * ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-9409
SELECT ALL ( 15 ) * + COUNT ( * ) AS col1
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-9410
SELECT ALL + 58 DIV + - 23
----
-2

skipif mysql # not compatible
query I rowsort label-9410
SELECT ALL + 58 / + - 23
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9411
SELECT - 82 - + COUNT( * ) + - + ( 21 )
----
-104

skipif mysql # not compatible
query I rowsort label-9411
SELECT - 82 - + COUNT ( * ) + - + ( 21 )
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-9412
SELECT - MIN( + 39 ) * + 97 - - 98
----
-3685

skipif mysql # not compatible
query I rowsort label-9412
SELECT - MIN ( + 39 ) * + 97 - - 98
----
-3685

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9413
SELECT - CAST( - SUM( DISTINCT - - 35 ) AS SIGNED ) * - 50 + + CASE - + 82 WHEN + 1 THEN NULL ELSE MIN( ALL - 35 ) * 84 END * - 41
----
118790

skipif mysql # not compatible
query I rowsort label-9413
SELECT - CAST ( - SUM ( DISTINCT - - 35 ) AS INTEGER ) * - 50 + + CASE - + 82 WHEN + 1 THEN NULL ELSE MIN ( ALL - 35 ) * 84 END * - 41
----
118790

query I rowsort
SELECT + 59 + + 78 * + - 40 * ( + 18 ) AS col2
----
-56101

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9415
SELECT + MIN( 76 ) DIV ( 94 ) col2, 36
----
0
36

skipif mysql # not compatible
query II rowsort label-9415
SELECT + MIN ( 76 ) / ( 94 ) col2, 36
----
0
36

query I rowsort
SELECT + 35 * 62 AS col2
----
2170

onlyif mysql # aggregate syntax: 
query I rowsort label-9417
SELECT NULLIF ( 89, - SUM( ( 81 ) ) ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-9417
SELECT NULLIF ( 89, - SUM ( ( 81 ) ) ) AS col2
----
89

query I rowsort
SELECT + 85 + - ( - + 48 ) AS col2
----
133

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9419
SELECT DISTINCT + 17 + + 93 - COUNT( * ) DIV - ( 18 )
----
110

skipif mysql # not compatible
query I rowsort label-9419
SELECT DISTINCT + 17 + + 93 - COUNT ( * ) / - ( 18 )
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-9420
SELECT - - 84 * - NULLIF ( 98, + 74 * - - COUNT( + 39 ) )
----
-8232

skipif mysql # not compatible
query I rowsort label-9420
SELECT - - 84 * - NULLIF ( 98, + 74 * - - COUNT ( + 39 ) )
----
-8232

onlyif mysql # aggregate syntax: 
query II rowsort label-9421
SELECT + + 79 + MIN( 88 ) AS col0, + 74 + + 11
----
167
85

skipif mysql # not compatible
query II rowsort label-9421
SELECT + + 79 + MIN ( 88 ) AS col0, + 74 + + 11
----
167
85

query II rowsort
SELECT - + 52 AS col2, + 83
----
-52
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9423
SELECT + CAST( - 53 AS SIGNED ) * + 20
----
-1060

skipif mysql # not compatible
query I rowsort label-9423
SELECT + CAST ( - 53 AS INTEGER ) * + 20
----
-1060

query II rowsort
SELECT DISTINCT + + 62 AS col0, - 5
----
62
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9425
SELECT DISTINCT + + 48 DIV + 46 * COUNT( DISTINCT 62 ) + - 81
----
-80

skipif mysql # not compatible
query I rowsort label-9425
SELECT DISTINCT + + 48 / + 46 * COUNT ( DISTINCT 62 ) + - 81
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-9426
SELECT - 19 * + COUNT( * ) + - NULLIF ( - + COUNT( * ), + + 0 * + 56 ) + 1 + ( + NULLIF ( + NULLIF ( 22, AVG ( DISTINCT + 83 ) * 76 ), 63 ) )
----
5

skipif mysql # not compatible
query I rowsort label-9426
SELECT - 19 * + COUNT ( * ) + - NULLIF ( - + COUNT ( * ), + + 0 * + 56 ) + 1 + ( + NULLIF ( + NULLIF ( 22, AVG ( DISTINCT + 83 ) * 76 ), 63 ) )
----
5

query I rowsort
SELECT ALL + + CASE - + 2 WHEN - + 9 THEN - - 34 END col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9428
SELECT + - 52 * - 65 + + CASE - COALESCE ( 42, - + 63 ) WHEN - 56 / + ( CAST( 42 AS DECIMAL ) ) * 43 + ( - ( ( + 69 ) ) ) THEN - 25 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9428
SELECT + - 52 * - 65 + + CASE - COALESCE ( 42, - + 63 ) WHEN - 56 / + ( CAST ( 42 AS REAL ) ) * 43 + ( - ( ( + 69 ) ) ) THEN - 25 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9429
SELECT + CASE - 27 WHEN - - 4 THEN NULL WHEN - - 76 * - + 94 THEN + + 90 + 13 - + ( - 98 ) ELSE MIN( DISTINCT + 83 ) * NULLIF ( 3, + 97 + 76 ) END AS col1
----
249

skipif mysql # not compatible
query I rowsort label-9429
SELECT + CASE - 27 WHEN - - 4 THEN NULL WHEN - - 76 * - + 94 THEN + + 90 + 13 - + ( - 98 ) ELSE MIN ( DISTINCT + 83 ) * NULLIF ( 3, + 97 + 76 ) END AS col1
----
249

query I rowsort
SELECT ALL + 72 * - 14
----
-1008

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9431
SELECT + NULLIF ( + + 31, + 20 - + SUM( + CAST( + 95 AS SIGNED ) ) )
----
31

skipif mysql # not compatible
query I rowsort label-9431
SELECT + NULLIF ( + + 31, + 20 - + SUM ( + CAST ( + 95 AS INTEGER ) ) )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9432
SELECT + COUNT( * ) * - - 47 AS col2
----
47

skipif mysql # not compatible
query I rowsort label-9432
SELECT + COUNT ( * ) * - - 47 AS col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9433
SELECT + SUM( - + 69 ) + - 91 AS col2
----
-160

skipif mysql # not compatible
query I rowsort label-9433
SELECT + SUM ( - + 69 ) + - 91 AS col2
----
-160

query I rowsort
SELECT + 37 + 8 * 19
----
189

query I rowsort
SELECT - 65 * 15 col0
----
-975

query I rowsort
SELECT - 83 + - + 35 + - + 53
----
-171

query I rowsort
SELECT - 59 + + 36 - + 19
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-9438
SELECT ALL + 19 * - COUNT( * ) * SUM( + 41 ) + + 88, - 67 * - - 44 AS col1
----
-691
-2948

skipif mysql # not compatible
query II rowsort label-9438
SELECT ALL + 19 * - COUNT ( * ) * SUM ( + 41 ) + + 88, - 67 * - - 44 AS col1
----
-691
-2948

onlyif mysql # DIV for integer division: 
query I rowsort label-9439
SELECT + 29 DIV 95
----
0

skipif mysql # not compatible
query I rowsort label-9439
SELECT + 29 / 95
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9440
SELECT - COUNT( * ) * - - ( + COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9440
SELECT - COUNT ( * ) * - - ( + COUNT ( * ) ) AS col2
----
-1

query I rowsort
SELECT - 47 * - - 99 AS col1
----
-4653

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9442
SELECT DISTINCT CAST( 85 AS SIGNED ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-9442
SELECT DISTINCT CAST ( 85 AS INTEGER ) AS col0
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9443
SELECT DISTINCT + COALESCE ( - 26, + COUNT( * ), + 59 DIV - + 59 ) * 40 * + + 0 * + - COALESCE ( - - 30, 86 * + CASE + 5 WHEN 28 * + 11 THEN NULL ELSE 21 + + 47 END + 86, + 97 ) + + 51
----
51

skipif mysql # not compatible
query I rowsort label-9443
SELECT DISTINCT + COALESCE ( - 26, + COUNT ( * ), + 59 / - + 59 ) * 40 * + + 0 * + - COALESCE ( - - 30, 86 * + CASE + 5 WHEN 28 * + 11 THEN NULL ELSE 21 + + 47 END + 86, + 97 ) + + 51
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9444
SELECT ALL - 43 + 88 * - 29 + COUNT( * )
----
-2594

skipif mysql # not compatible
query I rowsort label-9444
SELECT ALL - 43 + 88 * - 29 + COUNT ( * )
----
-2594

onlyif mysql # DIV for integer division: 
query I rowsort label-9445
SELECT + 69 DIV + - 80
----
0

skipif mysql # not compatible
query I rowsort label-9445
SELECT + 69 / + - 80
----
0

query I rowsort
SELECT ALL + + 76 + - + 50 - - 64
----
90

query I rowsort
SELECT - ( 67 ) col1
----
-67

query I rowsort
SELECT ALL + - 80 + - 74 * + 19 * - ( + + 3 ) AS col1
----
4138

onlyif mysql # aggregate syntax: 
query II rowsort label-9449
SELECT - - ( - 83 ) AS col2, MIN( ALL - 84 )
----
-83
-84

skipif mysql # not compatible
query II rowsort label-9449
SELECT - - ( - 83 ) AS col2, MIN ( ALL - 84 )
----
-83
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9450
SELECT ALL - - 0 DIV + COUNT( * ) + 35 AS col0
----
35

skipif mysql # not compatible
query I rowsort label-9450
SELECT ALL - - 0 / + COUNT ( * ) + 35 AS col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9451
SELECT 33 * MIN( - 41 )
----
-1353

skipif mysql # not compatible
query I rowsort label-9451
SELECT 33 * MIN ( - 41 )
----
-1353

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9452
SELECT DISTINCT + CAST( + 89 AS SIGNED )
----
89

skipif mysql # not compatible
query I rowsort label-9452
SELECT DISTINCT + CAST ( + 89 AS INTEGER )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9453
SELECT ALL + - MAX( + 50 ) - - + 39
----
-11

skipif mysql # not compatible
query I rowsort label-9453
SELECT ALL + - MAX ( + 50 ) - - + 39
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-9454
SELECT 5 + 25 DIV 3 * 75
----
605

skipif mysql # not compatible
query I rowsort label-9454
SELECT 5 + 25 / 3 * 75
----
605

query I rowsort
SELECT DISTINCT + + 46 * - - 21
----
966

query I rowsort
SELECT + 25 * + 60 + + 83
----
1583

onlyif mysql # aggregate syntax: 
query I rowsort label-9457
SELECT MIN( - 95 ) * - + 76
----
7220

skipif mysql # not compatible
query I rowsort label-9457
SELECT MIN ( - 95 ) * - + 76
----
7220

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9458
SELECT CAST( NULL AS SIGNED ) * 87 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9458
SELECT CAST ( NULL AS INTEGER ) * 87 col2
----
NULL

query II rowsort
SELECT + 98 AS col2, ( + 37 ) AS col0
----
98
37

query I rowsort
SELECT 78 + NULLIF ( - 5, + 2 * - + 35 )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9461
SELECT ALL - NULLIF ( 5, - - COUNT( * ) * - COUNT( * ) / 74 + 59 )
----
-5

skipif mysql # not compatible
query I rowsort label-9461
SELECT ALL - NULLIF ( 5, - - COUNT ( * ) * - COUNT ( * ) / 74 + 59 )
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9462
SELECT ALL - 75 DIV + COALESCE ( - ( COUNT( * ) ), - 99 + - + 44 * + 72 * + - 52 )
----
75

skipif mysql # not compatible
query I rowsort label-9462
SELECT ALL - 75 / + COALESCE ( - ( COUNT ( * ) ), - 99 + - + 44 * + 72 * + - 52 )
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9463
SELECT 94 * COUNT( * ) DIV + 77 AS col0, - CASE + - 59 WHEN + 81 THEN - - 47 + COALESCE ( 76, - 97 ) WHEN - 3 THEN CAST( 92 AS SIGNED ) + 59 WHEN + 61 THEN NULL END AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-9463
SELECT 94 * COUNT ( * ) / + 77 AS col0, - CASE + - 59 WHEN + 81 THEN - - 47 + COALESCE ( 76, - 97 ) WHEN - 3 THEN CAST ( 92 AS INTEGER ) + 59 WHEN + 61 THEN NULL END AS col0
----
1
NULL

query I rowsort
SELECT ALL 71 * 27
----
1917

query I rowsort
SELECT 84 + 72
----
156

query I rowsort
SELECT 19 * + 5
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9467
SELECT CASE ( + + 28 ) WHEN 4 + CASE 30 WHEN - 47 THEN + ( + 32 ) + + 48 ELSE - 3 + 48 END THEN NULL WHEN 41 THEN ( - 63 ) WHEN - CAST( 22 AS SIGNED ) * - 24 THEN NULL END + + 66 * 22 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9467
SELECT CASE ( + + 28 ) WHEN 4 + CASE 30 WHEN - 47 THEN + ( + 32 ) + + 48 ELSE - 3 + 48 END THEN NULL WHEN 41 THEN ( - 63 ) WHEN - CAST ( 22 AS INTEGER ) * - 24 THEN NULL END + + 66 * 22 col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9468
SELECT COALESCE ( 42, - 39 ) + - + COUNT( * ) DIV + 67
----
42

skipif mysql # not compatible
query I rowsort label-9468
SELECT COALESCE ( 42, - 39 ) + - + COUNT ( * ) / + 67
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9469
SELECT 38 DIV + COUNT( * )
----
38

skipif mysql # not compatible
query I rowsort label-9469
SELECT 38 / + COUNT ( * )
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9470
SELECT 9 + - + CAST( + COUNT( * ) AS SIGNED ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-9470
SELECT 9 + - + CAST ( + COUNT ( * ) AS INTEGER ) AS col2
----
8

query I rowsort
SELECT 45 * - 74
----
-3330

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9472
SELECT DISTINCT 59 DIV + COUNT( * ) col1
----
59

skipif mysql # not compatible
query I rowsort label-9472
SELECT DISTINCT 59 / + COUNT ( * ) col1
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9473
SELECT ALL ( + 38 ) + + 34 + COALESCE ( - + ( ( + 57 ) ), + 42 + 79 ) + 24 + CAST( 3 AS SIGNED ) * + 27 AS col2
----
120

skipif mysql # not compatible
query I rowsort label-9473
SELECT ALL ( + 38 ) + + 34 + COALESCE ( - + ( ( + 57 ) ), + 42 + 79 ) + 24 + CAST ( 3 AS INTEGER ) * + 27 AS col2
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-9474
SELECT - 75 * - + COUNT( * ) + + + 22
----
97

skipif mysql # not compatible
query I rowsort label-9474
SELECT - 75 * - + COUNT ( * ) + + + 22
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9475
SELECT ALL COALESCE ( CAST( COUNT( * ) AS SIGNED ), + 42 + + + 64 - - 70 ) + 71 AS col1
----
72

skipif mysql # not compatible
query I rowsort label-9475
SELECT ALL COALESCE ( CAST ( COUNT ( * ) AS INTEGER ), + 42 + + + 64 - - 70 ) + 71 AS col1
----
72

query I rowsort
SELECT ALL - 68 + + 20 AS col0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-9477
SELECT DISTINCT MIN( + + 29 ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-9477
SELECT DISTINCT MIN ( + + 29 ) AS col2
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9478
SELECT - 76 - + 5 + ( - 12 ) + - 14 DIV 43 * - COUNT( * )
----
-93

skipif mysql # not compatible
query I rowsort label-9478
SELECT - 76 - + 5 + ( - 12 ) + - 14 / 43 * - COUNT ( * )
----
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-9479
SELECT ALL + 15 AS col2, - COUNT( * ) AS col1
----
15
-1

skipif mysql # not compatible
query II rowsort label-9479
SELECT ALL + 15 AS col2, - COUNT ( * ) AS col1
----
15
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9480
SELECT 58 + - + SUM( ALL + 61 )
----
-3

skipif mysql # not compatible
query I rowsort label-9480
SELECT 58 + - + SUM ( ALL + 61 )
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-9481
SELECT 2 + + - 92 * 63 col1, COUNT( * ) + - 10 - 2 AS col0
----
-5794
-11

skipif mysql # not compatible
query II rowsort label-9481
SELECT 2 + + - 92 * 63 col1, COUNT ( * ) + - 10 - 2 AS col0
----
-5794
-11

query I rowsort
SELECT 48 + + 0
----
48

query I rowsort
SELECT + 43 * - - 58
----
2494

query I rowsort
SELECT - ( 36 ) + - 84 AS col1
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-9485
SELECT ( + COUNT( - - 2 ) ) + ( + COALESCE ( + ( COUNT( * ) ), 32 ) ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-9485
SELECT ( + COUNT ( - - 2 ) ) + ( + COALESCE ( + ( COUNT ( * ) ), 32 ) ) AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9486
SELECT COUNT( * ) + - - 78 col0
----
79

skipif mysql # not compatible
query I rowsort label-9486
SELECT COUNT ( * ) + - - 78 col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9487
SELECT + ( 63 ) + + + AVG ( - 47 ) + + CASE - - 65 WHEN + 47 + - COUNT( + NULLIF ( + - 26, 21 ) ) + 43 * + ( CASE + ( COUNT( * ) ) WHEN 6 THEN + 26 + + COUNT( * ) WHEN 32 * ( + MAX( ALL COALESCE ( 98, - 24 ) ) ) THEN NULL END + 79 ) THEN COALESCE ( 30, - 40 ) + 54 * - 7 ELSE NULL END * 30 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9487
SELECT + ( 63 ) + + + AVG ( - 47 ) + + CASE - - 65 WHEN + 47 + - COUNT ( + NULLIF ( + - 26, 21 ) ) + 43 * + ( CASE + ( COUNT ( * ) ) WHEN 6 THEN + 26 + + COUNT ( * ) WHEN 32 * ( + MAX ( ALL COALESCE ( 98, - 24 ) ) ) THEN NULL END + 79 ) THEN COALESCE ( 30, - 40 ) + 54 * - 7 ELSE NULL END * 30 col0
----
NULL

query I rowsort
SELECT ALL + 16 - - NULLIF ( - 84, - 27 ) - - 23 AS col0
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-9489
SELECT 50 DIV + 37 col1
----
1

skipif mysql # not compatible
query I rowsort label-9489
SELECT 50 / + 37 col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9490
SELECT DISTINCT - 14 DIV + 83
----
0

skipif mysql # not compatible
query I rowsort label-9490
SELECT DISTINCT - 14 / + 83
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9491
SELECT - + 84 AS col1, + COUNT( ALL - + 4 )
----
-84
1

skipif mysql # not compatible
query II rowsort label-9491
SELECT - + 84 AS col1, + COUNT ( ALL - + 4 )
----
-84
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9492
SELECT - COUNT( * ) + + - 8 + 62 * COUNT( * ) + - CAST( + COUNT( * ) AS SIGNED ) DIV ( - 22 ) * - 59 DIV - SUM( DISTINCT + 39 ) * MIN( DISTINCT - 74 DIV + CAST( + ( ( 93 ) ) DIV + 39 AS SIGNED ) ) + - COALESCE ( 52, 73 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9492
SELECT - COUNT ( * ) + + - 8 + 62 * COUNT ( * ) + - CAST ( + COUNT ( * ) AS INTEGER ) / ( - 22 ) * - 59 / - SUM ( DISTINCT + 39 ) * MIN ( DISTINCT - 74 / + CAST ( + ( ( 93 ) ) / + 39 AS INTEGER ) ) + - COALESCE ( 52, 73 ) AS col2
----
1

query I rowsort
SELECT ALL - + 81 * + - 10 AS col2
----
810

onlyif mysql # DIV for integer division: 
query I rowsort label-9494
SELECT + 42 DIV + 18 + 64
----
66

skipif mysql # not compatible
query I rowsort label-9494
SELECT + 42 / + 18 + 64
----
66

query II rowsort
SELECT + 93 AS col2, 65
----
93
65

query I rowsort
SELECT DISTINCT - 89 * - 24
----
2136

query I rowsort
SELECT 4 * - 59
----
-236

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9498
SELECT ALL ( + ( 27 ) ) * 67 + CASE CASE + 26 WHEN - - 58 THEN NULL WHEN + 11 + 79 * + - 61 THEN CAST( 38 AS SIGNED ) END WHEN COALESCE ( 65, 61 + - 0 ) + 40 THEN - 94 END + + 47 + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-9498
SELECT ALL ( + ( 27 ) ) * 67 + CASE CASE + 26 WHEN - - 58 THEN NULL WHEN + 11 + 79 * + - 61 THEN CAST ( 38 AS INTEGER ) END WHEN COALESCE ( 65, 61 + - 0 ) + 40 THEN - 94 END + + 47 + 71
----
NULL

query I rowsort
SELECT DISTINCT - 63 * + 11 + 64
----
-629

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9500
SELECT 71 * - 16 * + + 39 + 79 + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9500
SELECT 71 * - 16 * + + 39 + 79 + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9501
SELECT ALL - COUNT( * ) * - + ( + 43 ) + + MIN( + 1 ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-9501
SELECT ALL - COUNT ( * ) * - + ( + 43 ) + + MIN ( + 1 ) AS col0
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-9502
SELECT COUNT( * ) AS col1, - COUNT( * ) * + COUNT( * ) AS col0
----
1
-1

skipif mysql # not compatible
query II rowsort label-9502
SELECT COUNT ( * ) AS col1, - COUNT ( * ) * + COUNT ( * ) AS col0
----
1
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9503
SELECT - 72 * + CAST( NULL AS SIGNED ) * AVG ( DISTINCT 60 ) + + COUNT( * ) + 23 + 99 * + + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-9503
SELECT - 72 * + CAST ( NULL AS INTEGER ) * AVG ( DISTINCT 60 ) + + COUNT ( * ) + 23 + 99 * + + 1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9504
SELECT ALL 18 * 20 AS col0, + CAST( NULL AS SIGNED ) / - - COUNT( + 32 ) / + 36
----
360
NULL

skipif mysql # not compatible
query II rowsort label-9504
SELECT ALL 18 * 20 AS col0, + CAST ( NULL AS INTEGER ) / - - COUNT ( + 32 ) / + 36
----
360
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9505
SELECT 19 DIV 17
----
1

skipif mysql # not compatible
query I rowsort label-9505
SELECT 19 / 17
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9506
SELECT ALL - 36 + - COUNT( * )
----
-37

skipif mysql # not compatible
query I rowsort label-9506
SELECT ALL - 36 + - COUNT ( * )
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9507
SELECT ALL + CAST( - + 27 AS SIGNED ) AS col1, CAST( - 58 AS SIGNED ) * - 47
----
-27
2726

skipif mysql # not compatible
query II rowsort label-9507
SELECT ALL + CAST ( - + 27 AS INTEGER ) AS col1, CAST ( - 58 AS INTEGER ) * - 47
----
-27
2726

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9508
SELECT ALL CAST( NULL AS SIGNED ) + - - 45 - 82
----
NULL

skipif mysql # not compatible
query I rowsort label-9508
SELECT ALL CAST ( NULL AS INTEGER ) + - - 45 - 82
----
NULL

query I rowsort
SELECT ALL 82 * - 39 AS col1
----
-3198

onlyif mysql # aggregate syntax: 
query I rowsort label-9510
SELECT DISTINCT 39 * COUNT( * ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-9510
SELECT DISTINCT 39 * COUNT ( * ) AS col2
----
39

query I rowsort
SELECT ALL - 61 - 27 * - - 79
----
-2194

query II rowsort
SELECT - 66 AS col0, + 30 AS col1
----
-66
30

onlyif mysql # DIV for integer division: 
query I rowsort label-9513
SELECT + + 80 DIV + 50
----
1

skipif mysql # not compatible
query I rowsort label-9513
SELECT + + 80 / + 50
----
1

query I rowsort
SELECT + - 6 * 30 + + - 72 + - 67 + + 92
----
-227

query I rowsort
SELECT ALL ( + - 61 ) * + + 0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9516
SELECT ALL + NULLIF ( + - ( - COALESCE ( - 73, + 31 ) ), - 11 ) DIV + 50
----
-1

skipif mysql # not compatible
query I rowsort label-9516
SELECT ALL + NULLIF ( + - ( - COALESCE ( - 73, + 31 ) ), - 11 ) / + 50
----
-1

query II rowsort
SELECT - 0 AS col0, 96
----
0
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9518
SELECT ALL 24 - - NULLIF ( - - 28, + COUNT( * ) ) + COUNT( * ) + - COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-9518
SELECT ALL 24 - - NULLIF ( - - 28, + COUNT ( * ) ) + COUNT ( * ) + - COUNT ( * )
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-9519
SELECT ALL - - 20 * - 99 + + 38 DIV 65
----
-1980

skipif mysql # not compatible
query I rowsort label-9519
SELECT ALL - - 20 * - 99 + + 38 / 65
----
-1980

onlyif mysql # aggregate syntax: 
query II rowsort label-9520
SELECT ALL - 32 AS col0, + COUNT( * ) col1
----
-32
1

skipif mysql # not compatible
query II rowsort label-9520
SELECT ALL - 32 AS col0, + COUNT ( * ) col1
----
-32
1

query I rowsort
SELECT + 34 + - 73 * 97
----
-7047

query I rowsort
SELECT ALL + 84 * 87 AS col2
----
7308

query I rowsort
SELECT + - 79 * 6 col2
----
-474

query I rowsort
SELECT - - 73 * 24
----
1752

query I rowsort
SELECT - ( - + COALESCE ( + - 16, + - 75, - 52, - - 53 - + 14 + + + 48 + + 65 ) ) AS col1
----
-16

query I rowsort
SELECT - + 40 * + + 81 AS col0
----
-3240

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9527
SELECT DISTINCT - 73, - 14 * - 74 * + CAST( NULL AS SIGNED ) * + 74 * - 39 * + 76 AS col2
----
-73
NULL

skipif mysql # not compatible
query II rowsort label-9527
SELECT DISTINCT - 73, - 14 * - 74 * + CAST ( NULL AS INTEGER ) * + 74 * - 39 * + 76 AS col2
----
-73
NULL

query I rowsort
SELECT ALL 40 * 47 AS col1
----
1880

query I rowsort
SELECT DISTINCT 61 * + 29 * 42
----
74298

onlyif mysql # aggregate syntax: 
query I rowsort label-9530
SELECT ALL COUNT( * ) + - 80 + - 55 + - 27 * - - 59 AS col1
----
-1727

skipif mysql # not compatible
query I rowsort label-9530
SELECT ALL COUNT ( * ) + - 80 + - 55 + - 27 * - - 59 AS col1
----
-1727

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9531
SELECT ALL - ( + CAST( + COUNT( * ) AS SIGNED ) ) DIV + + 62
----
0

skipif mysql # not compatible
query I rowsort label-9531
SELECT ALL - ( + CAST ( + COUNT ( * ) AS INTEGER ) ) / + + 62
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9532
SELECT + 60 + + CASE CAST( + 89 AS SIGNED ) WHEN - 49 - COUNT( * ) THEN - NULLIF ( 49, - + 65 / - 11 + - + 94 / - + 97 + 69 ) WHEN + 3 THEN SUM( ALL + 13 ) END + 38 / - 49 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9532
SELECT + 60 + + CASE CAST ( + 89 AS INTEGER ) WHEN - 49 - COUNT ( * ) THEN - NULLIF ( 49, - + 65 / - 11 + - + 94 / - + 97 + 69 ) WHEN + 3 THEN SUM ( ALL + 13 ) END + 38 / - 49 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9533
SELECT + COUNT( * ) * COUNT( * ) + 12
----
13

skipif mysql # not compatible
query I rowsort label-9533
SELECT + COUNT ( * ) * COUNT ( * ) + 12
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9534
SELECT - 42 - + COUNT( * ) AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-9534
SELECT - 42 - + COUNT ( * ) AS col2
----
-43

query I rowsort
SELECT DISTINCT + ( - 83 ) * - + 31 AS col2
----
2573

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9536
SELECT ALL - 37 * - - 93 + - CAST( + 7 AS SIGNED ) + - MIN( + 10 )
----
-3458

skipif mysql # not compatible
query I rowsort label-9536
SELECT ALL - 37 * - - 93 + - CAST ( + 7 AS INTEGER ) + - MIN ( + 10 )
----
-3458

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9537
SELECT DISTINCT + 4 * CAST( NULL AS SIGNED ) / + + 9 + + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-9537
SELECT DISTINCT + 4 * CAST ( NULL AS INTEGER ) / + + 9 + + 28
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9538
SELECT ALL - 40 * 98 * + - 46 * - 88 * + + NULLIF ( - COUNT( * ), + 71 - - CAST( + 97 AS SIGNED ) )
----
15868160

skipif mysql # not compatible
query I rowsort label-9538
SELECT ALL - 40 * 98 * + - 46 * - 88 * + + NULLIF ( - COUNT ( * ), + 71 - - CAST ( + 97 AS INTEGER ) )
----
15868160

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9539
SELECT ALL + ( 51 ) AS col1, CAST( NULL AS SIGNED ) col1
----
51
NULL

skipif mysql # not compatible
query II rowsort label-9539
SELECT ALL + ( 51 ) AS col1, CAST ( NULL AS INTEGER ) col1
----
51
NULL

query I rowsort
SELECT DISTINCT - 27 * - 52 - - ( + 36 )
----
1440

query II rowsort
SELECT DISTINCT + ( - 44 ) AS col0, - 33
----
-44
-33

query II rowsort
SELECT - 64 + - - 96 * - + 57 AS col2, 84
----
-5536
84

query I rowsort
SELECT ALL + 94 * - 18 - 16 AS col2
----
-1708

query I rowsort
SELECT - - 26 + - 66 + - 16 + - 73 AS col2
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-9545
SELECT - COUNT( * ) + COUNT( * ) - + 62 AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-9545
SELECT - COUNT ( * ) + COUNT ( * ) - + 62 AS col0
----
-62

query I rowsort
SELECT - + 51 * - 34
----
1734

query I rowsort
SELECT ALL + - ( + NULLIF ( - 34, 64 ) ) AS col2
----
34

query I rowsort
SELECT + 85 * ( - 87 ) + ( - 5 )
----
-7400

onlyif mysql # DIV for integer division: 
query I rowsort label-9549
SELECT + 52 + + 9 DIV - 32 * - + 96 * 72 * - - 87
----
52

skipif mysql # not compatible
query I rowsort label-9549
SELECT + 52 + + 9 / - 32 * - + 96 * 72 * - - 87
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-9550
SELECT ALL + 80 DIV + - 18 + - 50
----
-54

skipif mysql # not compatible
query I rowsort label-9550
SELECT ALL + 80 / + - 18 + - 50
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-9551
SELECT + - 69 DIV + + 86
----
0

skipif mysql # not compatible
query I rowsort label-9551
SELECT + - 69 / + + 86
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9552
SELECT - + 99 + - + 33 + - - COUNT( * ) * - + 98
----
-230

skipif mysql # not compatible
query I rowsort label-9552
SELECT - + 99 + - + 33 + - - COUNT ( * ) * - + 98
----
-230

query I rowsort
SELECT + + ( + - 46 ) + - 47 * + 91
----
-4323

onlyif mysql # aggregate syntax: 
query I rowsort label-9554
SELECT + - COUNT( * ) + - - 2 * 84
----
167

skipif mysql # not compatible
query I rowsort label-9554
SELECT + - COUNT ( * ) + - - 2 * 84
----
167

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9555
SELECT ALL + COALESCE ( - 98, + COUNT( * ), - 0 * CAST( NULL AS SIGNED ) * + - 22 ) * - CAST( - COUNT( * ) AS SIGNED ), 32 AS col2
----
-98
32

skipif mysql # not compatible
query II rowsort label-9555
SELECT ALL + COALESCE ( - 98, + COUNT ( * ), - 0 * CAST ( NULL AS INTEGER ) * + - 22 ) * - CAST ( - COUNT ( * ) AS INTEGER ), 32 AS col2
----
-98
32

onlyif mysql # DIV for integer division: 
query I rowsort label-9556
SELECT - 27 DIV 61
----
0

skipif mysql # not compatible
query I rowsort label-9556
SELECT - 27 / 61
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9557
SELECT - MAX( - NULLIF ( - - 73, - 39 ) )
----
73

skipif mysql # not compatible
query I rowsort label-9557
SELECT - MAX ( - NULLIF ( - - 73, - 39 ) )
----
73

query I rowsort
SELECT + + 44 + - 99 + 93 * - - 37 - 72 col2
----
3314

query I rowsort
SELECT + 41 + 69
----
110

query I rowsort
SELECT + - 69 + - + 82 AS col2
----
-151

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9561
SELECT ALL SUM( + 49 ) + 33 DIV - 50 * + 3 * - + 31 col1
----
49

skipif mysql # not compatible
query I rowsort label-9561
SELECT ALL SUM ( + 49 ) + 33 / - 50 * + 3 * - + 31 col1
----
49

query II rowsort
SELECT + 54 + + 86, ( + 1 ) AS col2
----
140
1

query I rowsort
SELECT + 68 + - 69
----
-1

query II rowsort
SELECT 81 AS col1, + 74
----
81
74

query I rowsort
SELECT ALL + 71 + - 34
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9566
SELECT + 67 + - CAST( NULL AS SIGNED ) * - - 37
----
NULL

skipif mysql # not compatible
query I rowsort label-9566
SELECT + 67 + - CAST ( NULL AS INTEGER ) * - - 37
----
NULL

query I rowsort
SELECT - ( + - 8 ) AS col1
----
8

query I rowsort
SELECT + 84 * - - COALESCE ( - 94, - 1, - 37 )
----
-7896

query I rowsort
SELECT + 43 + - 40 col1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9570
SELECT 67, CAST( NULL AS SIGNED ) AS col0
----
67
NULL

skipif mysql # not compatible
query II rowsort label-9570
SELECT 67, CAST ( NULL AS INTEGER ) AS col0
----
67
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9571
SELECT - 19 + - SUM( - 0 ) * - - 24 * 23 * - CAST( NULL AS SIGNED ) * - 92
----
NULL

skipif mysql # not compatible
query I rowsort label-9571
SELECT - 19 + - SUM ( - 0 ) * - - 24 * 23 * - CAST ( NULL AS INTEGER ) * - 92
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9572
SELECT DISTINCT MAX( - - 58 ) * + 63 + 1 + - ( + 58 ) + 81 - + 66 * + ( - 95 )
----
9948

skipif mysql # not compatible
query I rowsort label-9572
SELECT DISTINCT MAX ( - - 58 ) * + 63 + 1 + - ( + 58 ) + 81 - + 66 * + ( - 95 )
----
9948

onlyif mysql # aggregate syntax: 
query I rowsort label-9573
SELECT ( + COUNT( * ) ) * + 88 + + 92 - - 13 col0
----
193

skipif mysql # not compatible
query I rowsort label-9573
SELECT ( + COUNT ( * ) ) * + 88 + + 92 - - 13 col0
----
193

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9574
SELECT ALL NULLIF ( 43, + 80 ) * - + 32 DIV + COUNT( * )
----
-1376

skipif mysql # not compatible
query I rowsort label-9574
SELECT ALL NULLIF ( 43, + 80 ) * - + 32 / + COUNT ( * )
----
-1376

query I rowsort
SELECT ALL 65 - + 6 + 20 * - 31 AS col1
----
-561

onlyif mysql # DIV for integer division: 
query I rowsort label-9576
SELECT DISTINCT + 63 DIV COALESCE ( - 69, - - 81, + 67 ) * + 48 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9576
SELECT DISTINCT + 63 / COALESCE ( - 69, - - 81, + 67 ) * + 48 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9577
SELECT 44 + - 47 DIV + 37
----
43

skipif mysql # not compatible
query I rowsort label-9577
SELECT 44 + - 47 / + 37
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9578
SELECT DISTINCT 0 - - 53 - + 35 * + + 17 * COUNT( * ) * - ( 71 )
----
42298

skipif mysql # not compatible
query I rowsort label-9578
SELECT DISTINCT 0 - - 53 - + 35 * + + 17 * COUNT ( * ) * - ( 71 )
----
42298

onlyif mysql # aggregate syntax: 
query I rowsort label-9579
SELECT ALL - MIN( DISTINCT - 95 )
----
95

skipif mysql # not compatible
query I rowsort label-9579
SELECT ALL - MIN ( DISTINCT - 95 )
----
95

query I rowsort
SELECT 54 + 35 AS col2
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-9581
SELECT 56 DIV 91 + - + 34 + 64
----
30

skipif mysql # not compatible
query I rowsort label-9581
SELECT 56 / 91 + - + 34 + 64
----
30

query I rowsort
SELECT - 70 * + 10 AS col1
----
-700

query I rowsort
SELECT ALL + - 41 * 84
----
-3444

onlyif mysql # DIV for integer division: 
query I rowsort label-9584
SELECT DISTINCT 88 DIV 55
----
1

skipif mysql # not compatible
query I rowsort label-9584
SELECT DISTINCT 88 / 55
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9585
SELECT + + MAX( + 37 )
----
37

skipif mysql # not compatible
query I rowsort label-9585
SELECT + + MAX ( + 37 )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9586
SELECT ALL - NULLIF ( 44, + - COUNT( * ) + 7 )
----
-44

skipif mysql # not compatible
query I rowsort label-9586
SELECT ALL - NULLIF ( 44, + - COUNT ( * ) + 7 )
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9587
SELECT DISTINCT + - 87 * - + 48 * - - 51 * - COALESCE ( + 15, + 92 + + CAST( - 97 AS SIGNED ) * + CASE + + 69 WHEN + + NULLIF ( + + 80, + 97 ) THEN NULL ELSE 64 END, - COUNT( ALL + 62 ) - + 80 ) * 76 AS col0
----
-242792640

skipif mysql # not compatible
query I rowsort label-9587
SELECT DISTINCT + - 87 * - + 48 * - - 51 * - COALESCE ( + 15, + 92 + + CAST ( - 97 AS INTEGER ) * + CASE + + 69 WHEN + + NULLIF ( + + 80, + 97 ) THEN NULL ELSE 64 END, - COUNT ( ALL + 62 ) - + 80 ) * 76 AS col0
----
-242792640

query I rowsort
SELECT 25 * + 37 AS col2
----
925

onlyif mysql # aggregate syntax: 
query I rowsort label-9589
SELECT ALL + - 37 * + 56 + COALESCE ( - ( - - 64 ), ( - ( + 9 ) ), 95 * - 56 + MIN( ALL 47 ) + - 38 + 50 * 88 * SUM( + 70 - + 93 ) )
----
-2136

skipif mysql # not compatible
query I rowsort label-9589
SELECT ALL + - 37 * + 56 + COALESCE ( - ( - - 64 ), ( - ( + 9 ) ), 95 * - 56 + MIN ( ALL 47 ) + - 38 + 50 * 88 * SUM ( + 70 - + 93 ) )
----
-2136

query I rowsort
SELECT ALL - ( + + 18 ) AS col0
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9591
SELECT - + CAST( 93 AS SIGNED ) AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-9591
SELECT - + CAST ( 93 AS INTEGER ) AS col2
----
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-9592
SELECT + 96, + 88 * 1 - - SUM( 70 ) + + 87 + - 27 AS col1
----
96
218

skipif mysql # not compatible
query II rowsort label-9592
SELECT + 96, + 88 * 1 - - SUM ( 70 ) + + 87 + - 27 AS col1
----
96
218

onlyif mysql # aggregate syntax: 
query I rowsort label-9593
SELECT ALL COALESCE ( + COUNT( * ), + 46 * - 68 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9593
SELECT ALL COALESCE ( + COUNT ( * ), + 46 * - 68 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9594
SELECT 5 * + 73 + + ( CAST( - + CASE - 5 WHEN + 47 THEN + - 64 * + COALESCE ( 83, CASE 72 WHEN 45 THEN 85 * CAST( NULL AS DECIMAL ) WHEN - 39 THEN + COUNT( * ) - COUNT( * ) * 60 END ) / 72 ELSE NULL END AS SIGNED ) ) + 14 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9594
SELECT 5 * + 73 + + ( CAST ( - + CASE - 5 WHEN + 47 THEN + - 64 * + COALESCE ( 83, CASE 72 WHEN 45 THEN 85 * CAST ( NULL AS REAL ) WHEN - 39 THEN + COUNT ( * ) - COUNT ( * ) * 60 END ) / 72 ELSE NULL END AS INTEGER ) ) + 14 / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9595
SELECT - 86 * + COUNT( * ) * + ( + - 34 ) * + 34 - + 89 + COUNT( * )
----
99328

skipif mysql # not compatible
query I rowsort label-9595
SELECT - 86 * + COUNT ( * ) * + ( + - 34 ) * + 34 - + 89 + COUNT ( * )
----
99328

onlyif mysql # aggregate syntax: 
query I rowsort label-9596
SELECT COUNT( DISTINCT - 11 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9596
SELECT COUNT ( DISTINCT - 11 ) AS col1
----
1

query I rowsort
SELECT ALL - 93 + + 19
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-9598
SELECT DISTINCT + COUNT( * ) + SUM( 32 ) + ( - 28 ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-9598
SELECT DISTINCT + COUNT ( * ) + SUM ( 32 ) + ( - 28 ) AS col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9599
SELECT DISTINCT - + 32 + COUNT( * ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-9599
SELECT DISTINCT - + 32 + COUNT ( * ) AS col1
----
-31

query I rowsort
SELECT ALL + 2 * - 80 AS col0
----
-160

query I rowsort
SELECT - ( - + 54 )
----
54

query I rowsort
SELECT DISTINCT + 91 + + 11
----
102

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-9603
SELECT ALL - 32 + - 59 + + COUNT( * ) * 14 DIV 42 + + - NULLIF ( - - COUNT( * ), + 76 DIV 86 * - 55 * + + COALESCE ( - CAST( - + COUNT( * ) AS DECIMAL ), + 37 * - 71 ) ) - - 12
----
-80

skipif mysql # not compatible
query I rowsort label-9603
SELECT ALL - 32 + - 59 + + COUNT ( * ) * 14 / 42 + + - NULLIF ( - - COUNT ( * ), + 76 / 86 * - 55 * + + COALESCE ( - CAST ( - + COUNT ( * ) AS REAL ), + 37 * - 71 ) ) - - 12
----
-80

query I rowsort
SELECT 78 + 90 * + 18 AS col2
----
1698

onlyif mysql # aggregate syntax: 
query I rowsort label-9605
SELECT ALL + COUNT( * ) * - 60 AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-9605
SELECT ALL + COUNT ( * ) * - 60 AS col1
----
-60

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9606
SELECT 87 + - MIN( ALL - CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9606
SELECT 87 + - MIN ( ALL - CAST ( NULL AS REAL ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9607
SELECT CAST( NULL AS SIGNED ) DIV 58, + 6 DIV - - 75 * - 17 * 38 AS col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-9607
SELECT CAST ( NULL AS INTEGER ) / 58, + 6 / - - 75 * - 17 * 38 AS col2
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9608
SELECT 3 * + COUNT( * ) col0
----
3

skipif mysql # not compatible
query I rowsort label-9608
SELECT 3 * + COUNT ( * ) col0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9609
SELECT ALL NULLIF ( COUNT( * ), + 20 ) + + 41 DIV + 99 + + 59
----
60

skipif mysql # not compatible
query I rowsort label-9609
SELECT ALL NULLIF ( COUNT ( * ), + 20 ) + + 41 / + 99 + + 59
----
60

onlyif mysql # DIV for integer division: 
query II rowsort label-9610
SELECT 22 + - 31, - 4 * - 83 DIV 71 col1
----
-9
4

skipif mysql # not compatible
query II rowsort label-9610
SELECT 22 + - 31, - 4 * - 83 / 71 col1
----
-9
4

onlyif mysql # DIV for integer division: 
query I rowsort label-9611
SELECT ALL 95 DIV 89
----
1

skipif mysql # not compatible
query I rowsort label-9611
SELECT ALL 95 / 89
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9612
SELECT NULLIF ( - + COUNT( * ), - ( - COUNT( * ) ) ) * + 43 + + COUNT( * ) * - 16 AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-9612
SELECT NULLIF ( - + COUNT ( * ), - ( - COUNT ( * ) ) ) * + 43 + + COUNT ( * ) * - 16 AS col0
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9613
SELECT ALL CAST( 26 AS SIGNED ) * - 17 * - + 64 + + 37 AS col0
----
28325

skipif mysql # not compatible
query I rowsort label-9613
SELECT ALL CAST ( 26 AS INTEGER ) * - 17 * - + 64 + + 37 AS col0
----
28325

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-9614
SELECT NULLIF ( + ( + COUNT( * ) ), - 43 - - + NULLIF ( - + 51, 33 ) ) * - ( 51 ), + CAST( NULL AS SIGNED ) AS col0, + 59 AS col2
----
-51
NULL
59

skipif mysql # not compatible
query III rowsort label-9614
SELECT NULLIF ( + ( + COUNT ( * ) ), - 43 - - + NULLIF ( - + 51, 33 ) ) * - ( 51 ), + CAST ( NULL AS INTEGER ) AS col0, + 59 AS col2
----
-51
NULL
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9615
SELECT ALL + COUNT( * ) * + + 3 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-9615
SELECT ALL + COUNT ( * ) * + + 3 AS col2
----
3

query I rowsort
SELECT + NULLIF ( + - 4, - 53 * - 15 + + ( - 86 ) ) col1
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9617
SELECT + COUNT( * ) * - 54 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9617
SELECT + COUNT ( * ) * - 54 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9618
SELECT - 87 + - COUNT( * )
----
-88

skipif mysql # not compatible
query I rowsort label-9618
SELECT - 87 + - COUNT ( * )
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-9619
SELECT - 70 DIV 87
----
0

skipif mysql # not compatible
query I rowsort label-9619
SELECT - 70 / 87
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9620
SELECT ALL - 97 + - - COUNT( * ) + + 68
----
-28

skipif mysql # not compatible
query I rowsort label-9620
SELECT ALL - 97 + - - COUNT ( * ) + + 68
----
-28

query I rowsort
SELECT + - 2 * - - 51 + 50
----
-52

query I rowsort
SELECT ALL + - 9 * + 27
----
-243

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9623
SELECT DISTINCT 1 + + COUNT( ALL + 17 ) DIV 51 + - 37 + + - 90 - + NULLIF ( 73, - - 25 * - 41 ) DIV + COUNT( * ) + + 52
----
-147

skipif mysql # not compatible
query I rowsort label-9623
SELECT DISTINCT 1 + + COUNT ( ALL + 17 ) / 51 + - 37 + + - 90 - + NULLIF ( 73, - - 25 * - 41 ) / + COUNT ( * ) + + 52
----
-147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9624
SELECT ALL CAST( NULL AS SIGNED ) + + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-9624
SELECT ALL CAST ( NULL AS INTEGER ) + + 33
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9625
SELECT DISTINCT - 3 + + 26 DIV + 33
----
-3

skipif mysql # not compatible
query I rowsort label-9625
SELECT DISTINCT - 3 + + 26 / + 33
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9626
SELECT ALL + 45 * 62 * + + COUNT( * )
----
2790

skipif mysql # not compatible
query I rowsort label-9626
SELECT ALL + 45 * 62 * + + COUNT ( * )
----
2790

onlyif mysql # aggregate syntax: 
query I rowsort label-9627
SELECT ALL + MIN( ALL + 76 ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-9627
SELECT ALL + MIN ( ALL + 76 ) AS col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9628
SELECT - - NULLIF ( + 69, + COUNT( * ) ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-9628
SELECT - - NULLIF ( + 69, + COUNT ( * ) ) AS col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9629
SELECT DISTINCT SUM( ALL 21 ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-9629
SELECT DISTINCT SUM ( ALL 21 ) AS col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9630
SELECT DISTINCT SUM( DISTINCT - ( + 29 ) )
----
-29

skipif mysql # not compatible
query I rowsort label-9630
SELECT DISTINCT SUM ( DISTINCT - ( + 29 ) )
----
-29

query I rowsort
SELECT - 7 * + + 37 AS col1
----
-259

onlyif mysql # DIV for integer division: 
query I rowsort label-9632
SELECT ALL - 81 DIV 10 AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-9632
SELECT ALL - 81 / 10 AS col0
----
-8

query III rowsort
SELECT 30 AS col2, 32 + 9 AS col0, - - 57 AS col1
----
30
41
57

query I rowsort
SELECT DISTINCT 54 * + - 77 AS col2
----
-4158

onlyif mysql # aggregate syntax: 
query I rowsort label-9635
SELECT DISTINCT SUM( 8 ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-9635
SELECT DISTINCT SUM ( 8 ) AS col1
----
8

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9636
SELECT ALL - ( + + CAST( NULL AS DECIMAL ) ) * + CASE + MAX( 88 ) WHEN + + ( - - MIN( 49 ) ) THEN NULL WHEN - - ( - 44 ) + 84 + + 48 * + - 30 THEN 83 WHEN 52 * + 58 THEN NULL END + 85 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9636
SELECT ALL - ( + + CAST ( NULL AS REAL ) ) * + CASE + MAX ( 88 ) WHEN + + ( - - MIN ( 49 ) ) THEN NULL WHEN - - ( - 44 ) + 84 + + 48 * + - 30 THEN 83 WHEN 52 * + 58 THEN NULL END + 85 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9637
SELECT - 89 + + - COUNT( * )
----
-90

skipif mysql # not compatible
query I rowsort label-9637
SELECT - 89 + + - COUNT ( * )
----
-90

query I rowsort
SELECT ALL CASE + 70 WHEN + 42 THEN NULL ELSE + - 26 END AS col0
----
-26

query I rowsort
SELECT + 47 * + - ( - + 25 ) AS col0
----
1175

onlyif mysql # aggregate syntax: 
query I rowsort label-9640
SELECT + NULLIF ( + 50, - 51 ) + NULLIF ( - 84, + NULLIF ( - 20, 76 ) * + CASE + 49 WHEN COUNT( * ) THEN 64 * 32 WHEN - - 18 THEN - 36 / 14 ELSE NULL END )
----
-34

skipif mysql # not compatible
query I rowsort label-9640
SELECT + NULLIF ( + 50, - 51 ) + NULLIF ( - 84, + NULLIF ( - 20, 76 ) * + CASE + 49 WHEN COUNT ( * ) THEN 64 * 32 WHEN - - 18 THEN - 36 / 14 ELSE NULL END )
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-9641
SELECT - COUNT( * ) * + + 13
----
-13

skipif mysql # not compatible
query I rowsort label-9641
SELECT - COUNT ( * ) * + + 13
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-9642
SELECT ( + + COALESCE ( - COUNT( * ), - - 6 - 32, - - NULLIF ( - 72, - - CASE - + 52 WHEN + 28 THEN - 0 * - COUNT( 64 ) + + + 55 + + COUNT( * ) WHEN CASE 94 WHEN - 5 THEN 89 * 14 WHEN + AVG ( - 4 ) * COUNT( * ) + - COUNT( * ) * + 41 THEN 97 END THEN + 11 + - 24 ELSE NULL END ) + - 6 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9642
SELECT ( + + COALESCE ( - COUNT ( * ), - - 6 - 32, - - NULLIF ( - 72, - - CASE - + 52 WHEN + 28 THEN - 0 * - COUNT ( 64 ) + + + 55 + + COUNT ( * ) WHEN CASE 94 WHEN - 5 THEN 89 * 14 WHEN + AVG ( - 4 ) * COUNT ( * ) + - COUNT ( * ) * + 41 THEN 97 END THEN + 11 + - 24 ELSE NULL END ) + - 6 ) ) AS col1
----
-1

query I rowsort
SELECT DISTINCT - ( - + 31 ) * - 45 AS col0
----
-1395

query II rowsort
SELECT + 31, ( + + 8 ) * - + 6 + - 36 AS col0
----
31
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-9645
SELECT ALL 5 DIV + 70 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9645
SELECT ALL 5 / + 70 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9646
SELECT ALL + CAST( + 43 AS SIGNED ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-9646
SELECT ALL + CAST ( + 43 AS INTEGER ) AS col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9647
SELECT + 4 * + + 35 + 84 + COUNT( * ) * - + 35 + 34
----
223

skipif mysql # not compatible
query I rowsort label-9647
SELECT + 4 * + + 35 + 84 + COUNT ( * ) * - + 35 + 34
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-9648
SELECT ALL 62 * - 6 + COUNT( * ) AS col0
----
-371

skipif mysql # not compatible
query I rowsort label-9648
SELECT ALL 62 * - 6 + COUNT ( * ) AS col0
----
-371

query I rowsort
SELECT + + 81 + 0 * - CASE - 37 WHEN + 59 THEN NULL ELSE + - 0 END
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9650
SELECT ALL + - NULLIF ( - NULLIF ( 22, - CASE - NULLIF ( - + 41, + 90 ) WHEN - COUNT( * ) / - + COUNT( * ) THEN + - 4 WHEN - 24 THEN - + 94 WHEN - 33 THEN - ( + 10 ) END ), 49 + 20 )
----
22

skipif mysql # not compatible
query I rowsort label-9650
SELECT ALL + - NULLIF ( - NULLIF ( 22, - CASE - NULLIF ( - + 41, + 90 ) WHEN - COUNT ( * ) / - + COUNT ( * ) THEN + - 4 WHEN - 24 THEN - + 94 WHEN - 33 THEN - ( + 10 ) END ), 49 + 20 )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9651
SELECT - + ( + CASE + 83 WHEN - - 88 * + COALESCE ( - - 90, + - COUNT( * ) * + 36, + MAX( DISTINCT 46 ) ) - 94 THEN - - 5 + ( + - NULLIF ( + 18, 91 ) ) WHEN 15 / NULLIF ( 37, CASE - 29 WHEN - 64 THEN - 88 * COUNT( * ) ELSE NULL END ) + - COUNT( * ) THEN NULL ELSE - 70 END ) * + 19 AS col2
----
1330

skipif mysql # not compatible
query I rowsort label-9651
SELECT - + ( + CASE + 83 WHEN - - 88 * + COALESCE ( - - 90, + - COUNT ( * ) * + 36, + MAX ( DISTINCT 46 ) ) - 94 THEN - - 5 + ( + - NULLIF ( + 18, 91 ) ) WHEN 15 / NULLIF ( 37, CASE - 29 WHEN - 64 THEN - 88 * COUNT ( * ) ELSE NULL END ) + - COUNT ( * ) THEN NULL ELSE - 70 END ) * + 19 AS col2
----
1330

query I rowsort
SELECT + - 6 + 87 * 86 * + ( 48 ) + 69
----
359199

onlyif mysql # DIV for integer division: 
query I rowsort label-9653
SELECT ALL - 20 * 42 + + 25 - - 12 - + - 83 DIV 71 col2
----
-802

skipif mysql # not compatible
query I rowsort label-9653
SELECT ALL - 20 * 42 + + 25 - - 12 - + - 83 / 71 col2
----
-802

onlyif mysql # aggregate syntax: 
query I rowsort label-9654
SELECT + + MAX( ALL + ( - + 78 ) ) * 17 + - 29 + - 80 * + ( - COUNT( * ) ) * + - ( + 29 ) + COUNT( * )
----
-3674

skipif mysql # not compatible
query I rowsort label-9654
SELECT + + MAX ( ALL + ( - + 78 ) ) * 17 + - 29 + - 80 * + ( - COUNT ( * ) ) * + - ( + 29 ) + COUNT ( * )
----
-3674

query I rowsort
SELECT ALL 82 * - 82 * - 45 + - 59 + + - CASE + 69 WHEN + - 65 THEN - 30 + - 68 END AS col0
----
NULL

query I rowsort
SELECT - ( + 37 ) AS col1
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9657
SELECT DISTINCT CAST( NULL AS SIGNED ) * - - CASE + 46 WHEN COUNT( * ) THEN - - 36 + AVG ( DISTINCT - 50 ) END + + ( - 86 ) + + 70 * - 80 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9657
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - - CASE + 46 WHEN COUNT ( * ) THEN - - 36 + AVG ( DISTINCT - 50 ) END + + ( - 86 ) + + 70 * - 80 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9658
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 22 + + ( - NULLIF ( - COUNT( * ), 72 ) ) col1, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-9658
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 22 + + ( - NULLIF ( - COUNT ( * ), 72 ) ) col1, COUNT ( * )
----
NULL
1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9659
SELECT ALL ( - 66 ) * - 81 / - + CAST( NULL AS DECIMAL ) / - + CAST( NULL AS SIGNED ) + - 91 * + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-9659
SELECT ALL ( - 66 ) * - 81 / - + CAST ( NULL AS REAL ) / - + CAST ( NULL AS INTEGER ) + - 91 * + 57
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9660
SELECT DISTINCT - 7 * 87 * 57 / + COUNT( * ) * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9660
SELECT DISTINCT - 7 * 87 * 57 / + COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9661
SELECT ALL + + 84 * + 54 * + - COUNT( * ) + + COUNT( * ) + - 62
----
-4597

skipif mysql # not compatible
query I rowsort label-9661
SELECT ALL + + 84 * + 54 * + - COUNT ( * ) + + COUNT ( * ) + - 62
----
-4597

query I rowsort
SELECT + + 80 * + 72
----
5760

onlyif mysql # DIV for integer division: 
query I rowsort label-9663
SELECT - + 30 DIV + 42 + 88 * - 73
----
-6424

skipif mysql # not compatible
query I rowsort label-9663
SELECT - + 30 / + 42 + 88 * - 73
----
-6424

query I rowsort
SELECT ALL - 90 * + + ( - 63 ) - + 93 col0
----
5577

query I rowsort
SELECT + + 19 * - - 47 AS col2
----
893

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9666
SELECT - NULLIF ( ( + COALESCE ( - 70, + + CAST( NULL AS SIGNED ), - 10 * CAST( + NULLIF ( + NULLIF ( 11, + 13 + + CAST( - 66 AS SIGNED ) ), + - 45 ) AS SIGNED ) * + CAST( - 9 AS SIGNED ) ) ), 74 ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-9666
SELECT - NULLIF ( ( + COALESCE ( - 70, + + CAST ( NULL AS INTEGER ), - 10 * CAST ( + NULLIF ( + NULLIF ( 11, + 13 + + CAST ( - 66 AS INTEGER ) ), + - 45 ) AS INTEGER ) * + CAST ( - 9 AS INTEGER ) ) ), 74 ) AS col2
----
70

query I rowsort
SELECT ALL - 50 - + - 45
----
-5

query I rowsort
SELECT - 96 * 42 - + 15 AS col0
----
-4047

onlyif mysql # aggregate syntax: 
query I rowsort label-9669
SELECT DISTINCT SUM( 24 )
----
24

skipif mysql # not compatible
query I rowsort label-9669
SELECT DISTINCT SUM ( 24 )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9670
SELECT MIN( - 35 ) AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-9670
SELECT MIN ( - 35 ) AS col2
----
-35

query I rowsort
SELECT ALL + ( - 44 ) * 6 AS col0
----
-264

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9672
SELECT - CAST( + - 95 AS SIGNED ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-9672
SELECT - CAST ( + - 95 AS INTEGER ) AS col1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9673
SELECT DISTINCT COUNT( * ) * + - 37 AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-9673
SELECT DISTINCT COUNT ( * ) * + - 37 AS col0
----
-37

query I rowsort
SELECT - 60 * - 61 AS col1
----
3660

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9675
SELECT ALL ( - CASE 92 WHEN + 37 THEN + COUNT( * ) * + + NULLIF ( - 66, - - CAST( - 59 AS SIGNED ) ) + - 25 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9675
SELECT ALL ( - CASE 92 WHEN + 37 THEN + COUNT ( * ) * + + NULLIF ( - 66, - - CAST ( - 59 AS INTEGER ) ) + - 25 END )
----
NULL

query II rowsort
SELECT - 55, 88 AS col0
----
-55
88

query I rowsort
SELECT + 48 + - 13 AS col1
----
35

query I rowsort
SELECT - 54 - + NULLIF ( 6, + + 8 / 56 ) AS col2
----
-60

query I rowsort
SELECT + 24 + 43 * 48
----
2088

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9680
SELECT - CAST( 68 AS SIGNED )
----
-68

skipif mysql # not compatible
query I rowsort label-9680
SELECT - CAST ( 68 AS INTEGER )
----
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-9681
SELECT - COUNT( * ) AS col2, 8
----
-1
8

skipif mysql # not compatible
query II rowsort label-9681
SELECT - COUNT ( * ) AS col2, 8
----
-1
8

query II rowsort
SELECT DISTINCT ( 69 ) AS col2, 78 + 52 + 84
----
69
214

onlyif mysql # aggregate syntax: 
query II rowsort label-9683
SELECT DISTINCT SUM( ALL - + 64 ) AS col2, 10 AS col2
----
-64
10

skipif mysql # not compatible
query II rowsort label-9683
SELECT DISTINCT SUM ( ALL - + 64 ) AS col2, 10 AS col2
----
-64
10

query II rowsort
SELECT 21 AS col1, ( - 56 )
----
21
-56

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9685
SELECT DISTINCT CASE + - CAST( 69 AS DECIMAL ) WHEN + COUNT( * ) * - ( 7 ) THEN + 3 - + 98 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9685
SELECT DISTINCT CASE + - CAST ( 69 AS REAL ) WHEN + COUNT ( * ) * - ( 7 ) THEN + 3 - + 98 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9686
SELECT ALL - COUNT( * ) + - - 83 + 31 * + 81
----
2593

skipif mysql # not compatible
query I rowsort label-9686
SELECT ALL - COUNT ( * ) + - - 83 + 31 * + 81
----
2593

onlyif mysql # aggregate syntax: 
query I rowsort label-9687
SELECT + SUM( ALL - 28 ) AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-9687
SELECT + SUM ( ALL - 28 ) AS col1
----
-28

query I rowsort
SELECT ALL + + ( + - 32 ) AS col2
----
-32

query I rowsort
SELECT 58 * + + 81 + + 34 + - NULLIF ( 92, - NULLIF ( - 2, + 45 ) ) AS col1
----
4640

onlyif mysql # aggregate syntax: 
query II rowsort label-9690
SELECT - COUNT( * ) AS col1, + 28 * + 18
----
-1
504

skipif mysql # not compatible
query II rowsort label-9690
SELECT - COUNT ( * ) AS col1, + 28 * + 18
----
-1
504

query I rowsort
SELECT + + 36 * 24 AS col0
----
864

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9692
SELECT ALL + 66 DIV 22 + + 49 * + + COALESCE ( 26, - + 86 * - ( COALESCE ( + + 72, + 96 ) ), + 59 ) * - 31 - - - COUNT( * ) + + + 43 * 91 * - COUNT( * ) + 26
----
-43379

skipif mysql # not compatible
query I rowsort label-9692
SELECT ALL + 66 / 22 + + 49 * + + COALESCE ( 26, - + 86 * - ( COALESCE ( + + 72, + 96 ) ), + 59 ) * - 31 - - - COUNT ( * ) + + + 43 * 91 * - COUNT ( * ) + 26
----
-43379

query I rowsort
SELECT ALL + + ( + 84 ) col1
----
84

query I rowsort
SELECT + 38 * + - 76 AS col1
----
-2888

onlyif mysql # aggregate syntax: 
query I rowsort label-9695
SELECT MAX( - 62 ) * 9 * - - 26 - + COUNT( * ) + + + 11
----
-14498

skipif mysql # not compatible
query I rowsort label-9695
SELECT MAX ( - 62 ) * 9 * - - 26 - + COUNT ( * ) + + + 11
----
-14498

onlyif mysql # aggregate syntax: 
query II rowsort label-9696
SELECT ALL + - CASE + - 70 WHEN + - 31 THEN + 67 END * 93 * + MIN( ALL - 54 ), + 50 col0
----
NULL
50

skipif mysql # not compatible
query II rowsort label-9696
SELECT ALL + - CASE + - 70 WHEN + - 31 THEN + 67 END * 93 * + MIN ( ALL - 54 ), + 50 col0
----
NULL
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9697
SELECT DISTINCT 1 DIV + + 95 + - 73 + + COUNT( * ) DIV + 8 * MIN( ALL 10 ) * + SUM( ALL - + 37 ) * - 85 + + 35 + + - 87 * + 74
----
-6476

skipif mysql # not compatible
query I rowsort label-9697
SELECT DISTINCT 1 / + + 95 + - 73 + + COUNT ( * ) / + 8 * MIN ( ALL 10 ) * + SUM ( ALL - + 37 ) * - 85 + + 35 + + - 87 * + 74
----
-6476

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9698
SELECT ALL NULLIF ( CAST( + + COUNT( ALL + 87 ) AS SIGNED ), + ( + AVG ( DISTINCT - COALESCE ( + - 22, + + 98, + 2 ) ) ) ) DIV COUNT( * ) - - 66 + CASE 63 WHEN + + COUNT( * ) - - 81 THEN + 13 WHEN 90 THEN NULL ELSE 91 * + 33 END + - COUNT( * )
----
3069

skipif mysql # not compatible
query I rowsort label-9698
SELECT ALL NULLIF ( CAST ( + + COUNT ( ALL + 87 ) AS INTEGER ), + ( + AVG ( DISTINCT - COALESCE ( + - 22, + + 98, + 2 ) ) ) ) / COUNT ( * ) - - 66 + CASE 63 WHEN + + COUNT ( * ) - - 81 THEN + 13 WHEN 90 THEN NULL ELSE 91 * + 33 END + - COUNT ( * )
----
3069

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9699
SELECT DISTINCT + 8 DIV - MIN( ALL + 14 ) + + - 20 AS col2, - 79 + + + ( + 91 ) * - 57
----
-20
-5266

skipif mysql # not compatible
query II rowsort label-9699
SELECT DISTINCT + 8 / - MIN ( ALL + 14 ) + + - 20 AS col2, - 79 + + + ( + 91 ) * - 57
----
-20
-5266

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9700
SELECT DISTINCT + CAST( NULL AS DECIMAL ), 90 + COUNT( * ) AS col2
----
NULL
91

skipif mysql # not compatible
query II rowsort label-9700
SELECT DISTINCT + CAST ( NULL AS REAL ), 90 + COUNT ( * ) AS col2
----
NULL
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9701
SELECT ALL + - COUNT( * ) DIV - 21 + - CASE 37 WHEN 48 THEN NULL WHEN + MAX( DISTINCT - 80 ) + - + 27 + + - 86 THEN NULL ELSE 2 END + 27 * - 99 AS col1, - CASE + 70 WHEN 12 THEN + 50 + 13 WHEN - 70 + + 25 THEN NULL END * - 62 + + 44
----
-2675
NULL

skipif mysql # not compatible
query II rowsort label-9701
SELECT ALL + - COUNT ( * ) / - 21 + - CASE 37 WHEN 48 THEN NULL WHEN + MAX ( DISTINCT - 80 ) + - + 27 + + - 86 THEN NULL ELSE 2 END + 27 * - 99 AS col1, - CASE + 70 WHEN 12 THEN + 50 + 13 WHEN - 70 + + 25 THEN NULL END * - 62 + + 44
----
-2675
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9702
SELECT + 59 * 70 - + ( + + 20 ) + + 47 - 86 / - 63 * + + 97 + - CASE + MAX( DISTINCT 6 ) WHEN - - ( + - 5 ) THEN NULL WHEN 75 + 55 THEN 36 WHEN 46 - + MAX( DISTINCT + 26 - + CAST( NULL AS SIGNED ) ) / 11 THEN NULL END - 66 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9702
SELECT + 59 * 70 - + ( + + 20 ) + + 47 - 86 / - 63 * + + 97 + - CASE + MAX ( DISTINCT 6 ) WHEN - - ( + - 5 ) THEN NULL WHEN 75 + 55 THEN 36 WHEN 46 - + MAX ( DISTINCT + 26 - + CAST ( NULL AS INTEGER ) ) / 11 THEN NULL END - 66 AS col2
----
NULL

query II rowsort
SELECT 55 AS col2, - 9 + 48 AS col2
----
55
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9704
SELECT - - CASE - 46 WHEN + 6 THEN NULL ELSE - COALESCE ( + 22, 58 ) END + + NULLIF ( - - COUNT( * ), + 3 / - AVG ( 42 ) + + - 90 )
----
-21

skipif mysql # not compatible
query I rowsort label-9704
SELECT - - CASE - 46 WHEN + 6 THEN NULL ELSE - COALESCE ( + 22, 58 ) END + + NULLIF ( - - COUNT ( * ), + 3 / - AVG ( 42 ) + + - 90 )
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9705
SELECT + CAST( NULL AS SIGNED ) col2, + 50 AS col1
----
NULL
50

skipif mysql # not compatible
query II rowsort label-9705
SELECT + CAST ( NULL AS INTEGER ) col2, + 50 AS col1
----
NULL
50

query II rowsort
SELECT + 44 AS col1, + 17 * + 34
----
44
578

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9707
SELECT 98 AS col2, + NULLIF ( AVG ( ALL - CAST( NULL AS SIGNED ) ), + 90 ) / - 80 - 96 AS col2
----
98
NULL

skipif mysql # not compatible
query II rowsort label-9707
SELECT 98 AS col2, + NULLIF ( AVG ( ALL - CAST ( NULL AS INTEGER ) ), + 90 ) / - 80 - 96 AS col2
----
98
NULL

query I rowsort
SELECT DISTINCT 47 * + + 10 * + 46
----
21620

query II rowsort
SELECT ALL - 39 AS col0, - 72 AS col0
----
-39
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-9710
SELECT COUNT( * ) + + COUNT( * ), COALESCE ( 52, - ( + 16 ), 22 ) * - 57 + 91 AS col1
----
2
-2873

skipif mysql # not compatible
query II rowsort label-9710
SELECT COUNT ( * ) + + COUNT ( * ), COALESCE ( 52, - ( + 16 ), 22 ) * - 57 + 91 AS col1
----
2
-2873

query I rowsort
SELECT ALL 90 * - - 33
----
2970

onlyif mysql # aggregate syntax: 
query I rowsort label-9712
SELECT DISTINCT COUNT( * ) * + - 23
----
-23

skipif mysql # not compatible
query I rowsort label-9712
SELECT DISTINCT COUNT ( * ) * + - 23
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-9713
SELECT COUNT( * ) * - COUNT( * ) AS col0, COUNT( * ) AS col1
----
-1
1

skipif mysql # not compatible
query II rowsort label-9713
SELECT COUNT ( * ) * - COUNT ( * ) AS col0, COUNT ( * ) AS col1
----
-1
1

query I rowsort
SELECT 67 + - - 66 + + 13 AS col2
----
146

onlyif mysql # aggregate syntax: 
query II rowsort label-9715
SELECT ALL 30 * + 24 AS col1, 77 + ( - SUM( DISTINCT + - 26 ) )
----
720
103

skipif mysql # not compatible
query II rowsort label-9715
SELECT ALL 30 * + 24 AS col1, 77 + ( - SUM ( DISTINCT + - 26 ) )
----
720
103

onlyif mysql # DIV for integer division: 
query II rowsort label-9716
SELECT ALL 89 + - 75 AS col1, + 61 * + 89 * 43 + + - 1 DIV + 41 AS col0
----
14
233447

skipif mysql # not compatible
query II rowsort label-9716
SELECT ALL 89 + - 75 AS col1, + 61 * + 89 * 43 + + - 1 / + 41 AS col0
----
14
233447

query I rowsort
SELECT ( ( - 49 ) ) * - + 55
----
2695

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9718
SELECT ALL 70 * + CAST( 99 AS SIGNED )
----
6930

skipif mysql # not compatible
query I rowsort label-9718
SELECT ALL 70 * + CAST ( 99 AS INTEGER )
----
6930

onlyif mysql # aggregate syntax: 
query I rowsort label-9719
SELECT 43 + - 92 + + MAX( ALL - 34 ) col1
----
-83

skipif mysql # not compatible
query I rowsort label-9719
SELECT 43 + - 92 + + MAX ( ALL - 34 ) col1
----
-83

query I rowsort
SELECT DISTINCT + 59 + + - 48
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-9721
SELECT DISTINCT COUNT( * ) * + + 42, + 51 col2
----
42
51

skipif mysql # not compatible
query II rowsort label-9721
SELECT DISTINCT COUNT ( * ) * + + 42, + 51 col2
----
42
51

query I rowsort
SELECT DISTINCT - 51 + + + 84
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9723
SELECT + 19 * - COUNT( * ) + - 73 + - + 80
----
-172

skipif mysql # not compatible
query I rowsort label-9723
SELECT + 19 * - COUNT ( * ) + - 73 + - + 80
----
-172

query I rowsort
SELECT DISTINCT + 18 - 34 - + 56 * 74 AS col1
----
-4160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9725
SELECT ALL - + CASE - NULLIF ( - 36, - CASE + - 33 WHEN + 22 THEN - COALESCE ( + 39, COUNT( - 90 ) ) WHEN - + 81 THEN - ( - 81 ) WHEN COUNT( * ) * 14 * - 99 + - MIN( - 55 ) + 24 * + 10 THEN NULL END ) WHEN + 71 * 16 THEN CAST( COUNT( * ) AS SIGNED ) * + 39 WHEN 67 THEN 48 * - 69 + 78 ELSE + NULLIF ( - ( - COUNT( * ) ), 64 ) END AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9725
SELECT ALL - + CASE - NULLIF ( - 36, - CASE + - 33 WHEN + 22 THEN - COALESCE ( + 39, COUNT ( - 90 ) ) WHEN - + 81 THEN - ( - 81 ) WHEN COUNT ( * ) * 14 * - 99 + - MIN ( - 55 ) + 24 * + 10 THEN NULL END ) WHEN + 71 * 16 THEN CAST ( COUNT ( * ) AS INTEGER ) * + 39 WHEN 67 THEN 48 * - 69 + 78 ELSE + NULLIF ( - ( - COUNT ( * ) ), 64 ) END AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9726
SELECT CAST( - 91 AS SIGNED ) * 91
----
-8281

skipif mysql # not compatible
query I rowsort label-9726
SELECT CAST ( - 91 AS INTEGER ) * 91
----
-8281

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9727
SELECT ALL + MAX( ALL COALESCE ( + + 63, 43 * + 29 * + + 33 ) ) / + - CAST( NULL AS SIGNED ) * - - 4 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9727
SELECT ALL + MAX ( ALL COALESCE ( + + 63, 43 * + 29 * + + 33 ) ) / + - CAST ( NULL AS INTEGER ) * - - 4 AS col1
----
NULL

query I rowsort
SELECT 25 + 58
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9729
SELECT + COUNT( * ) * 10 * 62 + + 56
----
676

skipif mysql # not compatible
query I rowsort label-9729
SELECT + COUNT ( * ) * 10 * 62 + + 56
----
676

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9730
SELECT ALL + 25 * - CAST( NULL AS SIGNED ) AS col1, 84 AS col0
----
NULL
84

skipif mysql # not compatible
query II rowsort label-9730
SELECT ALL + 25 * - CAST ( NULL AS INTEGER ) AS col1, 84 AS col0
----
NULL
84

query I rowsort
SELECT 74 * - - 45 + 22 * - 37
----
2516

query I rowsort
SELECT - 44 * - 30 + + 48
----
1368

onlyif mysql # aggregate syntax: 
query I rowsort label-9733
SELECT ( + + COUNT( * ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-9733
SELECT ( + + COUNT ( * ) ) col0
----
1

query I rowsort
SELECT DISTINCT + + ( 72 ) * - + 55
----
-3960

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9735
SELECT ALL + 64 * - CASE - - CAST( NULL AS DECIMAL ) WHEN - + 87 THEN CAST( 49 AS SIGNED ) WHEN 35 THEN + ( + 57 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9735
SELECT ALL + 64 * - CASE - - CAST ( NULL AS REAL ) WHEN - + 87 THEN CAST ( 49 AS INTEGER ) WHEN 35 THEN + ( + 57 ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9736
SELECT ALL CAST( - 61 AS SIGNED ) DIV + + 9, + 75 AS col2
----
-6
75

skipif mysql # not compatible
query II rowsort label-9736
SELECT ALL CAST ( - 61 AS INTEGER ) / + + 9, + 75 AS col2
----
-6
75

query I rowsort
SELECT DISTINCT - ( + - 8 ) AS col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9738
SELECT ALL - SUM( DISTINCT + 33 )
----
-33

skipif mysql # not compatible
query I rowsort label-9738
SELECT ALL - SUM ( DISTINCT + 33 )
----
-33

onlyif mysql # DIV for integer division: 
query II rowsort label-9739
SELECT NULLIF ( - 89, 49 ) DIV - + 92 col1, + 63 * + 3 AS col1
----
0
189

skipif mysql # not compatible
query II rowsort label-9739
SELECT NULLIF ( - 89, 49 ) / - + 92 col1, + 63 * + 3 AS col1
----
0
189

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9740
SELECT ALL + COUNT( * ) DIV + + 55 DIV + 25
----
0

skipif mysql # not compatible
query I rowsort label-9740
SELECT ALL + COUNT ( * ) / + + 55 / + 25
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9741
SELECT 38 - + MAX( - + 59 )
----
97

skipif mysql # not compatible
query I rowsort label-9741
SELECT 38 - + MAX ( - + 59 )
----
97

query I rowsort
SELECT ALL 89 + 39 AS col0
----
128

query I rowsort
SELECT DISTINCT 48 + - 94 - - 2 AS col1
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-9744
SELECT ALL 94 + + COUNT( * )
----
95

skipif mysql # not compatible
query I rowsort label-9744
SELECT ALL 94 + + COUNT ( * )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9745
SELECT COUNT( * ) + 85 * - 95 * 20 * 26
----
-4198999

skipif mysql # not compatible
query I rowsort label-9745
SELECT COUNT ( * ) + 85 * - 95 * 20 * 26
----
-4198999

onlyif mysql # aggregate syntax: 
query I rowsort label-9746
SELECT - SUM( DISTINCT + 11 )
----
-11

skipif mysql # not compatible
query I rowsort label-9746
SELECT - SUM ( DISTINCT + 11 )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-9747
SELECT ALL 29 + + COUNT( * ) * - - 84
----
113

skipif mysql # not compatible
query I rowsort label-9747
SELECT ALL 29 + + COUNT ( * ) * - - 84
----
113

query I rowsort
SELECT 47 + - 85
----
-38

query I rowsort
SELECT 82 - 38 * - ( + - 5 )
----
-108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-9750
SELECT CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) * 73, + 45 + 26 - + + 23 + + - COUNT( * ) DIV + 89 AS col1
----
NULL
48

skipif mysql # not compatible
query II rowsort label-9750
SELECT CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) * 73, + 45 + 26 - + + 23 + + - COUNT ( * ) / + 89 AS col1
----
NULL
48

query I rowsort
SELECT ALL 23 + 31 AS col0
----
54

query II rowsort
SELECT ALL 87 AS col2, - CASE + 22 WHEN + 22 THEN 28 ELSE NULL END
----
87
-28

query I rowsort
SELECT DISTINCT - 28 - + 5 AS col1
----
-33

query II rowsort
SELECT + 49 AS col2, 95 * CASE + + 26 WHEN - 14 THEN - - 74 END + - 42 AS col1
----
49
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9755
SELECT DISTINCT + + 63 - + + 22 + + + CASE - + 72 WHEN + MIN( DISTINCT - 74 ) + - ( 68 ) * + - 28 THEN NULL ELSE + - CAST( NULL AS SIGNED ) + + + 66 * + - CASE - 92 WHEN + MIN( + - 46 ) / - 24 THEN NULL WHEN - 61 - 25 THEN NULL ELSE NULLIF ( COUNT( * ), - ( SUM( 92 ) ) ) * 27 END END + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-9755
SELECT DISTINCT + + 63 - + + 22 + + + CASE - + 72 WHEN + MIN ( DISTINCT - 74 ) + - ( 68 ) * + - 28 THEN NULL ELSE + - CAST ( NULL AS INTEGER ) + + + 66 * + - CASE - 92 WHEN + MIN ( + - 46 ) / - 24 THEN NULL WHEN - 61 - 25 THEN NULL ELSE NULLIF ( COUNT ( * ), - ( SUM ( 92 ) ) ) * 27 END END + 93
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9756
SELECT COUNT( * ) DIV + 82
----
0

skipif mysql # not compatible
query I rowsort label-9756
SELECT COUNT ( * ) / + 82
----
0

query I rowsort
SELECT DISTINCT ( + 74 ) * + 95 - + - 51
----
7081

query I rowsort
SELECT ALL 84 * 91
----
7644

onlyif mysql # aggregate syntax: 
query I rowsort label-9759
SELECT + MIN( ALL + 62 )
----
62

skipif mysql # not compatible
query I rowsort label-9759
SELECT + MIN ( ALL + 62 )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9760
SELECT COALESCE ( - MAX( DISTINCT + + CASE + 99 WHEN - 98 THEN - 32 WHEN 60 THEN NULL WHEN + 21 THEN NULL END ), - ( - 55 ), + COUNT( + + 83 ) + 44 ) * 22 - - + 17 AS col0
----
1227

skipif mysql # not compatible
query I rowsort label-9760
SELECT COALESCE ( - MAX ( DISTINCT + + CASE + 99 WHEN - 98 THEN - 32 WHEN 60 THEN NULL WHEN + 21 THEN NULL END ), - ( - 55 ), + COUNT ( + + 83 ) + 44 ) * 22 - - + 17 AS col0
----
1227

onlyif mysql # aggregate syntax: 
query I rowsort label-9761
SELECT DISTINCT 79 * 74 - MAX( DISTINCT + 48 )
----
5798

skipif mysql # not compatible
query I rowsort label-9761
SELECT DISTINCT 79 * 74 - MAX ( DISTINCT + 48 )
----
5798

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-9762
SELECT - COALESCE ( 51, + CASE + 25 WHEN - 99 THEN 54 WHEN + AVG ( - 11 ) THEN - COUNT( * ) * - ( + MAX( DISTINCT + 91 ) ) + + - COUNT( * ) DIV ( CASE 73 WHEN - NULLIF ( - + NULLIF ( - 65, + 48 * + CAST( + 34 AS DECIMAL ) ), + 28 ) * ( COALESCE ( 94, - COUNT( + ( - 44 ) ) ) * 57 ) THEN NULL ELSE + COUNT( * ) * 32 + + 77 * 38 END ) ELSE + CAST( - ( - 5 ) AS SIGNED ) * + ( 83 ) END * - 58 ) DIV + 96 + 34 AS col2
----
34

skipif mysql # not compatible
query I rowsort label-9762
SELECT - COALESCE ( 51, + CASE + 25 WHEN - 99 THEN 54 WHEN + AVG ( - 11 ) THEN - COUNT ( * ) * - ( + MAX ( DISTINCT + 91 ) ) + + - COUNT ( * ) / ( CASE 73 WHEN - NULLIF ( - + NULLIF ( - 65, + 48 * + CAST ( + 34 AS REAL ) ), + 28 ) * ( COALESCE ( 94, - COUNT ( + ( - 44 ) ) ) * 57 ) THEN NULL ELSE + COUNT ( * ) * 32 + + 77 * 38 END ) ELSE + CAST ( - ( - 5 ) AS INTEGER ) * + ( 83 ) END * - 58 ) / + 96 + 34 AS col2
----
34

query I rowsort
SELECT ALL + + CASE - ( + 83 ) WHEN 82 - + - 47 THEN 71 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9764
SELECT ALL + COUNT( * ) * 98 + 2 AS col0
----
100

skipif mysql # not compatible
query I rowsort label-9764
SELECT ALL + COUNT ( * ) * 98 + 2 AS col0
----
100

query I rowsort
SELECT DISTINCT + ( 96 ) AS col0
----
96

query I rowsort
SELECT + 49 + 14
----
63

query I rowsort
SELECT 27 * ( + - 58 ) - - 80 AS col0
----
-1486

query I rowsort
SELECT ALL + 36 * 72 col2
----
2592

onlyif mysql # aggregate syntax: 
query I rowsort label-9769
SELECT - 25 + + + COUNT( * ) + COUNT( * ) + - 67 * - 15 AS col0
----
982

skipif mysql # not compatible
query I rowsort label-9769
SELECT - 25 + + + COUNT ( * ) + COUNT ( * ) + - 67 * - 15 AS col0
----
982

onlyif mysql # aggregate syntax: 
query I rowsort label-9770
SELECT DISTINCT + COUNT( ALL - 16 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9770
SELECT DISTINCT + COUNT ( ALL - 16 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9771
SELECT DISTINCT + 35 * + COUNT( * ) + - 15 AS col1
----
20

skipif mysql # not compatible
query I rowsort label-9771
SELECT DISTINCT + 35 * + COUNT ( * ) + - 15 AS col1
----
20

query I rowsort
SELECT ALL 64 * - + 31 + + 7
----
-1977

query I rowsort
SELECT ALL 70 * - 66 * - 41 + 42 col0
----
189462

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9774
SELECT ALL - 28 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9774
SELECT ALL - 28 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9775
SELECT DISTINCT + CASE - MIN( - 25 ) WHEN 75 THEN NULL WHEN + SUM( + 2 ) THEN NULL WHEN 39 * + CASE + 75 WHEN COUNT( * ) THEN 11 ELSE - 20 + 56 + COUNT( * ) / + ( - 60 ) END + - + NULLIF ( - - 93, + CAST( NULL AS SIGNED ) * 58 ) THEN 64 WHEN NULLIF ( + 7, + 20 ) * - 50 + COUNT( * ) THEN NULL ELSE + CASE - 95 WHEN CAST( + 69 AS SIGNED ) + MAX( DISTINCT CAST( NULL AS SIGNED ) ) * 6 THEN + CAST( + MIN( ALL + 68 ) AS SIGNED ) ELSE NULL END END * 31 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9775
SELECT DISTINCT + CASE - MIN ( - 25 ) WHEN 75 THEN NULL WHEN + SUM ( + 2 ) THEN NULL WHEN 39 * + CASE + 75 WHEN COUNT ( * ) THEN 11 ELSE - 20 + 56 + COUNT ( * ) / + ( - 60 ) END + - + NULLIF ( - - 93, + CAST ( NULL AS INTEGER ) * 58 ) THEN 64 WHEN NULLIF ( + 7, + 20 ) * - 50 + COUNT ( * ) THEN NULL ELSE + CASE - 95 WHEN CAST ( + 69 AS INTEGER ) + MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) * 6 THEN + CAST ( + MIN ( ALL + 68 ) AS INTEGER ) ELSE NULL END END * 31 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9776
SELECT DISTINCT - 19 + + - SUM( 13 ) + - 53 AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-9776
SELECT DISTINCT - 19 + + - SUM ( 13 ) + - 53 AS col1
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9777
SELECT DISTINCT 42 / + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9777
SELECT DISTINCT 42 / + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - 47 + - 10 * + 92
----
-967

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9779
SELECT ALL - 1 + - CASE + + COUNT( * ) WHEN - CASE COALESCE ( 83, 94, - 66 * - COUNT( * ) + ( + 22 ) ) WHEN + - 60 * - + 34 - + COUNT( * ) THEN NULL WHEN - 81 * - + 19 - - ( SUM( ALL 75 ) ) THEN 50 ELSE CAST( NULL AS SIGNED ) + 36 END THEN NULL ELSE - 96 END
----
95

skipif mysql # not compatible
query I rowsort label-9779
SELECT ALL - 1 + - CASE + + COUNT ( * ) WHEN - CASE COALESCE ( 83, 94, - 66 * - COUNT ( * ) + ( + 22 ) ) WHEN + - 60 * - + 34 - + COUNT ( * ) THEN NULL WHEN - 81 * - + 19 - - ( SUM ( ALL 75 ) ) THEN 50 ELSE CAST ( NULL AS INTEGER ) + 36 END THEN NULL ELSE - 96 END
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9780
SELECT - COUNT( * ) * + CAST( NULL AS SIGNED ) * 92 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9780
SELECT - COUNT ( * ) * + CAST ( NULL AS INTEGER ) * 92 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9781
SELECT + ( - COUNT( * ) ) + - - ( + 86 ) * ( COUNT( * ) )
----
85

skipif mysql # not compatible
query I rowsort label-9781
SELECT + ( - COUNT ( * ) ) + - - ( + 86 ) * ( COUNT ( * ) )
----
85

query I rowsort
SELECT DISTINCT ( 31 ) AS col0
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9783
SELECT 1 * ( - SUM( - - ( 15 ) ) ) * - 40 + 22 + 71 * - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9783
SELECT 1 * ( - SUM ( - - ( 15 ) ) ) * - 40 + 22 + 71 * - CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9784
SELECT DISTINCT ( + - 99 ), - 49 * COUNT( * ) AS col0
----
-99
-49

skipif mysql # not compatible
query II rowsort label-9784
SELECT DISTINCT ( + - 99 ), - 49 * COUNT ( * ) AS col0
----
-99
-49

query I rowsort
SELECT + 93 + + - 26 - - 46 AS col2
----
113

query I rowsort
SELECT - ( 43 ) * - 27
----
1161

query I rowsort
SELECT - - ( - NULLIF ( + 90, + - 46 ) )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-9788
SELECT ALL - + 56 - + SUM( DISTINCT 95 )
----
-151

skipif mysql # not compatible
query I rowsort label-9788
SELECT ALL - + 56 - + SUM ( DISTINCT 95 )
----
-151

query I rowsort
SELECT DISTINCT + + 94 * - 90 * 49 + - + 55
----
-414595

query I rowsort
SELECT + CASE - - 62 WHEN 19 * - 20 THEN 49 + + 77 WHEN + ( 7 ) THEN NULL END * 79 * + 44 * 48 AS col1
----
NULL

query I rowsort
SELECT ALL + - 44 * + 83 AS col1
----
-3652

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9792
SELECT - CAST( NULL AS SIGNED ) - + COALESCE ( + 54, + - ( - + ( 18 ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9792
SELECT - CAST ( NULL AS INTEGER ) - + COALESCE ( + 54, + - ( - + ( 18 ) ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9793
SELECT - + 52 * + 37 * - MAX( ALL - 57 ) + - - ( CAST( NULL AS DECIMAL ) ) / - 36 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9793
SELECT - + 52 * + 37 * - MAX ( ALL - 57 ) + - - ( CAST ( NULL AS REAL ) ) / - 36 AS col1
----
NULL

query I rowsort
SELECT - NULLIF ( - 34, - 58 ) AS col1
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-9795
SELECT + 60 + 36 col2, COUNT( * ) col0
----
96
1

skipif mysql # not compatible
query II rowsort label-9795
SELECT + 60 + 36 col2, COUNT ( * ) col0
----
96
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9796
SELECT ( + - 42 ) * 58 * - 52 DIV - - NULLIF ( - - 1, - 99 ) + + 63 DIV + NULLIF ( + 85, + - COUNT( * ) ) AS col2
----
126672

skipif mysql # not compatible
query I rowsort label-9796
SELECT ( + - 42 ) * 58 * - 52 / - - NULLIF ( - - 1, - 99 ) + + 63 / + NULLIF ( + 85, + - COUNT ( * ) ) AS col2
----
126672

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9797
SELECT - 97 DIV + COUNT( * ) + - - ( - + 23 ) - - COALESCE ( + 96, ( + 65 ) ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-9797
SELECT - 97 / + COUNT ( * ) + - - ( - + 23 ) - - COALESCE ( + 96, ( + 65 ) ) AS col2
----
-24

query I rowsort
SELECT ALL + - ( 69 )
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-9799
SELECT + 1 DIV + 20 * + 69 - + - 74
----
74

skipif mysql # not compatible
query I rowsort label-9799
SELECT + 1 / + 20 * + 69 - + - 74
----
74

query I rowsort
SELECT + + 45 + 56 AS col1
----
101

query I rowsort
SELECT ALL - 39 * + 75
----
-2925

query I rowsort
SELECT + ( - 77 ) AS col2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9803
SELECT 32 * - - CASE + + 59 WHEN + ( + 21 ) + - - 12 + 61 * + - CASE WHEN 25 IN ( + 54, 18, - COUNT( * ), - 74 ) THEN NULL ELSE 5 + + 49 END * + - 25 + - 44 * - CASE 62 WHEN MAX( + 33 ) * - 68 THEN NULL WHEN 35 THEN - COUNT( * ) * - 10 + - 1 END * - 38 THEN 23 END * ( NULLIF ( + 45, + 46 ) ) + - 7 / 57 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9803
SELECT 32 * - - CASE + + 59 WHEN + ( + 21 ) + - - 12 + 61 * + - CASE WHEN 25 IN ( + 54, 18, - COUNT ( * ), - 74 ) THEN NULL ELSE 5 + + 49 END * + - 25 + - 44 * - CASE 62 WHEN MAX ( + 33 ) * - 68 THEN NULL WHEN 35 THEN - COUNT ( * ) * - 10 + - 1 END * - 38 THEN 23 END * ( NULLIF ( + 45, + 46 ) ) + - 7 / 57 AS col0
----
NULL

query II rowsort
SELECT + ( + - ( 54 ) ) AS col2, 93 AS col1
----
-54
93

query I rowsort
SELECT ( + - 30 ) AS col2
----
-30

query I rowsort
SELECT - ( + 39 ) * - + 34
----
1326

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9807
SELECT DISTINCT 66 * + 10 * - COUNT( * ) * - COUNT( * ) + - CASE - 79 WHEN 46 THEN - COUNT( * ) / + - COUNT( * ) ELSE NULL END + + - COUNT( * ) / + CAST( NULL AS SIGNED ), - COALESCE ( - COUNT( - - 70 ), 51 * 64 ) * 42 * + 78 AS col1
----
NULL
3276

skipif mysql # not compatible
query II rowsort label-9807
SELECT DISTINCT 66 * + 10 * - COUNT ( * ) * - COUNT ( * ) + - CASE - 79 WHEN 46 THEN - COUNT ( * ) / + - COUNT ( * ) ELSE NULL END + + - COUNT ( * ) / + CAST ( NULL AS INTEGER ), - COALESCE ( - COUNT ( - - 70 ), 51 * 64 ) * 42 * + 78 AS col1
----
NULL
3276

onlyif mysql # aggregate syntax: 
query II rowsort label-9808
SELECT ALL + 31 * + + 32 + MAX( + - 45 ) * + - 89 + - - 13 AS col0, + 56
----
5010
56

skipif mysql # not compatible
query II rowsort label-9808
SELECT ALL + 31 * + + 32 + MAX ( + - 45 ) * + - 89 + - - 13 AS col0, + 56
----
5010
56

onlyif mysql # aggregate syntax: 
query II rowsort label-9809
SELECT COALESCE ( - 79, + COALESCE ( - - 80, + 63 * + 12 + COUNT( + 72 ) ) ) AS col2, 31 * + 38 AS col0
----
-79
1178

skipif mysql # not compatible
query II rowsort label-9809
SELECT COALESCE ( - 79, + COALESCE ( - - 80, + 63 * + 12 + COUNT ( + 72 ) ) ) AS col2, 31 * + 38 AS col0
----
-79
1178

onlyif mysql # aggregate syntax: 
query I rowsort label-9810
SELECT ALL COUNT( * ) * - - COALESCE ( - 65, - 61 ) + + 14
----
-51

skipif mysql # not compatible
query I rowsort label-9810
SELECT ALL COUNT ( * ) * - - COALESCE ( - 65, - 61 ) + + 14
----
-51

query I rowsort
SELECT + 59 - + + 91 + + 80 - 6 AS col0
----
42

query I rowsort
SELECT - 41 * - COALESCE ( - - 63, + 80 ) AS col0
----
2583

query I rowsort
SELECT ALL - 97 * + 97 * + ( 45 ) * - 34 AS col0
----
14395770

onlyif mysql # aggregate syntax: 
query I rowsort label-9814
SELECT COALESCE ( COUNT( - - 87 ), 64 * 84 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9814
SELECT COALESCE ( COUNT ( - - 87 ), 64 * 84 ) AS col2
----
1

query I rowsort
SELECT DISTINCT ( 2 ) AS col1
----
2

query I rowsort
SELECT ALL - 70 * + 97
----
-6790

query I rowsort
SELECT - 5 - - + 7 col0
----
2

query I rowsort
SELECT - ( - 29 ) - - - 88 + 31 - + + 81 * - 70 * + 54 * + - 57 - + 36
----
-17452324

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9819
SELECT DISTINCT - 79 * + - 40 * CAST( + + 79 AS SIGNED ) AS col0
----
249640

skipif mysql # not compatible
query I rowsort label-9819
SELECT DISTINCT - 79 * + - 40 * CAST ( + + 79 AS INTEGER ) AS col0
----
249640

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9820
SELECT - - COUNT( * ) * - 29 DIV + ( 40 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9820
SELECT - - COUNT ( * ) * - 29 / + ( 40 ) AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9821
SELECT - SUM( + - 1 ) + + - 42 + + - COUNT( * ) * + + 26 DIV + 60 + - 11 col0
----
-52

skipif mysql # not compatible
query I rowsort label-9821
SELECT - SUM ( + - 1 ) + + - 42 + + - COUNT ( * ) * + + 26 / + 60 + - 11 col0
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9822
SELECT ALL + NULLIF ( - CAST( NULL AS SIGNED ), AVG ( ALL 22 ) + - - 82 ), - 85 AS col2
----
NULL
-85

skipif mysql # not compatible
query II rowsort label-9822
SELECT ALL + NULLIF ( - CAST ( NULL AS INTEGER ), AVG ( ALL 22 ) + - - 82 ), - 85 AS col2
----
NULL
-85

query I rowsort
SELECT - - 98 + + 85
----
183

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9824
SELECT ALL - CASE + MAX( ALL 90 ) WHEN - CAST( NULL AS SIGNED ) THEN + 43 WHEN - NULLIF ( + 34, - - 56 + + ( + 81 ) ) * - + 16 THEN NULL ELSE NULL END / - 85 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9824
SELECT ALL - CASE + MAX ( ALL 90 ) WHEN - CAST ( NULL AS INTEGER ) THEN + 43 WHEN - NULLIF ( + 34, - - 56 + + ( + 81 ) ) * - + 16 THEN NULL ELSE NULL END / - 85 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9825
SELECT - - 81 DIV - 60 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9825
SELECT - - 81 / - 60 AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9826
SELECT CAST( - MAX( + 44 ) AS SIGNED ) * 87 * 75 AS col1
----
-287100

skipif mysql # not compatible
query I rowsort label-9826
SELECT CAST ( - MAX ( + 44 ) AS INTEGER ) * 87 * 75 AS col1
----
-287100

query I rowsort
SELECT - 5 * 15
----
-75

query I rowsort
SELECT - 49 + + 33 AS col2
----
-16

query I rowsort
SELECT - 71 * 89 * - + 19 AS col0
----
120061

query I rowsort
SELECT ALL - 35 + - 3 AS col2
----
-38

query II rowsort
SELECT ALL - 85 * 21 + - 71, + 25 AS col0
----
-1856
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9832
SELECT + COUNT( * ) + 73 + 86
----
160

skipif mysql # not compatible
query I rowsort label-9832
SELECT + COUNT ( * ) + 73 + 86
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-9833
SELECT + 8 * - COUNT( * )
----
-8

skipif mysql # not compatible
query I rowsort label-9833
SELECT + 8 * - COUNT ( * )
----
-8

query I rowsort
SELECT NULLIF ( 20, - + 90 ) + 87 + - + 55 * + 20
----
-993

query I rowsort
SELECT ALL - + ( + 28 )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-9836
SELECT DISTINCT 86 + 58 * - + 35 * - COUNT( * ) * 79 + + 53 AS col1
----
160509

skipif mysql # not compatible
query I rowsort label-9836
SELECT DISTINCT 86 + 58 * - + 35 * - COUNT ( * ) * 79 + + 53 AS col1
----
160509

query I rowsort
SELECT ALL 91 + 93 * + - 27 * - 49 AS col0
----
123130

query I rowsort
SELECT ALL 14 + + 34 AS col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9839
SELECT 64 * 3 - - COUNT( * )
----
193

skipif mysql # not compatible
query I rowsort label-9839
SELECT 64 * 3 - - COUNT ( * )
----
193

onlyif mysql # DIV for integer division: 
query I rowsort label-9840
SELECT DISTINCT 31 DIV + 38
----
0

skipif mysql # not compatible
query I rowsort label-9840
SELECT DISTINCT 31 / + 38
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9841
SELECT DISTINCT - COUNT( * ) + + + 43
----
42

skipif mysql # not compatible
query I rowsort label-9841
SELECT DISTINCT - COUNT ( * ) + + + 43
----
42

query I rowsort
SELECT ALL 66 * - + 96
----
-6336

onlyif mysql # aggregate syntax: 
query I rowsort label-9843
SELECT ALL CASE - - COUNT( * ) WHEN + 6 + - - 70 THEN NULL WHEN + 91 THEN 28 END + + ( - CASE 26 WHEN + 57 THEN - 43 + + - 21 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9843
SELECT ALL CASE - - COUNT ( * ) WHEN + 6 + - - 70 THEN NULL WHEN + 91 THEN 28 END + + ( - CASE 26 WHEN + 57 THEN - 43 + + - 21 END ) AS col0
----
NULL

query II rowsort
SELECT DISTINCT 1 * - 48 AS col2, - 77 * - 33 AS col2
----
-48
2541

onlyif mysql # aggregate syntax: 
query I rowsort label-9845
SELECT 73 - - - MAX( + - 71 ) + 4 * 74
----
440

skipif mysql # not compatible
query I rowsort label-9845
SELECT 73 - - - MAX ( + - 71 ) + 4 * 74
----
440

query I rowsort
SELECT CASE + ( - - 47 ) WHEN 77 - + 43 THEN NULL ELSE + + 69 END * 95
----
6555

query I rowsort
SELECT ALL 30 * + - 27
----
-810

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9848
SELECT COUNT( * ) + + + 34 + COALESCE ( - 88, + 53 - 84 DIV - 67 * - - CASE - - 34 WHEN - - 10 THEN NULL ELSE + 44 + COUNT( * ) END, - + ( - 13 ) + 55 + + - 77 ) col2
----
-53

skipif mysql # not compatible
query I rowsort label-9848
SELECT COUNT ( * ) + + + 34 + COALESCE ( - 88, + 53 - 84 / - 67 * - - CASE - - 34 WHEN - - 10 THEN NULL ELSE + 44 + COUNT ( * ) END, - + ( - 13 ) + 55 + + - 77 ) col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-9849
SELECT + 93 * COUNT( * ) * - - 18 - - + 75
----
1749

skipif mysql # not compatible
query I rowsort label-9849
SELECT + 93 * COUNT ( * ) * - - 18 - - + 75
----
1749

onlyif mysql # aggregate syntax: 
query II rowsort label-9850
SELECT MIN( 60 ) * - 89 + 67 AS col0, + ( + 32 ) + + 60
----
-5273
92

skipif mysql # not compatible
query II rowsort label-9850
SELECT MIN ( 60 ) * - 89 + 67 AS col0, + ( + 32 ) + + 60
----
-5273
92

query I rowsort
SELECT ALL 24 - - + 35
----
59

query I rowsort
SELECT 63 + + 96 + + 74 + ( + 57 )
----
290

query I rowsort
SELECT + 30 * + 52 + 83 + + 24 + + + 73 * + 14 * + 38 - + 94
----
40409

onlyif mysql # aggregate syntax: 
query I rowsort label-9854
SELECT ALL 70 * COUNT( * ) * + ( - COUNT( * ) ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-9854
SELECT ALL 70 * COUNT ( * ) * + ( - COUNT ( * ) ) AS col2
----
-70

query I rowsort
SELECT 88 * - 41 AS col0
----
-3608

query II rowsort
SELECT DISTINCT - 59, 8 AS col0
----
-59
8

onlyif mysql # aggregate syntax: 
query II rowsort label-9857
SELECT 99 col1, 68 * - - MAX( ALL 59 ) + + 53 * + + 57 + - + ( 51 ) AS col1
----
99
6982

skipif mysql # not compatible
query II rowsort label-9857
SELECT 99 col1, 68 * - - MAX ( ALL 59 ) + + 53 * + + 57 + - + ( 51 ) AS col1
----
99
6982

query I rowsort
SELECT 1 * 73 col0
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9859
SELECT 69 + SUM( DISTINCT 47 ) + - CAST( 33 AS SIGNED ) * + CAST( NULL AS SIGNED ) * - COUNT( * ) + - 55
----
NULL

skipif mysql # not compatible
query I rowsort label-9859
SELECT 69 + SUM ( DISTINCT 47 ) + - CAST ( 33 AS INTEGER ) * + CAST ( NULL AS INTEGER ) * - COUNT ( * ) + - 55
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9860
SELECT 56 + COALESCE ( + 90, + 1 + - SUM( + ( - 53 ) ) + 76 ) DIV + - 85 AS col0, + CAST( NULL AS SIGNED ) AS col0
----
55
NULL

skipif mysql # not compatible
query II rowsort label-9860
SELECT 56 + COALESCE ( + 90, + 1 + - SUM ( + ( - 53 ) ) + 76 ) / + - 85 AS col0, + CAST ( NULL AS INTEGER ) AS col0
----
55
NULL

query I rowsort
SELECT - ( + ( + - 7 ) ) AS col0
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9862
SELECT ( 33 ) + + COALESCE ( + 13, 99 ) + - COUNT( * ) + - 9 + 71 + + CAST( + 88 AS SIGNED ) - 66 * - 0 * + 99 AS col2
----
195

skipif mysql # not compatible
query I rowsort label-9862
SELECT ( 33 ) + + COALESCE ( + 13, 99 ) + - COUNT ( * ) + - 9 + 71 + + CAST ( + 88 AS INTEGER ) - 66 * - 0 * + 99 AS col2
----
195

query I rowsort
SELECT DISTINCT - + 27 * 16
----
-432

query I rowsort
SELECT 18 * 65 AS col0
----
1170

query I rowsort
SELECT + 80 + - ( 87 ) AS col0
----
-7

query I rowsort
SELECT ALL - 41 * 10
----
-410

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9867
SELECT - CASE + 82 WHEN + + MAX( DISTINCT 71 ) + ( - CAST( 35 AS SIGNED ) ) THEN + COALESCE ( SUM( DISTINCT - 50 ), + + 97, - ( 8 ) ) + NULLIF ( - COUNT( * ), 73 ) END * 99 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9867
SELECT - CASE + 82 WHEN + + MAX ( DISTINCT 71 ) + ( - CAST ( 35 AS INTEGER ) ) THEN + COALESCE ( SUM ( DISTINCT - 50 ), + + 97, - ( 8 ) ) + NULLIF ( - COUNT ( * ), 73 ) END * 99 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + + 51 * + - 82
----
-4182

query I rowsort
SELECT DISTINCT - 39 + + 5 - ( 14 )
----
-48

query I rowsort
SELECT + 13 - - 87
----
100

onlyif mysql # DIV for integer division: 
query II rowsort label-9871
SELECT - NULLIF ( 87, 63 ) DIV + 78 AS col1, 27 AS col1
----
-1
27

skipif mysql # not compatible
query II rowsort label-9871
SELECT - NULLIF ( 87, 63 ) / + 78 AS col1, 27 AS col1
----
-1
27

query II rowsort
SELECT - 47 AS col0, - 51 AS col1
----
-47
-51

query I rowsort
SELECT - 5 + + + 71 AS col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9874
SELECT ALL + + NULLIF ( 87, - - 58 + 4 + + - 89 ) + - + COUNT( * ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-9874
SELECT ALL + + NULLIF ( 87, - - 58 + 4 + + - 89 ) + - + COUNT ( * ) AS col1
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-9875
SELECT ALL 9 AS col0, + NULLIF ( COUNT( * ), + + 70 * - - 51 )
----
9
1

skipif mysql # not compatible
query II rowsort label-9875
SELECT ALL 9 AS col0, + NULLIF ( COUNT ( * ), + + 70 * - - 51 )
----
9
1

query II rowsort
SELECT 74 + 69, 91 * - ( + 63 ) AS col2
----
143
-5733

query II rowsort
SELECT - + 89 AS col1, ( - 37 ) - + 95
----
-89
-132

query II rowsort
SELECT ALL - 5 * + 1 AS col1, - 86
----
-5
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-9879
SELECT CASE WHEN - 27 IS NOT NULL THEN + - 75 ELSE NULL END * - 4 + + 87 DIV - 45 AS col1
----
299

skipif mysql # not compatible
query I rowsort label-9879
SELECT CASE WHEN - 27 IS NOT NULL THEN + - 75 ELSE NULL END * - 4 + + 87 / - 45 AS col1
----
299

query I rowsort
SELECT ALL - 93 * - + 88 + - 38 * + + 49
----
6322

query II rowsort
SELECT DISTINCT 25 * - + 81 col1, - 42
----
-2025
-42

query I rowsort
SELECT ALL 96 * + 44 - - + 50 * - 88 AS col0
----
-176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9883
SELECT DISTINCT - CAST( + COUNT( * ) AS SIGNED ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9883
SELECT DISTINCT - CAST ( + COUNT ( * ) AS INTEGER ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9884
SELECT NULLIF ( - + CASE + - ( + COUNT( * ) ) WHEN ( 97 ) / - NULLIF ( 54, + + NULLIF ( + - 66, 74 ) ) THEN NULL WHEN - ( - CAST( NULL AS SIGNED ) ) * + ( 69 ) + - + 7 * - 56 + COUNT( ALL 62 ) THEN - 31 ELSE NULL END, ( 32 ) * + ( + 53 * - COUNT( * ) ) ) / - 60 + + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-9884
SELECT NULLIF ( - + CASE + - ( + COUNT ( * ) ) WHEN ( 97 ) / - NULLIF ( 54, + + NULLIF ( + - 66, 74 ) ) THEN NULL WHEN - ( - CAST ( NULL AS INTEGER ) ) * + ( 69 ) + - + 7 * - 56 + COUNT ( ALL 62 ) THEN - 31 ELSE NULL END, ( 32 ) * + ( + 53 * - COUNT ( * ) ) ) / - 60 + + 7
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9885
SELECT DISTINCT + 87 * + - MIN( ALL + 9 ) * + COUNT( * )
----
-783

skipif mysql # not compatible
query I rowsort label-9885
SELECT DISTINCT + 87 * + - MIN ( ALL + 9 ) * + COUNT ( * )
----
-783

query I rowsort
SELECT 63 * - 94
----
-5922

onlyif mysql # aggregate syntax: 
query I rowsort label-9887
SELECT SUM( DISTINCT - 38 ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-9887
SELECT SUM ( DISTINCT - 38 ) AS col0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-9888
SELECT ALL MAX( + + 61 ) * + 82 - - + ( - 48 ) AS col2
----
4954

skipif mysql # not compatible
query I rowsort label-9888
SELECT ALL MAX ( + + 61 ) * + 82 - - + ( - 48 ) AS col2
----
4954

query I rowsort
SELECT 43 * + 54 * - - 33 + 51 col0
----
76677

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9890
SELECT + 64 * + COALESCE ( NULLIF ( - 42, + ( + 93 ) / - CAST( 78 AS SIGNED ) ), COUNT( * ) ) AS col1
----
-2688

skipif mysql # not compatible
query I rowsort label-9890
SELECT + 64 * + COALESCE ( NULLIF ( - 42, + ( + 93 ) / - CAST ( 78 AS INTEGER ) ), COUNT ( * ) ) AS col1
----
-2688

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9891
SELECT ALL 78 + 24 + + + 66 DIV - CAST( - 17 AS SIGNED )
----
105

skipif mysql # not compatible
query I rowsort label-9891
SELECT ALL 78 + 24 + + + 66 / - CAST ( - 17 AS INTEGER )
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-9892
SELECT DISTINCT SUM( - 99 ) + - 83
----
-182

skipif mysql # not compatible
query I rowsort label-9892
SELECT DISTINCT SUM ( - 99 ) + - 83
----
-182

query I rowsort
SELECT ALL - 10 + 96 + 11 - - 82 AS col0
----
179

query I rowsort
SELECT + - 40 * + 65 AS col0
----
-2600

query I rowsort
SELECT ALL + - 74 + 64 col2
----
-10

query I rowsort
SELECT + 93 * 10 * - NULLIF ( + 45, 56 ) AS col0
----
-41850

onlyif mysql # aggregate syntax: 
query I rowsort label-9897
SELECT - ( 34 ) - COUNT( * )
----
-35

skipif mysql # not compatible
query I rowsort label-9897
SELECT - ( 34 ) - COUNT ( * )
----
-35

query I rowsort
SELECT DISTINCT ( + 47 ) + + + 65 + - 68 AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9899
SELECT MAX( DISTINCT 88 ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-9899
SELECT MAX ( DISTINCT 88 ) AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9900
SELECT ALL - NULLIF ( 59, - + COUNT( * ) * - + COUNT( * ) ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-9900
SELECT ALL - NULLIF ( 59, - + COUNT ( * ) * - + COUNT ( * ) ) AS col0
----
-59

query I rowsort
SELECT ALL - 0 - 46
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9902
SELECT - ( - + COUNT( * ) ) * - 20
----
-20

skipif mysql # not compatible
query I rowsort label-9902
SELECT - ( - + COUNT ( * ) ) * - 20
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9903
SELECT + MAX( - + 59 ) + 87
----
28

skipif mysql # not compatible
query I rowsort label-9903
SELECT + MAX ( - + 59 ) + 87
----
28

query I rowsort
SELECT + 36 + - 52 AS col0
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9905
SELECT DISTINCT + 65 * + CASE + 83 WHEN + 89 + + - 7 + - + 23 + CAST( + 10 AS SIGNED ) + 37 * 53 * - 15 THEN + + 3 + - CAST( NULL AS SIGNED ) - 77 WHEN - 16 + - + 38 THEN NULL END AS col0, + CASE - - AVG ( DISTINCT 57 ) WHEN 88 + + 14 THEN NULL WHEN + ( - 36 ) * + AVG ( - 86 ) THEN + 70 * + SUM( DISTINCT ( - 26 ) ) + - 72 * 32 ELSE NULL END * + AVG ( DISTINCT - 77 ) AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9905
SELECT DISTINCT + 65 * + CASE + 83 WHEN + 89 + + - 7 + - + 23 + CAST ( + 10 AS INTEGER ) + 37 * 53 * - 15 THEN + + 3 + - CAST ( NULL AS INTEGER ) - 77 WHEN - 16 + - + 38 THEN NULL END AS col0, + CASE - - AVG ( DISTINCT 57 ) WHEN 88 + + 14 THEN NULL WHEN + ( - 36 ) * + AVG ( - 86 ) THEN + 70 * + SUM ( DISTINCT ( - 26 ) ) + - 72 * 32 ELSE NULL END * + AVG ( DISTINCT - 77 ) AS col0
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9906
SELECT - 82 + - - 69 DIV 86
----
-82

skipif mysql # not compatible
query I rowsort label-9906
SELECT - 82 + - - 69 / 86
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-9907
SELECT - ( - + MAX( DISTINCT 84 ) ) + + NULLIF ( - 19, + 51 + 75 + + 21 * 41 ) - 4 * 32 + 37 * - ( 12 ) AS col0
----
-507

skipif mysql # not compatible
query I rowsort label-9907
SELECT - ( - + MAX ( DISTINCT 84 ) ) + + NULLIF ( - 19, + 51 + 75 + + 21 * 41 ) - 4 * 32 + 37 * - ( 12 ) AS col0
----
-507

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9908
SELECT 39 * CAST( NULL AS SIGNED ) - + + 43, 71 AS col1
----
NULL
71

skipif mysql # not compatible
query II rowsort label-9908
SELECT 39 * CAST ( NULL AS INTEGER ) - + + 43, 71 AS col1
----
NULL
71

onlyif mysql # DIV for integer division: 
query II rowsort label-9909
SELECT ALL + 48 * 69 DIV - 71, + 65 + + 36 AS col2
----
-46
101

skipif mysql # not compatible
query II rowsort label-9909
SELECT ALL + 48 * 69 / - 71, + 65 + + 36 AS col2
----
-46
101

query I rowsort
SELECT - ( + + 53 ) + - 14 AS col1
----
-67

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9911
SELECT COALESCE ( + ( + 71 ), + COALESCE ( + 85, - 58, - 4 ) - + - 96 * 94 DIV - + CAST( + - 76 AS SIGNED ), 14 DIV - 74 )
----
71

skipif mysql # not compatible
query I rowsort label-9911
SELECT COALESCE ( + ( + 71 ), + COALESCE ( + 85, - 58, - 4 ) - + - 96 * 94 / - + CAST ( + - 76 AS INTEGER ), 14 / - 74 )
----
71

query I rowsort
SELECT + 5 + 54 + + 97 AS col0
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9913
SELECT - + CAST( + 90 AS SIGNED ) + - 78 * - 52 AS col2
----
3966

skipif mysql # not compatible
query I rowsort label-9913
SELECT - + CAST ( + 90 AS INTEGER ) + - 78 * - 52 AS col2
----
3966

query I rowsort
SELECT - + 44 + + + 14 AS col0
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9915
SELECT ALL + - 60 * + 22 + CAST( - + 25 AS SIGNED )
----
-1345

skipif mysql # not compatible
query I rowsort label-9915
SELECT ALL + - 60 * + 22 + CAST ( - + 25 AS INTEGER )
----
-1345

onlyif mysql # aggregate syntax: 
query I rowsort label-9916
SELECT DISTINCT + ( + COUNT( ALL + 75 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9916
SELECT DISTINCT + ( + COUNT ( ALL + 75 ) )
----
1

query I rowsort
SELECT + - 69 + + 85
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9918
SELECT ALL + + 50 * + 85 - - 1 DIV 53 * + ( - NULLIF ( + ( COUNT( * ) ), - 35 ) ) + - - 88
----
4338

skipif mysql # not compatible
query I rowsort label-9918
SELECT ALL + + 50 * + 85 - - 1 / 53 * + ( - NULLIF ( + ( COUNT ( * ) ), - 35 ) ) + - - 88
----
4338

onlyif mysql # DIV for integer division: 
query I rowsort label-9919
SELECT ALL - 47 DIV - 72
----
0

skipif mysql # not compatible
query I rowsort label-9919
SELECT ALL - 47 / - 72
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9920
SELECT ALL - CASE + + 31 WHEN 33 THEN CAST( - + 61 AS SIGNED ) ELSE NULL END * + - COUNT( * ) * SUM( ALL - ( - 31 ) ) / + 48 + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9920
SELECT ALL - CASE + + 31 WHEN 33 THEN CAST ( - + 61 AS INTEGER ) ELSE NULL END * + - COUNT ( * ) * SUM ( ALL - ( - 31 ) ) / + 48 + - COUNT ( * )
----
NULL

query I rowsort
SELECT + 51 + - + 62
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-9922
SELECT DISTINCT 25 * 46 + + 44 + - 97 DIV 50 * - 51 AS col1
----
1245

skipif mysql # not compatible
query I rowsort label-9922
SELECT DISTINCT 25 * 46 + + 44 + - 97 / 50 * - 51 AS col1
----
1245

onlyif mysql # DIV for integer division: 
query I rowsort label-9923
SELECT - 95 DIV + 39 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-9923
SELECT - 95 / + 39 AS col2
----
-2

query I rowsort
SELECT + 65 + - 99 - + 93 + - - 99 * - 64
----
-6463

onlyif mysql # aggregate syntax: 
query I rowsort label-9925
SELECT ALL - MIN( ALL - 13 ) * - 14 * + 3 * + + 98
----
-53508

skipif mysql # not compatible
query I rowsort label-9925
SELECT ALL - MIN ( ALL - 13 ) * - 14 * + 3 * + + 98
----
-53508

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9926
SELECT - + 92 * + CAST( - 60 AS SIGNED )
----
5520

skipif mysql # not compatible
query I rowsort label-9926
SELECT - + 92 * + CAST ( - 60 AS INTEGER )
----
5520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9927
SELECT + + CAST( NULL AS SIGNED ) + - ( 61 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9927
SELECT + + CAST ( NULL AS INTEGER ) + - ( 61 ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9928
SELECT DISTINCT + 52 col1, COUNT( DISTINCT + - 43 ) AS col1
----
52
1

skipif mysql # not compatible
query II rowsort label-9928
SELECT DISTINCT + 52 col1, COUNT ( DISTINCT + - 43 ) AS col1
----
52
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9929
SELECT + - SUM( - 6 ) * - 49 col2
----
-294

skipif mysql # not compatible
query I rowsort label-9929
SELECT + - SUM ( - 6 ) * - 49 col2
----
-294

query I rowsort
SELECT ALL 14 - - 85 * - 79
----
-6701

onlyif mysql # aggregate syntax: 
query I rowsort label-9931
SELECT DISTINCT + COUNT( + 67 )
----
1

skipif mysql # not compatible
query I rowsort label-9931
SELECT DISTINCT + COUNT ( + 67 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9932
SELECT + COUNT( * ) - - MIN( 70 )
----
71

skipif mysql # not compatible
query I rowsort label-9932
SELECT + COUNT ( * ) - - MIN ( 70 )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9933
SELECT + ( - + 61 ) * + - 46 + - - ( MAX( DISTINCT + 43 ) ) * + COUNT( * )
----
2849

skipif mysql # not compatible
query I rowsort label-9933
SELECT + ( - + 61 ) * + - 46 + - - ( MAX ( DISTINCT + 43 ) ) * + COUNT ( * )
----
2849

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9934
SELECT + CAST( NULL AS SIGNED ) + + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9934
SELECT + CAST ( NULL AS INTEGER ) + + + COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9935
SELECT DISTINCT 48 DIV + 56 * + 40 col1
----
0

skipif mysql # not compatible
query I rowsort label-9935
SELECT DISTINCT 48 / + 56 * + 40 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9936
SELECT + ( + COALESCE ( - + 13, - NULLIF ( - - 73, - 13 ) * + ( - - 87 ) * + 14 + - 43 - - 69 - + 91 - - + COUNT( * ) * 48 ) ) * + 95 + + + CASE - 87 WHEN 84 THEN - COALESCE ( - 96, + 89, + 44 * - 83 ) - - 63 WHEN COUNT( ALL 56 ) THEN + 65 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9936
SELECT + ( + COALESCE ( - + 13, - NULLIF ( - - 73, - 13 ) * + ( - - 87 ) * + 14 + - 43 - - 69 - + 91 - - + COUNT ( * ) * 48 ) ) * + 95 + + + CASE - 87 WHEN 84 THEN - COALESCE ( - 96, + 89, + 44 * - 83 ) - - 63 WHEN COUNT ( ALL 56 ) THEN + 65 END
----
NULL

query I rowsort
SELECT ALL - 42 * + 58 AS col2
----
-2436

onlyif mysql # aggregate syntax: 
query I rowsort label-9938
SELECT + 7 + SUM( ALL 10 ) AS col2
----
17

skipif mysql # not compatible
query I rowsort label-9938
SELECT + 7 + SUM ( ALL 10 ) AS col2
----
17

query I rowsort
SELECT DISTINCT 12 * - 66
----
-792

query I rowsort
SELECT - 59 * - 66 * + 27 AS col0
----
105138

onlyif mysql # aggregate syntax: 
query II rowsort label-9941
SELECT - 53 + + 20 AS col2, COUNT( * ) * - + COUNT( * )
----
-33
-1

skipif mysql # not compatible
query II rowsort label-9941
SELECT - 53 + + 20 AS col2, COUNT ( * ) * - + COUNT ( * )
----
-33
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9942
SELECT 81 * - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9942
SELECT 81 * - CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT 17 + - 20 AS col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9944
SELECT ALL - CASE 48 WHEN - - 95 THEN + - 49 WHEN 54 THEN - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9944
SELECT ALL - CASE 48 WHEN - - 95 THEN + - 49 WHEN 54 THEN - COUNT ( * ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9945
SELECT CAST( - - 66 AS SIGNED ) * 24 col1
----
1584

skipif mysql # not compatible
query I rowsort label-9945
SELECT CAST ( - - 66 AS INTEGER ) * 24 col1
----
1584

query I rowsort
SELECT 26 * - 5 * + 45 * - 47 AS col2
----
274950

query I rowsort
SELECT DISTINCT - CASE - 78 WHEN + + 78 THEN - 77 ELSE NULL END / - 64 * 53 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - ( + 61 ) AS col1
----
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9949
SELECT ALL - ( + + CASE + 41 WHEN 32 + - - 40 THEN + 79 * - + COALESCE ( - 39, 49 DIV - - 52, + 52 ) ELSE - 85 END ) + + - 28 * + + SUM( - 57 )
----
1681

skipif mysql # not compatible
query I rowsort label-9949
SELECT ALL - ( + + CASE + 41 WHEN 32 + - - 40 THEN + 79 * - + COALESCE ( - 39, 49 / - - 52, + 52 ) ELSE - 85 END ) + + - 28 * + + SUM ( - 57 )
----
1681

onlyif mysql # aggregate syntax: 
query I rowsort label-9950
SELECT ALL MIN( ALL - 55 ) + - 19 * COUNT( * ) AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-9950
SELECT ALL MIN ( ALL - 55 ) + - 19 * COUNT ( * ) AS col0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-9951
SELECT ALL + - 7 + - COUNT( * )
----
-8

skipif mysql # not compatible
query I rowsort label-9951
SELECT ALL + - 7 + - COUNT ( * )
----
-8

query I rowsort
SELECT ( - - 12 ) col0
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9953
SELECT ALL + CAST( NULL AS SIGNED ) + - 58 + + AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9953
SELECT ALL + CAST ( NULL AS INTEGER ) + - 58 + + AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9954
SELECT + 66 + + CAST( + 89 AS SIGNED )
----
155

skipif mysql # not compatible
query I rowsort label-9954
SELECT + 66 + + CAST ( + 89 AS INTEGER )
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-9955
SELECT MAX( + 40 ) * COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-9955
SELECT MAX ( + 40 ) * COUNT ( * )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9956
SELECT SUM( DISTINCT - 96 ) AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-9956
SELECT SUM ( DISTINCT - 96 ) AS col0
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9957
SELECT - ( + CAST( COUNT( * ) AS SIGNED ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9957
SELECT - ( + CAST ( COUNT ( * ) AS INTEGER ) ) AS col0
----
-1

query I rowsort
SELECT ALL + 27 + - 60
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9959
SELECT CASE - COUNT( * ) WHEN - - 43 THEN 87 WHEN - COUNT( * ) / - CAST( - 37 AS SIGNED ) THEN - + 84 + NULLIF ( + + 86, - ( + CAST( 4 AS SIGNED ) ) * + 99 / + 82 + - 97 + + 90 * - 10 + + 79 - + + 80 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9959
SELECT CASE - COUNT ( * ) WHEN - - 43 THEN 87 WHEN - COUNT ( * ) / - CAST ( - 37 AS INTEGER ) THEN - + 84 + NULLIF ( + + 86, - ( + CAST ( 4 AS INTEGER ) ) * + 99 / + 82 + - 97 + + 90 * - 10 + + 79 - + + 80 ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9960
SELECT + - SUM( ALL + 76 )
----
-76

skipif mysql # not compatible
query I rowsort label-9960
SELECT + - SUM ( ALL + 76 )
----
-76

query I rowsort
SELECT 49 * 7 * - 47
----
-16121

onlyif mysql # aggregate syntax: 
query I rowsort label-9962
SELECT DISTINCT - 24 - + MAX( ALL - + 40 ) * + + 48 col2
----
1896

skipif mysql # not compatible
query I rowsort label-9962
SELECT DISTINCT - 24 - + MAX ( ALL - + 40 ) * + + 48 col2
----
1896

query II rowsort
SELECT ( - 2 ) AS col1, - 84 AS col1
----
-2
-84

query II rowsort
SELECT 41 + 72 AS col0, 91 col0
----
113
91

query I rowsort
SELECT ALL 68 * - + 53
----
-3604

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9966
SELECT - 43 + - + COALESCE ( - - 17, + 20 * + - NULLIF ( - 82, - CASE - 70 WHEN CAST( + 54 AS SIGNED ) - - 49 + - ( + COUNT( * ) ) THEN + + 54 WHEN 16 + - + COUNT( * ) THEN NULL ELSE NULL END * ( + + 96 ) + + 60 ) * 90 * - MAX( DISTINCT ( - 94 ) ) + - 5 + 8, - COUNT( - 16 ), 86 * + 97 )
----
-60

skipif mysql # not compatible
query I rowsort label-9966
SELECT - 43 + - + COALESCE ( - - 17, + 20 * + - NULLIF ( - 82, - CASE - 70 WHEN CAST ( + 54 AS INTEGER ) - - 49 + - ( + COUNT ( * ) ) THEN + + 54 WHEN 16 + - + COUNT ( * ) THEN NULL ELSE NULL END * ( + + 96 ) + + 60 ) * 90 * - MAX ( DISTINCT ( - 94 ) ) + - 5 + 8, - COUNT ( - 16 ), 86 * + 97 )
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-9967
SELECT + 65 DIV + 92
----
0

skipif mysql # not compatible
query I rowsort label-9967
SELECT + 65 / + 92
----
0

query I rowsort
SELECT 47 * 65 AS col1
----
3055

query I rowsort
SELECT 82 * - 83
----
-6806

onlyif mysql # aggregate syntax: 
query I rowsort label-9970
SELECT DISTINCT 49 * CASE 20 WHEN - - 42 THEN - - 32 * - 46 + + 65 * - + 78 * + 12 * - + 65 * - 93 ELSE + COUNT( * ) END AS col1
----
49

skipif mysql # not compatible
query I rowsort label-9970
SELECT DISTINCT 49 * CASE 20 WHEN - - 42 THEN - - 32 * - 46 + + 65 * - + 78 * + 12 * - + 65 * - 93 ELSE + COUNT ( * ) END AS col1
----
49

query I rowsort
SELECT ALL 7 * + 3 AS col0
----
21

onlyif mysql # DIV for integer division: 
query II rowsort label-9972
SELECT - 87 AS col2, - 51 DIV - 69
----
-87
0

skipif mysql # not compatible
query II rowsort label-9972
SELECT - 87 AS col2, - 51 / - 69
----
-87
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9973
SELECT ALL + 83 * CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9973
SELECT ALL + 83 * CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT 72 + - 95
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-9975
SELECT ALL COUNT( * ) + 40 col1
----
41

skipif mysql # not compatible
query I rowsort label-9975
SELECT ALL COUNT ( * ) + 40 col1
----
41

query II rowsort
SELECT ALL 94 * + 27 * + + 30, 11 AS col2
----
76140
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9977
SELECT 75 * 33 + COUNT( * ) + 66 col2
----
2542

skipif mysql # not compatible
query I rowsort label-9977
SELECT 75 * 33 + COUNT ( * ) + 66 col2
----
2542

query I rowsort
SELECT DISTINCT 29 * 93 AS col0
----
2697

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9979
SELECT - 38 DIV MAX( - 25 ) * COUNT( * ) * - - 58 * ( - NULLIF ( + 78, - 2 * + + 27 * 59 * + + COALESCE ( - + 25, - 66 * - 97 + + - COUNT( * ) ) + - 8 - ( + 78 ) ) ) + - ( 25 ) + 41 * 33 AS col2
----
-3196

skipif mysql # not compatible
query I rowsort label-9979
SELECT - 38 / MAX ( - 25 ) * COUNT ( * ) * - - 58 * ( - NULLIF ( + 78, - 2 * + + 27 * 59 * + + COALESCE ( - + 25, - 66 * - 97 + + - COUNT ( * ) ) + - 8 - ( + 78 ) ) ) + - ( 25 ) + 41 * 33 AS col2
----
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-9980
SELECT ALL SUM( ALL + 98 ) + + 63 * 80 AS col2
----
5138

skipif mysql # not compatible
query I rowsort label-9980
SELECT ALL SUM ( ALL + 98 ) + + 63 * 80 AS col2
----
5138

onlyif mysql # aggregate syntax: 
query I rowsort label-9981
SELECT ALL 58 * COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-9981
SELECT ALL 58 * COUNT ( * )
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9982
SELECT 16 + 34 * + - ( - - 87 ) * - CAST( - ( + COUNT( * ) ) AS SIGNED ) + 22 + - COUNT( * ) AS col1
----
-2921

skipif mysql # not compatible
query I rowsort label-9982
SELECT 16 + 34 * + - ( - - 87 ) * - CAST ( - ( + COUNT ( * ) ) AS INTEGER ) + 22 + - COUNT ( * ) AS col1
----
-2921

onlyif mysql # aggregate syntax: 
query I rowsort label-9983
SELECT ALL - - 42 + + MAX( - ( + + 9 ) ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-9983
SELECT ALL - - 42 + + MAX ( - ( + + 9 ) ) AS col0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9984
SELECT CASE - 78 WHEN - MIN( - + 2 ) THEN + 4 * - 83 * + - 28 WHEN + 89 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9984
SELECT CASE - 78 WHEN - MIN ( - + 2 ) THEN + 4 * - 83 * + - 28 WHEN + 89 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9985
SELECT - 59 * + COUNT( * ) * 22 + + COUNT( * ) + + - NULLIF ( + - CAST( NULL AS SIGNED ), - - 33 * - 71 - - 49 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9985
SELECT - 59 * + COUNT ( * ) * 22 + + COUNT ( * ) + + - NULLIF ( + - CAST ( NULL AS INTEGER ), - - 33 * - 71 - - 49 ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9986
SELECT DISTINCT + - 0 DIV - + 30
----
0

skipif mysql # not compatible
query I rowsort label-9986
SELECT DISTINCT + - 0 / - + 30
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9987
SELECT + - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9987
SELECT + - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9988
SELECT - COUNT( * ) + + + 75 / - AVG ( DISTINCT - CASE - + ( - - 71 ) WHEN - 57 THEN + - 21 * - 40 * + 42 * - + 73 ELSE NULL END ) + - COUNT( ALL - 7 ) * + 52 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9988
SELECT - COUNT ( * ) + + + 75 / - AVG ( DISTINCT - CASE - + ( - - 71 ) WHEN - 57 THEN + - 21 * - 40 * + 42 * - + 73 ELSE NULL END ) + - COUNT ( ALL - 7 ) * + 52 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 28 - - 79
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9990
SELECT DISTINCT + 65 DIV - + 72 * + ( - COUNT( + 58 ) ) * - 1
----
0

skipif mysql # not compatible
query I rowsort label-9990
SELECT DISTINCT + 65 / - + 72 * + ( - COUNT ( + 58 ) ) * - 1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9991
SELECT + 79 * 64 + - NULLIF ( - 24, ( + + 71 ) ) + + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9991
SELECT + 79 * 64 + - NULLIF ( - 24, ( + + 71 ) ) + + CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT - 13 + 87
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9993
SELECT ALL - MIN( - - 53 )
----
-53

skipif mysql # not compatible
query I rowsort label-9993
SELECT ALL - MIN ( - - 53 )
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9994
SELECT + + NULLIF ( + - COUNT( * ), CAST( + 46 AS SIGNED ) + - 92 ), 20 AS col2
----
-1
20

skipif mysql # not compatible
query II rowsort label-9994
SELECT + + NULLIF ( + - COUNT ( * ), CAST ( + 46 AS INTEGER ) + - 92 ), 20 AS col2
----
-1
20

query I rowsort
SELECT ALL - ( + 98 ) AS col0
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9996
SELECT ALL - + CAST( + 42 AS SIGNED )
----
-42

skipif mysql # not compatible
query I rowsort label-9996
SELECT ALL - + CAST ( + 42 AS INTEGER )
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9997
SELECT + MIN( ALL + 58 )
----
58

skipif mysql # not compatible
query I rowsort label-9997
SELECT + MIN ( ALL + 58 )
----
58

query I rowsort
SELECT 87 * 61
----
5307

query I rowsort
SELECT 74 + - + 21 AS col2
----
53

